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

package video

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

// Manifest format supported by the platform.
type Manifest_ManifestType int32

const (
	// The manifest type is not specified.
	Manifest_MANIFEST_TYPE_UNSPECIFIED Manifest_ManifestType = 0
	// Dynamic Adaptive Streaming over HTTP (DASH) format.
	// @see https://en.wikipedia.org/wiki/Dynamic_Adaptive_Streaming_over_HTTP
	Manifest_DASH Manifest_ManifestType = 1
	// HTTP Live Streaming (HLS) format.
	// @see https://en.wikipedia.org/wiki/HTTP_Live_Streaming
	Manifest_HLS Manifest_ManifestType = 2
)

// Enum value maps for Manifest_ManifestType.
var (
	Manifest_ManifestType_name = map[int32]string{
		0: "MANIFEST_TYPE_UNSPECIFIED",
		1: "DASH",
		2: "HLS",
	}
	Manifest_ManifestType_value = map[string]int32{
		"MANIFEST_TYPE_UNSPECIFIED": 0,
		"DASH":                      1,
		"HLS":                       2,
	}
)

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

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

func (Manifest_ManifestType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_video_v1_manifest_proto_enumTypes[0].Descriptor()
}

func (Manifest_ManifestType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_video_v1_manifest_proto_enumTypes[0]
}

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

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

// Represents a streaming manifest file that defines how video content is delivered.
// Manifests contain information about available video qualities, audio tracks,
// and other metadata needed by video players to stream content efficiently.
type Manifest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// URL where the manifest file can be accessed.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// Format of the manifest file.
	Type          Manifest_ManifestType `protobuf:"varint,2,opt,name=type,proto3,enum=yandex.cloud.video.v1.Manifest_ManifestType" json:"type,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Manifest) ProtoMessage() {}

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

func (x *Manifest) GetUrl() string {
	if x != nil {
		return x.Url
	}
	return ""
}

func (x *Manifest) GetType() Manifest_ManifestType {
	if x != nil {
		return x.Type
	}
	return Manifest_MANIFEST_TYPE_UNSPECIFIED
}

var File_yandex_cloud_video_v1_manifest_proto protoreflect.FileDescriptor

const file_yandex_cloud_video_v1_manifest_proto_rawDesc = "" +
	"\n" +
	"$yandex/cloud/video/v1/manifest.proto\x12\x15yandex.cloud.video.v1\"\xa6\x01\n" +
	"\bManifest\x12\x10\n" +
	"\x03url\x18\x01 \x01(\tR\x03url\x12@\n" +
	"\x04type\x18\x02 \x01(\x0e2,.yandex.cloud.video.v1.Manifest.ManifestTypeR\x04type\"F\n" +
	"\fManifestType\x12\x1d\n" +
	"\x19MANIFEST_TYPE_UNSPECIFIED\x10\x00\x12\b\n" +
	"\x04DASH\x10\x01\x12\a\n" +
	"\x03HLS\x10\x02\"\x04\b\x03\x10\x03B\\\n" +
	"\x19yandex.cloud.api.video.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/video/v1;videob\x06proto3"

var (
	file_yandex_cloud_video_v1_manifest_proto_rawDescOnce sync.Once
	file_yandex_cloud_video_v1_manifest_proto_rawDescData []byte
)

func file_yandex_cloud_video_v1_manifest_proto_rawDescGZIP() []byte {
	file_yandex_cloud_video_v1_manifest_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_video_v1_manifest_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_video_v1_manifest_proto_rawDesc), len(file_yandex_cloud_video_v1_manifest_proto_rawDesc)))
	})
	return file_yandex_cloud_video_v1_manifest_proto_rawDescData
}

var file_yandex_cloud_video_v1_manifest_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_video_v1_manifest_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_video_v1_manifest_proto_goTypes = []any{
	(Manifest_ManifestType)(0), // 0: yandex.cloud.video.v1.Manifest.ManifestType
	(*Manifest)(nil),           // 1: yandex.cloud.video.v1.Manifest
}
var file_yandex_cloud_video_v1_manifest_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.video.v1.Manifest.type:type_name -> yandex.cloud.video.v1.Manifest.ManifestType
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] 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_video_v1_manifest_proto_init() }
func file_yandex_cloud_video_v1_manifest_proto_init() {
	if File_yandex_cloud_video_v1_manifest_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_video_v1_manifest_proto_rawDesc), len(file_yandex_cloud_video_v1_manifest_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_video_v1_manifest_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_video_v1_manifest_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_video_v1_manifest_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_video_v1_manifest_proto_msgTypes,
	}.Build()
	File_yandex_cloud_video_v1_manifest_proto = out.File
	file_yandex_cloud_video_v1_manifest_proto_goTypes = nil
	file_yandex_cloud_video_v1_manifest_proto_depIdxs = nil
}
