803 lines
		
	
	
		
			28 KiB
		
	
	
	
		
			Dart
		
	
	
	
			
		
		
	
	
			803 lines
		
	
	
		
			28 KiB
		
	
	
	
		
			Dart
		
	
	
	
| // This is a generated file - do not edit.
 | |
| //
 | |
| // Generated from album.proto.
 | |
| 
 | |
| // @dart = 3.3
 | |
| 
 | |
| // ignore_for_file: annotate_overrides, camel_case_types, comment_references
 | |
| // ignore_for_file: constant_identifier_names
 | |
| // ignore_for_file: curly_braces_in_flow_control_structures
 | |
| // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
 | |
| // ignore_for_file: non_constant_identifier_names
 | |
| 
 | |
| import 'dart:core' as $core;
 | |
| 
 | |
| import 'package:fixnum/fixnum.dart' as $fixnum;
 | |
| import 'package:protobuf/protobuf.dart' as $pb;
 | |
| 
 | |
| export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
 | |
| 
 | |
| /// 请求消息定义
 | |
| class CreateAlbumRequest extends $pb.GeneratedMessage {
 | |
|   factory CreateAlbumRequest({
 | |
|     $fixnum.Int64? cloudId,
 | |
|     $core.String? cloudIdentity,
 | |
|     $core.String? name,
 | |
|     $core.String? description,
 | |
|     $core.String? coverPhoto,
 | |
|     $core.bool? isPrivate,
 | |
|   }) {
 | |
|     final result = create();
 | |
|     if (cloudId != null) result.cloudId = cloudId;
 | |
|     if (cloudIdentity != null) result.cloudIdentity = cloudIdentity;
 | |
|     if (name != null) result.name = name;
 | |
|     if (description != null) result.description = description;
 | |
|     if (coverPhoto != null) result.coverPhoto = coverPhoto;
 | |
|     if (isPrivate != null) result.isPrivate = isPrivate;
 | |
|     return result;
 | |
|   }
 | |
| 
 | |
|   CreateAlbumRequest._();
 | |
| 
 | |
|   factory CreateAlbumRequest.fromBuffer($core.List<$core.int> data,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromBuffer(data, registry);
 | |
|   factory CreateAlbumRequest.fromJson($core.String json,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromJson(json, registry);
 | |
| 
 | |
|   static final $pb.BuilderInfo _i = $pb.BuilderInfo(
 | |
|       _omitMessageNames ? '' : 'CreateAlbumRequest',
 | |
|       package: const $pb.PackageName(_omitMessageNames ? '' : 'cloud'),
 | |
|       createEmptyInstance: create)
 | |
|     ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'cloudId', $pb.PbFieldType.OU6,
 | |
|         defaultOrMaker: $fixnum.Int64.ZERO)
 | |
|     ..aOS(2, _omitFieldNames ? '' : 'cloudIdentity')
 | |
|     ..aOS(3, _omitFieldNames ? '' : 'name')
 | |
|     ..aOS(4, _omitFieldNames ? '' : 'description')
 | |
|     ..aOS(5, _omitFieldNames ? '' : 'coverPhoto')
 | |
|     ..aOB(6, _omitFieldNames ? '' : 'isPrivate')
 | |
|     ..hasRequiredFields = false;
 | |
| 
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   CreateAlbumRequest clone() => CreateAlbumRequest()..mergeFromMessage(this);
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   CreateAlbumRequest copyWith(void Function(CreateAlbumRequest) updates) =>
 | |
|       super.copyWith((message) => updates(message as CreateAlbumRequest))
 | |
|           as CreateAlbumRequest;
 | |
| 
 | |
|   @$core.override
 | |
|   $pb.BuilderInfo get info_ => _i;
 | |
| 
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static CreateAlbumRequest create() => CreateAlbumRequest._();
 | |
|   @$core.override
 | |
|   CreateAlbumRequest createEmptyInstance() => create();
 | |
|   static $pb.PbList<CreateAlbumRequest> createRepeated() =>
 | |
|       $pb.PbList<CreateAlbumRequest>();
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static CreateAlbumRequest getDefault() => _defaultInstance ??=
 | |
|       $pb.GeneratedMessage.$_defaultFor<CreateAlbumRequest>(create);
 | |
|   static CreateAlbumRequest? _defaultInstance;
 | |
| 
 | |
|   @$pb.TagNumber(1)
 | |
|   $fixnum.Int64 get cloudId => $_getI64(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   set cloudId($fixnum.Int64 value) => $_setInt64(0, value);
 | |
|   @$pb.TagNumber(1)
 | |
|   $core.bool hasCloudId() => $_has(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   void clearCloudId() => $_clearField(1);
 | |
| 
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.String get cloudIdentity => $_getSZ(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   set cloudIdentity($core.String value) => $_setString(1, value);
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.bool hasCloudIdentity() => $_has(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   void clearCloudIdentity() => $_clearField(2);
 | |
| 
 | |
|   @$pb.TagNumber(3)
 | |
|   $core.String get name => $_getSZ(2);
 | |
|   @$pb.TagNumber(3)
 | |
|   set name($core.String value) => $_setString(2, value);
 | |
|   @$pb.TagNumber(3)
 | |
|   $core.bool hasName() => $_has(2);
 | |
|   @$pb.TagNumber(3)
 | |
|   void clearName() => $_clearField(3);
 | |
| 
 | |
|   @$pb.TagNumber(4)
 | |
|   $core.String get description => $_getSZ(3);
 | |
|   @$pb.TagNumber(4)
 | |
|   set description($core.String value) => $_setString(3, value);
 | |
|   @$pb.TagNumber(4)
 | |
|   $core.bool hasDescription() => $_has(3);
 | |
|   @$pb.TagNumber(4)
 | |
|   void clearDescription() => $_clearField(4);
 | |
| 
 | |
|   @$pb.TagNumber(5)
 | |
|   $core.String get coverPhoto => $_getSZ(4);
 | |
|   @$pb.TagNumber(5)
 | |
|   set coverPhoto($core.String value) => $_setString(4, value);
 | |
|   @$pb.TagNumber(5)
 | |
|   $core.bool hasCoverPhoto() => $_has(4);
 | |
|   @$pb.TagNumber(5)
 | |
|   void clearCoverPhoto() => $_clearField(5);
 | |
| 
 | |
|   @$pb.TagNumber(6)
 | |
|   $core.bool get isPrivate => $_getBF(5);
 | |
|   @$pb.TagNumber(6)
 | |
|   set isPrivate($core.bool value) => $_setBool(5, value);
 | |
|   @$pb.TagNumber(6)
 | |
|   $core.bool hasIsPrivate() => $_has(5);
 | |
|   @$pb.TagNumber(6)
 | |
|   void clearIsPrivate() => $_clearField(6);
 | |
| }
 | |
| 
 | |
| class ListAlbumsResponse extends $pb.GeneratedMessage {
 | |
|   factory ListAlbumsResponse({
 | |
|     $core.Iterable<CloudAlbumItem>? albums,
 | |
|     $fixnum.Int64? total,
 | |
|   }) {
 | |
|     final result = create();
 | |
|     if (albums != null) result.albums.addAll(albums);
 | |
|     if (total != null) result.total = total;
 | |
|     return result;
 | |
|   }
 | |
| 
 | |
|   ListAlbumsResponse._();
 | |
| 
 | |
|   factory ListAlbumsResponse.fromBuffer($core.List<$core.int> data,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromBuffer(data, registry);
 | |
|   factory ListAlbumsResponse.fromJson($core.String json,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromJson(json, registry);
 | |
| 
 | |
|   static final $pb.BuilderInfo _i = $pb.BuilderInfo(
 | |
|       _omitMessageNames ? '' : 'ListAlbumsResponse',
 | |
|       package: const $pb.PackageName(_omitMessageNames ? '' : 'cloud'),
 | |
|       createEmptyInstance: create)
 | |
|     ..pc<CloudAlbumItem>(1, _omitFieldNames ? '' : 'albums', $pb.PbFieldType.PM,
 | |
|         subBuilder: CloudAlbumItem.create)
 | |
|     ..aInt64(2, _omitFieldNames ? '' : 'total')
 | |
|     ..hasRequiredFields = false;
 | |
| 
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   ListAlbumsResponse clone() => ListAlbumsResponse()..mergeFromMessage(this);
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   ListAlbumsResponse copyWith(void Function(ListAlbumsResponse) updates) =>
 | |
|       super.copyWith((message) => updates(message as ListAlbumsResponse))
 | |
|           as ListAlbumsResponse;
 | |
| 
 | |
|   @$core.override
 | |
|   $pb.BuilderInfo get info_ => _i;
 | |
| 
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static ListAlbumsResponse create() => ListAlbumsResponse._();
 | |
|   @$core.override
 | |
|   ListAlbumsResponse createEmptyInstance() => create();
 | |
|   static $pb.PbList<ListAlbumsResponse> createRepeated() =>
 | |
|       $pb.PbList<ListAlbumsResponse>();
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static ListAlbumsResponse getDefault() => _defaultInstance ??=
 | |
|       $pb.GeneratedMessage.$_defaultFor<ListAlbumsResponse>(create);
 | |
|   static ListAlbumsResponse? _defaultInstance;
 | |
| 
 | |
|   @$pb.TagNumber(1)
 | |
|   $pb.PbList<CloudAlbumItem> get albums => $_getList(0);
 | |
| 
 | |
|   @$pb.TagNumber(2)
 | |
|   $fixnum.Int64 get total => $_getI64(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   set total($fixnum.Int64 value) => $_setInt64(1, value);
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.bool hasTotal() => $_has(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   void clearTotal() => $_clearField(2);
 | |
| }
 | |
| 
 | |
| class SetCoverPhotoRequest extends $pb.GeneratedMessage {
 | |
|   factory SetCoverPhotoRequest({
 | |
|     $fixnum.Int64? albumId,
 | |
|     $fixnum.Int64? photoId,
 | |
|   }) {
 | |
|     final result = create();
 | |
|     if (albumId != null) result.albumId = albumId;
 | |
|     if (photoId != null) result.photoId = photoId;
 | |
|     return result;
 | |
|   }
 | |
| 
 | |
|   SetCoverPhotoRequest._();
 | |
| 
 | |
|   factory SetCoverPhotoRequest.fromBuffer($core.List<$core.int> data,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromBuffer(data, registry);
 | |
|   factory SetCoverPhotoRequest.fromJson($core.String json,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromJson(json, registry);
 | |
| 
 | |
|   static final $pb.BuilderInfo _i = $pb.BuilderInfo(
 | |
|       _omitMessageNames ? '' : 'SetCoverPhotoRequest',
 | |
|       package: const $pb.PackageName(_omitMessageNames ? '' : 'cloud'),
 | |
|       createEmptyInstance: create)
 | |
|     ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'albumId', $pb.PbFieldType.OU6,
 | |
|         defaultOrMaker: $fixnum.Int64.ZERO)
 | |
|     ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'photoId', $pb.PbFieldType.OU6,
 | |
|         defaultOrMaker: $fixnum.Int64.ZERO)
 | |
|     ..hasRequiredFields = false;
 | |
| 
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   SetCoverPhotoRequest clone() =>
 | |
|       SetCoverPhotoRequest()..mergeFromMessage(this);
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   SetCoverPhotoRequest copyWith(void Function(SetCoverPhotoRequest) updates) =>
 | |
|       super.copyWith((message) => updates(message as SetCoverPhotoRequest))
 | |
|           as SetCoverPhotoRequest;
 | |
| 
 | |
|   @$core.override
 | |
|   $pb.BuilderInfo get info_ => _i;
 | |
| 
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static SetCoverPhotoRequest create() => SetCoverPhotoRequest._();
 | |
|   @$core.override
 | |
|   SetCoverPhotoRequest createEmptyInstance() => create();
 | |
|   static $pb.PbList<SetCoverPhotoRequest> createRepeated() =>
 | |
|       $pb.PbList<SetCoverPhotoRequest>();
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static SetCoverPhotoRequest getDefault() => _defaultInstance ??=
 | |
|       $pb.GeneratedMessage.$_defaultFor<SetCoverPhotoRequest>(create);
 | |
|   static SetCoverPhotoRequest? _defaultInstance;
 | |
| 
 | |
|   @$pb.TagNumber(1)
 | |
|   $fixnum.Int64 get albumId => $_getI64(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   set albumId($fixnum.Int64 value) => $_setInt64(0, value);
 | |
|   @$pb.TagNumber(1)
 | |
|   $core.bool hasAlbumId() => $_has(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   void clearAlbumId() => $_clearField(1);
 | |
| 
 | |
|   @$pb.TagNumber(2)
 | |
|   $fixnum.Int64 get photoId => $_getI64(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   set photoId($fixnum.Int64 value) => $_setInt64(1, value);
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.bool hasPhotoId() => $_has(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   void clearPhotoId() => $_clearField(2);
 | |
| }
 | |
| 
 | |
| /// 相册模型
 | |
| class CloudAlbumItem extends $pb.GeneratedMessage {
 | |
|   factory CloudAlbumItem({
 | |
|     $fixnum.Int64? id,
 | |
|     $core.String? identity,
 | |
|     $core.String? name,
 | |
|     $core.String? description,
 | |
|     $core.String? coverPhoto,
 | |
|     $core.bool? isPrivate,
 | |
|     $core.String? createdAt,
 | |
|     $core.String? updatedAt,
 | |
|     $core.Iterable<CloudPhotoItem>? photos,
 | |
|   }) {
 | |
|     final result = create();
 | |
|     if (id != null) result.id = id;
 | |
|     if (identity != null) result.identity = identity;
 | |
|     if (name != null) result.name = name;
 | |
|     if (description != null) result.description = description;
 | |
|     if (coverPhoto != null) result.coverPhoto = coverPhoto;
 | |
|     if (isPrivate != null) result.isPrivate = isPrivate;
 | |
|     if (createdAt != null) result.createdAt = createdAt;
 | |
|     if (updatedAt != null) result.updatedAt = updatedAt;
 | |
|     if (photos != null) result.photos.addAll(photos);
 | |
|     return result;
 | |
|   }
 | |
| 
 | |
|   CloudAlbumItem._();
 | |
| 
 | |
|   factory CloudAlbumItem.fromBuffer($core.List<$core.int> data,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromBuffer(data, registry);
 | |
|   factory CloudAlbumItem.fromJson($core.String json,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromJson(json, registry);
 | |
| 
 | |
|   static final $pb.BuilderInfo _i = $pb.BuilderInfo(
 | |
|       _omitMessageNames ? '' : 'CloudAlbumItem',
 | |
|       package: const $pb.PackageName(_omitMessageNames ? '' : 'cloud'),
 | |
|       createEmptyInstance: create)
 | |
|     ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU6,
 | |
|         defaultOrMaker: $fixnum.Int64.ZERO)
 | |
|     ..aOS(2, _omitFieldNames ? '' : 'identity')
 | |
|     ..aOS(3, _omitFieldNames ? '' : 'name')
 | |
|     ..aOS(4, _omitFieldNames ? '' : 'description')
 | |
|     ..aOS(5, _omitFieldNames ? '' : 'coverPhoto')
 | |
|     ..aOB(6, _omitFieldNames ? '' : 'isPrivate')
 | |
|     ..aOS(7, _omitFieldNames ? '' : 'createdAt')
 | |
|     ..aOS(8, _omitFieldNames ? '' : 'updatedAt')
 | |
|     ..pc<CloudPhotoItem>(9, _omitFieldNames ? '' : 'photos', $pb.PbFieldType.PM,
 | |
|         subBuilder: CloudPhotoItem.create)
 | |
|     ..hasRequiredFields = false;
 | |
| 
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   CloudAlbumItem clone() => CloudAlbumItem()..mergeFromMessage(this);
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   CloudAlbumItem copyWith(void Function(CloudAlbumItem) updates) =>
 | |
|       super.copyWith((message) => updates(message as CloudAlbumItem))
 | |
|           as CloudAlbumItem;
 | |
| 
 | |
|   @$core.override
 | |
|   $pb.BuilderInfo get info_ => _i;
 | |
| 
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static CloudAlbumItem create() => CloudAlbumItem._();
 | |
|   @$core.override
 | |
|   CloudAlbumItem createEmptyInstance() => create();
 | |
|   static $pb.PbList<CloudAlbumItem> createRepeated() =>
 | |
|       $pb.PbList<CloudAlbumItem>();
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static CloudAlbumItem getDefault() => _defaultInstance ??=
 | |
|       $pb.GeneratedMessage.$_defaultFor<CloudAlbumItem>(create);
 | |
|   static CloudAlbumItem? _defaultInstance;
 | |
| 
 | |
|   @$pb.TagNumber(1)
 | |
|   $fixnum.Int64 get id => $_getI64(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   set id($fixnum.Int64 value) => $_setInt64(0, value);
 | |
|   @$pb.TagNumber(1)
 | |
|   $core.bool hasId() => $_has(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   void clearId() => $_clearField(1);
 | |
| 
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.String get identity => $_getSZ(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   set identity($core.String value) => $_setString(1, value);
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.bool hasIdentity() => $_has(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   void clearIdentity() => $_clearField(2);
 | |
| 
 | |
|   @$pb.TagNumber(3)
 | |
|   $core.String get name => $_getSZ(2);
 | |
|   @$pb.TagNumber(3)
 | |
|   set name($core.String value) => $_setString(2, value);
 | |
|   @$pb.TagNumber(3)
 | |
|   $core.bool hasName() => $_has(2);
 | |
|   @$pb.TagNumber(3)
 | |
|   void clearName() => $_clearField(3);
 | |
| 
 | |
|   @$pb.TagNumber(4)
 | |
|   $core.String get description => $_getSZ(3);
 | |
|   @$pb.TagNumber(4)
 | |
|   set description($core.String value) => $_setString(3, value);
 | |
|   @$pb.TagNumber(4)
 | |
|   $core.bool hasDescription() => $_has(3);
 | |
|   @$pb.TagNumber(4)
 | |
|   void clearDescription() => $_clearField(4);
 | |
| 
 | |
|   @$pb.TagNumber(5)
 | |
|   $core.String get coverPhoto => $_getSZ(4);
 | |
|   @$pb.TagNumber(5)
 | |
|   set coverPhoto($core.String value) => $_setString(4, value);
 | |
|   @$pb.TagNumber(5)
 | |
|   $core.bool hasCoverPhoto() => $_has(4);
 | |
|   @$pb.TagNumber(5)
 | |
|   void clearCoverPhoto() => $_clearField(5);
 | |
| 
 | |
|   @$pb.TagNumber(6)
 | |
|   $core.bool get isPrivate => $_getBF(5);
 | |
|   @$pb.TagNumber(6)
 | |
|   set isPrivate($core.bool value) => $_setBool(5, value);
 | |
|   @$pb.TagNumber(6)
 | |
|   $core.bool hasIsPrivate() => $_has(5);
 | |
|   @$pb.TagNumber(6)
 | |
|   void clearIsPrivate() => $_clearField(6);
 | |
| 
 | |
|   @$pb.TagNumber(7)
 | |
|   $core.String get createdAt => $_getSZ(6);
 | |
|   @$pb.TagNumber(7)
 | |
|   set createdAt($core.String value) => $_setString(6, value);
 | |
|   @$pb.TagNumber(7)
 | |
|   $core.bool hasCreatedAt() => $_has(6);
 | |
|   @$pb.TagNumber(7)
 | |
|   void clearCreatedAt() => $_clearField(7);
 | |
| 
 | |
|   @$pb.TagNumber(8)
 | |
|   $core.String get updatedAt => $_getSZ(7);
 | |
|   @$pb.TagNumber(8)
 | |
|   set updatedAt($core.String value) => $_setString(7, value);
 | |
|   @$pb.TagNumber(8)
 | |
|   $core.bool hasUpdatedAt() => $_has(7);
 | |
|   @$pb.TagNumber(8)
 | |
|   void clearUpdatedAt() => $_clearField(8);
 | |
| 
 | |
|   /// 关联关系
 | |
|   @$pb.TagNumber(9)
 | |
|   $pb.PbList<CloudPhotoItem> get photos => $_getList(8);
 | |
| }
 | |
| 
 | |
| class ListPhotosResponse extends $pb.GeneratedMessage {
 | |
|   factory ListPhotosResponse({
 | |
|     $core.Iterable<CloudPhotoItem>? photos,
 | |
|     $fixnum.Int64? total,
 | |
|   }) {
 | |
|     final result = create();
 | |
|     if (photos != null) result.photos.addAll(photos);
 | |
|     if (total != null) result.total = total;
 | |
|     return result;
 | |
|   }
 | |
| 
 | |
|   ListPhotosResponse._();
 | |
| 
 | |
|   factory ListPhotosResponse.fromBuffer($core.List<$core.int> data,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromBuffer(data, registry);
 | |
|   factory ListPhotosResponse.fromJson($core.String json,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromJson(json, registry);
 | |
| 
 | |
|   static final $pb.BuilderInfo _i = $pb.BuilderInfo(
 | |
|       _omitMessageNames ? '' : 'ListPhotosResponse',
 | |
|       package: const $pb.PackageName(_omitMessageNames ? '' : 'cloud'),
 | |
|       createEmptyInstance: create)
 | |
|     ..pc<CloudPhotoItem>(1, _omitFieldNames ? '' : 'photos', $pb.PbFieldType.PM,
 | |
|         subBuilder: CloudPhotoItem.create)
 | |
|     ..aInt64(2, _omitFieldNames ? '' : 'total')
 | |
|     ..hasRequiredFields = false;
 | |
| 
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   ListPhotosResponse clone() => ListPhotosResponse()..mergeFromMessage(this);
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   ListPhotosResponse copyWith(void Function(ListPhotosResponse) updates) =>
 | |
|       super.copyWith((message) => updates(message as ListPhotosResponse))
 | |
|           as ListPhotosResponse;
 | |
| 
 | |
|   @$core.override
 | |
|   $pb.BuilderInfo get info_ => _i;
 | |
| 
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static ListPhotosResponse create() => ListPhotosResponse._();
 | |
|   @$core.override
 | |
|   ListPhotosResponse createEmptyInstance() => create();
 | |
|   static $pb.PbList<ListPhotosResponse> createRepeated() =>
 | |
|       $pb.PbList<ListPhotosResponse>();
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static ListPhotosResponse getDefault() => _defaultInstance ??=
 | |
|       $pb.GeneratedMessage.$_defaultFor<ListPhotosResponse>(create);
 | |
|   static ListPhotosResponse? _defaultInstance;
 | |
| 
 | |
|   @$pb.TagNumber(1)
 | |
|   $pb.PbList<CloudPhotoItem> get photos => $_getList(0);
 | |
| 
 | |
|   @$pb.TagNumber(2)
 | |
|   $fixnum.Int64 get total => $_getI64(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   set total($fixnum.Int64 value) => $_setInt64(1, value);
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.bool hasTotal() => $_has(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   void clearTotal() => $_clearField(2);
 | |
| }
 | |
| 
 | |
| class MovePhotoRequest extends $pb.GeneratedMessage {
 | |
|   factory MovePhotoRequest({
 | |
|     $fixnum.Int64? photoId,
 | |
|     $fixnum.Int64? newAlbumId,
 | |
|   }) {
 | |
|     final result = create();
 | |
|     if (photoId != null) result.photoId = photoId;
 | |
|     if (newAlbumId != null) result.newAlbumId = newAlbumId;
 | |
|     return result;
 | |
|   }
 | |
| 
 | |
|   MovePhotoRequest._();
 | |
| 
 | |
|   factory MovePhotoRequest.fromBuffer($core.List<$core.int> data,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromBuffer(data, registry);
 | |
|   factory MovePhotoRequest.fromJson($core.String json,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromJson(json, registry);
 | |
| 
 | |
|   static final $pb.BuilderInfo _i = $pb.BuilderInfo(
 | |
|       _omitMessageNames ? '' : 'MovePhotoRequest',
 | |
|       package: const $pb.PackageName(_omitMessageNames ? '' : 'cloud'),
 | |
|       createEmptyInstance: create)
 | |
|     ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'photoId', $pb.PbFieldType.OU6,
 | |
|         defaultOrMaker: $fixnum.Int64.ZERO)
 | |
|     ..a<$fixnum.Int64>(
 | |
|         2, _omitFieldNames ? '' : 'newAlbumId', $pb.PbFieldType.OU6,
 | |
|         defaultOrMaker: $fixnum.Int64.ZERO)
 | |
|     ..hasRequiredFields = false;
 | |
| 
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   MovePhotoRequest clone() => MovePhotoRequest()..mergeFromMessage(this);
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   MovePhotoRequest copyWith(void Function(MovePhotoRequest) updates) =>
 | |
|       super.copyWith((message) => updates(message as MovePhotoRequest))
 | |
|           as MovePhotoRequest;
 | |
| 
 | |
|   @$core.override
 | |
|   $pb.BuilderInfo get info_ => _i;
 | |
| 
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static MovePhotoRequest create() => MovePhotoRequest._();
 | |
|   @$core.override
 | |
|   MovePhotoRequest createEmptyInstance() => create();
 | |
|   static $pb.PbList<MovePhotoRequest> createRepeated() =>
 | |
|       $pb.PbList<MovePhotoRequest>();
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static MovePhotoRequest getDefault() => _defaultInstance ??=
 | |
|       $pb.GeneratedMessage.$_defaultFor<MovePhotoRequest>(create);
 | |
|   static MovePhotoRequest? _defaultInstance;
 | |
| 
 | |
|   @$pb.TagNumber(1)
 | |
|   $fixnum.Int64 get photoId => $_getI64(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   set photoId($fixnum.Int64 value) => $_setInt64(0, value);
 | |
|   @$pb.TagNumber(1)
 | |
|   $core.bool hasPhotoId() => $_has(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   void clearPhotoId() => $_clearField(1);
 | |
| 
 | |
|   @$pb.TagNumber(2)
 | |
|   $fixnum.Int64 get newAlbumId => $_getI64(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   set newAlbumId($fixnum.Int64 value) => $_setInt64(1, value);
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.bool hasNewAlbumId() => $_has(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   void clearNewAlbumId() => $_clearField(2);
 | |
| }
 | |
| 
 | |
| /// 照片模型
 | |
| class CloudPhotoItem extends $pb.GeneratedMessage {
 | |
|   factory CloudPhotoItem({
 | |
|     $fixnum.Int64? id,
 | |
|     $core.String? identity,
 | |
|     $fixnum.Int64? albumId,
 | |
|     $core.String? title,
 | |
|     $core.String? description,
 | |
|     $core.String? filePath,
 | |
|     $fixnum.Int64? fileSize,
 | |
|     $core.String? mimeType,
 | |
|     $core.int? width,
 | |
|     $core.int? height,
 | |
|     $core.String? takenAt,
 | |
|     $core.String? location,
 | |
|     $core.String? tags,
 | |
|     $core.String? createdAt,
 | |
|     $core.String? updatedAt,
 | |
|     CloudAlbumItem? album,
 | |
|   }) {
 | |
|     final result = create();
 | |
|     if (id != null) result.id = id;
 | |
|     if (identity != null) result.identity = identity;
 | |
|     if (albumId != null) result.albumId = albumId;
 | |
|     if (title != null) result.title = title;
 | |
|     if (description != null) result.description = description;
 | |
|     if (filePath != null) result.filePath = filePath;
 | |
|     if (fileSize != null) result.fileSize = fileSize;
 | |
|     if (mimeType != null) result.mimeType = mimeType;
 | |
|     if (width != null) result.width = width;
 | |
|     if (height != null) result.height = height;
 | |
|     if (takenAt != null) result.takenAt = takenAt;
 | |
|     if (location != null) result.location = location;
 | |
|     if (tags != null) result.tags = tags;
 | |
|     if (createdAt != null) result.createdAt = createdAt;
 | |
|     if (updatedAt != null) result.updatedAt = updatedAt;
 | |
|     if (album != null) result.album = album;
 | |
|     return result;
 | |
|   }
 | |
| 
 | |
|   CloudPhotoItem._();
 | |
| 
 | |
|   factory CloudPhotoItem.fromBuffer($core.List<$core.int> data,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromBuffer(data, registry);
 | |
|   factory CloudPhotoItem.fromJson($core.String json,
 | |
|           [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
 | |
|       create()..mergeFromJson(json, registry);
 | |
| 
 | |
|   static final $pb.BuilderInfo _i = $pb.BuilderInfo(
 | |
|       _omitMessageNames ? '' : 'CloudPhotoItem',
 | |
|       package: const $pb.PackageName(_omitMessageNames ? '' : 'cloud'),
 | |
|       createEmptyInstance: create)
 | |
|     ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU6,
 | |
|         defaultOrMaker: $fixnum.Int64.ZERO)
 | |
|     ..aOS(2, _omitFieldNames ? '' : 'identity')
 | |
|     ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'albumId', $pb.PbFieldType.OU6,
 | |
|         defaultOrMaker: $fixnum.Int64.ZERO)
 | |
|     ..aOS(4, _omitFieldNames ? '' : 'title')
 | |
|     ..aOS(5, _omitFieldNames ? '' : 'description')
 | |
|     ..aOS(6, _omitFieldNames ? '' : 'filePath')
 | |
|     ..aInt64(7, _omitFieldNames ? '' : 'fileSize')
 | |
|     ..aOS(8, _omitFieldNames ? '' : 'mimeType')
 | |
|     ..a<$core.int>(9, _omitFieldNames ? '' : 'width', $pb.PbFieldType.O3)
 | |
|     ..a<$core.int>(10, _omitFieldNames ? '' : 'height', $pb.PbFieldType.O3)
 | |
|     ..aOS(11, _omitFieldNames ? '' : 'takenAt')
 | |
|     ..aOS(12, _omitFieldNames ? '' : 'location')
 | |
|     ..aOS(13, _omitFieldNames ? '' : 'tags')
 | |
|     ..aOS(14, _omitFieldNames ? '' : 'createdAt')
 | |
|     ..aOS(15, _omitFieldNames ? '' : 'updatedAt')
 | |
|     ..aOM<CloudAlbumItem>(16, _omitFieldNames ? '' : 'album',
 | |
|         subBuilder: CloudAlbumItem.create)
 | |
|     ..hasRequiredFields = false;
 | |
| 
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   CloudPhotoItem clone() => CloudPhotoItem()..mergeFromMessage(this);
 | |
|   @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
 | |
|   CloudPhotoItem copyWith(void Function(CloudPhotoItem) updates) =>
 | |
|       super.copyWith((message) => updates(message as CloudPhotoItem))
 | |
|           as CloudPhotoItem;
 | |
| 
 | |
|   @$core.override
 | |
|   $pb.BuilderInfo get info_ => _i;
 | |
| 
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static CloudPhotoItem create() => CloudPhotoItem._();
 | |
|   @$core.override
 | |
|   CloudPhotoItem createEmptyInstance() => create();
 | |
|   static $pb.PbList<CloudPhotoItem> createRepeated() =>
 | |
|       $pb.PbList<CloudPhotoItem>();
 | |
|   @$core.pragma('dart2js:noInline')
 | |
|   static CloudPhotoItem getDefault() => _defaultInstance ??=
 | |
|       $pb.GeneratedMessage.$_defaultFor<CloudPhotoItem>(create);
 | |
|   static CloudPhotoItem? _defaultInstance;
 | |
| 
 | |
|   @$pb.TagNumber(1)
 | |
|   $fixnum.Int64 get id => $_getI64(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   set id($fixnum.Int64 value) => $_setInt64(0, value);
 | |
|   @$pb.TagNumber(1)
 | |
|   $core.bool hasId() => $_has(0);
 | |
|   @$pb.TagNumber(1)
 | |
|   void clearId() => $_clearField(1);
 | |
| 
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.String get identity => $_getSZ(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   set identity($core.String value) => $_setString(1, value);
 | |
|   @$pb.TagNumber(2)
 | |
|   $core.bool hasIdentity() => $_has(1);
 | |
|   @$pb.TagNumber(2)
 | |
|   void clearIdentity() => $_clearField(2);
 | |
| 
 | |
|   @$pb.TagNumber(3)
 | |
|   $fixnum.Int64 get albumId => $_getI64(2);
 | |
|   @$pb.TagNumber(3)
 | |
|   set albumId($fixnum.Int64 value) => $_setInt64(2, value);
 | |
|   @$pb.TagNumber(3)
 | |
|   $core.bool hasAlbumId() => $_has(2);
 | |
|   @$pb.TagNumber(3)
 | |
|   void clearAlbumId() => $_clearField(3);
 | |
| 
 | |
|   @$pb.TagNumber(4)
 | |
|   $core.String get title => $_getSZ(3);
 | |
|   @$pb.TagNumber(4)
 | |
|   set title($core.String value) => $_setString(3, value);
 | |
|   @$pb.TagNumber(4)
 | |
|   $core.bool hasTitle() => $_has(3);
 | |
|   @$pb.TagNumber(4)
 | |
|   void clearTitle() => $_clearField(4);
 | |
| 
 | |
|   @$pb.TagNumber(5)
 | |
|   $core.String get description => $_getSZ(4);
 | |
|   @$pb.TagNumber(5)
 | |
|   set description($core.String value) => $_setString(4, value);
 | |
|   @$pb.TagNumber(5)
 | |
|   $core.bool hasDescription() => $_has(4);
 | |
|   @$pb.TagNumber(5)
 | |
|   void clearDescription() => $_clearField(5);
 | |
| 
 | |
|   @$pb.TagNumber(6)
 | |
|   $core.String get filePath => $_getSZ(5);
 | |
|   @$pb.TagNumber(6)
 | |
|   set filePath($core.String value) => $_setString(5, value);
 | |
|   @$pb.TagNumber(6)
 | |
|   $core.bool hasFilePath() => $_has(5);
 | |
|   @$pb.TagNumber(6)
 | |
|   void clearFilePath() => $_clearField(6);
 | |
| 
 | |
|   @$pb.TagNumber(7)
 | |
|   $fixnum.Int64 get fileSize => $_getI64(6);
 | |
|   @$pb.TagNumber(7)
 | |
|   set fileSize($fixnum.Int64 value) => $_setInt64(6, value);
 | |
|   @$pb.TagNumber(7)
 | |
|   $core.bool hasFileSize() => $_has(6);
 | |
|   @$pb.TagNumber(7)
 | |
|   void clearFileSize() => $_clearField(7);
 | |
| 
 | |
|   @$pb.TagNumber(8)
 | |
|   $core.String get mimeType => $_getSZ(7);
 | |
|   @$pb.TagNumber(8)
 | |
|   set mimeType($core.String value) => $_setString(7, value);
 | |
|   @$pb.TagNumber(8)
 | |
|   $core.bool hasMimeType() => $_has(7);
 | |
|   @$pb.TagNumber(8)
 | |
|   void clearMimeType() => $_clearField(8);
 | |
| 
 | |
|   @$pb.TagNumber(9)
 | |
|   $core.int get width => $_getIZ(8);
 | |
|   @$pb.TagNumber(9)
 | |
|   set width($core.int value) => $_setSignedInt32(8, value);
 | |
|   @$pb.TagNumber(9)
 | |
|   $core.bool hasWidth() => $_has(8);
 | |
|   @$pb.TagNumber(9)
 | |
|   void clearWidth() => $_clearField(9);
 | |
| 
 | |
|   @$pb.TagNumber(10)
 | |
|   $core.int get height => $_getIZ(9);
 | |
|   @$pb.TagNumber(10)
 | |
|   set height($core.int value) => $_setSignedInt32(9, value);
 | |
|   @$pb.TagNumber(10)
 | |
|   $core.bool hasHeight() => $_has(9);
 | |
|   @$pb.TagNumber(10)
 | |
|   void clearHeight() => $_clearField(10);
 | |
| 
 | |
|   @$pb.TagNumber(11)
 | |
|   $core.String get takenAt => $_getSZ(10);
 | |
|   @$pb.TagNumber(11)
 | |
|   set takenAt($core.String value) => $_setString(10, value);
 | |
|   @$pb.TagNumber(11)
 | |
|   $core.bool hasTakenAt() => $_has(10);
 | |
|   @$pb.TagNumber(11)
 | |
|   void clearTakenAt() => $_clearField(11);
 | |
| 
 | |
|   @$pb.TagNumber(12)
 | |
|   $core.String get location => $_getSZ(11);
 | |
|   @$pb.TagNumber(12)
 | |
|   set location($core.String value) => $_setString(11, value);
 | |
|   @$pb.TagNumber(12)
 | |
|   $core.bool hasLocation() => $_has(11);
 | |
|   @$pb.TagNumber(12)
 | |
|   void clearLocation() => $_clearField(12);
 | |
| 
 | |
|   @$pb.TagNumber(13)
 | |
|   $core.String get tags => $_getSZ(12);
 | |
|   @$pb.TagNumber(13)
 | |
|   set tags($core.String value) => $_setString(12, value);
 | |
|   @$pb.TagNumber(13)
 | |
|   $core.bool hasTags() => $_has(12);
 | |
|   @$pb.TagNumber(13)
 | |
|   void clearTags() => $_clearField(13);
 | |
| 
 | |
|   @$pb.TagNumber(14)
 | |
|   $core.String get createdAt => $_getSZ(13);
 | |
|   @$pb.TagNumber(14)
 | |
|   set createdAt($core.String value) => $_setString(13, value);
 | |
|   @$pb.TagNumber(14)
 | |
|   $core.bool hasCreatedAt() => $_has(13);
 | |
|   @$pb.TagNumber(14)
 | |
|   void clearCreatedAt() => $_clearField(14);
 | |
| 
 | |
|   @$pb.TagNumber(15)
 | |
|   $core.String get updatedAt => $_getSZ(14);
 | |
|   @$pb.TagNumber(15)
 | |
|   set updatedAt($core.String value) => $_setString(14, value);
 | |
|   @$pb.TagNumber(15)
 | |
|   $core.bool hasUpdatedAt() => $_has(14);
 | |
|   @$pb.TagNumber(15)
 | |
|   void clearUpdatedAt() => $_clearField(15);
 | |
| 
 | |
|   /// 关联关系
 | |
|   @$pb.TagNumber(16)
 | |
|   CloudAlbumItem get album => $_getN(15);
 | |
|   @$pb.TagNumber(16)
 | |
|   set album(CloudAlbumItem value) => $_setField(16, value);
 | |
|   @$pb.TagNumber(16)
 | |
|   $core.bool hasAlbum() => $_has(15);
 | |
|   @$pb.TagNumber(16)
 | |
|   void clearAlbum() => $_clearField(16);
 | |
|   @$pb.TagNumber(16)
 | |
|   CloudAlbumItem ensureAlbum() => $_ensure(15);
 | |
| }
 | |
| 
 | |
| const $core.bool _omitFieldNames =
 | |
|     $core.bool.fromEnvironment('protobuf.omit_field_names');
 | |
| const $core.bool _omitMessageNames =
 | |
|     $core.bool.fromEnvironment('protobuf.omit_message_names');
 |