327 lines
12 KiB
Go
327 lines
12 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.1
|
|
// protoc (unknown)
|
|
// source: qsfera/messages/thumbnails/v0/thumbnails.proto
|
|
|
|
package v0
|
|
|
|
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)
|
|
)
|
|
|
|
// The file types to which the thumbnail can be encoded to.
|
|
type ThumbnailType int32
|
|
|
|
const (
|
|
ThumbnailType_PNG ThumbnailType = 0 // Represents PNG type
|
|
ThumbnailType_JPG ThumbnailType = 1 // Represents JPG type
|
|
ThumbnailType_GIF ThumbnailType = 2 // Represents GIF type
|
|
)
|
|
|
|
// Enum value maps for ThumbnailType.
|
|
var (
|
|
ThumbnailType_name = map[int32]string{
|
|
0: "PNG",
|
|
1: "JPG",
|
|
2: "GIF",
|
|
}
|
|
ThumbnailType_value = map[string]int32{
|
|
"PNG": 0,
|
|
"JPG": 1,
|
|
"GIF": 2,
|
|
}
|
|
)
|
|
|
|
func (x ThumbnailType) Enum() *ThumbnailType {
|
|
p := new(ThumbnailType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x ThumbnailType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (ThumbnailType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_qsfera_messages_thumbnails_v0_thumbnails_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (ThumbnailType) Type() protoreflect.EnumType {
|
|
return &file_qsfera_messages_thumbnails_v0_thumbnails_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x ThumbnailType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use ThumbnailType.Descriptor instead.
|
|
func (ThumbnailType) EnumDescriptor() ([]byte, []int) {
|
|
return file_qsfera_messages_thumbnails_v0_thumbnails_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type WebdavSource struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// REQUIRED.
|
|
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
|
// REQUIRED.
|
|
IsPublicLink bool `protobuf:"varint,2,opt,name=is_public_link,json=isPublicLink,proto3" json:"is_public_link,omitempty"`
|
|
// OPTIONAL.
|
|
WebdavAuthorization string `protobuf:"bytes,3,opt,name=webdav_authorization,json=webdavAuthorization,proto3" json:"webdav_authorization,omitempty"`
|
|
// OPTIONAL.
|
|
RevaAuthorization string `protobuf:"bytes,4,opt,name=reva_authorization,json=revaAuthorization,proto3" json:"reva_authorization,omitempty"`
|
|
// OPTIONAL.
|
|
PublicLinkToken string `protobuf:"bytes,5,opt,name=public_link_token,json=publicLinkToken,proto3" json:"public_link_token,omitempty"`
|
|
}
|
|
|
|
func (x *WebdavSource) Reset() {
|
|
*x = WebdavSource{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_qsfera_messages_thumbnails_v0_thumbnails_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *WebdavSource) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WebdavSource) ProtoMessage() {}
|
|
|
|
func (x *WebdavSource) ProtoReflect() protoreflect.Message {
|
|
mi := &file_qsfera_messages_thumbnails_v0_thumbnails_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 WebdavSource.ProtoReflect.Descriptor instead.
|
|
func (*WebdavSource) Descriptor() ([]byte, []int) {
|
|
return file_qsfera_messages_thumbnails_v0_thumbnails_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *WebdavSource) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *WebdavSource) GetIsPublicLink() bool {
|
|
if x != nil {
|
|
return x.IsPublicLink
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *WebdavSource) GetWebdavAuthorization() string {
|
|
if x != nil {
|
|
return x.WebdavAuthorization
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *WebdavSource) GetRevaAuthorization() string {
|
|
if x != nil {
|
|
return x.RevaAuthorization
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *WebdavSource) GetPublicLinkToken() string {
|
|
if x != nil {
|
|
return x.PublicLinkToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CS3Source struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
Authorization string `protobuf:"bytes,2,opt,name=authorization,proto3" json:"authorization,omitempty"`
|
|
}
|
|
|
|
func (x *CS3Source) Reset() {
|
|
*x = CS3Source{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_qsfera_messages_thumbnails_v0_thumbnails_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *CS3Source) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CS3Source) ProtoMessage() {}
|
|
|
|
func (x *CS3Source) ProtoReflect() protoreflect.Message {
|
|
mi := &file_qsfera_messages_thumbnails_v0_thumbnails_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 CS3Source.ProtoReflect.Descriptor instead.
|
|
func (*CS3Source) Descriptor() ([]byte, []int) {
|
|
return file_qsfera_messages_thumbnails_v0_thumbnails_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CS3Source) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CS3Source) GetAuthorization() string {
|
|
if x != nil {
|
|
return x.Authorization
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_qsfera_messages_thumbnails_v0_thumbnails_proto protoreflect.FileDescriptor
|
|
|
|
var file_qsfera_messages_thumbnails_v0_thumbnails_proto_rawDesc = []byte{
|
|
0x0a, 0x31, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6d, 0x65, 0x73, 0x73,
|
|
0x61, 0x67, 0x65, 0x73, 0x2f, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x73, 0x2f,
|
|
0x76, 0x30, 0x2f, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x12, 0x20, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d,
|
|
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69,
|
|
0x6c, 0x73, 0x2e, 0x76, 0x30, 0x22, 0xd4, 0x01, 0x0a, 0x0c, 0x57, 0x65, 0x62, 0x64, 0x61, 0x76,
|
|
0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20,
|
|
0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x24, 0x0a, 0x0e, 0x69, 0x73, 0x5f, 0x70,
|
|
0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
|
|
0x52, 0x0c, 0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x31,
|
|
0x0a, 0x14, 0x77, 0x65, 0x62, 0x64, 0x61, 0x76, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
|
|
0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x77, 0x65,
|
|
0x62, 0x64, 0x61, 0x76, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
|
|
0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x76, 0x61, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
|
|
0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x72,
|
|
0x65, 0x76, 0x61, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x12, 0x2a, 0x0a, 0x11, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f,
|
|
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x75, 0x62,
|
|
0x6c, 0x69, 0x63, 0x4c, 0x69, 0x6e, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x45, 0x0a, 0x09,
|
|
0x43, 0x53, 0x33, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74,
|
|
0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x24, 0x0a,
|
|
0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02,
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74,
|
|
0x69, 0x6f, 0x6e, 0x2a, 0x2a, 0x0a, 0x0d, 0x54, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c,
|
|
0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x07, 0x0a,
|
|
0x03, 0x4a, 0x50, 0x47, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x49, 0x46, 0x10, 0x02, 0x42,
|
|
0x51, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70,
|
|
0x65, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x65, 0x75, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63,
|
|
0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x65,
|
|
0x6e, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6d, 0x65, 0x73, 0x73,
|
|
0x61, 0x67, 0x65, 0x73, 0x2f, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x6e, 0x61, 0x69, 0x6c, 0x73, 0x2f,
|
|
0x76, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_qsfera_messages_thumbnails_v0_thumbnails_proto_rawDescOnce sync.Once
|
|
file_qsfera_messages_thumbnails_v0_thumbnails_proto_rawDescData = file_qsfera_messages_thumbnails_v0_thumbnails_proto_rawDesc
|
|
)
|
|
|
|
func file_qsfera_messages_thumbnails_v0_thumbnails_proto_rawDescGZIP() []byte {
|
|
file_qsfera_messages_thumbnails_v0_thumbnails_proto_rawDescOnce.Do(func() {
|
|
file_qsfera_messages_thumbnails_v0_thumbnails_proto_rawDescData = protoimpl.X.CompressGZIP(file_qsfera_messages_thumbnails_v0_thumbnails_proto_rawDescData)
|
|
})
|
|
return file_qsfera_messages_thumbnails_v0_thumbnails_proto_rawDescData
|
|
}
|
|
|
|
var file_qsfera_messages_thumbnails_v0_thumbnails_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_qsfera_messages_thumbnails_v0_thumbnails_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_qsfera_messages_thumbnails_v0_thumbnails_proto_goTypes = []interface{}{
|
|
(ThumbnailType)(0), // 0: qsfera.messages.thumbnails.v0.ThumbnailType
|
|
(*WebdavSource)(nil), // 1: qsfera.messages.thumbnails.v0.WebdavSource
|
|
(*CS3Source)(nil), // 2: qsfera.messages.thumbnails.v0.CS3Source
|
|
}
|
|
var file_qsfera_messages_thumbnails_v0_thumbnails_proto_depIdxs = []int32{
|
|
0, // [0:0] is the sub-list for method output_type
|
|
0, // [0:0] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_qsfera_messages_thumbnails_v0_thumbnails_proto_init() }
|
|
func file_qsfera_messages_thumbnails_v0_thumbnails_proto_init() {
|
|
if File_qsfera_messages_thumbnails_v0_thumbnails_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_qsfera_messages_thumbnails_v0_thumbnails_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*WebdavSource); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_qsfera_messages_thumbnails_v0_thumbnails_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*CS3Source); 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_qsfera_messages_thumbnails_v0_thumbnails_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_qsfera_messages_thumbnails_v0_thumbnails_proto_goTypes,
|
|
DependencyIndexes: file_qsfera_messages_thumbnails_v0_thumbnails_proto_depIdxs,
|
|
EnumInfos: file_qsfera_messages_thumbnails_v0_thumbnails_proto_enumTypes,
|
|
MessageInfos: file_qsfera_messages_thumbnails_v0_thumbnails_proto_msgTypes,
|
|
}.Build()
|
|
File_qsfera_messages_thumbnails_v0_thumbnails_proto = out.File
|
|
file_qsfera_messages_thumbnails_v0_thumbnails_proto_rawDesc = nil
|
|
file_qsfera_messages_thumbnails_v0_thumbnails_proto_goTypes = nil
|
|
file_qsfera_messages_thumbnails_v0_thumbnails_proto_depIdxs = nil
|
|
}
|