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

package video

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

// Visibility status of the episode.
type Episode_VisibilityStatus int32

const (
	// The visibility status is not specified.
	Episode_VISIBILITY_STATUS_UNSPECIFIED Episode_VisibilityStatus = 0
	// The episode is publicly available, subject to its access permission settings.
	Episode_PUBLISHED Episode_VisibilityStatus = 1
	// The episode is available only to administrators.
	Episode_UNPUBLISHED Episode_VisibilityStatus = 2
)

// Enum value maps for Episode_VisibilityStatus.
var (
	Episode_VisibilityStatus_name = map[int32]string{
		0: "VISIBILITY_STATUS_UNSPECIFIED",
		1: "PUBLISHED",
		2: "UNPUBLISHED",
	}
	Episode_VisibilityStatus_value = map[string]int32{
		"VISIBILITY_STATUS_UNSPECIFIED": 0,
		"PUBLISHED":                     1,
		"UNPUBLISHED":                   2,
	}
)

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

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

func (Episode_VisibilityStatus) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_video_v1_episode_proto_enumTypes[0].Descriptor()
}

func (Episode_VisibilityStatus) Type() protoreflect.EnumType {
	return &file_yandex_cloud_video_v1_episode_proto_enumTypes[0]
}

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

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

// Entity representing a stream fragment that can be accessed independently.
// Episodes can be linked to either a stream or a line
// and provide a way to reference specific portions of the corresponding content.
type Episode struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Unique identifier of the episode.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Identifier of the stream this episode is linked to.
	// Optional, empty if the episode is linked to a line.
	StreamId string `protobuf:"bytes,2,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
	// Identifier of the line this episode is linked to.
	// Optional, empty if the episode is linked to a stream.
	LineId string `protobuf:"bytes,3,opt,name=line_id,json=lineId,proto3" json:"line_id,omitempty"`
	// Title of the episode displayed in interfaces and players.
	Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	// Detailed description of the episode content and context.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Identifier of the thumbnail image used to represent the episode visually.
	ThumbnailId string `protobuf:"bytes,6,opt,name=thumbnail_id,json=thumbnailId,proto3" json:"thumbnail_id,omitempty"`
	// Timestamp marking the beginning of the episode content.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Timestamp marking the end of the episode content.
	FinishTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=finish_time,json=finishTime,proto3" json:"finish_time,omitempty"`
	// Controls the Digital Video Recording (DVR) functionality for the episode.
	// Determines how many seconds of the stream are available for time-shifted viewing.
	//
	// Possible values:
	//   - `0`: Infinite DVR size, the full length of the stream is available for viewing.
	//   - `>0`: Size of DVR window in seconds, the minimum value is 30s.
	DvrSeconds int64 `protobuf:"varint,9,opt,name=dvr_seconds,json=dvrSeconds,proto3" json:"dvr_seconds,omitempty"`
	// Current visibility status controlling whether the episode is publicly available.
	VisibilityStatus Episode_VisibilityStatus `protobuf:"varint,10,opt,name=visibility_status,json=visibilityStatus,proto3,enum=yandex.cloud.video.v1.Episode_VisibilityStatus" json:"visibility_status,omitempty"`
	// Identifier of the style preset used in the player during episode playback.
	StylePresetId string `protobuf:"bytes,12,opt,name=style_preset_id,json=stylePresetId,proto3" json:"style_preset_id,omitempty"`
	// Specifies the episode access permission settings.
	//
	// Types that are valid to be assigned to AccessRights:
	//
	//	*Episode_PublicAccess
	//	*Episode_SignUrlAccess
	AccessRights isEpisode_AccessRights `protobuf_oneof:"access_rights"`
	// Timestamp when the episode 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 episode 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 *Episode) Reset() {
	*x = Episode{}
	mi := &file_yandex_cloud_video_v1_episode_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Episode) ProtoMessage() {}

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

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

func (x *Episode) GetStreamId() string {
	if x != nil {
		return x.StreamId
	}
	return ""
}

func (x *Episode) GetLineId() string {
	if x != nil {
		return x.LineId
	}
	return ""
}

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

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

func (x *Episode) GetThumbnailId() string {
	if x != nil {
		return x.ThumbnailId
	}
	return ""
}

func (x *Episode) GetStartTime() *timestamppb.Timestamp {
	if x != nil {
		return x.StartTime
	}
	return nil
}

func (x *Episode) GetFinishTime() *timestamppb.Timestamp {
	if x != nil {
		return x.FinishTime
	}
	return nil
}

func (x *Episode) GetDvrSeconds() int64 {
	if x != nil {
		return x.DvrSeconds
	}
	return 0
}

func (x *Episode) GetVisibilityStatus() Episode_VisibilityStatus {
	if x != nil {
		return x.VisibilityStatus
	}
	return Episode_VISIBILITY_STATUS_UNSPECIFIED
}

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

func (x *Episode) GetAccessRights() isEpisode_AccessRights {
	if x != nil {
		return x.AccessRights
	}
	return nil
}

func (x *Episode) GetPublicAccess() *EpisodePublicAccessRights {
	if x != nil {
		if x, ok := x.AccessRights.(*Episode_PublicAccess); ok {
			return x.PublicAccess
		}
	}
	return nil
}

func (x *Episode) GetSignUrlAccess() *EpisodeSignURLAccessRights {
	if x != nil {
		if x, ok := x.AccessRights.(*Episode_SignUrlAccess); ok {
			return x.SignUrlAccess
		}
	}
	return nil
}

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

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

type isEpisode_AccessRights interface {
	isEpisode_AccessRights()
}

type Episode_PublicAccess struct {
	// Allows unrestricted public access to the episode via direct link.
	// No additional authorization or access control is applied.
	PublicAccess *EpisodePublicAccessRights `protobuf:"bytes,1000,opt,name=public_access,json=publicAccess,proto3,oneof"`
}

type Episode_SignUrlAccess struct {
	// Restricts episode access using URL signatures for secure time-limited access.
	SignUrlAccess *EpisodeSignURLAccessRights `protobuf:"bytes,1003,opt,name=sign_url_access,json=signUrlAccess,proto3,oneof"`
}

func (*Episode_PublicAccess) isEpisode_AccessRights() {}

func (*Episode_SignUrlAccess) isEpisode_AccessRights() {}

// Represents public access rights for an episode.
// When this access type is set, the episode is publicly accessible via direct link.
type EpisodePublicAccessRights struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*EpisodePublicAccessRights) ProtoMessage() {}

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

// Represents access rights controlled by URL signatures.
// When this access type is set, the episode is accessible only via properly signed temporary link.
type EpisodeSignURLAccessRights struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*EpisodeSignURLAccessRights) ProtoMessage() {}

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

var File_yandex_cloud_video_v1_episode_proto protoreflect.FileDescriptor

const file_yandex_cloud_video_v1_episode_proto_rawDesc = "" +
	"\n" +
	"#yandex/cloud/video/v1/episode.proto\x12\x15yandex.cloud.video.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x82\a\n" +
	"\aEpisode\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
	"\tstream_id\x18\x02 \x01(\tR\bstreamId\x12\x17\n" +
	"\aline_id\x18\x03 \x01(\tR\x06lineId\x12\x14\n" +
	"\x05title\x18\x04 \x01(\tR\x05title\x12 \n" +
	"\vdescription\x18\x05 \x01(\tR\vdescription\x12!\n" +
	"\fthumbnail_id\x18\x06 \x01(\tR\vthumbnailId\x129\n" +
	"\n" +
	"start_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tstartTime\x12;\n" +
	"\vfinish_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\n" +
	"finishTime\x12\x1f\n" +
	"\vdvr_seconds\x18\t \x01(\x03R\n" +
	"dvrSeconds\x12\\\n" +
	"\x11visibility_status\x18\n" +
	" \x01(\x0e2/.yandex.cloud.video.v1.Episode.VisibilityStatusR\x10visibilityStatus\x12&\n" +
	"\x0fstyle_preset_id\x18\f \x01(\tR\rstylePresetId\x12X\n" +
	"\rpublic_access\x18\xe8\a \x01(\v20.yandex.cloud.video.v1.EpisodePublicAccessRightsH\x00R\fpublicAccess\x12\\\n" +
	"\x0fsign_url_access\x18\xeb\a \x01(\v21.yandex.cloud.video.v1.EpisodeSignURLAccessRightsH\x00R\rsignUrlAccess\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\tupdatedAt\"U\n" +
	"\x10VisibilityStatus\x12!\n" +
	"\x1dVISIBILITY_STATUS_UNSPECIFIED\x10\x00\x12\r\n" +
	"\tPUBLISHED\x10\x01\x12\x0f\n" +
	"\vUNPUBLISHED\x10\x02B\x0f\n" +
	"\raccess_rightsJ\x06\b\xe9\a\x10\xea\aJ\x06\b\xea\a\x10\xeb\aJ\x04\b\v\x10\fJ\x04\b\r\x10dJ\x05\bf\x10\xe8\a\"\x1b\n" +
	"\x19EpisodePublicAccessRights\"\x1c\n" +
	"\x1aEpisodeSignURLAccessRightsB\\\n" +
	"\x19yandex.cloud.api.video.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/video/v1;videob\x06proto3"

var (
	file_yandex_cloud_video_v1_episode_proto_rawDescOnce sync.Once
	file_yandex_cloud_video_v1_episode_proto_rawDescData []byte
)

func file_yandex_cloud_video_v1_episode_proto_rawDescGZIP() []byte {
	file_yandex_cloud_video_v1_episode_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_video_v1_episode_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_video_v1_episode_proto_rawDesc), len(file_yandex_cloud_video_v1_episode_proto_rawDesc)))
	})
	return file_yandex_cloud_video_v1_episode_proto_rawDescData
}

var file_yandex_cloud_video_v1_episode_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_video_v1_episode_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_video_v1_episode_proto_goTypes = []any{
	(Episode_VisibilityStatus)(0),      // 0: yandex.cloud.video.v1.Episode.VisibilityStatus
	(*Episode)(nil),                    // 1: yandex.cloud.video.v1.Episode
	(*EpisodePublicAccessRights)(nil),  // 2: yandex.cloud.video.v1.EpisodePublicAccessRights
	(*EpisodeSignURLAccessRights)(nil), // 3: yandex.cloud.video.v1.EpisodeSignURLAccessRights
	(*timestamppb.Timestamp)(nil),      // 4: google.protobuf.Timestamp
}
var file_yandex_cloud_video_v1_episode_proto_depIdxs = []int32{
	4, // 0: yandex.cloud.video.v1.Episode.start_time:type_name -> google.protobuf.Timestamp
	4, // 1: yandex.cloud.video.v1.Episode.finish_time:type_name -> google.protobuf.Timestamp
	0, // 2: yandex.cloud.video.v1.Episode.visibility_status:type_name -> yandex.cloud.video.v1.Episode.VisibilityStatus
	2, // 3: yandex.cloud.video.v1.Episode.public_access:type_name -> yandex.cloud.video.v1.EpisodePublicAccessRights
	3, // 4: yandex.cloud.video.v1.Episode.sign_url_access:type_name -> yandex.cloud.video.v1.EpisodeSignURLAccessRights
	4, // 5: yandex.cloud.video.v1.Episode.created_at:type_name -> google.protobuf.Timestamp
	4, // 6: yandex.cloud.video.v1.Episode.updated_at:type_name -> google.protobuf.Timestamp
	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_video_v1_episode_proto_init() }
func file_yandex_cloud_video_v1_episode_proto_init() {
	if File_yandex_cloud_video_v1_episode_proto != nil {
		return
	}
	file_yandex_cloud_video_v1_episode_proto_msgTypes[0].OneofWrappers = []any{
		(*Episode_PublicAccess)(nil),
		(*Episode_SignUrlAccess)(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_episode_proto_rawDesc), len(file_yandex_cloud_video_v1_episode_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_video_v1_episode_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_video_v1_episode_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_video_v1_episode_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_video_v1_episode_proto_msgTypes,
	}.Build()
	File_yandex_cloud_video_v1_episode_proto = out.File
	file_yandex_cloud_video_v1_episode_proto_goTypes = nil
	file_yandex_cloud_video_v1_episode_proto_depIdxs = nil
}
