560 lines
19 KiB
Go
560 lines
19 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// versions:
|
||
|
// protoc-gen-go v1.26.0
|
||
|
// protoc v3.19.1
|
||
|
// source: protos/ezshare.proto
|
||
|
|
||
|
package pb
|
||
|
|
||
|
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"
|
||
|
)
|
||
|
|
||
|
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 File struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
||
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
||
|
Metadata *File_Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *File) Reset() {
|
||
|
*x = File{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_protos_ezshare_proto_msgTypes[0]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *File) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*File) ProtoMessage() {}
|
||
|
|
||
|
func (x *File) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_protos_ezshare_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 File.ProtoReflect.Descriptor instead.
|
||
|
func (*File) Descriptor() ([]byte, []int) {
|
||
|
return file_protos_ezshare_proto_rawDescGZIP(), []int{0}
|
||
|
}
|
||
|
|
||
|
func (x *File) GetFileId() string {
|
||
|
if x != nil {
|
||
|
return x.FileId
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *File) GetData() []byte {
|
||
|
if x != nil {
|
||
|
return x.Data
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *File) GetMetadata() *File_Metadata {
|
||
|
if x != nil {
|
||
|
return x.Metadata
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Service messages
|
||
|
// Upload
|
||
|
type UploadFileRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
||
|
OriginalFilename string `protobuf:"bytes,2,opt,name=original_filename,json=originalFilename,proto3" json:"original_filename,omitempty"`
|
||
|
ExpiresOn *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_on,json=expiresOn,proto3" json:"expires_on,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *UploadFileRequest) Reset() {
|
||
|
*x = UploadFileRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_protos_ezshare_proto_msgTypes[1]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *UploadFileRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*UploadFileRequest) ProtoMessage() {}
|
||
|
|
||
|
func (x *UploadFileRequest) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_protos_ezshare_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 UploadFileRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*UploadFileRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_protos_ezshare_proto_rawDescGZIP(), []int{1}
|
||
|
}
|
||
|
|
||
|
func (x *UploadFileRequest) GetData() []byte {
|
||
|
if x != nil {
|
||
|
return x.Data
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *UploadFileRequest) GetOriginalFilename() string {
|
||
|
if x != nil {
|
||
|
return x.OriginalFilename
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *UploadFileRequest) GetExpiresOn() *timestamppb.Timestamp {
|
||
|
if x != nil {
|
||
|
return x.ExpiresOn
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type UploadFileResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||
|
FileUrl string `protobuf:"bytes,2,opt,name=file_url,json=fileUrl,proto3" json:"file_url,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *UploadFileResponse) Reset() {
|
||
|
*x = UploadFileResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_protos_ezshare_proto_msgTypes[2]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *UploadFileResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*UploadFileResponse) ProtoMessage() {}
|
||
|
|
||
|
func (x *UploadFileResponse) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_protos_ezshare_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 UploadFileResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*UploadFileResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_protos_ezshare_proto_rawDescGZIP(), []int{2}
|
||
|
}
|
||
|
|
||
|
func (x *UploadFileResponse) GetId() string {
|
||
|
if x != nil {
|
||
|
return x.Id
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *UploadFileResponse) GetFileUrl() string {
|
||
|
if x != nil {
|
||
|
return x.FileUrl
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
// Get
|
||
|
type GetFileRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *GetFileRequest) Reset() {
|
||
|
*x = GetFileRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_protos_ezshare_proto_msgTypes[3]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *GetFileRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*GetFileRequest) ProtoMessage() {}
|
||
|
|
||
|
func (x *GetFileRequest) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_protos_ezshare_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 GetFileRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*GetFileRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_protos_ezshare_proto_rawDescGZIP(), []int{3}
|
||
|
}
|
||
|
|
||
|
func (x *GetFileRequest) GetId() string {
|
||
|
if x != nil {
|
||
|
return x.Id
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type GetFileResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
File *File `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *GetFileResponse) Reset() {
|
||
|
*x = GetFileResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_protos_ezshare_proto_msgTypes[4]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *GetFileResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*GetFileResponse) ProtoMessage() {}
|
||
|
|
||
|
func (x *GetFileResponse) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_protos_ezshare_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 GetFileResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*GetFileResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_protos_ezshare_proto_rawDescGZIP(), []int{4}
|
||
|
}
|
||
|
|
||
|
func (x *GetFileResponse) GetFile() *File {
|
||
|
if x != nil {
|
||
|
return x.File
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type File_Metadata struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
UploadedOn *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=uploaded_on,json=uploadedOn,proto3" json:"uploaded_on,omitempty"`
|
||
|
ExpiresOn *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_on,json=expiresOn,proto3" json:"expires_on,omitempty"`
|
||
|
OriginalFilename string `protobuf:"bytes,3,opt,name=original_filename,json=originalFilename,proto3" json:"original_filename,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *File_Metadata) Reset() {
|
||
|
*x = File_Metadata{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_protos_ezshare_proto_msgTypes[5]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *File_Metadata) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*File_Metadata) ProtoMessage() {}
|
||
|
|
||
|
func (x *File_Metadata) ProtoReflect() protoreflect.Message {
|
||
|
mi := &file_protos_ezshare_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 File_Metadata.ProtoReflect.Descriptor instead.
|
||
|
func (*File_Metadata) Descriptor() ([]byte, []int) {
|
||
|
return file_protos_ezshare_proto_rawDescGZIP(), []int{0, 0}
|
||
|
}
|
||
|
|
||
|
func (x *File_Metadata) GetUploadedOn() *timestamppb.Timestamp {
|
||
|
if x != nil {
|
||
|
return x.UploadedOn
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *File_Metadata) GetExpiresOn() *timestamppb.Timestamp {
|
||
|
if x != nil {
|
||
|
return x.ExpiresOn
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *File_Metadata) GetOriginalFilename() string {
|
||
|
if x != nil {
|
||
|
return x.OriginalFilename
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
var File_protos_ezshare_proto protoreflect.FileDescriptor
|
||
|
|
||
|
var file_protos_ezshare_proto_rawDesc = []byte{
|
||
|
0x0a, 0x14, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x65, 0x7a, 0x73, 0x68, 0x61, 0x72, 0x65,
|
||
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x65, 0x7a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x1a,
|
||
|
0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
|
||
|
0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||
|
0x22, 0x99, 0x02, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69, 0x6c,
|
||
|
0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65,
|
||
|
0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c,
|
||
|
0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x32, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61,
|
||
|
0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x65, 0x7a, 0x73, 0x68, 0x61,
|
||
|
0x72, 0x65, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
|
||
|
0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0xaf, 0x01, 0x0a, 0x08, 0x4d,
|
||
|
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x6c, 0x6f, 0x61,
|
||
|
0x64, 0x65, 0x64, 0x5f, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
|
||
|
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
|
||
|
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64,
|
||
|
0x65, 0x64, 0x4f, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f,
|
||
|
0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
||
|
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
|
||
|
0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x4f, 0x6e, 0x12,
|
||
|
0x2b, 0x0a, 0x11, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x6c, 0x65,
|
||
|
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x72, 0x69, 0x67,
|
||
|
0x69, 0x6e, 0x61, 0x6c, 0x46, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8f, 0x01, 0x0a,
|
||
|
0x11, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||
|
0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
|
||
|
0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x11, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e,
|
||
|
0x61, 0x6c, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||
|
0x09, 0x52, 0x10, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x46, 0x69, 0x6c, 0x65, 0x6e,
|
||
|
0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x6f,
|
||
|
0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
||
|
0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x4f, 0x6e, 0x22, 0x3f,
|
||
|
0x0a, 0x12, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70,
|
||
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
||
|
0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x75, 0x72, 0x6c,
|
||
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x65, 0x55, 0x72, 0x6c, 0x22,
|
||
|
0x20, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||
|
0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
|
||
|
0x64, 0x22, 0x34, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70,
|
||
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01,
|
||
|
0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x65, 0x7a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x46, 0x69, 0x6c,
|
||
|
0x65, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x32, 0x96, 0x01, 0x0a, 0x0b, 0x46, 0x69, 0x6c, 0x65,
|
||
|
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x55, 0x70, 0x6c, 0x6f, 0x61,
|
||
|
0x64, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1a, 0x2e, 0x65, 0x7a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e,
|
||
|
0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||
|
0x74, 0x1a, 0x1b, 0x2e, 0x65, 0x7a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x55, 0x70, 0x6c, 0x6f,
|
||
|
0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
|
||
|
0x12, 0x3e, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x17, 0x2e, 0x65, 0x7a,
|
||
|
0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71,
|
||
|
0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x65, 0x7a, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47,
|
||
|
0x65, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
|
||
|
0x42, 0x23, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x65, 0x61, 0x2e, 0x62, 0x65, 0x6e, 0x6e, 0x79, 0x2e,
|
||
|
0x64, 0x6f, 0x67, 0x2f, 0x74, 0x6f, 0x72, 0x6a, 0x75, 0x73, 0x2f, 0x65, 0x7a, 0x73, 0x68, 0x61,
|
||
|
0x72, 0x65, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
file_protos_ezshare_proto_rawDescOnce sync.Once
|
||
|
file_protos_ezshare_proto_rawDescData = file_protos_ezshare_proto_rawDesc
|
||
|
)
|
||
|
|
||
|
func file_protos_ezshare_proto_rawDescGZIP() []byte {
|
||
|
file_protos_ezshare_proto_rawDescOnce.Do(func() {
|
||
|
file_protos_ezshare_proto_rawDescData = protoimpl.X.CompressGZIP(file_protos_ezshare_proto_rawDescData)
|
||
|
})
|
||
|
return file_protos_ezshare_proto_rawDescData
|
||
|
}
|
||
|
|
||
|
var file_protos_ezshare_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||
|
var file_protos_ezshare_proto_goTypes = []interface{}{
|
||
|
(*File)(nil), // 0: ezshare.File
|
||
|
(*UploadFileRequest)(nil), // 1: ezshare.UploadFileRequest
|
||
|
(*UploadFileResponse)(nil), // 2: ezshare.UploadFileResponse
|
||
|
(*GetFileRequest)(nil), // 3: ezshare.GetFileRequest
|
||
|
(*GetFileResponse)(nil), // 4: ezshare.GetFileResponse
|
||
|
(*File_Metadata)(nil), // 5: ezshare.File.Metadata
|
||
|
(*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp
|
||
|
}
|
||
|
var file_protos_ezshare_proto_depIdxs = []int32{
|
||
|
5, // 0: ezshare.File.metadata:type_name -> ezshare.File.Metadata
|
||
|
6, // 1: ezshare.UploadFileRequest.expires_on:type_name -> google.protobuf.Timestamp
|
||
|
0, // 2: ezshare.GetFileResponse.file:type_name -> ezshare.File
|
||
|
6, // 3: ezshare.File.Metadata.uploaded_on:type_name -> google.protobuf.Timestamp
|
||
|
6, // 4: ezshare.File.Metadata.expires_on:type_name -> google.protobuf.Timestamp
|
||
|
1, // 5: ezshare.FileService.UploadFile:input_type -> ezshare.UploadFileRequest
|
||
|
3, // 6: ezshare.FileService.GetFile:input_type -> ezshare.GetFileRequest
|
||
|
2, // 7: ezshare.FileService.UploadFile:output_type -> ezshare.UploadFileResponse
|
||
|
4, // 8: ezshare.FileService.GetFile:output_type -> ezshare.GetFileResponse
|
||
|
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_protos_ezshare_proto_init() }
|
||
|
func file_protos_ezshare_proto_init() {
|
||
|
if File_protos_ezshare_proto != nil {
|
||
|
return
|
||
|
}
|
||
|
if !protoimpl.UnsafeEnabled {
|
||
|
file_protos_ezshare_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*File); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_protos_ezshare_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*UploadFileRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_protos_ezshare_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*UploadFileResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_protos_ezshare_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*GetFileRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_protos_ezshare_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*GetFileResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_protos_ezshare_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*File_Metadata); 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_protos_ezshare_proto_rawDesc,
|
||
|
NumEnums: 0,
|
||
|
NumMessages: 6,
|
||
|
NumExtensions: 0,
|
||
|
NumServices: 1,
|
||
|
},
|
||
|
GoTypes: file_protos_ezshare_proto_goTypes,
|
||
|
DependencyIndexes: file_protos_ezshare_proto_depIdxs,
|
||
|
MessageInfos: file_protos_ezshare_proto_msgTypes,
|
||
|
}.Build()
|
||
|
File_protos_ezshare_proto = out.File
|
||
|
file_protos_ezshare_proto_rawDesc = nil
|
||
|
file_protos_ezshare_proto_goTypes = nil
|
||
|
file_protos_ezshare_proto_depIdxs = nil
|
||
|
}
|