// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/marketplace/pim/v1/saas/product_instance.proto

package saas

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

const (
	State_STATE_UNSPECIFIED State = 0
	// Product instance is activated.
	State_ACTIVATED State = 1
	// Product instance is deactivated.
	State_DEACTIVATED State = 2
	// Product instance is pending activation.
	State_PENDING_ACTIVATION State = 3
	// Product instance is deprecated.
	State_DEPRECATED State = 4
	// Product instance is deleted.
	State_DELETED State = 5
)

// Enum value maps for State.
var (
	State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "ACTIVATED",
		2: "DEACTIVATED",
		3: "PENDING_ACTIVATION",
		4: "DEPRECATED",
		5: "DELETED",
	}
	State_value = map[string]int32{
		"STATE_UNSPECIFIED":  0,
		"ACTIVATED":          1,
		"DEACTIVATED":        2,
		"PENDING_ACTIVATION": 3,
		"DEPRECATED":         4,
		"DELETED":            5,
	}
)

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

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

func (State) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_enumTypes[0].Descriptor()
}

func (State) Type() protoreflect.EnumType {
	return &file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_enumTypes[0]
}

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

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

type ResourceType int32

const (
	ResourceType_RESOURCE_TYPE_UNSPECIFIED ResourceType = 0
	// SaaS resource.
	ResourceType_SAAS ResourceType = 1
	// Kubernetes resource.
	ResourceType_K8S ResourceType = 2
	// Compute resource.
	ResourceType_COMPUTE ResourceType = 3
	// Cloud Apps resource.
	ResourceType_CLOUD_APPS ResourceType = 4
)

// Enum value maps for ResourceType.
var (
	ResourceType_name = map[int32]string{
		0: "RESOURCE_TYPE_UNSPECIFIED",
		1: "SAAS",
		2: "K8S",
		3: "COMPUTE",
		4: "CLOUD_APPS",
	}
	ResourceType_value = map[string]int32{
		"RESOURCE_TYPE_UNSPECIFIED": 0,
		"SAAS":                      1,
		"K8S":                       2,
		"COMPUTE":                   3,
		"CLOUD_APPS":                4,
	}
)

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

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

func (ResourceType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_enumTypes[1].Descriptor()
}

func (ResourceType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_enumTypes[1]
}

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

// Deprecated: Use ResourceType.Descriptor instead.
func (ResourceType) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_rawDescGZIP(), []int{1}
}

type ProductInstance struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the product instance.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the resource.
	ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// Type of the resource.
	ResourceType ResourceType `protobuf:"varint,3,opt,name=resource_type,json=resourceType,proto3,enum=yandex.cloud.marketplace.pim.v1.saas.ResourceType" json:"resource_type,omitempty"`
	// Metadata of the resource; Reserved for future use.
	ResourceMetadata map[string]string `protobuf:"bytes,4,rep,name=resource_metadata,json=resourceMetadata,proto3" json:"resource_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// State of the product instance.
	State State `protobuf:"varint,5,opt,name=state,proto3,enum=yandex.cloud.marketplace.pim.v1.saas.State" json:"state,omitempty"`
	// Creation timestamp
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Update timestamp
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Additional information about the resource.
	//
	// Types that are valid to be assigned to ResourceInfo:
	//
	//	*ProductInstance_SaasInfo
	ResourceInfo  isProductInstance_ResourceInfo `protobuf_oneof:"resource_info"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ProductInstance) ProtoMessage() {}

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

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

func (x *ProductInstance) GetResourceId() string {
	if x != nil {
		return x.ResourceId
	}
	return ""
}

func (x *ProductInstance) GetResourceType() ResourceType {
	if x != nil {
		return x.ResourceType
	}
	return ResourceType_RESOURCE_TYPE_UNSPECIFIED
}

func (x *ProductInstance) GetResourceMetadata() map[string]string {
	if x != nil {
		return x.ResourceMetadata
	}
	return nil
}

func (x *ProductInstance) GetState() State {
	if x != nil {
		return x.State
	}
	return State_STATE_UNSPECIFIED
}

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

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

func (x *ProductInstance) GetResourceInfo() isProductInstance_ResourceInfo {
	if x != nil {
		return x.ResourceInfo
	}
	return nil
}

func (x *ProductInstance) GetSaasInfo() *SaasInfo {
	if x != nil {
		if x, ok := x.ResourceInfo.(*ProductInstance_SaasInfo); ok {
			return x.SaasInfo
		}
	}
	return nil
}

type isProductInstance_ResourceInfo interface {
	isProductInstance_ResourceInfo()
}

type ProductInstance_SaasInfo struct {
	SaasInfo *SaasInfo `protobuf:"bytes,8,opt,name=saas_info,json=saasInfo,proto3,oneof"`
}

func (*ProductInstance_SaasInfo) isProductInstance_ResourceInfo() {}

type SaasInfo struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the SaaS resource.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Additional data about the SaaS resource.
	Data          map[string]string `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SaasInfo) ProtoMessage() {}

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

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

func (x *SaasInfo) GetData() map[string]string {
	if x != nil {
		return x.Data
	}
	return nil
}

var File_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto protoreflect.FileDescriptor

const file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_rawDesc = "" +
	"\n" +
	";yandex/cloud/marketplace/pim/v1/saas/product_instance.proto\x12$yandex.cloud.marketplace.pim.v1.saas\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf3\x04\n" +
	"\x0fProductInstance\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1f\n" +
	"\vresource_id\x18\x02 \x01(\tR\n" +
	"resourceId\x12W\n" +
	"\rresource_type\x18\x03 \x01(\x0e22.yandex.cloud.marketplace.pim.v1.saas.ResourceTypeR\fresourceType\x12x\n" +
	"\x11resource_metadata\x18\x04 \x03(\v2K.yandex.cloud.marketplace.pim.v1.saas.ProductInstance.ResourceMetadataEntryR\x10resourceMetadata\x12A\n" +
	"\x05state\x18\x05 \x01(\x0e2+.yandex.cloud.marketplace.pim.v1.saas.StateR\x05state\x129\n" +
	"\n" +
	"created_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
	"\n" +
	"updated_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12M\n" +
	"\tsaas_info\x18\b \x01(\v2..yandex.cloud.marketplace.pim.v1.saas.SaasInfoH\x00R\bsaasInfo\x1aC\n" +
	"\x15ResourceMetadataEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\x0f\n" +
	"\rresource_info\"\xa1\x01\n" +
	"\bSaasInfo\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12L\n" +
	"\x04data\x18\x02 \x03(\v28.yandex.cloud.marketplace.pim.v1.saas.SaasInfo.DataEntryR\x04data\x1a7\n" +
	"\tDataEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01*s\n" +
	"\x05State\x12\x15\n" +
	"\x11STATE_UNSPECIFIED\x10\x00\x12\r\n" +
	"\tACTIVATED\x10\x01\x12\x0f\n" +
	"\vDEACTIVATED\x10\x02\x12\x16\n" +
	"\x12PENDING_ACTIVATION\x10\x03\x12\x0e\n" +
	"\n" +
	"DEPRECATED\x10\x04\x12\v\n" +
	"\aDELETED\x10\x05*]\n" +
	"\fResourceType\x12\x1d\n" +
	"\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\b\n" +
	"\x04SAAS\x10\x01\x12\a\n" +
	"\x03K8S\x10\x02\x12\v\n" +
	"\aCOMPUTE\x10\x03\x12\x0e\n" +
	"\n" +
	"CLOUD_APPS\x10\x04By\n" +
	"(yandex.cloud.api.marketplace.pim.v1.saasZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/pim/v1/saas;saasb\x06proto3"

var (
	file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_rawDescOnce sync.Once
	file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_rawDescData []byte
)

func file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_rawDescGZIP() []byte {
	file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_rawDesc), len(file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_rawDesc)))
	})
	return file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_rawDescData
}

var file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_goTypes = []any{
	(State)(0),                    // 0: yandex.cloud.marketplace.pim.v1.saas.State
	(ResourceType)(0),             // 1: yandex.cloud.marketplace.pim.v1.saas.ResourceType
	(*ProductInstance)(nil),       // 2: yandex.cloud.marketplace.pim.v1.saas.ProductInstance
	(*SaasInfo)(nil),              // 3: yandex.cloud.marketplace.pim.v1.saas.SaasInfo
	nil,                           // 4: yandex.cloud.marketplace.pim.v1.saas.ProductInstance.ResourceMetadataEntry
	nil,                           // 5: yandex.cloud.marketplace.pim.v1.saas.SaasInfo.DataEntry
	(*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
}
var file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.marketplace.pim.v1.saas.ProductInstance.resource_type:type_name -> yandex.cloud.marketplace.pim.v1.saas.ResourceType
	4, // 1: yandex.cloud.marketplace.pim.v1.saas.ProductInstance.resource_metadata:type_name -> yandex.cloud.marketplace.pim.v1.saas.ProductInstance.ResourceMetadataEntry
	0, // 2: yandex.cloud.marketplace.pim.v1.saas.ProductInstance.state:type_name -> yandex.cloud.marketplace.pim.v1.saas.State
	6, // 3: yandex.cloud.marketplace.pim.v1.saas.ProductInstance.created_at:type_name -> google.protobuf.Timestamp
	6, // 4: yandex.cloud.marketplace.pim.v1.saas.ProductInstance.updated_at:type_name -> google.protobuf.Timestamp
	3, // 5: yandex.cloud.marketplace.pim.v1.saas.ProductInstance.saas_info:type_name -> yandex.cloud.marketplace.pim.v1.saas.SaasInfo
	5, // 6: yandex.cloud.marketplace.pim.v1.saas.SaasInfo.data:type_name -> yandex.cloud.marketplace.pim.v1.saas.SaasInfo.DataEntry
	7, // [7:7] is the sub-list for method output_type
	7, // [7:7] is the sub-list for method input_type
	7, // [7:7] is the sub-list for extension type_name
	7, // [7:7] is the sub-list for extension extendee
	0, // [0:7] is the sub-list for field type_name
}

func init() { file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_init() }
func file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_init() {
	if File_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto != nil {
		return
	}
	file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_msgTypes[0].OneofWrappers = []any{
		(*ProductInstance_SaasInfo)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_rawDesc), len(file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_msgTypes,
	}.Build()
	File_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto = out.File
	file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_goTypes = nil
	file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_depIdxs = nil
}
