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

package saas

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud/api"
	operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	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 GetProductInstanceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the product instance to return.
	ProductInstanceId string `protobuf:"bytes,1,opt,name=product_instance_id,json=productInstanceId,proto3" json:"product_instance_id,omitempty"`
	unknownFields     protoimpl.UnknownFields
	sizeCache         protoimpl.SizeCache
}

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

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

func (*GetProductInstanceRequest) ProtoMessage() {}

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

func (x *GetProductInstanceRequest) GetProductInstanceId() string {
	if x != nil {
		return x.ProductInstanceId
	}
	return ""
}

type ClaimProductInstanceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Signed JWT token which contains information about product instance and subscription.
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// ID of the resource to which the product instance will be claimed.
	ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// Additional information about the resource.
	ResourceInfo  *SaasInfo `protobuf:"bytes,3,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ClaimProductInstanceRequest) ProtoMessage() {}

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

func (x *ClaimProductInstanceRequest) GetToken() string {
	if x != nil {
		return x.Token
	}
	return ""
}

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

func (x *ClaimProductInstanceRequest) GetResourceInfo() *SaasInfo {
	if x != nil {
		return x.ResourceInfo
	}
	return nil
}

type ClaimProductInstanceMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the product to which the product instance belongs.
	ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	// ID of the product instance.
	ProductInstanceId string `protobuf:"bytes,2,opt,name=product_instance_id,json=productInstanceId,proto3" json:"product_instance_id,omitempty"`
	// ID of the subscription.
	LicenseInstanceId string `protobuf:"bytes,3,opt,name=license_instance_id,json=licenseInstanceId,proto3" json:"license_instance_id,omitempty"`
	// ID of the subscription lock.
	LockId        string `protobuf:"bytes,4,opt,name=lock_id,json=lockId,proto3" json:"lock_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ClaimProductInstanceMetadata) ProtoMessage() {}

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

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

func (x *ClaimProductInstanceMetadata) GetProductInstanceId() string {
	if x != nil {
		return x.ProductInstanceId
	}
	return ""
}

func (x *ClaimProductInstanceMetadata) GetLicenseInstanceId() string {
	if x != nil {
		return x.LicenseInstanceId
	}
	return ""
}

func (x *ClaimProductInstanceMetadata) GetLockId() string {
	if x != nil {
		return x.LockId
	}
	return ""
}

var File_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_rawDesc = "" +
	"\n" +
	"Cyandex/cloud/marketplace/pim/v1/saas/product_instance_service.proto\x12$yandex.cloud.marketplace.pim.v1.saas\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a;yandex/cloud/marketplace/pim/v1/saas/product_instance.proto\"Y\n" +
	"\x19GetProductInstanceRequest\x12<\n" +
	"\x13product_instance_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\x11productInstanceId\"\xb9\x01\n" +
	"\x1bClaimProductInstanceRequest\x12$\n" +
	"\x05token\x18\x01 \x01(\tB\x0e\xe8\xc71\x01\x8a\xc81\x06<=1000R\x05token\x12\x1f\n" +
	"\vresource_id\x18\x02 \x01(\tR\n" +
	"resourceId\x12S\n" +
	"\rresource_info\x18\x03 \x01(\v2..yandex.cloud.marketplace.pim.v1.saas.SaasInfoR\fresourceInfo\"\xb6\x01\n" +
	"\x1cClaimProductInstanceMetadata\x12\x1d\n" +
	"\n" +
	"product_id\x18\x01 \x01(\tR\tproductId\x12.\n" +
	"\x13product_instance_id\x18\x02 \x01(\tR\x11productInstanceId\x12.\n" +
	"\x13license_instance_id\x18\x03 \x01(\tR\x11licenseInstanceId\x12\x17\n" +
	"\alock_id\x18\x04 \x01(\tR\x06lockId2\xb2\x03\n" +
	"\x16ProductInstanceService\x12\xbf\x01\n" +
	"\x03Get\x12?.yandex.cloud.marketplace.pim.v1.saas.GetProductInstanceRequest\x1a5.yandex.cloud.marketplace.pim.v1.saas.ProductInstance\"@\x82\xd3\xe4\x93\x02:\x128/marketplace/pim/saas/v1/instances/{product_instance_id}\x12\xd5\x01\n" +
	"\x05Claim\x12A.yandex.cloud.marketplace.pim.v1.saas.ClaimProductInstanceRequest\x1a!.yandex.cloud.operation.Operation\"f\xb2\xd2*/\n" +
	"\x1cClaimProductInstanceMetadata\x12\x0fProductInstance\x82\xd3\xe4\x93\x02-:\x01*\"(/marketplace/pim/saas/v1/instances/claimBy\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_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_rawDescData []byte
)

func file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_rawDesc), len(file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_rawDesc)))
	})
	return file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_rawDescData
}

var file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_goTypes = []any{
	(*GetProductInstanceRequest)(nil),    // 0: yandex.cloud.marketplace.pim.v1.saas.GetProductInstanceRequest
	(*ClaimProductInstanceRequest)(nil),  // 1: yandex.cloud.marketplace.pim.v1.saas.ClaimProductInstanceRequest
	(*ClaimProductInstanceMetadata)(nil), // 2: yandex.cloud.marketplace.pim.v1.saas.ClaimProductInstanceMetadata
	(*SaasInfo)(nil),                     // 3: yandex.cloud.marketplace.pim.v1.saas.SaasInfo
	(*ProductInstance)(nil),              // 4: yandex.cloud.marketplace.pim.v1.saas.ProductInstance
	(*operation.Operation)(nil),          // 5: yandex.cloud.operation.Operation
}
var file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_depIdxs = []int32{
	3, // 0: yandex.cloud.marketplace.pim.v1.saas.ClaimProductInstanceRequest.resource_info:type_name -> yandex.cloud.marketplace.pim.v1.saas.SaasInfo
	0, // 1: yandex.cloud.marketplace.pim.v1.saas.ProductInstanceService.Get:input_type -> yandex.cloud.marketplace.pim.v1.saas.GetProductInstanceRequest
	1, // 2: yandex.cloud.marketplace.pim.v1.saas.ProductInstanceService.Claim:input_type -> yandex.cloud.marketplace.pim.v1.saas.ClaimProductInstanceRequest
	4, // 3: yandex.cloud.marketplace.pim.v1.saas.ProductInstanceService.Get:output_type -> yandex.cloud.marketplace.pim.v1.saas.ProductInstance
	5, // 4: yandex.cloud.marketplace.pim.v1.saas.ProductInstanceService.Claim:output_type -> yandex.cloud.operation.Operation
	3, // [3:5] is the sub-list for method output_type
	1, // [1:3] 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_marketplace_pim_v1_saas_product_instance_service_proto_init() }
func file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_init() {
	if File_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto != nil {
		return
	}
	file_yandex_cloud_marketplace_pim_v1_saas_product_instance_proto_init()
	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_service_proto_rawDesc), len(file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto = out.File
	file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_goTypes = nil
	file_yandex_cloud_marketplace_pim_v1_saas_product_instance_service_proto_depIdxs = nil
}
