mirror of
https://github.com/samuelncui/yatm.git
synced 2026-11-08 04:18:03 +00:00
Unify file queries and Scan execution, retain indexed Identical results, improve Job and Preview workflows, and verify release packaging.
876 lines
31 KiB
Go
876 lines
31 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.33.0
|
|
// protoc v5.26.0
|
|
// source: preview.proto
|
|
|
|
package entity
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
type PreviewAvailability int32
|
|
|
|
const (
|
|
PreviewAvailability_PREVIEW_AVAILABILITY_UNSPECIFIED PreviewAvailability = 0
|
|
PreviewAvailability_PREVIEW_AVAILABILITY_READY PreviewAvailability = 1
|
|
PreviewAvailability_PREVIEW_AVAILABILITY_NOT_GENERATED PreviewAvailability = 2
|
|
)
|
|
|
|
// Enum value maps for PreviewAvailability.
|
|
var (
|
|
PreviewAvailability_name = map[int32]string{
|
|
0: "PREVIEW_AVAILABILITY_UNSPECIFIED",
|
|
1: "PREVIEW_AVAILABILITY_READY",
|
|
2: "PREVIEW_AVAILABILITY_NOT_GENERATED",
|
|
}
|
|
PreviewAvailability_value = map[string]int32{
|
|
"PREVIEW_AVAILABILITY_UNSPECIFIED": 0,
|
|
"PREVIEW_AVAILABILITY_READY": 1,
|
|
"PREVIEW_AVAILABILITY_NOT_GENERATED": 2,
|
|
}
|
|
)
|
|
|
|
func (x PreviewAvailability) Enum() *PreviewAvailability {
|
|
p := new(PreviewAvailability)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x PreviewAvailability) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (PreviewAvailability) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_preview_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (PreviewAvailability) Type() protoreflect.EnumType {
|
|
return &file_preview_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x PreviewAvailability) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use PreviewAvailability.Descriptor instead.
|
|
func (PreviewAvailability) EnumDescriptor() ([]byte, []int) {
|
|
return file_preview_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type GetPreviewCapabilitiesRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *GetPreviewCapabilitiesRequest) Reset() {
|
|
*x = GetPreviewCapabilitiesRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_preview_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GetPreviewCapabilitiesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPreviewCapabilitiesRequest) ProtoMessage() {}
|
|
|
|
func (x *GetPreviewCapabilitiesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_preview_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetPreviewCapabilitiesRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetPreviewCapabilitiesRequest) Descriptor() ([]byte, []int) {
|
|
return file_preview_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type PreviewInputFormats struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Extensions []string `protobuf:"bytes,1,rep,name=extensions,proto3" json:"extensions,omitempty"`
|
|
}
|
|
|
|
func (x *PreviewInputFormats) Reset() {
|
|
*x = PreviewInputFormats{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_preview_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *PreviewInputFormats) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PreviewInputFormats) ProtoMessage() {}
|
|
|
|
func (x *PreviewInputFormats) ProtoReflect() protoreflect.Message {
|
|
mi := &file_preview_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PreviewInputFormats.ProtoReflect.Descriptor instead.
|
|
func (*PreviewInputFormats) Descriptor() ([]byte, []int) {
|
|
return file_preview_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *PreviewInputFormats) GetExtensions() []string {
|
|
if x != nil {
|
|
return x.Extensions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetPreviewCapabilitiesResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"`
|
|
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
|
|
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
|
|
FfmpegVersion string `protobuf:"bytes,4,opt,name=ffmpeg_version,json=ffmpegVersion,proto3" json:"ffmpeg_version,omitempty"`
|
|
Kinds []string `protobuf:"bytes,5,rep,name=kinds,proto3" json:"kinds,omitempty"`
|
|
InputExtensions []string `protobuf:"bytes,6,rep,name=input_extensions,json=inputExtensions,proto3" json:"input_extensions,omitempty"`
|
|
OutputFormats []string `protobuf:"bytes,7,rep,name=output_formats,json=outputFormats,proto3" json:"output_formats,omitempty"`
|
|
InputExtensionsByKind map[string]*PreviewInputFormats `protobuf:"bytes,8,rep,name=input_extensions_by_kind,json=inputExtensionsByKind,proto3" json:"input_extensions_by_kind,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
LibrawVersion string `protobuf:"bytes,9,opt,name=libraw_version,json=librawVersion,proto3" json:"libraw_version,omitempty"`
|
|
}
|
|
|
|
func (x *GetPreviewCapabilitiesResponse) Reset() {
|
|
*x = GetPreviewCapabilitiesResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_preview_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GetPreviewCapabilitiesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPreviewCapabilitiesResponse) ProtoMessage() {}
|
|
|
|
func (x *GetPreviewCapabilitiesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_preview_proto_msgTypes[2]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetPreviewCapabilitiesResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetPreviewCapabilitiesResponse) Descriptor() ([]byte, []int) {
|
|
return file_preview_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *GetPreviewCapabilitiesResponse) GetAvailable() bool {
|
|
if x != nil {
|
|
return x.Available
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetPreviewCapabilitiesResponse) GetReason() string {
|
|
if x != nil {
|
|
return x.Reason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetPreviewCapabilitiesResponse) GetVersion() string {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetPreviewCapabilitiesResponse) GetFfmpegVersion() string {
|
|
if x != nil {
|
|
return x.FfmpegVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetPreviewCapabilitiesResponse) GetKinds() []string {
|
|
if x != nil {
|
|
return x.Kinds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetPreviewCapabilitiesResponse) GetInputExtensions() []string {
|
|
if x != nil {
|
|
return x.InputExtensions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetPreviewCapabilitiesResponse) GetOutputFormats() []string {
|
|
if x != nil {
|
|
return x.OutputFormats
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetPreviewCapabilitiesResponse) GetInputExtensionsByKind() map[string]*PreviewInputFormats {
|
|
if x != nil {
|
|
return x.InputExtensionsByKind
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetPreviewCapabilitiesResponse) GetLibrawVersion() string {
|
|
if x != nil {
|
|
return x.LibrawVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetPreviewRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// Preview storage is content-addressed, so the request names the content itself: a caller
|
|
// resolves a File, version or recorded Position to its signature before asking.
|
|
Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
}
|
|
|
|
func (x *GetPreviewRequest) Reset() {
|
|
*x = GetPreviewRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_preview_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GetPreviewRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPreviewRequest) ProtoMessage() {}
|
|
|
|
func (x *GetPreviewRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_preview_proto_msgTypes[3]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetPreviewRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetPreviewRequest) Descriptor() ([]byte, []int) {
|
|
return file_preview_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *GetPreviewRequest) GetSignature() []byte {
|
|
if x != nil {
|
|
return x.Signature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PreviewResource struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
|
|
MediaType string `protobuf:"bytes,2,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"`
|
|
WidthPx uint32 `protobuf:"varint,3,opt,name=width_px,json=widthPx,proto3" json:"width_px,omitempty"`
|
|
HeightPx uint32 `protobuf:"varint,4,opt,name=height_px,json=heightPx,proto3" json:"height_px,omitempty"`
|
|
Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
|
|
}
|
|
|
|
func (x *PreviewResource) Reset() {
|
|
*x = PreviewResource{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_preview_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *PreviewResource) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PreviewResource) ProtoMessage() {}
|
|
|
|
func (x *PreviewResource) ProtoReflect() protoreflect.Message {
|
|
mi := &file_preview_proto_msgTypes[4]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PreviewResource.ProtoReflect.Descriptor instead.
|
|
func (*PreviewResource) Descriptor() ([]byte, []int) {
|
|
return file_preview_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *PreviewResource) GetRole() string {
|
|
if x != nil {
|
|
return x.Role
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PreviewResource) GetMediaType() string {
|
|
if x != nil {
|
|
return x.MediaType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PreviewResource) GetWidthPx() uint32 {
|
|
if x != nil {
|
|
return x.WidthPx
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PreviewResource) GetHeightPx() uint32 {
|
|
if x != nil {
|
|
return x.HeightPx
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PreviewResource) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetPreviewResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Availability PreviewAvailability `protobuf:"varint,1,opt,name=availability,proto3,enum=yatm.v1.PreviewAvailability" json:"availability,omitempty"`
|
|
Assets []*PreviewResource `protobuf:"bytes,2,rep,name=assets,proto3" json:"assets,omitempty"`
|
|
}
|
|
|
|
func (x *GetPreviewResponse) Reset() {
|
|
*x = GetPreviewResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_preview_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *GetPreviewResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetPreviewResponse) ProtoMessage() {}
|
|
|
|
func (x *GetPreviewResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_preview_proto_msgTypes[5]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetPreviewResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetPreviewResponse) Descriptor() ([]byte, []int) {
|
|
return file_preview_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *GetPreviewResponse) GetAvailability() PreviewAvailability {
|
|
if x != nil {
|
|
return x.Availability
|
|
}
|
|
return PreviewAvailability_PREVIEW_AVAILABILITY_UNSPECIFIED
|
|
}
|
|
|
|
func (x *GetPreviewResponse) GetAssets() []*PreviewResource {
|
|
if x != nil {
|
|
return x.Assets
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PreviewManifest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
FileSignature []byte `protobuf:"bytes,1,opt,name=file_signature,json=fileSignature,proto3" json:"file_signature,omitempty"`
|
|
Generator string `protobuf:"bytes,2,opt,name=generator,proto3" json:"generator,omitempty"`
|
|
SettingsJson []byte `protobuf:"bytes,3,opt,name=settings_json,json=settingsJson,proto3" json:"settings_json,omitempty"`
|
|
Assets []*PreviewAsset `protobuf:"bytes,4,rep,name=assets,proto3" json:"assets,omitempty"`
|
|
}
|
|
|
|
func (x *PreviewManifest) Reset() {
|
|
*x = PreviewManifest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_preview_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *PreviewManifest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PreviewManifest) ProtoMessage() {}
|
|
|
|
func (x *PreviewManifest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_preview_proto_msgTypes[6]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PreviewManifest.ProtoReflect.Descriptor instead.
|
|
func (*PreviewManifest) Descriptor() ([]byte, []int) {
|
|
return file_preview_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *PreviewManifest) GetFileSignature() []byte {
|
|
if x != nil {
|
|
return x.FileSignature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PreviewManifest) GetGenerator() string {
|
|
if x != nil {
|
|
return x.Generator
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PreviewManifest) GetSettingsJson() []byte {
|
|
if x != nil {
|
|
return x.SettingsJson
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PreviewManifest) GetAssets() []*PreviewAsset {
|
|
if x != nil {
|
|
return x.Assets
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PreviewAsset struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
|
|
MediaType string `protobuf:"bytes,3,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"`
|
|
WidthPx uint32 `protobuf:"varint,4,opt,name=width_px,json=widthPx,proto3" json:"width_px,omitempty"`
|
|
HeightPx uint32 `protobuf:"varint,5,opt,name=height_px,json=heightPx,proto3" json:"height_px,omitempty"`
|
|
}
|
|
|
|
func (x *PreviewAsset) Reset() {
|
|
*x = PreviewAsset{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_preview_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *PreviewAsset) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PreviewAsset) ProtoMessage() {}
|
|
|
|
func (x *PreviewAsset) ProtoReflect() protoreflect.Message {
|
|
mi := &file_preview_proto_msgTypes[7]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PreviewAsset.ProtoReflect.Descriptor instead.
|
|
func (*PreviewAsset) Descriptor() ([]byte, []int) {
|
|
return file_preview_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *PreviewAsset) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PreviewAsset) GetRole() string {
|
|
if x != nil {
|
|
return x.Role
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PreviewAsset) GetMediaType() string {
|
|
if x != nil {
|
|
return x.MediaType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PreviewAsset) GetWidthPx() uint32 {
|
|
if x != nil {
|
|
return x.WidthPx
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *PreviewAsset) GetHeightPx() uint32 {
|
|
if x != nil {
|
|
return x.HeightPx
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_preview_proto protoreflect.FileDescriptor
|
|
|
|
var file_preview_proto_rawDesc = []byte{
|
|
0x0a, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
|
0x07, 0x79, 0x61, 0x74, 0x6d, 0x2e, 0x76, 0x31, 0x22, 0x1f, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x50,
|
|
0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69,
|
|
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x35, 0x0a, 0x13, 0x50, 0x72, 0x65,
|
|
0x76, 0x69, 0x65, 0x77, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x73,
|
|
0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01,
|
|
0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
|
|
0x22, 0x8b, 0x04, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43,
|
|
0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c,
|
|
0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72,
|
|
0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73,
|
|
0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x66, 0x66, 0x6d, 0x70, 0x65, 0x67, 0x5f, 0x76, 0x65,
|
|
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x66, 0x66, 0x6d,
|
|
0x70, 0x65, 0x67, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6b, 0x69,
|
|
0x6e, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6b, 0x69, 0x6e, 0x64, 0x73,
|
|
0x12, 0x29, 0x0a, 0x10, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
|
|
0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x69, 0x6e, 0x70, 0x75,
|
|
0x74, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x6f,
|
|
0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x73, 0x18, 0x07, 0x20,
|
|
0x03, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61,
|
|
0x74, 0x73, 0x12, 0x7b, 0x0a, 0x18, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65,
|
|
0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x08,
|
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x79, 0x61, 0x74, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47,
|
|
0x65, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c,
|
|
0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x6e,
|
|
0x70, 0x75, 0x74, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x4b,
|
|
0x69, 0x6e, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x15, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x45,
|
|
0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x12,
|
|
0x25, 0x0a, 0x0e, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x77, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
|
|
0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x77, 0x56,
|
|
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x66, 0x0a, 0x1a, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x45,
|
|
0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x45,
|
|
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x32, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
|
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x79, 0x61, 0x74, 0x6d, 0x2e, 0x76, 0x31, 0x2e,
|
|
0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x6d,
|
|
0x61, 0x74, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x31,
|
|
0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75,
|
|
0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72,
|
|
0x65, 0x22, 0x8e, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73,
|
|
0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20,
|
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x64,
|
|
0x69, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d,
|
|
0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x77, 0x69, 0x64, 0x74,
|
|
0x68, 0x5f, 0x70, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x77, 0x69, 0x64, 0x74,
|
|
0x68, 0x50, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x70, 0x78,
|
|
0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x50, 0x78,
|
|
0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
|
|
0x72, 0x6c, 0x22, 0x88, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65,
|
|
0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0c, 0x61, 0x76, 0x61,
|
|
0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
|
|
0x1c, 0x2e, 0x79, 0x61, 0x74, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65,
|
|
0x77, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0c, 0x61,
|
|
0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x30, 0x0a, 0x06, 0x61,
|
|
0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x79, 0x61,
|
|
0x74, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73,
|
|
0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x22, 0xaa, 0x01,
|
|
0x0a, 0x0f, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73,
|
|
0x74, 0x12, 0x25, 0x0a, 0x0e, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74,
|
|
0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x66, 0x69, 0x6c, 0x65, 0x53,
|
|
0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x65, 0x6e, 0x65,
|
|
0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x65, 0x6e,
|
|
0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
|
|
0x67, 0x73, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x73,
|
|
0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x06, 0x61,
|
|
0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x79, 0x61,
|
|
0x74, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x41, 0x73, 0x73,
|
|
0x65, 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x22, 0x8d, 0x01, 0x0a, 0x0c, 0x50,
|
|
0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e,
|
|
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
|
|
0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72,
|
|
0x6f, 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x74, 0x79, 0x70,
|
|
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79,
|
|
0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x77, 0x69, 0x64, 0x74, 0x68, 0x5f, 0x70, 0x78, 0x18, 0x04,
|
|
0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x77, 0x69, 0x64, 0x74, 0x68, 0x50, 0x78, 0x12, 0x1b, 0x0a,
|
|
0x09, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x70, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d,
|
|
0x52, 0x08, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x50, 0x78, 0x2a, 0x83, 0x01, 0x0a, 0x13, 0x50,
|
|
0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69,
|
|
0x74, 0x79, 0x12, 0x24, 0x0a, 0x20, 0x50, 0x52, 0x45, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x41, 0x56,
|
|
0x41, 0x49, 0x4c, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
|
|
0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x50, 0x52, 0x45, 0x56,
|
|
0x49, 0x45, 0x57, 0x5f, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59,
|
|
0x5f, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0x01, 0x12, 0x26, 0x0a, 0x22, 0x50, 0x52, 0x45, 0x56,
|
|
0x49, 0x45, 0x57, 0x5f, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59,
|
|
0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x44, 0x10, 0x02,
|
|
0x32, 0xb8, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x53, 0x65, 0x72, 0x76,
|
|
0x69, 0x63, 0x65, 0x12, 0x40, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x1a, 0x2e, 0x79, 0x61, 0x74,
|
|
0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52,
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x79, 0x61, 0x74, 0x6d, 0x2e, 0x76, 0x31,
|
|
0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x61, 0x70, 0x61,
|
|
0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x26, 0x2e, 0x79, 0x61, 0x74, 0x6d, 0x2e,
|
|
0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x61, 0x70,
|
|
0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
0x1a, 0x27, 0x2e, 0x79, 0x61, 0x74, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72,
|
|
0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65,
|
|
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2a, 0x5a, 0x28, 0x67,
|
|
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x61, 0x6d, 0x75, 0x65, 0x6c,
|
|
0x6e, 0x63, 0x75, 0x69, 0x2f, 0x79, 0x61, 0x74, 0x6d, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
|
|
0x3b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_preview_proto_rawDescOnce sync.Once
|
|
file_preview_proto_rawDescData = file_preview_proto_rawDesc
|
|
)
|
|
|
|
func file_preview_proto_rawDescGZIP() []byte {
|
|
file_preview_proto_rawDescOnce.Do(func() {
|
|
file_preview_proto_rawDescData = protoimpl.X.CompressGZIP(file_preview_proto_rawDescData)
|
|
})
|
|
return file_preview_proto_rawDescData
|
|
}
|
|
|
|
var file_preview_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_preview_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
var file_preview_proto_goTypes = []interface{}{
|
|
(PreviewAvailability)(0), // 0: yatm.v1.PreviewAvailability
|
|
(*GetPreviewCapabilitiesRequest)(nil), // 1: yatm.v1.GetPreviewCapabilitiesRequest
|
|
(*PreviewInputFormats)(nil), // 2: yatm.v1.PreviewInputFormats
|
|
(*GetPreviewCapabilitiesResponse)(nil), // 3: yatm.v1.GetPreviewCapabilitiesResponse
|
|
(*GetPreviewRequest)(nil), // 4: yatm.v1.GetPreviewRequest
|
|
(*PreviewResource)(nil), // 5: yatm.v1.PreviewResource
|
|
(*GetPreviewResponse)(nil), // 6: yatm.v1.GetPreviewResponse
|
|
(*PreviewManifest)(nil), // 7: yatm.v1.PreviewManifest
|
|
(*PreviewAsset)(nil), // 8: yatm.v1.PreviewAsset
|
|
nil, // 9: yatm.v1.GetPreviewCapabilitiesResponse.InputExtensionsByKindEntry
|
|
}
|
|
var file_preview_proto_depIdxs = []int32{
|
|
9, // 0: yatm.v1.GetPreviewCapabilitiesResponse.input_extensions_by_kind:type_name -> yatm.v1.GetPreviewCapabilitiesResponse.InputExtensionsByKindEntry
|
|
0, // 1: yatm.v1.GetPreviewResponse.availability:type_name -> yatm.v1.PreviewAvailability
|
|
5, // 2: yatm.v1.GetPreviewResponse.assets:type_name -> yatm.v1.PreviewResource
|
|
8, // 3: yatm.v1.PreviewManifest.assets:type_name -> yatm.v1.PreviewAsset
|
|
2, // 4: yatm.v1.GetPreviewCapabilitiesResponse.InputExtensionsByKindEntry.value:type_name -> yatm.v1.PreviewInputFormats
|
|
4, // 5: yatm.v1.PreviewService.Get:input_type -> yatm.v1.GetPreviewRequest
|
|
1, // 6: yatm.v1.PreviewService.GetCapabilities:input_type -> yatm.v1.GetPreviewCapabilitiesRequest
|
|
6, // 7: yatm.v1.PreviewService.Get:output_type -> yatm.v1.GetPreviewResponse
|
|
3, // 8: yatm.v1.PreviewService.GetCapabilities:output_type -> yatm.v1.GetPreviewCapabilitiesResponse
|
|
7, // [7:9] is the sub-list for method output_type
|
|
5, // [5:7] is the sub-list for method input_type
|
|
5, // [5:5] is the sub-list for extension type_name
|
|
5, // [5:5] is the sub-list for extension extendee
|
|
0, // [0:5] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_preview_proto_init() }
|
|
func file_preview_proto_init() {
|
|
if File_preview_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_preview_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*GetPreviewCapabilitiesRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_preview_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*PreviewInputFormats); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_preview_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*GetPreviewCapabilitiesResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_preview_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*GetPreviewRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_preview_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*PreviewResource); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_preview_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*GetPreviewResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_preview_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*PreviewManifest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_preview_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*PreviewAsset); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_preview_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 9,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_preview_proto_goTypes,
|
|
DependencyIndexes: file_preview_proto_depIdxs,
|
|
EnumInfos: file_preview_proto_enumTypes,
|
|
MessageInfos: file_preview_proto_msgTypes,
|
|
}.Build()
|
|
File_preview_proto = out.File
|
|
file_preview_proto_rawDesc = nil
|
|
file_preview_proto_goTypes = nil
|
|
file_preview_proto_depIdxs = nil
|
|
}
|