2358 lines
76 KiB
Go
2358 lines
76 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.10
|
|
// protoc v6.33.1
|
|
// source: file.proto
|
|
|
|
package gen
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
durationpb "google.golang.org/protobuf/types/known/durationpb"
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
|
|
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)
|
|
)
|
|
|
|
// CloudFile represents a reference to a file stored in cloud storage.
|
|
// It contains metadata about the file that won't change, helping to reduce database load.
|
|
type CloudFile struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Unique identifier for the file
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
// Original name of the file
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
// The metadata uses JSON bytes to store to keep the data structure over gRPC
|
|
// File metadata (e.g., dimensions, duration, etc.)
|
|
FileMeta []byte `protobuf:"bytes,3,opt,name=file_meta,json=fileMeta,proto3" json:"file_meta,omitempty"`
|
|
// User-defined metadata
|
|
UserMeta []byte `protobuf:"bytes,4,opt,name=user_meta,json=userMeta,proto3" json:"user_meta,omitempty"`
|
|
SensitiveMarks []byte `protobuf:"bytes,12,opt,name=sensitive_marks,json=sensitiveMarks,proto3,oneof" json:"sensitive_marks,omitempty"`
|
|
// MIME type of the file
|
|
MimeType string `protobuf:"bytes,5,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
|
|
// File content hash (e.g., MD5, SHA-256)
|
|
Hash string `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
// File size in bytes
|
|
Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"`
|
|
// Indicates if the file is stored with compression
|
|
HasCompression bool `protobuf:"varint,8,opt,name=has_compression,json=hasCompression,proto3" json:"has_compression,omitempty"`
|
|
// URL to access the file
|
|
Url string `protobuf:"bytes,9,opt,name=url,proto3" json:"url,omitempty"`
|
|
// Content type of the file
|
|
ContentType string `protobuf:"bytes,10,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
|
|
// When the file was uploaded
|
|
UploadedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=uploaded_at,json=uploadedAt,proto3" json:"uploaded_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CloudFile) Reset() {
|
|
*x = CloudFile{}
|
|
mi := &file_file_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CloudFile) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CloudFile) ProtoMessage() {}
|
|
|
|
func (x *CloudFile) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_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 CloudFile.ProtoReflect.Descriptor instead.
|
|
func (*CloudFile) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CloudFile) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudFile) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudFile) GetFileMeta() []byte {
|
|
if x != nil {
|
|
return x.FileMeta
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CloudFile) GetUserMeta() []byte {
|
|
if x != nil {
|
|
return x.UserMeta
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CloudFile) GetSensitiveMarks() []byte {
|
|
if x != nil {
|
|
return x.SensitiveMarks
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CloudFile) GetMimeType() string {
|
|
if x != nil {
|
|
return x.MimeType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudFile) GetHash() string {
|
|
if x != nil {
|
|
return x.Hash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudFile) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CloudFile) GetHasCompression() bool {
|
|
if x != nil {
|
|
return x.HasCompression
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CloudFile) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudFile) GetContentType() string {
|
|
if x != nil {
|
|
return x.ContentType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudFile) GetUploadedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.UploadedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Request message for GetFile
|
|
type GetFileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFileRequest) Reset() {
|
|
*x = GetFileRequest{}
|
|
mi := &file_file_proto_msgTypes[1]
|
|
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_file_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 GetFileRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetFileRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *GetFileRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetFileBatchRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFileBatchRequest) Reset() {
|
|
*x = GetFileBatchRequest{}
|
|
mi := &file_file_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFileBatchRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFileBatchRequest) ProtoMessage() {}
|
|
|
|
func (x *GetFileBatchRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_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 GetFileBatchRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetFileBatchRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *GetFileBatchRequest) GetIds() []string {
|
|
if x != nil {
|
|
return x.Ids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetFileBatchResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Files []*CloudFile `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetFileBatchResponse) Reset() {
|
|
*x = GetFileBatchResponse{}
|
|
mi := &file_file_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetFileBatchResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetFileBatchResponse) ProtoMessage() {}
|
|
|
|
func (x *GetFileBatchResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[3]
|
|
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 GetFileBatchResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetFileBatchResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *GetFileBatchResponse) GetFiles() []*CloudFile {
|
|
if x != nil {
|
|
return x.Files
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Request message for UpdateFile
|
|
type UpdateFileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
File *CloudFile `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
|
|
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateFileRequest) Reset() {
|
|
*x = UpdateFileRequest{}
|
|
mi := &file_file_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateFileRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateFileRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateFileRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[4]
|
|
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 UpdateFileRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateFileRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *UpdateFileRequest) GetFile() *CloudFile {
|
|
if x != nil {
|
|
return x.File
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateFileRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
|
|
if x != nil {
|
|
return x.UpdateMask
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type FileMetadata struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
|
|
ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
|
|
AccountId string `protobuf:"bytes,4,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FileMetadata) Reset() {
|
|
*x = FileMetadata{}
|
|
mi := &file_file_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FileMetadata) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FileMetadata) ProtoMessage() {}
|
|
|
|
func (x *FileMetadata) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[5]
|
|
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 FileMetadata.ProtoReflect.Descriptor instead.
|
|
func (*FileMetadata) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *FileMetadata) GetFileId() string {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileMetadata) GetFileName() string {
|
|
if x != nil {
|
|
return x.FileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileMetadata) GetContentType() string {
|
|
if x != nil {
|
|
return x.ContentType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FileMetadata) GetAccountId() string {
|
|
if x != nil {
|
|
return x.AccountId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UploadMetadata struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
TargetRemote string `protobuf:"bytes,2,opt,name=target_remote,json=targetRemote,proto3" json:"target_remote,omitempty"`
|
|
Suffix string `protobuf:"bytes,3,opt,name=suffix,proto3" json:"suffix,omitempty"`
|
|
ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadMetadata) Reset() {
|
|
*x = UploadMetadata{}
|
|
mi := &file_file_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadMetadata) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadMetadata) ProtoMessage() {}
|
|
|
|
func (x *UploadMetadata) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[6]
|
|
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 UploadMetadata.ProtoReflect.Descriptor instead.
|
|
func (*UploadMetadata) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *UploadMetadata) GetFileId() string {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadMetadata) GetTargetRemote() string {
|
|
if x != nil {
|
|
return x.TargetRemote
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadMetadata) GetSuffix() string {
|
|
if x != nil {
|
|
return x.Suffix
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadMetadata) GetContentType() string {
|
|
if x != nil {
|
|
return x.ContentType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteFileRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Purge bool `protobuf:"varint,2,opt,name=purge,proto3" json:"purge,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteFileRequest) Reset() {
|
|
*x = DeleteFileRequest{}
|
|
mi := &file_file_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteFileRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteFileRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[7]
|
|
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 DeleteFileRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteFileRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *DeleteFileRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteFileRequest) GetPurge() bool {
|
|
if x != nil {
|
|
return x.Purge
|
|
}
|
|
return false
|
|
}
|
|
|
|
type LoadFromReferenceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ReferenceIds []string `protobuf:"bytes,1,rep,name=reference_ids,json=referenceIds,proto3" json:"reference_ids,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoadFromReferenceRequest) Reset() {
|
|
*x = LoadFromReferenceRequest{}
|
|
mi := &file_file_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoadFromReferenceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoadFromReferenceRequest) ProtoMessage() {}
|
|
|
|
func (x *LoadFromReferenceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[8]
|
|
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 LoadFromReferenceRequest.ProtoReflect.Descriptor instead.
|
|
func (*LoadFromReferenceRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *LoadFromReferenceRequest) GetReferenceIds() []string {
|
|
if x != nil {
|
|
return x.ReferenceIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type LoadFromReferenceResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Files []*CloudFile `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoadFromReferenceResponse) Reset() {
|
|
*x = LoadFromReferenceResponse{}
|
|
mi := &file_file_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoadFromReferenceResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoadFromReferenceResponse) ProtoMessage() {}
|
|
|
|
func (x *LoadFromReferenceResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[9]
|
|
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 LoadFromReferenceResponse.ProtoReflect.Descriptor instead.
|
|
func (*LoadFromReferenceResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *LoadFromReferenceResponse) GetFiles() []*CloudFile {
|
|
if x != nil {
|
|
return x.Files
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetReferenceCountRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetReferenceCountRequest) Reset() {
|
|
*x = GetReferenceCountRequest{}
|
|
mi := &file_file_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetReferenceCountRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetReferenceCountRequest) ProtoMessage() {}
|
|
|
|
func (x *GetReferenceCountRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[10]
|
|
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 GetReferenceCountRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetReferenceCountRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *GetReferenceCountRequest) GetFileId() string {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetReferenceCountResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetReferenceCountResponse) Reset() {
|
|
*x = GetReferenceCountResponse{}
|
|
mi := &file_file_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetReferenceCountResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetReferenceCountResponse) ProtoMessage() {}
|
|
|
|
func (x *GetReferenceCountResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[11]
|
|
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 GetReferenceCountResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetReferenceCountResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *GetReferenceCountResponse) GetCount() int32 {
|
|
if x != nil {
|
|
return x.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type IsReferencedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *IsReferencedRequest) Reset() {
|
|
*x = IsReferencedRequest{}
|
|
mi := &file_file_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *IsReferencedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*IsReferencedRequest) ProtoMessage() {}
|
|
|
|
func (x *IsReferencedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[12]
|
|
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 IsReferencedRequest.ProtoReflect.Descriptor instead.
|
|
func (*IsReferencedRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *IsReferencedRequest) GetFileId() string {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type IsReferencedResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
IsReferenced bool `protobuf:"varint,1,opt,name=is_referenced,json=isReferenced,proto3" json:"is_referenced,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *IsReferencedResponse) Reset() {
|
|
*x = IsReferencedResponse{}
|
|
mi := &file_file_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *IsReferencedResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*IsReferencedResponse) ProtoMessage() {}
|
|
|
|
func (x *IsReferencedResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[13]
|
|
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 IsReferencedResponse.ProtoReflect.Descriptor instead.
|
|
func (*IsReferencedResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *IsReferencedResponse) GetIsReferenced() bool {
|
|
if x != nil {
|
|
return x.IsReferenced
|
|
}
|
|
return false
|
|
}
|
|
|
|
type PurgeCacheRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PurgeCacheRequest) Reset() {
|
|
*x = PurgeCacheRequest{}
|
|
mi := &file_file_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PurgeCacheRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PurgeCacheRequest) ProtoMessage() {}
|
|
|
|
func (x *PurgeCacheRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[14]
|
|
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 PurgeCacheRequest.ProtoReflect.Descriptor instead.
|
|
func (*PurgeCacheRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *PurgeCacheRequest) GetFileId() string {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// CloudFileReference represents a reference to a CloudFile with additional metadata
|
|
// about its usage in the system.
|
|
type CloudFileReference struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Unique identifier for the reference
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
// Reference to the actual file
|
|
FileId string `protobuf:"bytes,2,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
// The actual file data (optional, can be populated when needed)
|
|
File *CloudFile `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"`
|
|
// Description of how this file is being used
|
|
Usage string `protobuf:"bytes,4,opt,name=usage,proto3" json:"usage,omitempty"`
|
|
// ID of the resource that this file is associated with
|
|
ResourceId string `protobuf:"bytes,5,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
|
|
// Optional expiration timestamp for the reference
|
|
ExpiredAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CloudFileReference) Reset() {
|
|
*x = CloudFileReference{}
|
|
mi := &file_file_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CloudFileReference) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CloudFileReference) ProtoMessage() {}
|
|
|
|
func (x *CloudFileReference) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[15]
|
|
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 CloudFileReference.ProtoReflect.Descriptor instead.
|
|
func (*CloudFileReference) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *CloudFileReference) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudFileReference) GetFileId() string {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudFileReference) GetFile() *CloudFile {
|
|
if x != nil {
|
|
return x.File
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CloudFileReference) GetUsage() string {
|
|
if x != nil {
|
|
return x.Usage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudFileReference) GetResourceId() string {
|
|
if x != nil {
|
|
return x.ResourceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CloudFileReference) GetExpiredAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiredAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Request/Response messages for FileReferenceService
|
|
type CreateReferenceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
Usage string `protobuf:"bytes,2,opt,name=usage,proto3" json:"usage,omitempty"`
|
|
ResourceId string `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
|
|
ExpiredAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expired_at,json=expiredAt,proto3,oneof" json:"expired_at,omitempty"`
|
|
Duration *durationpb.Duration `protobuf:"bytes,5,opt,name=duration,proto3,oneof" json:"duration,omitempty"` // Alternative to expired_at
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateReferenceRequest) Reset() {
|
|
*x = CreateReferenceRequest{}
|
|
mi := &file_file_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateReferenceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateReferenceRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateReferenceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[16]
|
|
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 CreateReferenceRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateReferenceRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *CreateReferenceRequest) GetFileId() string {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateReferenceRequest) GetUsage() string {
|
|
if x != nil {
|
|
return x.Usage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateReferenceRequest) GetResourceId() string {
|
|
if x != nil {
|
|
return x.ResourceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateReferenceRequest) GetExpiredAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiredAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateReferenceRequest) GetDuration() *durationpb.Duration {
|
|
if x != nil {
|
|
return x.Duration
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateReferenceBatchRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FilesId []string `protobuf:"bytes,1,rep,name=files_id,json=filesId,proto3" json:"files_id,omitempty"`
|
|
Usage string `protobuf:"bytes,2,opt,name=usage,proto3" json:"usage,omitempty"`
|
|
ResourceId string `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
|
|
ExpiredAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expired_at,json=expiredAt,proto3,oneof" json:"expired_at,omitempty"`
|
|
Duration *durationpb.Duration `protobuf:"bytes,5,opt,name=duration,proto3,oneof" json:"duration,omitempty"` // Alternative to expired_at
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateReferenceBatchRequest) Reset() {
|
|
*x = CreateReferenceBatchRequest{}
|
|
mi := &file_file_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateReferenceBatchRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateReferenceBatchRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateReferenceBatchRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[17]
|
|
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 CreateReferenceBatchRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateReferenceBatchRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *CreateReferenceBatchRequest) GetFilesId() []string {
|
|
if x != nil {
|
|
return x.FilesId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateReferenceBatchRequest) GetUsage() string {
|
|
if x != nil {
|
|
return x.Usage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateReferenceBatchRequest) GetResourceId() string {
|
|
if x != nil {
|
|
return x.ResourceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateReferenceBatchRequest) GetExpiredAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiredAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateReferenceBatchRequest) GetDuration() *durationpb.Duration {
|
|
if x != nil {
|
|
return x.Duration
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateReferenceBatchResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
References []*CloudFileReference `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateReferenceBatchResponse) Reset() {
|
|
*x = CreateReferenceBatchResponse{}
|
|
mi := &file_file_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateReferenceBatchResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateReferenceBatchResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateReferenceBatchResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[18]
|
|
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 CreateReferenceBatchResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateReferenceBatchResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *CreateReferenceBatchResponse) GetReferences() []*CloudFileReference {
|
|
if x != nil {
|
|
return x.References
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetReferencesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetReferencesRequest) Reset() {
|
|
*x = GetReferencesRequest{}
|
|
mi := &file_file_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetReferencesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetReferencesRequest) ProtoMessage() {}
|
|
|
|
func (x *GetReferencesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[19]
|
|
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 GetReferencesRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetReferencesRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *GetReferencesRequest) GetFileId() string {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetReferencesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
References []*CloudFileReference `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetReferencesResponse) Reset() {
|
|
*x = GetReferencesResponse{}
|
|
mi := &file_file_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetReferencesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetReferencesResponse) ProtoMessage() {}
|
|
|
|
func (x *GetReferencesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[20]
|
|
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 GetReferencesResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetReferencesResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *GetReferencesResponse) GetReferences() []*CloudFileReference {
|
|
if x != nil {
|
|
return x.References
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetResourceReferencesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
|
|
Usage string `protobuf:"bytes,2,opt,name=usage,proto3" json:"usage,omitempty"` // Optional
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetResourceReferencesRequest) Reset() {
|
|
*x = GetResourceReferencesRequest{}
|
|
mi := &file_file_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetResourceReferencesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetResourceReferencesRequest) ProtoMessage() {}
|
|
|
|
func (x *GetResourceReferencesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[21]
|
|
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 GetResourceReferencesRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetResourceReferencesRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *GetResourceReferencesRequest) GetResourceId() string {
|
|
if x != nil {
|
|
return x.ResourceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetResourceReferencesRequest) GetUsage() string {
|
|
if x != nil {
|
|
return x.Usage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetResourceFilesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
|
|
Usage *string `protobuf:"bytes,2,opt,name=usage,proto3,oneof" json:"usage,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetResourceFilesRequest) Reset() {
|
|
*x = GetResourceFilesRequest{}
|
|
mi := &file_file_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetResourceFilesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetResourceFilesRequest) ProtoMessage() {}
|
|
|
|
func (x *GetResourceFilesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[22]
|
|
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 GetResourceFilesRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetResourceFilesRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *GetResourceFilesRequest) GetResourceId() string {
|
|
if x != nil {
|
|
return x.ResourceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetResourceFilesRequest) GetUsage() string {
|
|
if x != nil && x.Usage != nil {
|
|
return *x.Usage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetResourceFilesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Files []*CloudFile `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetResourceFilesResponse) Reset() {
|
|
*x = GetResourceFilesResponse{}
|
|
mi := &file_file_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetResourceFilesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetResourceFilesResponse) ProtoMessage() {}
|
|
|
|
func (x *GetResourceFilesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[23]
|
|
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 GetResourceFilesResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetResourceFilesResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *GetResourceFilesResponse) GetFiles() []*CloudFile {
|
|
if x != nil {
|
|
return x.Files
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteResourceReferencesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
|
|
Usage *string `protobuf:"bytes,2,opt,name=usage,proto3,oneof" json:"usage,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteResourceReferencesRequest) Reset() {
|
|
*x = DeleteResourceReferencesRequest{}
|
|
mi := &file_file_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteResourceReferencesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteResourceReferencesRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteResourceReferencesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[24]
|
|
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 DeleteResourceReferencesRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteResourceReferencesRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *DeleteResourceReferencesRequest) GetResourceId() string {
|
|
if x != nil {
|
|
return x.ResourceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteResourceReferencesRequest) GetUsage() string {
|
|
if x != nil && x.Usage != nil {
|
|
return *x.Usage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteResourceReferencesBatchRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ResourceIds []string `protobuf:"bytes,1,rep,name=resource_ids,json=resourceIds,proto3" json:"resource_ids,omitempty"`
|
|
Usage *string `protobuf:"bytes,2,opt,name=usage,proto3,oneof" json:"usage,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteResourceReferencesBatchRequest) Reset() {
|
|
*x = DeleteResourceReferencesBatchRequest{}
|
|
mi := &file_file_proto_msgTypes[25]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteResourceReferencesBatchRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteResourceReferencesBatchRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteResourceReferencesBatchRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[25]
|
|
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 DeleteResourceReferencesBatchRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteResourceReferencesBatchRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{25}
|
|
}
|
|
|
|
func (x *DeleteResourceReferencesBatchRequest) GetResourceIds() []string {
|
|
if x != nil {
|
|
return x.ResourceIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DeleteResourceReferencesBatchRequest) GetUsage() string {
|
|
if x != nil && x.Usage != nil {
|
|
return *x.Usage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteResourceReferencesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
DeletedCount int32 `protobuf:"varint,1,opt,name=deleted_count,json=deletedCount,proto3" json:"deleted_count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteResourceReferencesResponse) Reset() {
|
|
*x = DeleteResourceReferencesResponse{}
|
|
mi := &file_file_proto_msgTypes[26]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteResourceReferencesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteResourceReferencesResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteResourceReferencesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[26]
|
|
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 DeleteResourceReferencesResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteResourceReferencesResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{26}
|
|
}
|
|
|
|
func (x *DeleteResourceReferencesResponse) GetDeletedCount() int32 {
|
|
if x != nil {
|
|
return x.DeletedCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteReferenceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ReferenceId string `protobuf:"bytes,1,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteReferenceRequest) Reset() {
|
|
*x = DeleteReferenceRequest{}
|
|
mi := &file_file_proto_msgTypes[27]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteReferenceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteReferenceRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteReferenceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[27]
|
|
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 DeleteReferenceRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteReferenceRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{27}
|
|
}
|
|
|
|
func (x *DeleteReferenceRequest) GetReferenceId() string {
|
|
if x != nil {
|
|
return x.ReferenceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteReferenceResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteReferenceResponse) Reset() {
|
|
*x = DeleteReferenceResponse{}
|
|
mi := &file_file_proto_msgTypes[28]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteReferenceResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteReferenceResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteReferenceResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[28]
|
|
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 DeleteReferenceResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteReferenceResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{28}
|
|
}
|
|
|
|
func (x *DeleteReferenceResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
type UpdateResourceFilesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
|
|
FileIds []string `protobuf:"bytes,2,rep,name=file_ids,json=fileIds,proto3" json:"file_ids,omitempty"`
|
|
Usage string `protobuf:"bytes,3,opt,name=usage,proto3" json:"usage,omitempty"`
|
|
ExpiredAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"`
|
|
Duration *durationpb.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"` // Alternative to expired_at
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateResourceFilesRequest) Reset() {
|
|
*x = UpdateResourceFilesRequest{}
|
|
mi := &file_file_proto_msgTypes[29]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateResourceFilesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateResourceFilesRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateResourceFilesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[29]
|
|
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 UpdateResourceFilesRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateResourceFilesRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{29}
|
|
}
|
|
|
|
func (x *UpdateResourceFilesRequest) GetResourceId() string {
|
|
if x != nil {
|
|
return x.ResourceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateResourceFilesRequest) GetFileIds() []string {
|
|
if x != nil {
|
|
return x.FileIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateResourceFilesRequest) GetUsage() string {
|
|
if x != nil {
|
|
return x.Usage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateResourceFilesRequest) GetExpiredAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiredAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateResourceFilesRequest) GetDuration() *durationpb.Duration {
|
|
if x != nil {
|
|
return x.Duration
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UpdateResourceFilesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
References []*CloudFileReference `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateResourceFilesResponse) Reset() {
|
|
*x = UpdateResourceFilesResponse{}
|
|
mi := &file_file_proto_msgTypes[30]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateResourceFilesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateResourceFilesResponse) ProtoMessage() {}
|
|
|
|
func (x *UpdateResourceFilesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[30]
|
|
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 UpdateResourceFilesResponse.ProtoReflect.Descriptor instead.
|
|
func (*UpdateResourceFilesResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{30}
|
|
}
|
|
|
|
func (x *UpdateResourceFilesResponse) GetReferences() []*CloudFileReference {
|
|
if x != nil {
|
|
return x.References
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SetReferenceExpirationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ReferenceId string `protobuf:"bytes,1,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"`
|
|
ExpiredAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"`
|
|
Duration *durationpb.Duration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"` // Alternative to expired_at
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetReferenceExpirationRequest) Reset() {
|
|
*x = SetReferenceExpirationRequest{}
|
|
mi := &file_file_proto_msgTypes[31]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetReferenceExpirationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetReferenceExpirationRequest) ProtoMessage() {}
|
|
|
|
func (x *SetReferenceExpirationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[31]
|
|
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 SetReferenceExpirationRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetReferenceExpirationRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{31}
|
|
}
|
|
|
|
func (x *SetReferenceExpirationRequest) GetReferenceId() string {
|
|
if x != nil {
|
|
return x.ReferenceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetReferenceExpirationRequest) GetExpiredAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiredAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetReferenceExpirationRequest) GetDuration() *durationpb.Duration {
|
|
if x != nil {
|
|
return x.Duration
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SetReferenceExpirationResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetReferenceExpirationResponse) Reset() {
|
|
*x = SetReferenceExpirationResponse{}
|
|
mi := &file_file_proto_msgTypes[32]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetReferenceExpirationResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetReferenceExpirationResponse) ProtoMessage() {}
|
|
|
|
func (x *SetReferenceExpirationResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[32]
|
|
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 SetReferenceExpirationResponse.ProtoReflect.Descriptor instead.
|
|
func (*SetReferenceExpirationResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{32}
|
|
}
|
|
|
|
func (x *SetReferenceExpirationResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
type SetFileReferencesExpirationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
ExpiredAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetFileReferencesExpirationRequest) Reset() {
|
|
*x = SetFileReferencesExpirationRequest{}
|
|
mi := &file_file_proto_msgTypes[33]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetFileReferencesExpirationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetFileReferencesExpirationRequest) ProtoMessage() {}
|
|
|
|
func (x *SetFileReferencesExpirationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[33]
|
|
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 SetFileReferencesExpirationRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetFileReferencesExpirationRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{33}
|
|
}
|
|
|
|
func (x *SetFileReferencesExpirationRequest) GetFileId() string {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetFileReferencesExpirationRequest) GetExpiredAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiredAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SetFileReferencesExpirationResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UpdatedCount int32 `protobuf:"varint,1,opt,name=updated_count,json=updatedCount,proto3" json:"updated_count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetFileReferencesExpirationResponse) Reset() {
|
|
*x = SetFileReferencesExpirationResponse{}
|
|
mi := &file_file_proto_msgTypes[34]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetFileReferencesExpirationResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetFileReferencesExpirationResponse) ProtoMessage() {}
|
|
|
|
func (x *SetFileReferencesExpirationResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[34]
|
|
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 SetFileReferencesExpirationResponse.ProtoReflect.Descriptor instead.
|
|
func (*SetFileReferencesExpirationResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{34}
|
|
}
|
|
|
|
func (x *SetFileReferencesExpirationResponse) GetUpdatedCount() int32 {
|
|
if x != nil {
|
|
return x.UpdatedCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HasFileReferencesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FileId string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *HasFileReferencesRequest) Reset() {
|
|
*x = HasFileReferencesRequest{}
|
|
mi := &file_file_proto_msgTypes[35]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HasFileReferencesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HasFileReferencesRequest) ProtoMessage() {}
|
|
|
|
func (x *HasFileReferencesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[35]
|
|
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 HasFileReferencesRequest.ProtoReflect.Descriptor instead.
|
|
func (*HasFileReferencesRequest) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{35}
|
|
}
|
|
|
|
func (x *HasFileReferencesRequest) GetFileId() string {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type HasFileReferencesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HasReferences bool `protobuf:"varint,1,opt,name=has_references,json=hasReferences,proto3" json:"has_references,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *HasFileReferencesResponse) Reset() {
|
|
*x = HasFileReferencesResponse{}
|
|
mi := &file_file_proto_msgTypes[36]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HasFileReferencesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HasFileReferencesResponse) ProtoMessage() {}
|
|
|
|
func (x *HasFileReferencesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_file_proto_msgTypes[36]
|
|
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 HasFileReferencesResponse.ProtoReflect.Descriptor instead.
|
|
func (*HasFileReferencesResponse) Descriptor() ([]byte, []int) {
|
|
return file_file_proto_rawDescGZIP(), []int{36}
|
|
}
|
|
|
|
func (x *HasFileReferencesResponse) GetHasReferences() bool {
|
|
if x != nil {
|
|
return x.HasReferences
|
|
}
|
|
return false
|
|
}
|
|
|
|
var File_file_proto protoreflect.FileDescriptor
|
|
|
|
const file_file_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\n" +
|
|
"file.proto\x12\x05proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/duration.proto\"\x8b\x03\n" +
|
|
"\tCloudFile\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1b\n" +
|
|
"\tfile_meta\x18\x03 \x01(\fR\bfileMeta\x12\x1b\n" +
|
|
"\tuser_meta\x18\x04 \x01(\fR\buserMeta\x12,\n" +
|
|
"\x0fsensitive_marks\x18\f \x01(\fH\x00R\x0esensitiveMarks\x88\x01\x01\x12\x1b\n" +
|
|
"\tmime_type\x18\x05 \x01(\tR\bmimeType\x12\x12\n" +
|
|
"\x04hash\x18\x06 \x01(\tR\x04hash\x12\x12\n" +
|
|
"\x04size\x18\a \x01(\x03R\x04size\x12'\n" +
|
|
"\x0fhas_compression\x18\b \x01(\bR\x0ehasCompression\x12\x10\n" +
|
|
"\x03url\x18\t \x01(\tR\x03url\x12!\n" +
|
|
"\fcontent_type\x18\n" +
|
|
" \x01(\tR\vcontentType\x12;\n" +
|
|
"\vuploaded_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\n" +
|
|
"uploadedAtB\x12\n" +
|
|
"\x10_sensitive_marks\" \n" +
|
|
"\x0eGetFileRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"'\n" +
|
|
"\x13GetFileBatchRequest\x12\x10\n" +
|
|
"\x03ids\x18\x01 \x03(\tR\x03ids\">\n" +
|
|
"\x14GetFileBatchResponse\x12&\n" +
|
|
"\x05files\x18\x01 \x03(\v2\x10.proto.CloudFileR\x05files\"v\n" +
|
|
"\x11UpdateFileRequest\x12$\n" +
|
|
"\x04file\x18\x01 \x01(\v2\x10.proto.CloudFileR\x04file\x12;\n" +
|
|
"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" +
|
|
"updateMask\"\x86\x01\n" +
|
|
"\fFileMetadata\x12\x17\n" +
|
|
"\afile_id\x18\x01 \x01(\tR\x06fileId\x12\x1b\n" +
|
|
"\tfile_name\x18\x02 \x01(\tR\bfileName\x12!\n" +
|
|
"\fcontent_type\x18\x03 \x01(\tR\vcontentType\x12\x1d\n" +
|
|
"\n" +
|
|
"account_id\x18\x04 \x01(\tR\taccountId\"\x89\x01\n" +
|
|
"\x0eUploadMetadata\x12\x17\n" +
|
|
"\afile_id\x18\x01 \x01(\tR\x06fileId\x12#\n" +
|
|
"\rtarget_remote\x18\x02 \x01(\tR\ftargetRemote\x12\x16\n" +
|
|
"\x06suffix\x18\x03 \x01(\tR\x06suffix\x12!\n" +
|
|
"\fcontent_type\x18\x04 \x01(\tR\vcontentType\"9\n" +
|
|
"\x11DeleteFileRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
|
|
"\x05purge\x18\x02 \x01(\bR\x05purge\"?\n" +
|
|
"\x18LoadFromReferenceRequest\x12#\n" +
|
|
"\rreference_ids\x18\x01 \x03(\tR\freferenceIds\"C\n" +
|
|
"\x19LoadFromReferenceResponse\x12&\n" +
|
|
"\x05files\x18\x01 \x03(\v2\x10.proto.CloudFileR\x05files\"3\n" +
|
|
"\x18GetReferenceCountRequest\x12\x17\n" +
|
|
"\afile_id\x18\x01 \x01(\tR\x06fileId\"1\n" +
|
|
"\x19GetReferenceCountResponse\x12\x14\n" +
|
|
"\x05count\x18\x01 \x01(\x05R\x05count\".\n" +
|
|
"\x13IsReferencedRequest\x12\x17\n" +
|
|
"\afile_id\x18\x01 \x01(\tR\x06fileId\";\n" +
|
|
"\x14IsReferencedResponse\x12#\n" +
|
|
"\ris_referenced\x18\x01 \x01(\bR\fisReferenced\",\n" +
|
|
"\x11PurgeCacheRequest\x12\x17\n" +
|
|
"\afile_id\x18\x01 \x01(\tR\x06fileId\"\xd5\x01\n" +
|
|
"\x12CloudFileReference\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
|
|
"\afile_id\x18\x02 \x01(\tR\x06fileId\x12$\n" +
|
|
"\x04file\x18\x03 \x01(\v2\x10.proto.CloudFileR\x04file\x12\x14\n" +
|
|
"\x05usage\x18\x04 \x01(\tR\x05usage\x12\x1f\n" +
|
|
"\vresource_id\x18\x05 \x01(\tR\n" +
|
|
"resourceId\x129\n" +
|
|
"\n" +
|
|
"expired_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\texpiredAt\"\x80\x02\n" +
|
|
"\x16CreateReferenceRequest\x12\x17\n" +
|
|
"\afile_id\x18\x01 \x01(\tR\x06fileId\x12\x14\n" +
|
|
"\x05usage\x18\x02 \x01(\tR\x05usage\x12\x1f\n" +
|
|
"\vresource_id\x18\x03 \x01(\tR\n" +
|
|
"resourceId\x12>\n" +
|
|
"\n" +
|
|
"expired_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampH\x00R\texpiredAt\x88\x01\x01\x12:\n" +
|
|
"\bduration\x18\x05 \x01(\v2\x19.google.protobuf.DurationH\x01R\bduration\x88\x01\x01B\r\n" +
|
|
"\v_expired_atB\v\n" +
|
|
"\t_duration\"\x87\x02\n" +
|
|
"\x1bCreateReferenceBatchRequest\x12\x19\n" +
|
|
"\bfiles_id\x18\x01 \x03(\tR\afilesId\x12\x14\n" +
|
|
"\x05usage\x18\x02 \x01(\tR\x05usage\x12\x1f\n" +
|
|
"\vresource_id\x18\x03 \x01(\tR\n" +
|
|
"resourceId\x12>\n" +
|
|
"\n" +
|
|
"expired_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampH\x00R\texpiredAt\x88\x01\x01\x12:\n" +
|
|
"\bduration\x18\x05 \x01(\v2\x19.google.protobuf.DurationH\x01R\bduration\x88\x01\x01B\r\n" +
|
|
"\v_expired_atB\v\n" +
|
|
"\t_duration\"Y\n" +
|
|
"\x1cCreateReferenceBatchResponse\x129\n" +
|
|
"\n" +
|
|
"references\x18\x01 \x03(\v2\x19.proto.CloudFileReferenceR\n" +
|
|
"references\"/\n" +
|
|
"\x14GetReferencesRequest\x12\x17\n" +
|
|
"\afile_id\x18\x01 \x01(\tR\x06fileId\"R\n" +
|
|
"\x15GetReferencesResponse\x129\n" +
|
|
"\n" +
|
|
"references\x18\x01 \x03(\v2\x19.proto.CloudFileReferenceR\n" +
|
|
"references\"U\n" +
|
|
"\x1cGetResourceReferencesRequest\x12\x1f\n" +
|
|
"\vresource_id\x18\x01 \x01(\tR\n" +
|
|
"resourceId\x12\x14\n" +
|
|
"\x05usage\x18\x02 \x01(\tR\x05usage\"_\n" +
|
|
"\x17GetResourceFilesRequest\x12\x1f\n" +
|
|
"\vresource_id\x18\x01 \x01(\tR\n" +
|
|
"resourceId\x12\x19\n" +
|
|
"\x05usage\x18\x02 \x01(\tH\x00R\x05usage\x88\x01\x01B\b\n" +
|
|
"\x06_usage\"B\n" +
|
|
"\x18GetResourceFilesResponse\x12&\n" +
|
|
"\x05files\x18\x01 \x03(\v2\x10.proto.CloudFileR\x05files\"g\n" +
|
|
"\x1fDeleteResourceReferencesRequest\x12\x1f\n" +
|
|
"\vresource_id\x18\x01 \x01(\tR\n" +
|
|
"resourceId\x12\x19\n" +
|
|
"\x05usage\x18\x02 \x01(\tH\x00R\x05usage\x88\x01\x01B\b\n" +
|
|
"\x06_usage\"n\n" +
|
|
"$DeleteResourceReferencesBatchRequest\x12!\n" +
|
|
"\fresource_ids\x18\x01 \x03(\tR\vresourceIds\x12\x19\n" +
|
|
"\x05usage\x18\x02 \x01(\tH\x00R\x05usage\x88\x01\x01B\b\n" +
|
|
"\x06_usage\"G\n" +
|
|
" DeleteResourceReferencesResponse\x12#\n" +
|
|
"\rdeleted_count\x18\x01 \x01(\x05R\fdeletedCount\";\n" +
|
|
"\x16DeleteReferenceRequest\x12!\n" +
|
|
"\freference_id\x18\x01 \x01(\tR\vreferenceId\"3\n" +
|
|
"\x17DeleteReferenceResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\"\xe0\x01\n" +
|
|
"\x1aUpdateResourceFilesRequest\x12\x1f\n" +
|
|
"\vresource_id\x18\x01 \x01(\tR\n" +
|
|
"resourceId\x12\x19\n" +
|
|
"\bfile_ids\x18\x02 \x03(\tR\afileIds\x12\x14\n" +
|
|
"\x05usage\x18\x03 \x01(\tR\x05usage\x129\n" +
|
|
"\n" +
|
|
"expired_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\texpiredAt\x125\n" +
|
|
"\bduration\x18\x05 \x01(\v2\x19.google.protobuf.DurationR\bduration\"X\n" +
|
|
"\x1bUpdateResourceFilesResponse\x129\n" +
|
|
"\n" +
|
|
"references\x18\x01 \x03(\v2\x19.proto.CloudFileReferenceR\n" +
|
|
"references\"\xb4\x01\n" +
|
|
"\x1dSetReferenceExpirationRequest\x12!\n" +
|
|
"\freference_id\x18\x01 \x01(\tR\vreferenceId\x129\n" +
|
|
"\n" +
|
|
"expired_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\texpiredAt\x125\n" +
|
|
"\bduration\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\bduration\":\n" +
|
|
"\x1eSetReferenceExpirationResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\"x\n" +
|
|
"\"SetFileReferencesExpirationRequest\x12\x17\n" +
|
|
"\afile_id\x18\x01 \x01(\tR\x06fileId\x129\n" +
|
|
"\n" +
|
|
"expired_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\texpiredAt\"J\n" +
|
|
"#SetFileReferencesExpirationResponse\x12#\n" +
|
|
"\rupdated_count\x18\x01 \x01(\x05R\fupdatedCount\"3\n" +
|
|
"\x18HasFileReferencesRequest\x12\x17\n" +
|
|
"\afile_id\x18\x01 \x01(\tR\x06fileId\"B\n" +
|
|
"\x19HasFileReferencesResponse\x12%\n" +
|
|
"\x0ehas_references\x18\x01 \x01(\bR\rhasReferences2\xe5\x03\n" +
|
|
"\vFileService\x122\n" +
|
|
"\aGetFile\x12\x15.proto.GetFileRequest\x1a\x10.proto.CloudFile\x12G\n" +
|
|
"\fGetFileBatch\x12\x1a.proto.GetFileBatchRequest\x1a\x1b.proto.GetFileBatchResponse\x128\n" +
|
|
"\n" +
|
|
"UpdateFile\x12\x18.proto.UpdateFileRequest\x1a\x10.proto.CloudFile\x12>\n" +
|
|
"\n" +
|
|
"DeleteFile\x12\x18.proto.DeleteFileRequest\x1a\x16.google.protobuf.Empty\x12V\n" +
|
|
"\x11LoadFromReference\x12\x1f.proto.LoadFromReferenceRequest\x1a .proto.LoadFromReferenceResponse\x12G\n" +
|
|
"\fIsReferenced\x12\x1a.proto.IsReferencedRequest\x1a\x1b.proto.IsReferencedResponse\x12>\n" +
|
|
"\n" +
|
|
"PurgeCache\x12\x18.proto.PurgeCacheRequest\x1a\x16.google.protobuf.Empty2\xe2\t\n" +
|
|
"\x14FileReferenceService\x12K\n" +
|
|
"\x0fCreateReference\x12\x1d.proto.CreateReferenceRequest\x1a\x19.proto.CloudFileReference\x12_\n" +
|
|
"\x14CreateReferenceBatch\x12\".proto.CreateReferenceBatchRequest\x1a#.proto.CreateReferenceBatchResponse\x12J\n" +
|
|
"\rGetReferences\x12\x1b.proto.GetReferencesRequest\x1a\x1c.proto.GetReferencesResponse\x12V\n" +
|
|
"\x11GetReferenceCount\x12\x1f.proto.GetReferenceCountRequest\x1a .proto.GetReferenceCountResponse\x12Z\n" +
|
|
"\x15GetResourceReferences\x12#.proto.GetResourceReferencesRequest\x1a\x1c.proto.GetReferencesResponse\x12S\n" +
|
|
"\x10GetResourceFiles\x12\x1e.proto.GetResourceFilesRequest\x1a\x1f.proto.GetResourceFilesResponse\x12k\n" +
|
|
"\x18DeleteResourceReferences\x12&.proto.DeleteResourceReferencesRequest\x1a'.proto.DeleteResourceReferencesResponse\x12u\n" +
|
|
"\x1dDeleteResourceReferencesBatch\x12+.proto.DeleteResourceReferencesBatchRequest\x1a'.proto.DeleteResourceReferencesResponse\x12P\n" +
|
|
"\x0fDeleteReference\x12\x1d.proto.DeleteReferenceRequest\x1a\x1e.proto.DeleteReferenceResponse\x12\\\n" +
|
|
"\x13UpdateResourceFiles\x12!.proto.UpdateResourceFilesRequest\x1a\".proto.UpdateResourceFilesResponse\x12e\n" +
|
|
"\x16SetReferenceExpiration\x12$.proto.SetReferenceExpirationRequest\x1a%.proto.SetReferenceExpirationResponse\x12t\n" +
|
|
"\x1bSetFileReferencesExpiration\x12).proto.SetFileReferencesExpirationRequest\x1a*.proto.SetFileReferencesExpirationResponse\x12V\n" +
|
|
"\x11HasFileReferences\x12\x1f.proto.HasFileReferencesRequest\x1a .proto.HasFileReferencesResponseBUZ7git.solsynth.dev/goatworks/turbine/pkg/shared/proto/gen\xaa\x02\x19DysonNetwork.Shared.Protob\x06proto3"
|
|
|
|
var (
|
|
file_file_proto_rawDescOnce sync.Once
|
|
file_file_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_file_proto_rawDescGZIP() []byte {
|
|
file_file_proto_rawDescOnce.Do(func() {
|
|
file_file_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_file_proto_rawDesc), len(file_file_proto_rawDesc)))
|
|
})
|
|
return file_file_proto_rawDescData
|
|
}
|
|
|
|
var file_file_proto_msgTypes = make([]protoimpl.MessageInfo, 37)
|
|
var file_file_proto_goTypes = []any{
|
|
(*CloudFile)(nil), // 0: proto.CloudFile
|
|
(*GetFileRequest)(nil), // 1: proto.GetFileRequest
|
|
(*GetFileBatchRequest)(nil), // 2: proto.GetFileBatchRequest
|
|
(*GetFileBatchResponse)(nil), // 3: proto.GetFileBatchResponse
|
|
(*UpdateFileRequest)(nil), // 4: proto.UpdateFileRequest
|
|
(*FileMetadata)(nil), // 5: proto.FileMetadata
|
|
(*UploadMetadata)(nil), // 6: proto.UploadMetadata
|
|
(*DeleteFileRequest)(nil), // 7: proto.DeleteFileRequest
|
|
(*LoadFromReferenceRequest)(nil), // 8: proto.LoadFromReferenceRequest
|
|
(*LoadFromReferenceResponse)(nil), // 9: proto.LoadFromReferenceResponse
|
|
(*GetReferenceCountRequest)(nil), // 10: proto.GetReferenceCountRequest
|
|
(*GetReferenceCountResponse)(nil), // 11: proto.GetReferenceCountResponse
|
|
(*IsReferencedRequest)(nil), // 12: proto.IsReferencedRequest
|
|
(*IsReferencedResponse)(nil), // 13: proto.IsReferencedResponse
|
|
(*PurgeCacheRequest)(nil), // 14: proto.PurgeCacheRequest
|
|
(*CloudFileReference)(nil), // 15: proto.CloudFileReference
|
|
(*CreateReferenceRequest)(nil), // 16: proto.CreateReferenceRequest
|
|
(*CreateReferenceBatchRequest)(nil), // 17: proto.CreateReferenceBatchRequest
|
|
(*CreateReferenceBatchResponse)(nil), // 18: proto.CreateReferenceBatchResponse
|
|
(*GetReferencesRequest)(nil), // 19: proto.GetReferencesRequest
|
|
(*GetReferencesResponse)(nil), // 20: proto.GetReferencesResponse
|
|
(*GetResourceReferencesRequest)(nil), // 21: proto.GetResourceReferencesRequest
|
|
(*GetResourceFilesRequest)(nil), // 22: proto.GetResourceFilesRequest
|
|
(*GetResourceFilesResponse)(nil), // 23: proto.GetResourceFilesResponse
|
|
(*DeleteResourceReferencesRequest)(nil), // 24: proto.DeleteResourceReferencesRequest
|
|
(*DeleteResourceReferencesBatchRequest)(nil), // 25: proto.DeleteResourceReferencesBatchRequest
|
|
(*DeleteResourceReferencesResponse)(nil), // 26: proto.DeleteResourceReferencesResponse
|
|
(*DeleteReferenceRequest)(nil), // 27: proto.DeleteReferenceRequest
|
|
(*DeleteReferenceResponse)(nil), // 28: proto.DeleteReferenceResponse
|
|
(*UpdateResourceFilesRequest)(nil), // 29: proto.UpdateResourceFilesRequest
|
|
(*UpdateResourceFilesResponse)(nil), // 30: proto.UpdateResourceFilesResponse
|
|
(*SetReferenceExpirationRequest)(nil), // 31: proto.SetReferenceExpirationRequest
|
|
(*SetReferenceExpirationResponse)(nil), // 32: proto.SetReferenceExpirationResponse
|
|
(*SetFileReferencesExpirationRequest)(nil), // 33: proto.SetFileReferencesExpirationRequest
|
|
(*SetFileReferencesExpirationResponse)(nil), // 34: proto.SetFileReferencesExpirationResponse
|
|
(*HasFileReferencesRequest)(nil), // 35: proto.HasFileReferencesRequest
|
|
(*HasFileReferencesResponse)(nil), // 36: proto.HasFileReferencesResponse
|
|
(*timestamppb.Timestamp)(nil), // 37: google.protobuf.Timestamp
|
|
(*fieldmaskpb.FieldMask)(nil), // 38: google.protobuf.FieldMask
|
|
(*durationpb.Duration)(nil), // 39: google.protobuf.Duration
|
|
(*emptypb.Empty)(nil), // 40: google.protobuf.Empty
|
|
}
|
|
var file_file_proto_depIdxs = []int32{
|
|
37, // 0: proto.CloudFile.uploaded_at:type_name -> google.protobuf.Timestamp
|
|
0, // 1: proto.GetFileBatchResponse.files:type_name -> proto.CloudFile
|
|
0, // 2: proto.UpdateFileRequest.file:type_name -> proto.CloudFile
|
|
38, // 3: proto.UpdateFileRequest.update_mask:type_name -> google.protobuf.FieldMask
|
|
0, // 4: proto.LoadFromReferenceResponse.files:type_name -> proto.CloudFile
|
|
0, // 5: proto.CloudFileReference.file:type_name -> proto.CloudFile
|
|
37, // 6: proto.CloudFileReference.expired_at:type_name -> google.protobuf.Timestamp
|
|
37, // 7: proto.CreateReferenceRequest.expired_at:type_name -> google.protobuf.Timestamp
|
|
39, // 8: proto.CreateReferenceRequest.duration:type_name -> google.protobuf.Duration
|
|
37, // 9: proto.CreateReferenceBatchRequest.expired_at:type_name -> google.protobuf.Timestamp
|
|
39, // 10: proto.CreateReferenceBatchRequest.duration:type_name -> google.protobuf.Duration
|
|
15, // 11: proto.CreateReferenceBatchResponse.references:type_name -> proto.CloudFileReference
|
|
15, // 12: proto.GetReferencesResponse.references:type_name -> proto.CloudFileReference
|
|
0, // 13: proto.GetResourceFilesResponse.files:type_name -> proto.CloudFile
|
|
37, // 14: proto.UpdateResourceFilesRequest.expired_at:type_name -> google.protobuf.Timestamp
|
|
39, // 15: proto.UpdateResourceFilesRequest.duration:type_name -> google.protobuf.Duration
|
|
15, // 16: proto.UpdateResourceFilesResponse.references:type_name -> proto.CloudFileReference
|
|
37, // 17: proto.SetReferenceExpirationRequest.expired_at:type_name -> google.protobuf.Timestamp
|
|
39, // 18: proto.SetReferenceExpirationRequest.duration:type_name -> google.protobuf.Duration
|
|
37, // 19: proto.SetFileReferencesExpirationRequest.expired_at:type_name -> google.protobuf.Timestamp
|
|
1, // 20: proto.FileService.GetFile:input_type -> proto.GetFileRequest
|
|
2, // 21: proto.FileService.GetFileBatch:input_type -> proto.GetFileBatchRequest
|
|
4, // 22: proto.FileService.UpdateFile:input_type -> proto.UpdateFileRequest
|
|
7, // 23: proto.FileService.DeleteFile:input_type -> proto.DeleteFileRequest
|
|
8, // 24: proto.FileService.LoadFromReference:input_type -> proto.LoadFromReferenceRequest
|
|
12, // 25: proto.FileService.IsReferenced:input_type -> proto.IsReferencedRequest
|
|
14, // 26: proto.FileService.PurgeCache:input_type -> proto.PurgeCacheRequest
|
|
16, // 27: proto.FileReferenceService.CreateReference:input_type -> proto.CreateReferenceRequest
|
|
17, // 28: proto.FileReferenceService.CreateReferenceBatch:input_type -> proto.CreateReferenceBatchRequest
|
|
19, // 29: proto.FileReferenceService.GetReferences:input_type -> proto.GetReferencesRequest
|
|
10, // 30: proto.FileReferenceService.GetReferenceCount:input_type -> proto.GetReferenceCountRequest
|
|
21, // 31: proto.FileReferenceService.GetResourceReferences:input_type -> proto.GetResourceReferencesRequest
|
|
22, // 32: proto.FileReferenceService.GetResourceFiles:input_type -> proto.GetResourceFilesRequest
|
|
24, // 33: proto.FileReferenceService.DeleteResourceReferences:input_type -> proto.DeleteResourceReferencesRequest
|
|
25, // 34: proto.FileReferenceService.DeleteResourceReferencesBatch:input_type -> proto.DeleteResourceReferencesBatchRequest
|
|
27, // 35: proto.FileReferenceService.DeleteReference:input_type -> proto.DeleteReferenceRequest
|
|
29, // 36: proto.FileReferenceService.UpdateResourceFiles:input_type -> proto.UpdateResourceFilesRequest
|
|
31, // 37: proto.FileReferenceService.SetReferenceExpiration:input_type -> proto.SetReferenceExpirationRequest
|
|
33, // 38: proto.FileReferenceService.SetFileReferencesExpiration:input_type -> proto.SetFileReferencesExpirationRequest
|
|
35, // 39: proto.FileReferenceService.HasFileReferences:input_type -> proto.HasFileReferencesRequest
|
|
0, // 40: proto.FileService.GetFile:output_type -> proto.CloudFile
|
|
3, // 41: proto.FileService.GetFileBatch:output_type -> proto.GetFileBatchResponse
|
|
0, // 42: proto.FileService.UpdateFile:output_type -> proto.CloudFile
|
|
40, // 43: proto.FileService.DeleteFile:output_type -> google.protobuf.Empty
|
|
9, // 44: proto.FileService.LoadFromReference:output_type -> proto.LoadFromReferenceResponse
|
|
13, // 45: proto.FileService.IsReferenced:output_type -> proto.IsReferencedResponse
|
|
40, // 46: proto.FileService.PurgeCache:output_type -> google.protobuf.Empty
|
|
15, // 47: proto.FileReferenceService.CreateReference:output_type -> proto.CloudFileReference
|
|
18, // 48: proto.FileReferenceService.CreateReferenceBatch:output_type -> proto.CreateReferenceBatchResponse
|
|
20, // 49: proto.FileReferenceService.GetReferences:output_type -> proto.GetReferencesResponse
|
|
11, // 50: proto.FileReferenceService.GetReferenceCount:output_type -> proto.GetReferenceCountResponse
|
|
20, // 51: proto.FileReferenceService.GetResourceReferences:output_type -> proto.GetReferencesResponse
|
|
23, // 52: proto.FileReferenceService.GetResourceFiles:output_type -> proto.GetResourceFilesResponse
|
|
26, // 53: proto.FileReferenceService.DeleteResourceReferences:output_type -> proto.DeleteResourceReferencesResponse
|
|
26, // 54: proto.FileReferenceService.DeleteResourceReferencesBatch:output_type -> proto.DeleteResourceReferencesResponse
|
|
28, // 55: proto.FileReferenceService.DeleteReference:output_type -> proto.DeleteReferenceResponse
|
|
30, // 56: proto.FileReferenceService.UpdateResourceFiles:output_type -> proto.UpdateResourceFilesResponse
|
|
32, // 57: proto.FileReferenceService.SetReferenceExpiration:output_type -> proto.SetReferenceExpirationResponse
|
|
34, // 58: proto.FileReferenceService.SetFileReferencesExpiration:output_type -> proto.SetFileReferencesExpirationResponse
|
|
36, // 59: proto.FileReferenceService.HasFileReferences:output_type -> proto.HasFileReferencesResponse
|
|
40, // [40:60] is the sub-list for method output_type
|
|
20, // [20:40] is the sub-list for method input_type
|
|
20, // [20:20] is the sub-list for extension type_name
|
|
20, // [20:20] is the sub-list for extension extendee
|
|
0, // [0:20] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_file_proto_init() }
|
|
func file_file_proto_init() {
|
|
if File_file_proto != nil {
|
|
return
|
|
}
|
|
file_file_proto_msgTypes[0].OneofWrappers = []any{}
|
|
file_file_proto_msgTypes[16].OneofWrappers = []any{}
|
|
file_file_proto_msgTypes[17].OneofWrappers = []any{}
|
|
file_file_proto_msgTypes[22].OneofWrappers = []any{}
|
|
file_file_proto_msgTypes[24].OneofWrappers = []any{}
|
|
file_file_proto_msgTypes[25].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_file_proto_rawDesc), len(file_file_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 37,
|
|
NumExtensions: 0,
|
|
NumServices: 2,
|
|
},
|
|
GoTypes: file_file_proto_goTypes,
|
|
DependencyIndexes: file_file_proto_depIdxs,
|
|
MessageInfos: file_file_proto_msgTypes,
|
|
}.Build()
|
|
File_file_proto = out.File
|
|
file_file_proto_goTypes = nil
|
|
file_file_proto_depIdxs = nil
|
|
}
|