You've already forked dart-core-sdk
Latest generation
This commit is contained in:
@@ -165,134 +165,6 @@ class Attachment extends $pb.GeneratedMessage {
|
||||
void clearWebURI() => $_clearField(13);
|
||||
}
|
||||
|
||||
class FileDataRequest extends $pb.GeneratedMessage {
|
||||
factory FileDataRequest({
|
||||
$core.String? name,
|
||||
$core.List<$core.int>? content,
|
||||
}) {
|
||||
final result = create();
|
||||
if (name != null) result.name = name;
|
||||
if (content != null) result.content = content;
|
||||
return result;
|
||||
}
|
||||
|
||||
FileDataRequest._();
|
||||
|
||||
factory FileDataRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory FileDataRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'FileDataRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'Name', protoName: 'Name')
|
||||
..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'Content', $pb.PbFieldType.OY, protoName: 'Content')
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
FileDataRequest clone() => FileDataRequest()..mergeFromMessage(this);
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
FileDataRequest copyWith(void Function(FileDataRequest) updates) => super.copyWith((message) => updates(message as FileDataRequest)) as FileDataRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static FileDataRequest create() => FileDataRequest._();
|
||||
@$core.override
|
||||
FileDataRequest createEmptyInstance() => create();
|
||||
static $pb.PbList<FileDataRequest> createRepeated() => $pb.PbList<FileDataRequest>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static FileDataRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FileDataRequest>(create);
|
||||
static FileDataRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get name => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set name($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasName() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearName() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get content => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set content($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasContent() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearContent() => $_clearField(2);
|
||||
}
|
||||
|
||||
class FileDataResponse extends $pb.GeneratedMessage {
|
||||
factory FileDataResponse({
|
||||
$core.String? name,
|
||||
$core.String? contentType,
|
||||
$core.List<$core.int>? content,
|
||||
}) {
|
||||
final result = create();
|
||||
if (name != null) result.name = name;
|
||||
if (contentType != null) result.contentType = contentType;
|
||||
if (content != null) result.content = content;
|
||||
return result;
|
||||
}
|
||||
|
||||
FileDataResponse._();
|
||||
|
||||
factory FileDataResponse.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
|
||||
factory FileDataResponse.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'FileDataResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'Name', protoName: 'Name')
|
||||
..aOS(2, _omitFieldNames ? '' : 'ContentType', protoName: 'ContentType')
|
||||
..a<$core.List<$core.int>>(3, _omitFieldNames ? '' : 'Content', $pb.PbFieldType.OY, protoName: 'Content')
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
FileDataResponse clone() => FileDataResponse()..mergeFromMessage(this);
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
FileDataResponse copyWith(void Function(FileDataResponse) updates) => super.copyWith((message) => updates(message as FileDataResponse)) as FileDataResponse;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static FileDataResponse create() => FileDataResponse._();
|
||||
@$core.override
|
||||
FileDataResponse createEmptyInstance() => create();
|
||||
static $pb.PbList<FileDataResponse> createRepeated() => $pb.PbList<FileDataResponse>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static FileDataResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FileDataResponse>(create);
|
||||
static FileDataResponse? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get name => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set name($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasName() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearName() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get contentType => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set contentType($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasContentType() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearContentType() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.List<$core.int> get content => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set content($core.List<$core.int> value) => $_setBytes(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasContent() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearContent() => $_clearField(3);
|
||||
}
|
||||
|
||||
/// Download
|
||||
class DownloadAttachmentV2Request extends $pb.GeneratedMessage {
|
||||
factory DownloadAttachmentV2Request({
|
||||
@@ -368,7 +240,7 @@ class DownloadAttachmentV2Request extends $pb.GeneratedMessage {
|
||||
|
||||
class DownloadAttachmentV2Response extends $pb.GeneratedMessage {
|
||||
factory DownloadAttachmentV2Response({
|
||||
FileDataResponse? file,
|
||||
$3.FileDataResponse? file,
|
||||
$3.AttachmentTypeResponseHeader? header,
|
||||
}) {
|
||||
final result = create();
|
||||
@@ -383,7 +255,7 @@ class DownloadAttachmentV2Response extends $pb.GeneratedMessage {
|
||||
factory DownloadAttachmentV2Response.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DownloadAttachmentV2Response', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
|
||||
..aOM<FileDataResponse>(1, _omitFieldNames ? '' : 'File', protoName: 'File', subBuilder: FileDataResponse.create)
|
||||
..aOM<$3.FileDataResponse>(1, _omitFieldNames ? '' : 'File', protoName: 'File', subBuilder: $3.FileDataResponse.create)
|
||||
..aOM<$3.AttachmentTypeResponseHeader>(2, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.AttachmentTypeResponseHeader.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
@@ -406,15 +278,15 @@ class DownloadAttachmentV2Response extends $pb.GeneratedMessage {
|
||||
static DownloadAttachmentV2Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
FileDataResponse get file => $_getN(0);
|
||||
$3.FileDataResponse get file => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set file(FileDataResponse value) => $_setField(1, value);
|
||||
set file($3.FileDataResponse value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasFile() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearFile() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
FileDataResponse ensureFile() => $_ensure(0);
|
||||
$3.FileDataResponse ensureFile() => $_ensure(0);
|
||||
|
||||
/// Header of the response
|
||||
@$pb.TagNumber(2)
|
||||
@@ -434,7 +306,7 @@ class UploadAttachmentV2Request extends $pb.GeneratedMessage {
|
||||
factory UploadAttachmentV2Request({
|
||||
$3.RequestAttachmentTypeHeader? header,
|
||||
$core.String? entityRefID,
|
||||
FileDataRequest? attachment,
|
||||
$3.FileDataRequest? attachment,
|
||||
}) {
|
||||
final result = create();
|
||||
if (header != null) result.header = header;
|
||||
@@ -451,7 +323,7 @@ class UploadAttachmentV2Request extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UploadAttachmentV2Request', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
|
||||
..aOM<$3.RequestAttachmentTypeHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestAttachmentTypeHeader.create)
|
||||
..aOS(3, _omitFieldNames ? '' : 'EntityRefID', protoName: 'EntityRefID')
|
||||
..aOM<FileDataRequest>(4, _omitFieldNames ? '' : 'Attachment', protoName: 'Attachment', subBuilder: FileDataRequest.create)
|
||||
..aOM<$3.FileDataRequest>(4, _omitFieldNames ? '' : 'Attachment', protoName: 'Attachment', subBuilder: $3.FileDataRequest.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@@ -493,15 +365,15 @@ class UploadAttachmentV2Request extends $pb.GeneratedMessage {
|
||||
void clearEntityRefID() => $_clearField(3);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
FileDataRequest get attachment => $_getN(2);
|
||||
$3.FileDataRequest get attachment => $_getN(2);
|
||||
@$pb.TagNumber(4)
|
||||
set attachment(FileDataRequest value) => $_setField(4, value);
|
||||
set attachment($3.FileDataRequest value) => $_setField(4, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasAttachment() => $_has(2);
|
||||
@$pb.TagNumber(4)
|
||||
void clearAttachment() => $_clearField(4);
|
||||
@$pb.TagNumber(4)
|
||||
FileDataRequest ensureAttachment() => $_ensure(2);
|
||||
$3.FileDataRequest ensureAttachment() => $_ensure(2);
|
||||
}
|
||||
|
||||
class UploadAttachmentV2Response extends $pb.GeneratedMessage {
|
||||
|
||||
Reference in New Issue
Block a user