// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.12 // protoc (unknown) // source: store/attachment.proto package store import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" 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) ) type AttachmentStorageType int32 const ( AttachmentStorageType_ATTACHMENT_STORAGE_TYPE_UNSPECIFIED AttachmentStorageType = 0 // Attachment is stored locally. AKA, local file system. AttachmentStorageType_LOCAL AttachmentStorageType = 1 // Attachment is stored in S3. AttachmentStorageType_S3 AttachmentStorageType = 2 // Attachment is stored in an external storage. The reference is a URL. AttachmentStorageType_EXTERNAL AttachmentStorageType = 3 ) // Enum value maps for AttachmentStorageType. var ( AttachmentStorageType_name = map[int32]string{ 0: "ATTACHMENT_STORAGE_TYPE_UNSPECIFIED", 1: "LOCAL", 2: "S3", 3: "EXTERNAL", } AttachmentStorageType_value = map[string]int32{ "ATTACHMENT_STORAGE_TYPE_UNSPECIFIED": 0, "LOCAL": 1, "S3": 2, "EXTERNAL": 3, } ) func (x AttachmentStorageType) Enum() *AttachmentStorageType { p := new(AttachmentStorageType) *p = x return p } func (x AttachmentStorageType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (AttachmentStorageType) Descriptor() protoreflect.EnumDescriptor { return file_store_attachment_proto_enumTypes[0].Descriptor() } func (AttachmentStorageType) Type() protoreflect.EnumType { return &file_store_attachment_proto_enumTypes[0] } func (x AttachmentStorageType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use AttachmentStorageType.Descriptor instead. func (AttachmentStorageType) EnumDescriptor() ([]byte, []int) { return file_store_attachment_proto_rawDescGZIP(), []int{0} } type MotionMediaFamily int32 const ( MotionMediaFamily_MOTION_MEDIA_FAMILY_UNSPECIFIED MotionMediaFamily = 0 MotionMediaFamily_APPLE_LIVE_PHOTO MotionMediaFamily = 1 MotionMediaFamily_ANDROID_MOTION_PHOTO MotionMediaFamily = 2 ) // Enum value maps for MotionMediaFamily. var ( MotionMediaFamily_name = map[int32]string{ 0: "MOTION_MEDIA_FAMILY_UNSPECIFIED", 1: "APPLE_LIVE_PHOTO", 2: "ANDROID_MOTION_PHOTO", } MotionMediaFamily_value = map[string]int32{ "MOTION_MEDIA_FAMILY_UNSPECIFIED": 0, "APPLE_LIVE_PHOTO": 1, "ANDROID_MOTION_PHOTO": 2, } ) func (x MotionMediaFamily) Enum() *MotionMediaFamily { p := new(MotionMediaFamily) *p = x return p } func (x MotionMediaFamily) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (MotionMediaFamily) Descriptor() protoreflect.EnumDescriptor { return file_store_attachment_proto_enumTypes[1].Descriptor() } func (MotionMediaFamily) Type() protoreflect.EnumType { return &file_store_attachment_proto_enumTypes[1] } func (x MotionMediaFamily) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use MotionMediaFamily.Descriptor instead. func (MotionMediaFamily) EnumDescriptor() ([]byte, []int) { return file_store_attachment_proto_rawDescGZIP(), []int{1} } type MotionMediaRole int32 const ( MotionMediaRole_MOTION_MEDIA_ROLE_UNSPECIFIED MotionMediaRole = 0 MotionMediaRole_STILL MotionMediaRole = 1 MotionMediaRole_VIDEO MotionMediaRole = 2 MotionMediaRole_CONTAINER MotionMediaRole = 3 ) // Enum value maps for MotionMediaRole. var ( MotionMediaRole_name = map[int32]string{ 0: "MOTION_MEDIA_ROLE_UNSPECIFIED", 1: "STILL", 2: "VIDEO", 3: "CONTAINER", } MotionMediaRole_value = map[string]int32{ "MOTION_MEDIA_ROLE_UNSPECIFIED": 0, "STILL": 1, "VIDEO": 2, "CONTAINER": 3, } ) func (x MotionMediaRole) Enum() *MotionMediaRole { p := new(MotionMediaRole) *p = x return p } func (x MotionMediaRole) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (MotionMediaRole) Descriptor() protoreflect.EnumDescriptor { return file_store_attachment_proto_enumTypes[2].Descriptor() } func (MotionMediaRole) Type() protoreflect.EnumType { return &file_store_attachment_proto_enumTypes[2] } func (x MotionMediaRole) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use MotionMediaRole.Descriptor instead. func (MotionMediaRole) EnumDescriptor() ([]byte, []int) { return file_store_attachment_proto_rawDescGZIP(), []int{2} } type MotionMedia struct { state protoimpl.MessageState `protogen:"open.v1"` Family MotionMediaFamily `protobuf:"varint,1,opt,name=family,proto3,enum=memos.store.MotionMediaFamily" json:"family,omitempty"` Role MotionMediaRole `protobuf:"varint,2,opt,name=role,proto3,enum=memos.store.MotionMediaRole" json:"role,omitempty"` GroupId string `protobuf:"bytes,3,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` PresentationTimestampUs int64 `protobuf:"varint,4,opt,name=presentation_timestamp_us,json=presentationTimestampUs,proto3" json:"presentation_timestamp_us,omitempty"` HasEmbeddedVideo bool `protobuf:"varint,5,opt,name=has_embedded_video,json=hasEmbeddedVideo,proto3" json:"has_embedded_video,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MotionMedia) Reset() { *x = MotionMedia{} mi := &file_store_attachment_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MotionMedia) String() string { return protoimpl.X.MessageStringOf(x) } func (*MotionMedia) ProtoMessage() {} func (x *MotionMedia) ProtoReflect() protoreflect.Message { mi := &file_store_attachment_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 MotionMedia.ProtoReflect.Descriptor instead. func (*MotionMedia) Descriptor() ([]byte, []int) { return file_store_attachment_proto_rawDescGZIP(), []int{0} } func (x *MotionMedia) GetFamily() MotionMediaFamily { if x != nil { return x.Family } return MotionMediaFamily_MOTION_MEDIA_FAMILY_UNSPECIFIED } func (x *MotionMedia) GetRole() MotionMediaRole { if x != nil { return x.Role } return MotionMediaRole_MOTION_MEDIA_ROLE_UNSPECIFIED } func (x *MotionMedia) GetGroupId() string { if x != nil { return x.GroupId } return "" } func (x *MotionMedia) GetPresentationTimestampUs() int64 { if x != nil { return x.PresentationTimestampUs } return 0 } func (x *MotionMedia) GetHasEmbeddedVideo() bool { if x != nil { return x.HasEmbeddedVideo } return false } type MediaMetadata struct { state protoimpl.MessageState `protogen:"open.v1"` Width *int32 `protobuf:"varint,1,opt,name=width,proto3,oneof" json:"width,omitempty"` Height *int32 `protobuf:"varint,2,opt,name=height,proto3,oneof" json:"height,omitempty"` // Types that are valid to be assigned to Details: // // *MediaMetadata_Photo // *MediaMetadata_Video Details isMediaMetadata_Details `protobuf_oneof:"details"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MediaMetadata) Reset() { *x = MediaMetadata{} mi := &file_store_attachment_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MediaMetadata) String() string { return protoimpl.X.MessageStringOf(x) } func (*MediaMetadata) ProtoMessage() {} func (x *MediaMetadata) ProtoReflect() protoreflect.Message { mi := &file_store_attachment_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 MediaMetadata.ProtoReflect.Descriptor instead. func (*MediaMetadata) Descriptor() ([]byte, []int) { return file_store_attachment_proto_rawDescGZIP(), []int{1} } func (x *MediaMetadata) GetWidth() int32 { if x != nil && x.Width != nil { return *x.Width } return 0 } func (x *MediaMetadata) GetHeight() int32 { if x != nil && x.Height != nil { return *x.Height } return 0 } func (x *MediaMetadata) GetDetails() isMediaMetadata_Details { if x != nil { return x.Details } return nil } func (x *MediaMetadata) GetPhoto() *PhotoMetadata { if x != nil { if x, ok := x.Details.(*MediaMetadata_Photo); ok { return x.Photo } } return nil } func (x *MediaMetadata) GetVideo() *VideoMetadata { if x != nil { if x, ok := x.Details.(*MediaMetadata_Video); ok { return x.Video } } return nil } type isMediaMetadata_Details interface { isMediaMetadata_Details() } type MediaMetadata_Photo struct { Photo *PhotoMetadata `protobuf:"bytes,3,opt,name=photo,proto3,oneof"` } type MediaMetadata_Video struct { Video *VideoMetadata `protobuf:"bytes,4,opt,name=video,proto3,oneof"` } func (*MediaMetadata_Photo) isMediaMetadata_Details() {} func (*MediaMetadata_Video) isMediaMetadata_Details() {} type PhotoMetadata struct { state protoimpl.MessageState `protogen:"open.v1"` CaptureTime *MediaCaptureTime `protobuf:"bytes,1,opt,name=capture_time,json=captureTime,proto3" json:"capture_time,omitempty"` Location *MediaLocation `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` SourceExifOrientation *int32 `protobuf:"varint,3,opt,name=source_exif_orientation,json=sourceExifOrientation,proto3,oneof" json:"source_exif_orientation,omitempty"` CameraMake string `protobuf:"bytes,4,opt,name=camera_make,json=cameraMake,proto3" json:"camera_make,omitempty"` CameraModel string `protobuf:"bytes,5,opt,name=camera_model,json=cameraModel,proto3" json:"camera_model,omitempty"` LensModel string `protobuf:"bytes,6,opt,name=lens_model,json=lensModel,proto3" json:"lens_model,omitempty"` FNumber *float64 `protobuf:"fixed64,7,opt,name=f_number,json=fNumber,proto3,oneof" json:"f_number,omitempty"` ExposureTimeSeconds *float64 `protobuf:"fixed64,8,opt,name=exposure_time_seconds,json=exposureTimeSeconds,proto3,oneof" json:"exposure_time_seconds,omitempty"` Iso *int32 `protobuf:"varint,9,opt,name=iso,proto3,oneof" json:"iso,omitempty"` FocalLengthMm *float64 `protobuf:"fixed64,10,opt,name=focal_length_mm,json=focalLengthMm,proto3,oneof" json:"focal_length_mm,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PhotoMetadata) Reset() { *x = PhotoMetadata{} mi := &file_store_attachment_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PhotoMetadata) String() string { return protoimpl.X.MessageStringOf(x) } func (*PhotoMetadata) ProtoMessage() {} func (x *PhotoMetadata) ProtoReflect() protoreflect.Message { mi := &file_store_attachment_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 PhotoMetadata.ProtoReflect.Descriptor instead. func (*PhotoMetadata) Descriptor() ([]byte, []int) { return file_store_attachment_proto_rawDescGZIP(), []int{2} } func (x *PhotoMetadata) GetCaptureTime() *MediaCaptureTime { if x != nil { return x.CaptureTime } return nil } func (x *PhotoMetadata) GetLocation() *MediaLocation { if x != nil { return x.Location } return nil } func (x *PhotoMetadata) GetSourceExifOrientation() int32 { if x != nil && x.SourceExifOrientation != nil { return *x.SourceExifOrientation } return 0 } func (x *PhotoMetadata) GetCameraMake() string { if x != nil { return x.CameraMake } return "" } func (x *PhotoMetadata) GetCameraModel() string { if x != nil { return x.CameraModel } return "" } func (x *PhotoMetadata) GetLensModel() string { if x != nil { return x.LensModel } return "" } func (x *PhotoMetadata) GetFNumber() float64 { if x != nil && x.FNumber != nil { return *x.FNumber } return 0 } func (x *PhotoMetadata) GetExposureTimeSeconds() float64 { if x != nil && x.ExposureTimeSeconds != nil { return *x.ExposureTimeSeconds } return 0 } func (x *PhotoMetadata) GetIso() int32 { if x != nil && x.Iso != nil { return *x.Iso } return 0 } func (x *PhotoMetadata) GetFocalLengthMm() float64 { if x != nil && x.FocalLengthMm != nil { return *x.FocalLengthMm } return 0 } type MediaCaptureTime struct { state protoimpl.MessageState `protogen:"open.v1"` LocalDateTime string `protobuf:"bytes,1,opt,name=local_date_time,json=localDateTime,proto3" json:"local_date_time,omitempty"` UtcOffset *string `protobuf:"bytes,2,opt,name=utc_offset,json=utcOffset,proto3,oneof" json:"utc_offset,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MediaCaptureTime) Reset() { *x = MediaCaptureTime{} mi := &file_store_attachment_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MediaCaptureTime) String() string { return protoimpl.X.MessageStringOf(x) } func (*MediaCaptureTime) ProtoMessage() {} func (x *MediaCaptureTime) ProtoReflect() protoreflect.Message { mi := &file_store_attachment_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 MediaCaptureTime.ProtoReflect.Descriptor instead. func (*MediaCaptureTime) Descriptor() ([]byte, []int) { return file_store_attachment_proto_rawDescGZIP(), []int{3} } func (x *MediaCaptureTime) GetLocalDateTime() string { if x != nil { return x.LocalDateTime } return "" } func (x *MediaCaptureTime) GetUtcOffset() string { if x != nil && x.UtcOffset != nil { return *x.UtcOffset } return "" } type MediaLocation struct { state protoimpl.MessageState `protogen:"open.v1"` Latitude *float64 `protobuf:"fixed64,1,opt,name=latitude,proto3,oneof" json:"latitude,omitempty"` Longitude *float64 `protobuf:"fixed64,2,opt,name=longitude,proto3,oneof" json:"longitude,omitempty"` AltitudeMeters *float64 `protobuf:"fixed64,3,opt,name=altitude_meters,json=altitudeMeters,proto3,oneof" json:"altitude_meters,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MediaLocation) Reset() { *x = MediaLocation{} mi := &file_store_attachment_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MediaLocation) String() string { return protoimpl.X.MessageStringOf(x) } func (*MediaLocation) ProtoMessage() {} func (x *MediaLocation) ProtoReflect() protoreflect.Message { mi := &file_store_attachment_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 MediaLocation.ProtoReflect.Descriptor instead. func (*MediaLocation) Descriptor() ([]byte, []int) { return file_store_attachment_proto_rawDescGZIP(), []int{4} } func (x *MediaLocation) GetLatitude() float64 { if x != nil && x.Latitude != nil { return *x.Latitude } return 0 } func (x *MediaLocation) GetLongitude() float64 { if x != nil && x.Longitude != nil { return *x.Longitude } return 0 } func (x *MediaLocation) GetAltitudeMeters() float64 { if x != nil && x.AltitudeMeters != nil { return *x.AltitudeMeters } return 0 } type VideoMetadata struct { state protoimpl.MessageState `protogen:"open.v1"` DurationSeconds *float64 `protobuf:"fixed64,1,opt,name=duration_seconds,json=durationSeconds,proto3,oneof" json:"duration_seconds,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *VideoMetadata) Reset() { *x = VideoMetadata{} mi := &file_store_attachment_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *VideoMetadata) String() string { return protoimpl.X.MessageStringOf(x) } func (*VideoMetadata) ProtoMessage() {} func (x *VideoMetadata) ProtoReflect() protoreflect.Message { mi := &file_store_attachment_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 VideoMetadata.ProtoReflect.Descriptor instead. func (*VideoMetadata) Descriptor() ([]byte, []int) { return file_store_attachment_proto_rawDescGZIP(), []int{5} } func (x *VideoMetadata) GetDurationSeconds() float64 { if x != nil && x.DurationSeconds != nil { return *x.DurationSeconds } return 0 } type AttachmentPayload struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Payload: // // *AttachmentPayload_S3Object_ Payload isAttachmentPayload_Payload `protobuf_oneof:"payload"` MotionMedia *MotionMedia `protobuf:"bytes,10,opt,name=motion_media,json=motionMedia,proto3" json:"motion_media,omitempty"` MediaMetadata *MediaMetadata `protobuf:"bytes,11,opt,name=media_metadata,json=mediaMetadata,proto3" json:"media_metadata,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AttachmentPayload) Reset() { *x = AttachmentPayload{} mi := &file_store_attachment_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AttachmentPayload) String() string { return protoimpl.X.MessageStringOf(x) } func (*AttachmentPayload) ProtoMessage() {} func (x *AttachmentPayload) ProtoReflect() protoreflect.Message { mi := &file_store_attachment_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 AttachmentPayload.ProtoReflect.Descriptor instead. func (*AttachmentPayload) Descriptor() ([]byte, []int) { return file_store_attachment_proto_rawDescGZIP(), []int{6} } func (x *AttachmentPayload) GetPayload() isAttachmentPayload_Payload { if x != nil { return x.Payload } return nil } func (x *AttachmentPayload) GetS3Object() *AttachmentPayload_S3Object { if x != nil { if x, ok := x.Payload.(*AttachmentPayload_S3Object_); ok { return x.S3Object } } return nil } func (x *AttachmentPayload) GetMotionMedia() *MotionMedia { if x != nil { return x.MotionMedia } return nil } func (x *AttachmentPayload) GetMediaMetadata() *MediaMetadata { if x != nil { return x.MediaMetadata } return nil } type isAttachmentPayload_Payload interface { isAttachmentPayload_Payload() } type AttachmentPayload_S3Object_ struct { S3Object *AttachmentPayload_S3Object `protobuf:"bytes,1,opt,name=s3_object,json=s3Object,proto3,oneof"` } func (*AttachmentPayload_S3Object_) isAttachmentPayload_Payload() {} type AttachmentPayload_S3Object struct { state protoimpl.MessageState `protogen:"open.v1"` // Legacy attachments embedded their complete S3 configuration. // New attachments resolve storage through storage_id. S3Config *StorageS3Config `protobuf:"bytes,1,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"` // key is the S3 object key. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // storage_id identifies the configured storage containing this object. StorageId string `protobuf:"bytes,4,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AttachmentPayload_S3Object) Reset() { *x = AttachmentPayload_S3Object{} mi := &file_store_attachment_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AttachmentPayload_S3Object) String() string { return protoimpl.X.MessageStringOf(x) } func (*AttachmentPayload_S3Object) ProtoMessage() {} func (x *AttachmentPayload_S3Object) ProtoReflect() protoreflect.Message { mi := &file_store_attachment_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 AttachmentPayload_S3Object.ProtoReflect.Descriptor instead. func (*AttachmentPayload_S3Object) Descriptor() ([]byte, []int) { return file_store_attachment_proto_rawDescGZIP(), []int{6, 0} } func (x *AttachmentPayload_S3Object) GetS3Config() *StorageS3Config { if x != nil { return x.S3Config } return nil } func (x *AttachmentPayload_S3Object) GetKey() string { if x != nil { return x.Key } return "" } func (x *AttachmentPayload_S3Object) GetStorageId() string { if x != nil { return x.StorageId } return "" } var File_store_attachment_proto protoreflect.FileDescriptor const file_store_attachment_proto_rawDesc = "" + "\n" + "\x16store/attachment.proto\x12\vmemos.store\x1a\x1cstore/instance_setting.proto\"\xfc\x01\n" + "\vMotionMedia\x126\n" + "\x06family\x18\x01 \x01(\x0e2\x1e.memos.store.MotionMediaFamilyR\x06family\x120\n" + "\x04role\x18\x02 \x01(\x0e2\x1c.memos.store.MotionMediaRoleR\x04role\x12\x19\n" + "\bgroup_id\x18\x03 \x01(\tR\agroupId\x12:\n" + "\x19presentation_timestamp_us\x18\x04 \x01(\x03R\x17presentationTimestampUs\x12,\n" + "\x12has_embedded_video\x18\x05 \x01(\bR\x10hasEmbeddedVideo\"\xcf\x01\n" + "\rMediaMetadata\x12\x19\n" + "\x05width\x18\x01 \x01(\x05H\x01R\x05width\x88\x01\x01\x12\x1b\n" + "\x06height\x18\x02 \x01(\x05H\x02R\x06height\x88\x01\x01\x122\n" + "\x05photo\x18\x03 \x01(\v2\x1a.memos.store.PhotoMetadataH\x00R\x05photo\x122\n" + "\x05video\x18\x04 \x01(\v2\x1a.memos.store.VideoMetadataH\x00R\x05videoB\t\n" + "\adetailsB\b\n" + "\x06_widthB\t\n" + "\a_height\"\xa5\x04\n" + "\rPhotoMetadata\x12@\n" + "\fcapture_time\x18\x01 \x01(\v2\x1d.memos.store.MediaCaptureTimeR\vcaptureTime\x126\n" + "\blocation\x18\x02 \x01(\v2\x1a.memos.store.MediaLocationR\blocation\x12;\n" + "\x17source_exif_orientation\x18\x03 \x01(\x05H\x00R\x15sourceExifOrientation\x88\x01\x01\x12\x1f\n" + "\vcamera_make\x18\x04 \x01(\tR\n" + "cameraMake\x12!\n" + "\fcamera_model\x18\x05 \x01(\tR\vcameraModel\x12\x1d\n" + "\n" + "lens_model\x18\x06 \x01(\tR\tlensModel\x12\x1e\n" + "\bf_number\x18\a \x01(\x01H\x01R\afNumber\x88\x01\x01\x127\n" + "\x15exposure_time_seconds\x18\b \x01(\x01H\x02R\x13exposureTimeSeconds\x88\x01\x01\x12\x15\n" + "\x03iso\x18\t \x01(\x05H\x03R\x03iso\x88\x01\x01\x12+\n" + "\x0ffocal_length_mm\x18\n" + " \x01(\x01H\x04R\rfocalLengthMm\x88\x01\x01B\x1a\n" + "\x18_source_exif_orientationB\v\n" + "\t_f_numberB\x18\n" + "\x16_exposure_time_secondsB\x06\n" + "\x04_isoB\x12\n" + "\x10_focal_length_mm\"m\n" + "\x10MediaCaptureTime\x12&\n" + "\x0flocal_date_time\x18\x01 \x01(\tR\rlocalDateTime\x12\"\n" + "\n" + "utc_offset\x18\x02 \x01(\tH\x00R\tutcOffset\x88\x01\x01B\r\n" + "\v_utc_offset\"\xb0\x01\n" + "\rMediaLocation\x12\x1f\n" + "\blatitude\x18\x01 \x01(\x01H\x00R\blatitude\x88\x01\x01\x12!\n" + "\tlongitude\x18\x02 \x01(\x01H\x01R\tlongitude\x88\x01\x01\x12,\n" + "\x0faltitude_meters\x18\x03 \x01(\x01H\x02R\x0ealtitudeMeters\x88\x01\x01B\v\n" + "\t_latitudeB\f\n" + "\n" + "_longitudeB\x12\n" + "\x10_altitude_meters\"T\n" + "\rVideoMetadata\x12.\n" + "\x10duration_seconds\x18\x01 \x01(\x01H\x00R\x0fdurationSeconds\x88\x01\x01B\x13\n" + "\x11_duration_seconds\"\xfa\x02\n" + "\x11AttachmentPayload\x12F\n" + "\ts3_object\x18\x01 \x01(\v2'.memos.store.AttachmentPayload.S3ObjectH\x00R\bs3Object\x12;\n" + "\fmotion_media\x18\n" + " \x01(\v2\x18.memos.store.MotionMediaR\vmotionMedia\x12A\n" + "\x0emedia_metadata\x18\v \x01(\v2\x1a.memos.store.MediaMetadataR\rmediaMetadata\x1a\x91\x01\n" + "\bS3Object\x129\n" + "\ts3_config\x18\x01 \x01(\v2\x1c.memos.store.StorageS3ConfigR\bs3Config\x12\x10\n" + "\x03key\x18\x02 \x01(\tR\x03key\x12\x1d\n" + "\n" + "storage_id\x18\x04 \x01(\tR\tstorageIdJ\x04\b\x03\x10\x04R\x13last_presigned_timeB\t\n" + "\apayload*a\n" + "\x15AttachmentStorageType\x12'\n" + "#ATTACHMENT_STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\t\n" + "\x05LOCAL\x10\x01\x12\x06\n" + "\x02S3\x10\x02\x12\f\n" + "\bEXTERNAL\x10\x03*h\n" + "\x11MotionMediaFamily\x12#\n" + "\x1fMOTION_MEDIA_FAMILY_UNSPECIFIED\x10\x00\x12\x14\n" + "\x10APPLE_LIVE_PHOTO\x10\x01\x12\x18\n" + "\x14ANDROID_MOTION_PHOTO\x10\x02*Y\n" + "\x0fMotionMediaRole\x12!\n" + "\x1dMOTION_MEDIA_ROLE_UNSPECIFIED\x10\x00\x12\t\n" + "\x05STILL\x10\x01\x12\t\n" + "\x05VIDEO\x10\x02\x12\r\n" + "\tCONTAINER\x10\x03B\x9a\x01\n" + "\x0fcom.memos.storeB\x0fAttachmentProtoP\x01Z)github.com/usememos/memos/proto/gen/store\xa2\x02\x03MSX\xaa\x02\vMemos.Store\xca\x02\vMemos\\Store\xe2\x02\x17Memos\\Store\\GPBMetadata\xea\x02\fMemos::Storeb\x06proto3" var ( file_store_attachment_proto_rawDescOnce sync.Once file_store_attachment_proto_rawDescData []byte ) func file_store_attachment_proto_rawDescGZIP() []byte { file_store_attachment_proto_rawDescOnce.Do(func() { file_store_attachment_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_store_attachment_proto_rawDesc), len(file_store_attachment_proto_rawDesc))) }) return file_store_attachment_proto_rawDescData } var file_store_attachment_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_store_attachment_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_store_attachment_proto_goTypes = []any{ (AttachmentStorageType)(0), // 0: memos.store.AttachmentStorageType (MotionMediaFamily)(0), // 1: memos.store.MotionMediaFamily (MotionMediaRole)(0), // 2: memos.store.MotionMediaRole (*MotionMedia)(nil), // 3: memos.store.MotionMedia (*MediaMetadata)(nil), // 4: memos.store.MediaMetadata (*PhotoMetadata)(nil), // 5: memos.store.PhotoMetadata (*MediaCaptureTime)(nil), // 6: memos.store.MediaCaptureTime (*MediaLocation)(nil), // 7: memos.store.MediaLocation (*VideoMetadata)(nil), // 8: memos.store.VideoMetadata (*AttachmentPayload)(nil), // 9: memos.store.AttachmentPayload (*AttachmentPayload_S3Object)(nil), // 10: memos.store.AttachmentPayload.S3Object (*StorageS3Config)(nil), // 11: memos.store.StorageS3Config } var file_store_attachment_proto_depIdxs = []int32{ 1, // 0: memos.store.MotionMedia.family:type_name -> memos.store.MotionMediaFamily 2, // 1: memos.store.MotionMedia.role:type_name -> memos.store.MotionMediaRole 5, // 2: memos.store.MediaMetadata.photo:type_name -> memos.store.PhotoMetadata 8, // 3: memos.store.MediaMetadata.video:type_name -> memos.store.VideoMetadata 6, // 4: memos.store.PhotoMetadata.capture_time:type_name -> memos.store.MediaCaptureTime 7, // 5: memos.store.PhotoMetadata.location:type_name -> memos.store.MediaLocation 10, // 6: memos.store.AttachmentPayload.s3_object:type_name -> memos.store.AttachmentPayload.S3Object 3, // 7: memos.store.AttachmentPayload.motion_media:type_name -> memos.store.MotionMedia 4, // 8: memos.store.AttachmentPayload.media_metadata:type_name -> memos.store.MediaMetadata 11, // 9: memos.store.AttachmentPayload.S3Object.s3_config:type_name -> memos.store.StorageS3Config 10, // [10:10] is the sub-list for method output_type 10, // [10:10] is the sub-list for method input_type 10, // [10:10] is the sub-list for extension type_name 10, // [10:10] is the sub-list for extension extendee 0, // [0:10] is the sub-list for field type_name } func init() { file_store_attachment_proto_init() } func file_store_attachment_proto_init() { if File_store_attachment_proto != nil { return } file_store_instance_setting_proto_init() file_store_attachment_proto_msgTypes[1].OneofWrappers = []any{ (*MediaMetadata_Photo)(nil), (*MediaMetadata_Video)(nil), } file_store_attachment_proto_msgTypes[2].OneofWrappers = []any{} file_store_attachment_proto_msgTypes[3].OneofWrappers = []any{} file_store_attachment_proto_msgTypes[4].OneofWrappers = []any{} file_store_attachment_proto_msgTypes[5].OneofWrappers = []any{} file_store_attachment_proto_msgTypes[6].OneofWrappers = []any{ (*AttachmentPayload_S3Object_)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_attachment_proto_rawDesc), len(file_store_attachment_proto_rawDesc)), NumEnums: 3, NumMessages: 8, NumExtensions: 0, NumServices: 0, }, GoTypes: file_store_attachment_proto_goTypes, DependencyIndexes: file_store_attachment_proto_depIdxs, EnumInfos: file_store_attachment_proto_enumTypes, MessageInfos: file_store_attachment_proto_msgTypes, }.Build() File_store_attachment_proto = out.File file_store_attachment_proto_goTypes = nil file_store_attachment_proto_depIdxs = nil }