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

package cloudregistry

import (
	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)
)

// Docker-specific content of the artifact.
type DockerContent struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Spec:
	//
	//	*DockerContent_ImageManifest
	//	*DockerContent_ManifestList
	Spec isDockerContent_Spec `protobuf_oneof:"spec"`
	// Digest of the manifest.
	ManifestDigest string `protobuf:"bytes,1,opt,name=manifest_digest,json=manifestDigest,proto3" json:"manifest_digest,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*DockerContent) ProtoMessage() {}

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

func (x *DockerContent) GetSpec() isDockerContent_Spec {
	if x != nil {
		return x.Spec
	}
	return nil
}

func (x *DockerContent) GetImageManifest() *ImageManifest {
	if x != nil {
		if x, ok := x.Spec.(*DockerContent_ImageManifest); ok {
			return x.ImageManifest
		}
	}
	return nil
}

func (x *DockerContent) GetManifestList() *ManifestList {
	if x != nil {
		if x, ok := x.Spec.(*DockerContent_ManifestList); ok {
			return x.ManifestList
		}
	}
	return nil
}

func (x *DockerContent) GetManifestDigest() string {
	if x != nil {
		return x.ManifestDigest
	}
	return ""
}

type isDockerContent_Spec interface {
	isDockerContent_Spec()
}

type DockerContent_ImageManifest struct {
	// Single-platform image manifest.
	ImageManifest *ImageManifest `protobuf:"bytes,2,opt,name=image_manifest,json=imageManifest,proto3,oneof"`
}

type DockerContent_ManifestList struct {
	// Multi-platform manifest list.
	ManifestList *ManifestList `protobuf:"bytes,3,opt,name=manifest_list,json=manifestList,proto3,oneof"`
}

func (*DockerContent_ImageManifest) isDockerContent_Spec() {}

func (*DockerContent_ManifestList) isDockerContent_Spec() {}

// Image manifest describing a single-platform Docker image.
type ImageManifest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Descriptor of the image configuration.
	Config *Descriptor `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// Descriptors of the image layers.
	Layers        []*Descriptor `protobuf:"bytes,2,rep,name=layers,proto3" json:"layers,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ImageManifest) ProtoMessage() {}

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

func (x *ImageManifest) GetConfig() *Descriptor {
	if x != nil {
		return x.Config
	}
	return nil
}

func (x *ImageManifest) GetLayers() []*Descriptor {
	if x != nil {
		return x.Layers
	}
	return nil
}

// Manifest list describing a multi-platform Docker image.
type ManifestList struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of platform-specific manifests.
	Manifests     []*PlatformManifest `protobuf:"bytes,1,rep,name=manifests,proto3" json:"manifests,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ManifestList) ProtoMessage() {}

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

func (x *ManifestList) GetManifests() []*PlatformManifest {
	if x != nil {
		return x.Manifests
	}
	return nil
}

// Descriptor of a content blob (config, layer, or manifest).
type Descriptor struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Digest of the content.
	Digest string `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"`
	// Size of the content in bytes.
	Size          int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Descriptor) ProtoMessage() {}

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

func (x *Descriptor) GetDigest() string {
	if x != nil {
		return x.Digest
	}
	return ""
}

func (x *Descriptor) GetSize() int64 {
	if x != nil {
		return x.Size
	}
	return 0
}

// Platform-specific manifest entry within a manifest list.
type PlatformManifest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Descriptor of the platform-specific manifest.
	ManifestDescriptor *Descriptor `protobuf:"bytes,1,opt,name=manifest_descriptor,json=manifestDescriptor,proto3" json:"manifest_descriptor,omitempty"`
	// Platform this manifest targets.
	Platform      *Platform `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *PlatformManifest) Reset() {
	*x = PlatformManifest{}
	mi := &file_yandex_cloud_cloudregistry_v1_docker_content_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*PlatformManifest) ProtoMessage() {}

func (x *PlatformManifest) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_cloudregistry_v1_docker_content_proto_msgTypes[4]
	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 PlatformManifest.ProtoReflect.Descriptor instead.
func (*PlatformManifest) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_cloudregistry_v1_docker_content_proto_rawDescGZIP(), []int{4}
}

func (x *PlatformManifest) GetManifestDescriptor() *Descriptor {
	if x != nil {
		return x.ManifestDescriptor
	}
	return nil
}

func (x *PlatformManifest) GetPlatform() *Platform {
	if x != nil {
		return x.Platform
	}
	return nil
}

// Platform describes the target OS and architecture of an image.
type Platform struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// CPU architecture.
	Architecture string `protobuf:"bytes,1,opt,name=architecture,proto3" json:"architecture,omitempty"`
	// Operating system.
	Os string `protobuf:"bytes,2,opt,name=os,proto3" json:"os,omitempty"`
	// OS version.
	OsVersion string `protobuf:"bytes,3,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`
	// CPU variant.
	Variant       string `protobuf:"bytes,4,opt,name=variant,proto3" json:"variant,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Platform) Reset() {
	*x = Platform{}
	mi := &file_yandex_cloud_cloudregistry_v1_docker_content_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Platform) ProtoMessage() {}

func (x *Platform) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_cloudregistry_v1_docker_content_proto_msgTypes[5]
	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 Platform.ProtoReflect.Descriptor instead.
func (*Platform) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_cloudregistry_v1_docker_content_proto_rawDescGZIP(), []int{5}
}

func (x *Platform) GetArchitecture() string {
	if x != nil {
		return x.Architecture
	}
	return ""
}

func (x *Platform) GetOs() string {
	if x != nil {
		return x.Os
	}
	return ""
}

func (x *Platform) GetOsVersion() string {
	if x != nil {
		return x.OsVersion
	}
	return ""
}

func (x *Platform) GetVariant() string {
	if x != nil {
		return x.Variant
	}
	return ""
}

var File_yandex_cloud_cloudregistry_v1_docker_content_proto protoreflect.FileDescriptor

const file_yandex_cloud_cloudregistry_v1_docker_content_proto_rawDesc = "" +
	"\n" +
	"2yandex/cloud/cloudregistry/v1/docker_content.proto\x12\x1dyandex.cloud.cloudregistry.v1\"\xeb\x01\n" +
	"\rDockerContent\x12U\n" +
	"\x0eimage_manifest\x18\x02 \x01(\v2,.yandex.cloud.cloudregistry.v1.ImageManifestH\x00R\rimageManifest\x12R\n" +
	"\rmanifest_list\x18\x03 \x01(\v2+.yandex.cloud.cloudregistry.v1.ManifestListH\x00R\fmanifestList\x12'\n" +
	"\x0fmanifest_digest\x18\x01 \x01(\tR\x0emanifestDigestB\x06\n" +
	"\x04spec\"\x95\x01\n" +
	"\rImageManifest\x12A\n" +
	"\x06config\x18\x01 \x01(\v2).yandex.cloud.cloudregistry.v1.DescriptorR\x06config\x12A\n" +
	"\x06layers\x18\x02 \x03(\v2).yandex.cloud.cloudregistry.v1.DescriptorR\x06layers\"]\n" +
	"\fManifestList\x12M\n" +
	"\tmanifests\x18\x01 \x03(\v2/.yandex.cloud.cloudregistry.v1.PlatformManifestR\tmanifests\"8\n" +
	"\n" +
	"Descriptor\x12\x16\n" +
	"\x06digest\x18\x01 \x01(\tR\x06digest\x12\x12\n" +
	"\x04size\x18\x02 \x01(\x03R\x04size\"\xb3\x01\n" +
	"\x10PlatformManifest\x12Z\n" +
	"\x13manifest_descriptor\x18\x01 \x01(\v2).yandex.cloud.cloudregistry.v1.DescriptorR\x12manifestDescriptor\x12C\n" +
	"\bplatform\x18\x02 \x01(\v2'.yandex.cloud.cloudregistry.v1.PlatformR\bplatform\"w\n" +
	"\bPlatform\x12\"\n" +
	"\farchitecture\x18\x01 \x01(\tR\farchitecture\x12\x0e\n" +
	"\x02os\x18\x02 \x01(\tR\x02os\x12\x1d\n" +
	"\n" +
	"os_version\x18\x03 \x01(\tR\tosVersion\x12\x18\n" +
	"\avariant\x18\x04 \x01(\tR\avariantBt\n" +
	"!yandex.cloud.api.cloudregistry.v1ZOgithub.com/yandex-cloud/go-genproto/yandex/cloud/cloudregistry/v1;cloudregistryb\x06proto3"

var (
	file_yandex_cloud_cloudregistry_v1_docker_content_proto_rawDescOnce sync.Once
	file_yandex_cloud_cloudregistry_v1_docker_content_proto_rawDescData []byte
)

func file_yandex_cloud_cloudregistry_v1_docker_content_proto_rawDescGZIP() []byte {
	file_yandex_cloud_cloudregistry_v1_docker_content_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_cloudregistry_v1_docker_content_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_cloudregistry_v1_docker_content_proto_rawDesc), len(file_yandex_cloud_cloudregistry_v1_docker_content_proto_rawDesc)))
	})
	return file_yandex_cloud_cloudregistry_v1_docker_content_proto_rawDescData
}

var file_yandex_cloud_cloudregistry_v1_docker_content_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_yandex_cloud_cloudregistry_v1_docker_content_proto_goTypes = []any{
	(*DockerContent)(nil),    // 0: yandex.cloud.cloudregistry.v1.DockerContent
	(*ImageManifest)(nil),    // 1: yandex.cloud.cloudregistry.v1.ImageManifest
	(*ManifestList)(nil),     // 2: yandex.cloud.cloudregistry.v1.ManifestList
	(*Descriptor)(nil),       // 3: yandex.cloud.cloudregistry.v1.Descriptor
	(*PlatformManifest)(nil), // 4: yandex.cloud.cloudregistry.v1.PlatformManifest
	(*Platform)(nil),         // 5: yandex.cloud.cloudregistry.v1.Platform
}
var file_yandex_cloud_cloudregistry_v1_docker_content_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.cloudregistry.v1.DockerContent.image_manifest:type_name -> yandex.cloud.cloudregistry.v1.ImageManifest
	2, // 1: yandex.cloud.cloudregistry.v1.DockerContent.manifest_list:type_name -> yandex.cloud.cloudregistry.v1.ManifestList
	3, // 2: yandex.cloud.cloudregistry.v1.ImageManifest.config:type_name -> yandex.cloud.cloudregistry.v1.Descriptor
	3, // 3: yandex.cloud.cloudregistry.v1.ImageManifest.layers:type_name -> yandex.cloud.cloudregistry.v1.Descriptor
	4, // 4: yandex.cloud.cloudregistry.v1.ManifestList.manifests:type_name -> yandex.cloud.cloudregistry.v1.PlatformManifest
	3, // 5: yandex.cloud.cloudregistry.v1.PlatformManifest.manifest_descriptor:type_name -> yandex.cloud.cloudregistry.v1.Descriptor
	5, // 6: yandex.cloud.cloudregistry.v1.PlatformManifest.platform:type_name -> yandex.cloud.cloudregistry.v1.Platform
	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_cloudregistry_v1_docker_content_proto_init() }
func file_yandex_cloud_cloudregistry_v1_docker_content_proto_init() {
	if File_yandex_cloud_cloudregistry_v1_docker_content_proto != nil {
		return
	}
	file_yandex_cloud_cloudregistry_v1_docker_content_proto_msgTypes[0].OneofWrappers = []any{
		(*DockerContent_ImageManifest)(nil),
		(*DockerContent_ManifestList)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_cloudregistry_v1_docker_content_proto_rawDesc), len(file_yandex_cloud_cloudregistry_v1_docker_content_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   6,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_cloudregistry_v1_docker_content_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_cloudregistry_v1_docker_content_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_cloudregistry_v1_docker_content_proto_msgTypes,
	}.Build()
	File_yandex_cloud_cloudregistry_v1_docker_content_proto = out.File
	file_yandex_cloud_cloudregistry_v1_docker_content_proto_goTypes = nil
	file_yandex_cloud_cloudregistry_v1_docker_content_proto_depIdxs = nil
}
