// 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/thumbnail.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)
)

// Entity representing an image used as a visual representation for various content entities.
// Thumbnails provide preview images for channels, streams, episodes, videos, and stream lines.
type Thumbnail struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Unique identifier of the thumbnail.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Identifier of the channel where the thumbnail is created and managed.
	ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// Types that are valid to be assigned to ParentId:
	//
	//	*Thumbnail_EpisodeId
	//	*Thumbnail_VideoId
	ParentId isThumbnail_ParentId `protobuf_oneof:"parent_id"`
	// Timestamp when the thumbnail was initially created in the system.
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,100,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Thumbnail) ProtoMessage() {}

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

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

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

func (x *Thumbnail) GetParentId() isThumbnail_ParentId {
	if x != nil {
		return x.ParentId
	}
	return nil
}

func (x *Thumbnail) GetEpisodeId() string {
	if x != nil {
		if x, ok := x.ParentId.(*Thumbnail_EpisodeId); ok {
			return x.EpisodeId
		}
	}
	return ""
}

func (x *Thumbnail) GetVideoId() string {
	if x != nil {
		if x, ok := x.ParentId.(*Thumbnail_VideoId); ok {
			return x.VideoId
		}
	}
	return ""
}

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

type isThumbnail_ParentId interface {
	isThumbnail_ParentId()
}

type Thumbnail_EpisodeId struct {
	// ID of the episode which the thumbnail is associated with.
	EpisodeId string `protobuf:"bytes,1003,opt,name=episode_id,json=episodeId,proto3,oneof"`
}

type Thumbnail_VideoId struct {
	// ID of the video which the thumbnail is associated with.
	VideoId string `protobuf:"bytes,1004,opt,name=video_id,json=videoId,proto3,oneof"`
}

func (*Thumbnail_EpisodeId) isThumbnail_ParentId() {}

func (*Thumbnail_VideoId) isThumbnail_ParentId() {}

var File_yandex_cloud_video_v1_thumbnail_proto protoreflect.FileDescriptor

const file_yandex_cloud_video_v1_thumbnail_proto_rawDesc = "" +
	"\n" +
	"%yandex/cloud/video/v1/thumbnail.proto\x12\x15yandex.cloud.video.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcf\x01\n" +
	"\tThumbnail\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n" +
	"\n" +
	"channel_id\x18\x02 \x01(\tR\tchannelId\x12 \n" +
	"\n" +
	"episode_id\x18\xeb\a \x01(\tH\x00R\tepisodeId\x12\x1c\n" +
	"\bvideo_id\x18\xec\a \x01(\tH\x00R\avideoId\x129\n" +
	"\n" +
	"created_at\x18d \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAtB\v\n" +
	"\tparent_idJ\x04\b\x03\x10dJ\x05\be\x10\xeb\aB\\\n" +
	"\x19yandex.cloud.api.video.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/video/v1;videob\x06proto3"

var (
	file_yandex_cloud_video_v1_thumbnail_proto_rawDescOnce sync.Once
	file_yandex_cloud_video_v1_thumbnail_proto_rawDescData []byte
)

func file_yandex_cloud_video_v1_thumbnail_proto_rawDescGZIP() []byte {
	file_yandex_cloud_video_v1_thumbnail_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_video_v1_thumbnail_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_video_v1_thumbnail_proto_rawDesc), len(file_yandex_cloud_video_v1_thumbnail_proto_rawDesc)))
	})
	return file_yandex_cloud_video_v1_thumbnail_proto_rawDescData
}

var file_yandex_cloud_video_v1_thumbnail_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_video_v1_thumbnail_proto_goTypes = []any{
	(*Thumbnail)(nil),             // 0: yandex.cloud.video.v1.Thumbnail
	(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
}
var file_yandex_cloud_video_v1_thumbnail_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.video.v1.Thumbnail.created_at:type_name -> google.protobuf.Timestamp
	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_thumbnail_proto_init() }
func file_yandex_cloud_video_v1_thumbnail_proto_init() {
	if File_yandex_cloud_video_v1_thumbnail_proto != nil {
		return
	}
	file_yandex_cloud_video_v1_thumbnail_proto_msgTypes[0].OneofWrappers = []any{
		(*Thumbnail_EpisodeId)(nil),
		(*Thumbnail_VideoId)(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_thumbnail_proto_rawDesc), len(file_yandex_cloud_video_v1_thumbnail_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_video_v1_thumbnail_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_video_v1_thumbnail_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_video_v1_thumbnail_proto_msgTypes,
	}.Build()
	File_yandex_cloud_video_v1_thumbnail_proto = out.File
	file_yandex_cloud_video_v1_thumbnail_proto_goTypes = nil
	file_yandex_cloud_video_v1_thumbnail_proto_depIdxs = nil
}
