// 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/playlist.proto

package video

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	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)
)

// Entity representing an ordered collection of videos or episodes.
// Playlists allow organizing content into sequences for improved user experience.
type Playlist struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Unique identifier of the playlist.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Identifier of the channel where this playlist is created and managed.
	ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// Title of the playlist displayed in interfaces and players.
	Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	// Detailed description of the playlist's content and purpose.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Ordered list of content items included in this playlist.
	Items []*PlaylistItem `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"`
	// Identifier of the style preset used in the player during playlist playback.
	StylePresetId string `protobuf:"bytes,6,opt,name=style_preset_id,json=stylePresetId,proto3" json:"style_preset_id,omitempty"`
	// Timestamp when the playlist was initially created in the system.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,100,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Timestamp of the last modification to the playlist or its metadata.
	UpdatedAt     *timestamppb.Timestamp `protobuf:"bytes,101,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Playlist) ProtoMessage() {}

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

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

func (x *Playlist) GetChannelId() string {
	if x != nil {
		return x.ChannelId
	}
	return ""
}

func (x *Playlist) GetTitle() string {
	if x != nil {
		return x.Title
	}
	return ""
}

func (x *Playlist) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *Playlist) GetItems() []*PlaylistItem {
	if x != nil {
		return x.Items
	}
	return nil
}

func (x *Playlist) GetStylePresetId() string {
	if x != nil {
		return x.StylePresetId
	}
	return ""
}

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

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

// Represents a single item in a playlist.
// Each item references either a video or an episode and specifies its position in the sequence.
type PlaylistItem struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Specifies the content identifier type for this playlist item.
	//
	// Types that are valid to be assigned to Id:
	//
	//	*PlaylistItem_VideoId
	//	*PlaylistItem_EpisodeId
	Id isPlaylistItem_Id `protobuf_oneof:"id"`
	// Position of this item in the playlist sequence (zero-indexed).
	// Determines the playback order of content in the playlist.
	Position      int64 `protobuf:"varint,1,opt,name=position,proto3" json:"position,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PlaylistItem) ProtoMessage() {}

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

func (x *PlaylistItem) GetId() isPlaylistItem_Id {
	if x != nil {
		return x.Id
	}
	return nil
}

func (x *PlaylistItem) GetVideoId() string {
	if x != nil {
		if x, ok := x.Id.(*PlaylistItem_VideoId); ok {
			return x.VideoId
		}
	}
	return ""
}

func (x *PlaylistItem) GetEpisodeId() string {
	if x != nil {
		if x, ok := x.Id.(*PlaylistItem_EpisodeId); ok {
			return x.EpisodeId
		}
	}
	return ""
}

func (x *PlaylistItem) GetPosition() int64 {
	if x != nil {
		return x.Position
	}
	return 0
}

type isPlaylistItem_Id interface {
	isPlaylistItem_Id()
}

type PlaylistItem_VideoId struct {
	// Identifier of a video included in the playlist.
	VideoId string `protobuf:"bytes,100,opt,name=video_id,json=videoId,proto3,oneof"`
}

type PlaylistItem_EpisodeId struct {
	// Identifier of an episode included in the playlist.
	EpisodeId string `protobuf:"bytes,101,opt,name=episode_id,json=episodeId,proto3,oneof"`
}

func (*PlaylistItem_VideoId) isPlaylistItem_Id() {}

func (*PlaylistItem_EpisodeId) isPlaylistItem_Id() {}

var File_yandex_cloud_video_v1_playlist_proto protoreflect.FileDescriptor

const file_yandex_cloud_video_v1_playlist_proto_rawDesc = "" +
	"\n" +
	"$yandex/cloud/video/v1/playlist.proto\x12\x15yandex.cloud.video.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xd0\x02\n" +
	"\bPlaylist\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n" +
	"\n" +
	"channel_id\x18\x02 \x01(\tR\tchannelId\x12\x14\n" +
	"\x05title\x18\x03 \x01(\tR\x05title\x12 \n" +
	"\vdescription\x18\x04 \x01(\tR\vdescription\x129\n" +
	"\x05items\x18\x05 \x03(\v2#.yandex.cloud.video.v1.PlaylistItemR\x05items\x12&\n" +
	"\x0fstyle_preset_id\x18\x06 \x01(\tR\rstylePresetId\x129\n" +
	"\n" +
	"created_at\x18d \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
	"\n" +
	"updated_at\x18e \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAtJ\x04\b\a\x10d\"\x93\x01\n" +
	"\fPlaylistItem\x12%\n" +
	"\bvideo_id\x18d \x01(\tB\b\x8a\xc81\x04<=50H\x00R\avideoId\x12)\n" +
	"\n" +
	"episode_id\x18e \x01(\tB\b\x8a\xc81\x04<=50H\x00R\tepisodeId\x12%\n" +
	"\bposition\x18\x01 \x01(\x03B\t\xfa\xc71\x050-100R\bpositionB\x04\n" +
	"\x02idJ\x04\b\x02\x10dB\\\n" +
	"\x19yandex.cloud.api.video.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/video/v1;videob\x06proto3"

var (
	file_yandex_cloud_video_v1_playlist_proto_rawDescOnce sync.Once
	file_yandex_cloud_video_v1_playlist_proto_rawDescData []byte
)

func file_yandex_cloud_video_v1_playlist_proto_rawDescGZIP() []byte {
	file_yandex_cloud_video_v1_playlist_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_video_v1_playlist_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_video_v1_playlist_proto_rawDesc), len(file_yandex_cloud_video_v1_playlist_proto_rawDesc)))
	})
	return file_yandex_cloud_video_v1_playlist_proto_rawDescData
}

var file_yandex_cloud_video_v1_playlist_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_video_v1_playlist_proto_goTypes = []any{
	(*Playlist)(nil),              // 0: yandex.cloud.video.v1.Playlist
	(*PlaylistItem)(nil),          // 1: yandex.cloud.video.v1.PlaylistItem
	(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
}
var file_yandex_cloud_video_v1_playlist_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.video.v1.Playlist.items:type_name -> yandex.cloud.video.v1.PlaylistItem
	2, // 1: yandex.cloud.video.v1.Playlist.created_at:type_name -> google.protobuf.Timestamp
	2, // 2: yandex.cloud.video.v1.Playlist.updated_at:type_name -> google.protobuf.Timestamp
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] 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_video_v1_playlist_proto_init() }
func file_yandex_cloud_video_v1_playlist_proto_init() {
	if File_yandex_cloud_video_v1_playlist_proto != nil {
		return
	}
	file_yandex_cloud_video_v1_playlist_proto_msgTypes[1].OneofWrappers = []any{
		(*PlaylistItem_VideoId)(nil),
		(*PlaylistItem_EpisodeId)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_video_v1_playlist_proto_rawDesc), len(file_yandex_cloud_video_v1_playlist_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_video_v1_playlist_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_video_v1_playlist_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_video_v1_playlist_proto_msgTypes,
	}.Build()
	File_yandex_cloud_video_v1_playlist_proto = out.File
	file_yandex_cloud_video_v1_playlist_proto_goTypes = nil
	file_yandex_cloud_video_v1_playlist_proto_depIdxs = nil
}
