You've already forked dart-core-sdk
Latest generation
This commit is contained in:
@@ -12,12 +12,15 @@
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:fixnum/fixnum.dart' as $fixnum;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import '../descriptor.pb.dart' as $0;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
export 'plugin.pbenum.dart';
|
||||
|
||||
/// The version number of protocol compiler.
|
||||
class Version extends $pb.GeneratedMessage {
|
||||
factory Version({
|
||||
@@ -110,12 +113,14 @@ class CodeGeneratorRequest extends $pb.GeneratedMessage {
|
||||
$core.String? parameter,
|
||||
Version? compilerVersion,
|
||||
$core.Iterable<$0.FileDescriptorProto>? protoFile,
|
||||
$core.Iterable<$0.FileDescriptorProto>? sourceFileDescriptors,
|
||||
}) {
|
||||
final result = create();
|
||||
if (fileToGenerate != null) result.fileToGenerate.addAll(fileToGenerate);
|
||||
if (parameter != null) result.parameter = parameter;
|
||||
if (compilerVersion != null) result.compilerVersion = compilerVersion;
|
||||
if (protoFile != null) result.protoFile.addAll(protoFile);
|
||||
if (sourceFileDescriptors != null) result.sourceFileDescriptors.addAll(sourceFileDescriptors);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -129,6 +134,7 @@ class CodeGeneratorRequest extends $pb.GeneratedMessage {
|
||||
..aOS(2, _omitFieldNames ? '' : 'parameter')
|
||||
..aOM<Version>(3, _omitFieldNames ? '' : 'compilerVersion', subBuilder: Version.create)
|
||||
..pc<$0.FileDescriptorProto>(15, _omitFieldNames ? '' : 'protoFile', $pb.PbFieldType.PM, subBuilder: $0.FileDescriptorProto.create)
|
||||
..pc<$0.FileDescriptorProto>(17, _omitFieldNames ? '' : 'sourceFileDescriptors', $pb.PbFieldType.PM, subBuilder: $0.FileDescriptorProto.create)
|
||||
;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
@@ -180,6 +186,11 @@ class CodeGeneratorRequest extends $pb.GeneratedMessage {
|
||||
/// they import. The files will appear in topological order, so each file
|
||||
/// appears before any file that imports it.
|
||||
///
|
||||
/// Note: the files listed in files_to_generate will include runtime-retention
|
||||
/// options only, but all other files will include source-retention options.
|
||||
/// The source_file_descriptors field below is available in case you need
|
||||
/// source-retention options for files_to_generate.
|
||||
///
|
||||
/// protoc guarantees that all proto_files will be written after
|
||||
/// the fields above, even though this is not technically guaranteed by the
|
||||
/// protobuf wire format. This theoretically could allow a plugin to stream
|
||||
@@ -192,6 +203,12 @@ class CodeGeneratorRequest extends $pb.GeneratedMessage {
|
||||
/// fully qualified.
|
||||
@$pb.TagNumber(15)
|
||||
$pb.PbList<$0.FileDescriptorProto> get protoFile => $_getList(3);
|
||||
|
||||
/// File descriptors with all options, including source-retention options.
|
||||
/// These descriptors are only provided for the files listed in
|
||||
/// files_to_generate.
|
||||
@$pb.TagNumber(17)
|
||||
$pb.PbList<$0.FileDescriptorProto> get sourceFileDescriptors => $_getList(4);
|
||||
}
|
||||
|
||||
/// Represents a single generated file.
|
||||
@@ -200,11 +217,13 @@ class CodeGeneratorResponse_File extends $pb.GeneratedMessage {
|
||||
$core.String? name,
|
||||
$core.String? insertionPoint,
|
||||
$core.String? content,
|
||||
$0.GeneratedCodeInfo? generatedCodeInfo,
|
||||
}) {
|
||||
final result = create();
|
||||
if (name != null) result.name = name;
|
||||
if (insertionPoint != null) result.insertionPoint = insertionPoint;
|
||||
if (content != null) result.content = content;
|
||||
if (generatedCodeInfo != null) result.generatedCodeInfo = generatedCodeInfo;
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -217,6 +236,7 @@ class CodeGeneratorResponse_File extends $pb.GeneratedMessage {
|
||||
..aOS(1, _omitFieldNames ? '' : 'name')
|
||||
..aOS(2, _omitFieldNames ? '' : 'insertionPoint')
|
||||
..aOS(15, _omitFieldNames ? '' : 'content')
|
||||
..aOM<$0.GeneratedCodeInfo>(16, _omitFieldNames ? '' : 'generatedCodeInfo', subBuilder: $0.GeneratedCodeInfo.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
@@ -312,16 +332,36 @@ class CodeGeneratorResponse_File extends $pb.GeneratedMessage {
|
||||
$core.bool hasContent() => $_has(2);
|
||||
@$pb.TagNumber(15)
|
||||
void clearContent() => $_clearField(15);
|
||||
|
||||
/// Information describing the file content being inserted. If an insertion
|
||||
/// point is used, this information will be appropriately offset and inserted
|
||||
/// into the code generation metadata for the generated files.
|
||||
@$pb.TagNumber(16)
|
||||
$0.GeneratedCodeInfo get generatedCodeInfo => $_getN(3);
|
||||
@$pb.TagNumber(16)
|
||||
set generatedCodeInfo($0.GeneratedCodeInfo value) => $_setField(16, value);
|
||||
@$pb.TagNumber(16)
|
||||
$core.bool hasGeneratedCodeInfo() => $_has(3);
|
||||
@$pb.TagNumber(16)
|
||||
void clearGeneratedCodeInfo() => $_clearField(16);
|
||||
@$pb.TagNumber(16)
|
||||
$0.GeneratedCodeInfo ensureGeneratedCodeInfo() => $_ensure(3);
|
||||
}
|
||||
|
||||
/// The plugin writes an encoded CodeGeneratorResponse to stdout.
|
||||
class CodeGeneratorResponse extends $pb.GeneratedMessage {
|
||||
factory CodeGeneratorResponse({
|
||||
$core.String? error,
|
||||
$fixnum.Int64? supportedFeatures,
|
||||
$core.int? minimumEdition,
|
||||
$core.int? maximumEdition,
|
||||
$core.Iterable<CodeGeneratorResponse_File>? file,
|
||||
}) {
|
||||
final result = create();
|
||||
if (error != null) result.error = error;
|
||||
if (supportedFeatures != null) result.supportedFeatures = supportedFeatures;
|
||||
if (minimumEdition != null) result.minimumEdition = minimumEdition;
|
||||
if (maximumEdition != null) result.maximumEdition = maximumEdition;
|
||||
if (file != null) result.file.addAll(file);
|
||||
return result;
|
||||
}
|
||||
@@ -333,6 +373,9 @@ class CodeGeneratorResponse extends $pb.GeneratedMessage {
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CodeGeneratorResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf.compiler'), createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'error')
|
||||
..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'supportedFeatures', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO)
|
||||
..a<$core.int>(3, _omitFieldNames ? '' : 'minimumEdition', $pb.PbFieldType.O3)
|
||||
..a<$core.int>(4, _omitFieldNames ? '' : 'maximumEdition', $pb.PbFieldType.O3)
|
||||
..pc<CodeGeneratorResponse_File>(15, _omitFieldNames ? '' : 'file', $pb.PbFieldType.PM, subBuilder: CodeGeneratorResponse_File.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
@@ -371,8 +414,45 @@ class CodeGeneratorResponse extends $pb.GeneratedMessage {
|
||||
@$pb.TagNumber(1)
|
||||
void clearError() => $_clearField(1);
|
||||
|
||||
/// A bitmask of supported features that the code generator supports.
|
||||
/// This is a bitwise "or" of values from the Feature enum.
|
||||
@$pb.TagNumber(2)
|
||||
$fixnum.Int64 get supportedFeatures => $_getI64(1);
|
||||
@$pb.TagNumber(2)
|
||||
set supportedFeatures($fixnum.Int64 value) => $_setInt64(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasSupportedFeatures() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearSupportedFeatures() => $_clearField(2);
|
||||
|
||||
/// The minimum edition this plugin supports. This will be treated as an
|
||||
/// Edition enum, but we want to allow unknown values. It should be specified
|
||||
/// according the edition enum value, *not* the edition number. Only takes
|
||||
/// effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
|
||||
@$pb.TagNumber(3)
|
||||
$core.int get minimumEdition => $_getIZ(2);
|
||||
@$pb.TagNumber(3)
|
||||
set minimumEdition($core.int value) => $_setSignedInt32(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasMinimumEdition() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearMinimumEdition() => $_clearField(3);
|
||||
|
||||
/// The maximum edition this plugin supports. This will be treated as an
|
||||
/// Edition enum, but we want to allow unknown values. It should be specified
|
||||
/// according the edition enum value, *not* the edition number. Only takes
|
||||
/// effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
|
||||
@$pb.TagNumber(4)
|
||||
$core.int get maximumEdition => $_getIZ(3);
|
||||
@$pb.TagNumber(4)
|
||||
set maximumEdition($core.int value) => $_setSignedInt32(3, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasMaximumEdition() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearMaximumEdition() => $_clearField(4);
|
||||
|
||||
@$pb.TagNumber(15)
|
||||
$pb.PbList<CodeGeneratorResponse_File> get file => $_getList(1);
|
||||
$pb.PbList<CodeGeneratorResponse_File> get file => $_getList(4);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user