1323 lines
45 KiB
Go
1323 lines
45 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.12
|
|
// protoc (unknown)
|
|
// source: api/v1/attachment_service.proto
|
|
|
|
package apiv1
|
|
|
|
import (
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
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)
|
|
)
|
|
|
|
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_api_v1_attachment_service_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (MotionMediaFamily) Type() protoreflect.EnumType {
|
|
return &file_api_v1_attachment_service_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x MotionMediaFamily) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use MotionMediaFamily.Descriptor instead.
|
|
func (MotionMediaFamily) EnumDescriptor() ([]byte, []int) {
|
|
return file_api_v1_attachment_service_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
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_api_v1_attachment_service_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (MotionMediaRole) Type() protoreflect.EnumType {
|
|
return &file_api_v1_attachment_service_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x MotionMediaRole) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use MotionMediaRole.Descriptor instead.
|
|
func (MotionMediaRole) EnumDescriptor() ([]byte, []int) {
|
|
return file_api_v1_attachment_service_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type MotionMedia struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Family MotionMediaFamily `protobuf:"varint,1,opt,name=family,proto3,enum=memos.api.v1.MotionMediaFamily" json:"family,omitempty"`
|
|
Role MotionMediaRole `protobuf:"varint,2,opt,name=role,proto3,enum=memos.api.v1.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_api_v1_attachment_service_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_api_v1_attachment_service_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_api_v1_attachment_service_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
|
|
}
|
|
|
|
// MediaMetadata contains normalized metadata explicitly supplied by a client.
|
|
// The server validates and stores this data but does not extract it from the media file.
|
|
type MediaMetadata struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Optional. Display-oriented width in pixels.
|
|
Width *int32 `protobuf:"varint,1,opt,name=width,proto3,oneof" json:"width,omitempty"`
|
|
// Optional. Display-oriented height in pixels.
|
|
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_api_v1_attachment_service_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_api_v1_attachment_service_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_api_v1_attachment_service_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"`
|
|
// Optional. Capture time as recorded by the source media.
|
|
CaptureTime *MediaCaptureTime `protobuf:"bytes,1,opt,name=capture_time,json=captureTime,proto3" json:"capture_time,omitempty"`
|
|
// Optional. Geographic location recorded by the source media.
|
|
Location *MediaLocation `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
|
|
// Optional. EXIF orientation value from 1 through 8 as recorded by the source file.
|
|
// This value is informational and must not be reapplied to the stored attachment;
|
|
// width and height already describe its display-oriented dimensions.
|
|
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_api_v1_attachment_service_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_api_v1_attachment_service_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_api_v1_attachment_service_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"`
|
|
// Local date and time without a time zone, formatted as YYYY-MM-DDTHH:mm:ss[.fraction].
|
|
LocalDateTime string `protobuf:"bytes,1,opt,name=local_date_time,json=localDateTime,proto3" json:"local_date_time,omitempty"`
|
|
// Optional. UTC offset formatted as Z or +/-HH:MM.
|
|
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_api_v1_attachment_service_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_api_v1_attachment_service_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_api_v1_attachment_service_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"`
|
|
// Optional. WGS84 latitude in decimal degrees. Must be provided with longitude.
|
|
Latitude *float64 `protobuf:"fixed64,1,opt,name=latitude,proto3,oneof" json:"latitude,omitempty"`
|
|
// Optional. WGS84 longitude in decimal degrees. Must be provided with latitude.
|
|
Longitude *float64 `protobuf:"fixed64,2,opt,name=longitude,proto3,oneof" json:"longitude,omitempty"`
|
|
// Optional. Signed altitude in meters relative to sea level.
|
|
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_api_v1_attachment_service_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_api_v1_attachment_service_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_api_v1_attachment_service_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_api_v1_attachment_service_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_api_v1_attachment_service_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_api_v1_attachment_service_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *VideoMetadata) GetDurationSeconds() float64 {
|
|
if x != nil && x.DurationSeconds != nil {
|
|
return *x.DurationSeconds
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Attachment struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The name of the attachment.
|
|
// Format: attachments/{attachment}
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// Output only. The creation timestamp.
|
|
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
|
// The filename of the attachment.
|
|
Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"`
|
|
// Input only. The content of the attachment.
|
|
Content []byte `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
|
|
// Optional. The external link of the attachment.
|
|
ExternalLink string `protobuf:"bytes,5,opt,name=external_link,json=externalLink,proto3" json:"external_link,omitempty"`
|
|
// The MIME type of the attachment.
|
|
Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
|
|
// Output only. The size of the attachment in bytes.
|
|
Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"`
|
|
// Optional. The related memo. Refer to `Memo.name`.
|
|
// Format: memos/{memo}
|
|
Memo *string `protobuf:"bytes,8,opt,name=memo,proto3,oneof" json:"memo,omitempty"`
|
|
// Optional. Motion media metadata.
|
|
MotionMedia *MotionMedia `protobuf:"bytes,9,opt,name=motion_media,json=motionMedia,proto3" json:"motion_media,omitempty"`
|
|
// Optional. Immutable normalized media metadata explicitly supplied by the client at creation time.
|
|
MediaMetadata *MediaMetadata `protobuf:"bytes,10,opt,name=media_metadata,json=mediaMetadata,proto3" json:"media_metadata,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Attachment) Reset() {
|
|
*x = Attachment{}
|
|
mi := &file_api_v1_attachment_service_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Attachment) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Attachment) ProtoMessage() {}
|
|
|
|
func (x *Attachment) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_attachment_service_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 Attachment.ProtoReflect.Descriptor instead.
|
|
func (*Attachment) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_attachment_service_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *Attachment) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Attachment) GetCreateTime() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreateTime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Attachment) GetFilename() string {
|
|
if x != nil {
|
|
return x.Filename
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Attachment) GetContent() []byte {
|
|
if x != nil {
|
|
return x.Content
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Attachment) GetExternalLink() string {
|
|
if x != nil {
|
|
return x.ExternalLink
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Attachment) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Attachment) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Attachment) GetMemo() string {
|
|
if x != nil && x.Memo != nil {
|
|
return *x.Memo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Attachment) GetMotionMedia() *MotionMedia {
|
|
if x != nil {
|
|
return x.MotionMedia
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Attachment) GetMediaMetadata() *MediaMetadata {
|
|
if x != nil {
|
|
return x.MediaMetadata
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateAttachmentRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. The attachment to create.
|
|
Attachment *Attachment `protobuf:"bytes,1,opt,name=attachment,proto3" json:"attachment,omitempty"`
|
|
// Optional. The attachment ID to use for this attachment.
|
|
// If empty, a unique ID will be generated.
|
|
// Format: ^[a-zA-Z0-9]([a-zA-Z0-9-]{0,34}[a-zA-Z0-9])?$
|
|
AttachmentId string `protobuf:"bytes,2,opt,name=attachment_id,json=attachmentId,proto3" json:"attachment_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateAttachmentRequest) Reset() {
|
|
*x = CreateAttachmentRequest{}
|
|
mi := &file_api_v1_attachment_service_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateAttachmentRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateAttachmentRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateAttachmentRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_attachment_service_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 CreateAttachmentRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateAttachmentRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_attachment_service_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *CreateAttachmentRequest) GetAttachment() *Attachment {
|
|
if x != nil {
|
|
return x.Attachment
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateAttachmentRequest) GetAttachmentId() string {
|
|
if x != nil {
|
|
return x.AttachmentId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListAttachmentsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Optional. The maximum number of attachments to return.
|
|
// The service may return fewer than this value.
|
|
// If unspecified, at most 50 attachments will be returned.
|
|
// The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
// Optional. A page token, received from a previous `ListAttachments` call.
|
|
// Provide this to retrieve the subsequent page.
|
|
PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
|
// Optional. Filter to apply to the list results.
|
|
// Example: "mime_type==\"image/png\"" or "filename.contains(\"test\")"
|
|
// Supported operators: =, !=, <, <=, >, >=, : (contains), in
|
|
// Supported fields: filename, mime_type, create_time, memo_id, space.
|
|
// `space` only supports a non-negated `==` comparison with a Space resource
|
|
// name or null.
|
|
// `space` is the linked memo's space resource name, or null when the
|
|
// attachment is unlinked or its linked memo has no space.
|
|
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
|
|
// Optional. The order to sort results by.
|
|
// Example: "create_time desc" or "filename asc"
|
|
OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListAttachmentsRequest) Reset() {
|
|
*x = ListAttachmentsRequest{}
|
|
mi := &file_api_v1_attachment_service_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListAttachmentsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListAttachmentsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListAttachmentsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_attachment_service_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 ListAttachmentsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListAttachmentsRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_attachment_service_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *ListAttachmentsRequest) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListAttachmentsRequest) GetPageToken() string {
|
|
if x != nil {
|
|
return x.PageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListAttachmentsRequest) GetFilter() string {
|
|
if x != nil {
|
|
return x.Filter
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListAttachmentsRequest) GetOrderBy() string {
|
|
if x != nil {
|
|
return x.OrderBy
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListAttachmentsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// The list of attachments.
|
|
Attachments []*Attachment `protobuf:"bytes,1,rep,name=attachments,proto3" json:"attachments,omitempty"`
|
|
// A token that can be sent as `page_token` to retrieve the next page.
|
|
// If this field is omitted, there are no subsequent pages.
|
|
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListAttachmentsResponse) Reset() {
|
|
*x = ListAttachmentsResponse{}
|
|
mi := &file_api_v1_attachment_service_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListAttachmentsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListAttachmentsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListAttachmentsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_attachment_service_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 ListAttachmentsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListAttachmentsResponse) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_attachment_service_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *ListAttachmentsResponse) GetAttachments() []*Attachment {
|
|
if x != nil {
|
|
return x.Attachments
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListAttachmentsResponse) GetNextPageToken() string {
|
|
if x != nil {
|
|
return x.NextPageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetAttachmentRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. The attachment name of the attachment to retrieve.
|
|
// Format: attachments/{attachment}
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetAttachmentRequest) Reset() {
|
|
*x = GetAttachmentRequest{}
|
|
mi := &file_api_v1_attachment_service_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetAttachmentRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetAttachmentRequest) ProtoMessage() {}
|
|
|
|
func (x *GetAttachmentRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_attachment_service_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 GetAttachmentRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetAttachmentRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_attachment_service_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *GetAttachmentRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UpdateAttachmentRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. The attachment which replaces the attachment on the server.
|
|
Attachment *Attachment `protobuf:"bytes,1,opt,name=attachment,proto3" json:"attachment,omitempty"`
|
|
// Required. The list of fields to update.
|
|
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 *UpdateAttachmentRequest) Reset() {
|
|
*x = UpdateAttachmentRequest{}
|
|
mi := &file_api_v1_attachment_service_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateAttachmentRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateAttachmentRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateAttachmentRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_attachment_service_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 UpdateAttachmentRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateAttachmentRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_attachment_service_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *UpdateAttachmentRequest) GetAttachment() *Attachment {
|
|
if x != nil {
|
|
return x.Attachment
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateAttachmentRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
|
|
if x != nil {
|
|
return x.UpdateMask
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteAttachmentRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Required. The attachment name of the attachment to delete.
|
|
// Format: attachments/{attachment}
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteAttachmentRequest) Reset() {
|
|
*x = DeleteAttachmentRequest{}
|
|
mi := &file_api_v1_attachment_service_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteAttachmentRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteAttachmentRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteAttachmentRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_attachment_service_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 DeleteAttachmentRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteAttachmentRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_attachment_service_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *DeleteAttachmentRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type BatchDeleteAttachmentsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *BatchDeleteAttachmentsRequest) Reset() {
|
|
*x = BatchDeleteAttachmentsRequest{}
|
|
mi := &file_api_v1_attachment_service_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *BatchDeleteAttachmentsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*BatchDeleteAttachmentsRequest) ProtoMessage() {}
|
|
|
|
func (x *BatchDeleteAttachmentsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_v1_attachment_service_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 BatchDeleteAttachmentsRequest.ProtoReflect.Descriptor instead.
|
|
func (*BatchDeleteAttachmentsRequest) Descriptor() ([]byte, []int) {
|
|
return file_api_v1_attachment_service_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *BatchDeleteAttachmentsRequest) GetNames() []string {
|
|
if x != nil {
|
|
return x.Names
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_api_v1_attachment_service_proto protoreflect.FileDescriptor
|
|
|
|
const file_api_v1_attachment_service_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1fapi/v1/attachment_service.proto\x12\fmemos.api.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfe\x01\n" +
|
|
"\vMotionMedia\x127\n" +
|
|
"\x06family\x18\x01 \x01(\x0e2\x1f.memos.api.v1.MotionMediaFamilyR\x06family\x121\n" +
|
|
"\x04role\x18\x02 \x01(\x0e2\x1d.memos.api.v1.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\"\xd1\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\x123\n" +
|
|
"\x05photo\x18\x03 \x01(\v2\x1b.memos.api.v1.PhotoMetadataH\x00R\x05photo\x123\n" +
|
|
"\x05video\x18\x04 \x01(\v2\x1b.memos.api.v1.VideoMetadataH\x00R\x05videoB\t\n" +
|
|
"\adetailsB\b\n" +
|
|
"\x06_widthB\t\n" +
|
|
"\a_height\"\xa7\x04\n" +
|
|
"\rPhotoMetadata\x12A\n" +
|
|
"\fcapture_time\x18\x01 \x01(\v2\x1e.memos.api.v1.MediaCaptureTimeR\vcaptureTime\x127\n" +
|
|
"\blocation\x18\x02 \x01(\v2\x1b.memos.api.v1.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\"\x8a\x04\n" +
|
|
"\n" +
|
|
"Attachment\x12\x17\n" +
|
|
"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12@\n" +
|
|
"\vcreate_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
|
|
"createTime\x12\x1f\n" +
|
|
"\bfilename\x18\x03 \x01(\tB\x03\xe0A\x02R\bfilename\x12\x1d\n" +
|
|
"\acontent\x18\x04 \x01(\fB\x03\xe0A\x04R\acontent\x12(\n" +
|
|
"\rexternal_link\x18\x05 \x01(\tB\x03\xe0A\x01R\fexternalLink\x12\x17\n" +
|
|
"\x04type\x18\x06 \x01(\tB\x03\xe0A\x02R\x04type\x12\x17\n" +
|
|
"\x04size\x18\a \x01(\x03B\x03\xe0A\x03R\x04size\x12\x1c\n" +
|
|
"\x04memo\x18\b \x01(\tB\x03\xe0A\x01H\x00R\x04memo\x88\x01\x01\x12A\n" +
|
|
"\fmotion_media\x18\t \x01(\v2\x19.memos.api.v1.MotionMediaB\x03\xe0A\x01R\vmotionMedia\x12J\n" +
|
|
"\x0emedia_metadata\x18\n" +
|
|
" \x01(\v2\x1b.memos.api.v1.MediaMetadataB\x06\xe0A\x01\xe0A\x05R\rmediaMetadata:O\xeaAL\n" +
|
|
"\x17memos.api.v1/Attachment\x12\x18attachments/{attachment}*\vattachments2\n" +
|
|
"attachmentB\a\n" +
|
|
"\x05_memo\"\x82\x01\n" +
|
|
"\x17CreateAttachmentRequest\x12=\n" +
|
|
"\n" +
|
|
"attachment\x18\x01 \x01(\v2\x18.memos.api.v1.AttachmentB\x03\xe0A\x02R\n" +
|
|
"attachment\x12(\n" +
|
|
"\rattachment_id\x18\x02 \x01(\tB\x03\xe0A\x01R\fattachmentId\"\xba\x01\n" +
|
|
"\x16ListAttachmentsRequest\x12 \n" +
|
|
"\tpage_size\x18\x01 \x01(\x05B\x03\xe0A\x01R\bpageSize\x12\"\n" +
|
|
"\n" +
|
|
"page_token\x18\x02 \x01(\tB\x03\xe0A\x01R\tpageToken\x12\x1b\n" +
|
|
"\x06filter\x18\x03 \x01(\tB\x03\xe0A\x01R\x06filter\x12\x1e\n" +
|
|
"\border_by\x18\x04 \x01(\tB\x03\xe0A\x01R\aorderByJ\x04\b\x05\x10\x06J\x04\b\x06\x10\aR\x05spaceR\n" +
|
|
"unassigned\"}\n" +
|
|
"\x17ListAttachmentsResponse\x12:\n" +
|
|
"\vattachments\x18\x01 \x03(\v2\x18.memos.api.v1.AttachmentR\vattachments\x12&\n" +
|
|
"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"K\n" +
|
|
"\x14GetAttachmentRequest\x123\n" +
|
|
"\x04name\x18\x01 \x01(\tB\x1f\xe0A\x02\xfaA\x19\n" +
|
|
"\x17memos.api.v1/AttachmentR\x04name\"\x9a\x01\n" +
|
|
"\x17UpdateAttachmentRequest\x12=\n" +
|
|
"\n" +
|
|
"attachment\x18\x01 \x01(\v2\x18.memos.api.v1.AttachmentB\x03\xe0A\x02R\n" +
|
|
"attachment\x12@\n" +
|
|
"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x02R\n" +
|
|
"updateMask\"N\n" +
|
|
"\x17DeleteAttachmentRequest\x123\n" +
|
|
"\x04name\x18\x01 \x01(\tB\x1f\xe0A\x02\xfaA\x19\n" +
|
|
"\x17memos.api.v1/AttachmentR\x04name\":\n" +
|
|
"\x1dBatchDeleteAttachmentsRequest\x12\x19\n" +
|
|
"\x05names\x18\x01 \x03(\tB\x03\xe0A\x02R\x05names*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\x032\xd0\x06\n" +
|
|
"\x11AttachmentService\x12\x89\x01\n" +
|
|
"\x10CreateAttachment\x12%.memos.api.v1.CreateAttachmentRequest\x1a\x18.memos.api.v1.Attachment\"4\xdaA\n" +
|
|
"attachment\x82\xd3\xe4\x93\x02!:\n" +
|
|
"attachment\"\x13/api/v1/attachments\x12{\n" +
|
|
"\x0fListAttachments\x12$.memos.api.v1.ListAttachmentsRequest\x1a%.memos.api.v1.ListAttachmentsResponse\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/api/v1/attachments\x12z\n" +
|
|
"\rGetAttachment\x12\".memos.api.v1.GetAttachmentRequest\x1a\x18.memos.api.v1.Attachment\"+\xdaA\x04name\x82\xd3\xe4\x93\x02\x1e\x12\x1c/api/v1/{name=attachments/*}\x12\xa9\x01\n" +
|
|
"\x10UpdateAttachment\x12%.memos.api.v1.UpdateAttachmentRequest\x1a\x18.memos.api.v1.Attachment\"T\xdaA\x16attachment,update_mask\x82\xd3\xe4\x93\x025:\n" +
|
|
"attachment2'/api/v1/{attachment.name=attachments/*}\x12~\n" +
|
|
"\x10DeleteAttachment\x12%.memos.api.v1.DeleteAttachmentRequest\x1a\x16.google.protobuf.Empty\"+\xdaA\x04name\x82\xd3\xe4\x93\x02\x1e*\x1c/api/v1/{name=attachments/*}\x12\x89\x01\n" +
|
|
"\x16BatchDeleteAttachments\x12+.memos.api.v1.BatchDeleteAttachmentsRequest\x1a\x16.google.protobuf.Empty\"*\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/api/v1/attachments:batchDeleteB\xae\x01\n" +
|
|
"\x10com.memos.api.v1B\x16AttachmentServiceProtoP\x01Z0github.com/usememos/memos/proto/gen/api/v1;apiv1\xa2\x02\x03MAX\xaa\x02\fMemos.Api.V1\xca\x02\fMemos\\Api\\V1\xe2\x02\x18Memos\\Api\\V1\\GPBMetadata\xea\x02\x0eMemos::Api::V1b\x06proto3"
|
|
|
|
var (
|
|
file_api_v1_attachment_service_proto_rawDescOnce sync.Once
|
|
file_api_v1_attachment_service_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_api_v1_attachment_service_proto_rawDescGZIP() []byte {
|
|
file_api_v1_attachment_service_proto_rawDescOnce.Do(func() {
|
|
file_api_v1_attachment_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_v1_attachment_service_proto_rawDesc), len(file_api_v1_attachment_service_proto_rawDesc)))
|
|
})
|
|
return file_api_v1_attachment_service_proto_rawDescData
|
|
}
|
|
|
|
var file_api_v1_attachment_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
|
var file_api_v1_attachment_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
|
var file_api_v1_attachment_service_proto_goTypes = []any{
|
|
(MotionMediaFamily)(0), // 0: memos.api.v1.MotionMediaFamily
|
|
(MotionMediaRole)(0), // 1: memos.api.v1.MotionMediaRole
|
|
(*MotionMedia)(nil), // 2: memos.api.v1.MotionMedia
|
|
(*MediaMetadata)(nil), // 3: memos.api.v1.MediaMetadata
|
|
(*PhotoMetadata)(nil), // 4: memos.api.v1.PhotoMetadata
|
|
(*MediaCaptureTime)(nil), // 5: memos.api.v1.MediaCaptureTime
|
|
(*MediaLocation)(nil), // 6: memos.api.v1.MediaLocation
|
|
(*VideoMetadata)(nil), // 7: memos.api.v1.VideoMetadata
|
|
(*Attachment)(nil), // 8: memos.api.v1.Attachment
|
|
(*CreateAttachmentRequest)(nil), // 9: memos.api.v1.CreateAttachmentRequest
|
|
(*ListAttachmentsRequest)(nil), // 10: memos.api.v1.ListAttachmentsRequest
|
|
(*ListAttachmentsResponse)(nil), // 11: memos.api.v1.ListAttachmentsResponse
|
|
(*GetAttachmentRequest)(nil), // 12: memos.api.v1.GetAttachmentRequest
|
|
(*UpdateAttachmentRequest)(nil), // 13: memos.api.v1.UpdateAttachmentRequest
|
|
(*DeleteAttachmentRequest)(nil), // 14: memos.api.v1.DeleteAttachmentRequest
|
|
(*BatchDeleteAttachmentsRequest)(nil), // 15: memos.api.v1.BatchDeleteAttachmentsRequest
|
|
(*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp
|
|
(*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask
|
|
(*emptypb.Empty)(nil), // 18: google.protobuf.Empty
|
|
}
|
|
var file_api_v1_attachment_service_proto_depIdxs = []int32{
|
|
0, // 0: memos.api.v1.MotionMedia.family:type_name -> memos.api.v1.MotionMediaFamily
|
|
1, // 1: memos.api.v1.MotionMedia.role:type_name -> memos.api.v1.MotionMediaRole
|
|
4, // 2: memos.api.v1.MediaMetadata.photo:type_name -> memos.api.v1.PhotoMetadata
|
|
7, // 3: memos.api.v1.MediaMetadata.video:type_name -> memos.api.v1.VideoMetadata
|
|
5, // 4: memos.api.v1.PhotoMetadata.capture_time:type_name -> memos.api.v1.MediaCaptureTime
|
|
6, // 5: memos.api.v1.PhotoMetadata.location:type_name -> memos.api.v1.MediaLocation
|
|
16, // 6: memos.api.v1.Attachment.create_time:type_name -> google.protobuf.Timestamp
|
|
2, // 7: memos.api.v1.Attachment.motion_media:type_name -> memos.api.v1.MotionMedia
|
|
3, // 8: memos.api.v1.Attachment.media_metadata:type_name -> memos.api.v1.MediaMetadata
|
|
8, // 9: memos.api.v1.CreateAttachmentRequest.attachment:type_name -> memos.api.v1.Attachment
|
|
8, // 10: memos.api.v1.ListAttachmentsResponse.attachments:type_name -> memos.api.v1.Attachment
|
|
8, // 11: memos.api.v1.UpdateAttachmentRequest.attachment:type_name -> memos.api.v1.Attachment
|
|
17, // 12: memos.api.v1.UpdateAttachmentRequest.update_mask:type_name -> google.protobuf.FieldMask
|
|
9, // 13: memos.api.v1.AttachmentService.CreateAttachment:input_type -> memos.api.v1.CreateAttachmentRequest
|
|
10, // 14: memos.api.v1.AttachmentService.ListAttachments:input_type -> memos.api.v1.ListAttachmentsRequest
|
|
12, // 15: memos.api.v1.AttachmentService.GetAttachment:input_type -> memos.api.v1.GetAttachmentRequest
|
|
13, // 16: memos.api.v1.AttachmentService.UpdateAttachment:input_type -> memos.api.v1.UpdateAttachmentRequest
|
|
14, // 17: memos.api.v1.AttachmentService.DeleteAttachment:input_type -> memos.api.v1.DeleteAttachmentRequest
|
|
15, // 18: memos.api.v1.AttachmentService.BatchDeleteAttachments:input_type -> memos.api.v1.BatchDeleteAttachmentsRequest
|
|
8, // 19: memos.api.v1.AttachmentService.CreateAttachment:output_type -> memos.api.v1.Attachment
|
|
11, // 20: memos.api.v1.AttachmentService.ListAttachments:output_type -> memos.api.v1.ListAttachmentsResponse
|
|
8, // 21: memos.api.v1.AttachmentService.GetAttachment:output_type -> memos.api.v1.Attachment
|
|
8, // 22: memos.api.v1.AttachmentService.UpdateAttachment:output_type -> memos.api.v1.Attachment
|
|
18, // 23: memos.api.v1.AttachmentService.DeleteAttachment:output_type -> google.protobuf.Empty
|
|
18, // 24: memos.api.v1.AttachmentService.BatchDeleteAttachments:output_type -> google.protobuf.Empty
|
|
19, // [19:25] is the sub-list for method output_type
|
|
13, // [13:19] is the sub-list for method input_type
|
|
13, // [13:13] is the sub-list for extension type_name
|
|
13, // [13:13] is the sub-list for extension extendee
|
|
0, // [0:13] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_api_v1_attachment_service_proto_init() }
|
|
func file_api_v1_attachment_service_proto_init() {
|
|
if File_api_v1_attachment_service_proto != nil {
|
|
return
|
|
}
|
|
file_api_v1_attachment_service_proto_msgTypes[1].OneofWrappers = []any{
|
|
(*MediaMetadata_Photo)(nil),
|
|
(*MediaMetadata_Video)(nil),
|
|
}
|
|
file_api_v1_attachment_service_proto_msgTypes[2].OneofWrappers = []any{}
|
|
file_api_v1_attachment_service_proto_msgTypes[3].OneofWrappers = []any{}
|
|
file_api_v1_attachment_service_proto_msgTypes[4].OneofWrappers = []any{}
|
|
file_api_v1_attachment_service_proto_msgTypes[5].OneofWrappers = []any{}
|
|
file_api_v1_attachment_service_proto_msgTypes[6].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_v1_attachment_service_proto_rawDesc), len(file_api_v1_attachment_service_proto_rawDesc)),
|
|
NumEnums: 2,
|
|
NumMessages: 14,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_api_v1_attachment_service_proto_goTypes,
|
|
DependencyIndexes: file_api_v1_attachment_service_proto_depIdxs,
|
|
EnumInfos: file_api_v1_attachment_service_proto_enumTypes,
|
|
MessageInfos: file_api_v1_attachment_service_proto_msgTypes,
|
|
}.Build()
|
|
File_api_v1_attachment_service_proto = out.File
|
|
file_api_v1_attachment_service_proto_goTypes = nil
|
|
file_api_v1_attachment_service_proto_depIdxs = nil
|
|
}
|