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

package metering

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	_ "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 WriteImageProductUsageRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Checks whether you have the access required for the emit usage.
	ValidateOnly bool `protobuf:"varint,1,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// Marketplace Product's ID.
	ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	// List of product usage records (up to 25 per request).
	UsageRecords  []*UsageRecord `protobuf:"bytes,3,rep,name=usage_records,json=usageRecords,proto3" json:"usage_records,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*WriteImageProductUsageRequest) ProtoMessage() {}

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

func (x *WriteImageProductUsageRequest) GetValidateOnly() bool {
	if x != nil {
		return x.ValidateOnly
	}
	return false
}

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

func (x *WriteImageProductUsageRequest) GetUsageRecords() []*UsageRecord {
	if x != nil {
		return x.UsageRecords
	}
	return nil
}

type WriteImageProductUsageResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of accepted product usage records.
	Accepted []*AcceptedUsageRecord `protobuf:"bytes,1,rep,name=accepted,proto3" json:"accepted,omitempty"`
	// List of rejected product usage records (with reason).
	Rejected      []*RejectedUsageRecord `protobuf:"bytes,2,rep,name=rejected,proto3" json:"rejected,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*WriteImageProductUsageResponse) ProtoMessage() {}

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

func (x *WriteImageProductUsageResponse) GetAccepted() []*AcceptedUsageRecord {
	if x != nil {
		return x.Accepted
	}
	return nil
}

func (x *WriteImageProductUsageResponse) GetRejected() []*RejectedUsageRecord {
	if x != nil {
		return x.Rejected
	}
	return nil
}

var File_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_rawDesc = "" +
	"\n" +
	"Fyandex/cloud/marketplace/v1/metering/image_product_usage_service.proto\x12$yandex.cloud.marketplace.v1.metering\x1a\x1cgoogle/api/annotations.proto\x1a\x1dyandex/cloud/validation.proto\x1a7yandex/cloud/marketplace/v1/metering/usage_record.proto\"\xd3\x01\n" +
	"\x1dWriteImageProductUsageRequest\x12#\n" +
	"\rvalidate_only\x18\x01 \x01(\bR\fvalidateOnly\x12+\n" +
	"\n" +
	"product_id\x18\x02 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\tproductId\x12`\n" +
	"\rusage_records\x18\x03 \x03(\v21.yandex.cloud.marketplace.v1.metering.UsageRecordB\b\x82\xc81\x041-25R\fusageRecords\"\xce\x01\n" +
	"\x1eWriteImageProductUsageResponse\x12U\n" +
	"\baccepted\x18\x01 \x03(\v29.yandex.cloud.marketplace.v1.metering.AcceptedUsageRecordR\baccepted\x12U\n" +
	"\brejected\x18\x02 \x03(\v29.yandex.cloud.marketplace.v1.metering.RejectedUsageRecordR\brejected2\xec\x01\n" +
	"\x18ImageProductUsageService\x12\xcf\x01\n" +
	"\x05Write\x12C.yandex.cloud.marketplace.v1.metering.WriteImageProductUsageRequest\x1aD.yandex.cloud.marketplace.v1.metering.WriteImageProductUsageResponse\";\x82\xd3\xe4\x93\x025:\x01*\"0/marketplace/v1/metering/imageProductUsage/writeB}\n" +
	"(yandex.cloud.api.marketplace.v1.meteringZQgithub.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/v1/metering;meteringb\x06proto3"

var (
	file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_rawDescData []byte
)

func file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_rawDesc), len(file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_rawDesc)))
	})
	return file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_rawDescData
}

var file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_goTypes = []any{
	(*WriteImageProductUsageRequest)(nil),  // 0: yandex.cloud.marketplace.v1.metering.WriteImageProductUsageRequest
	(*WriteImageProductUsageResponse)(nil), // 1: yandex.cloud.marketplace.v1.metering.WriteImageProductUsageResponse
	(*UsageRecord)(nil),                    // 2: yandex.cloud.marketplace.v1.metering.UsageRecord
	(*AcceptedUsageRecord)(nil),            // 3: yandex.cloud.marketplace.v1.metering.AcceptedUsageRecord
	(*RejectedUsageRecord)(nil),            // 4: yandex.cloud.marketplace.v1.metering.RejectedUsageRecord
}
var file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.marketplace.v1.metering.WriteImageProductUsageRequest.usage_records:type_name -> yandex.cloud.marketplace.v1.metering.UsageRecord
	3, // 1: yandex.cloud.marketplace.v1.metering.WriteImageProductUsageResponse.accepted:type_name -> yandex.cloud.marketplace.v1.metering.AcceptedUsageRecord
	4, // 2: yandex.cloud.marketplace.v1.metering.WriteImageProductUsageResponse.rejected:type_name -> yandex.cloud.marketplace.v1.metering.RejectedUsageRecord
	0, // 3: yandex.cloud.marketplace.v1.metering.ImageProductUsageService.Write:input_type -> yandex.cloud.marketplace.v1.metering.WriteImageProductUsageRequest
	1, // 4: yandex.cloud.marketplace.v1.metering.ImageProductUsageService.Write:output_type -> yandex.cloud.marketplace.v1.metering.WriteImageProductUsageResponse
	4, // [4:5] is the sub-list for method output_type
	3, // [3:4] 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_v1_metering_image_product_usage_service_proto_init() }
func file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_init() {
	if File_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto != nil {
		return
	}
	file_yandex_cloud_marketplace_v1_metering_usage_record_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_v1_metering_image_product_usage_service_proto_rawDesc), len(file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto = out.File
	file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_goTypes = nil
	file_yandex_cloud_marketplace_v1_metering_image_product_usage_service_proto_depIdxs = nil
}
