Release 1.12.3

This commit is contained in:
ci core model
2026-02-05 08:59:17 +00:00
parent a92412ba65
commit 0a93573435
44 changed files with 272 additions and 3595 deletions

View File

@@ -12,15 +12,12 @@
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({
@@ -113,14 +110,12 @@ 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;
}
@@ -134,7 +129,6 @@ 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.')
@@ -186,11 +180,6 @@ 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
@@ -203,12 +192,6 @@ 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.
@@ -217,13 +200,11 @@ 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;
}
@@ -236,7 +217,6 @@ 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
;
@@ -332,36 +312,16 @@ 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;
}
@@ -373,9 +333,6 @@ 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
;
@@ -414,45 +371,8 @@ 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(4);
$pb.PbList<CodeGeneratorResponse_File> get file => $_getList(1);
}

View File

@@ -10,27 +10,3 @@
// 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:protobuf/protobuf.dart' as $pb;
/// Sync with code_generator.h.
class CodeGeneratorResponse_Feature extends $pb.ProtobufEnum {
static const CodeGeneratorResponse_Feature FEATURE_NONE = CodeGeneratorResponse_Feature._(0, _omitEnumNames ? '' : 'FEATURE_NONE');
static const CodeGeneratorResponse_Feature FEATURE_PROTO3_OPTIONAL = CodeGeneratorResponse_Feature._(1, _omitEnumNames ? '' : 'FEATURE_PROTO3_OPTIONAL');
static const CodeGeneratorResponse_Feature FEATURE_SUPPORTS_EDITIONS = CodeGeneratorResponse_Feature._(2, _omitEnumNames ? '' : 'FEATURE_SUPPORTS_EDITIONS');
static const $core.List<CodeGeneratorResponse_Feature> values = <CodeGeneratorResponse_Feature> [
FEATURE_NONE,
FEATURE_PROTO3_OPTIONAL,
FEATURE_SUPPORTS_EDITIONS,
];
static final $core.List<CodeGeneratorResponse_Feature?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 2);
static CodeGeneratorResponse_Feature? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
const CodeGeneratorResponse_Feature._(super.value, super.name);
}
const $core.bool _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');

View File

@@ -37,7 +37,6 @@ const CodeGeneratorRequest$json = {
{'1': 'file_to_generate', '3': 1, '4': 3, '5': 9, '10': 'fileToGenerate'},
{'1': 'parameter', '3': 2, '4': 1, '5': 9, '10': 'parameter'},
{'1': 'proto_file', '3': 15, '4': 3, '5': 11, '6': '.google.protobuf.FileDescriptorProto', '10': 'protoFile'},
{'1': 'source_file_descriptors', '3': 17, '4': 3, '5': 11, '6': '.google.protobuf.FileDescriptorProto', '10': 'sourceFileDescriptors'},
{'1': 'compiler_version', '3': 3, '4': 1, '5': 11, '6': '.google.protobuf.compiler.Version', '10': 'compilerVersion'},
],
};
@@ -46,24 +45,18 @@ const CodeGeneratorRequest$json = {
final $typed_data.Uint8List codeGeneratorRequestDescriptor = $convert.base64Decode(
'ChRDb2RlR2VuZXJhdG9yUmVxdWVzdBIoChBmaWxlX3RvX2dlbmVyYXRlGAEgAygJUg5maWxlVG'
'9HZW5lcmF0ZRIcCglwYXJhbWV0ZXIYAiABKAlSCXBhcmFtZXRlchJDCgpwcm90b19maWxlGA8g'
'AygLMiQuZ29vZ2xlLnByb3RvYnVmLkZpbGVEZXNjcmlwdG9yUHJvdG9SCXByb3RvRmlsZRJcCh'
'dzb3VyY2VfZmlsZV9kZXNjcmlwdG9ycxgRIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5GaWxlRGVz'
'Y3JpcHRvclByb3RvUhVzb3VyY2VGaWxlRGVzY3JpcHRvcnMSTAoQY29tcGlsZXJfdmVyc2lvbh'
'gDIAEoCzIhLmdvb2dsZS5wcm90b2J1Zi5jb21waWxlci5WZXJzaW9uUg9jb21waWxlclZlcnNp'
'b24=');
'AygLMiQuZ29vZ2xlLnByb3RvYnVmLkZpbGVEZXNjcmlwdG9yUHJvdG9SCXByb3RvRmlsZRJMCh'
'Bjb21waWxlcl92ZXJzaW9uGAMgASgLMiEuZ29vZ2xlLnByb3RvYnVmLmNvbXBpbGVyLlZlcnNp'
'b25SD2NvbXBpbGVyVmVyc2lvbg==');
@$core.Deprecated('Use codeGeneratorResponseDescriptor instead')
const CodeGeneratorResponse$json = {
'1': 'CodeGeneratorResponse',
'2': [
{'1': 'error', '3': 1, '4': 1, '5': 9, '10': 'error'},
{'1': 'supported_features', '3': 2, '4': 1, '5': 4, '10': 'supportedFeatures'},
{'1': 'minimum_edition', '3': 3, '4': 1, '5': 5, '10': 'minimumEdition'},
{'1': 'maximum_edition', '3': 4, '4': 1, '5': 5, '10': 'maximumEdition'},
{'1': 'file', '3': 15, '4': 3, '5': 11, '6': '.google.protobuf.compiler.CodeGeneratorResponse.File', '10': 'file'},
],
'3': [CodeGeneratorResponse_File$json],
'4': [CodeGeneratorResponse_Feature$json],
};
@$core.Deprecated('Use codeGeneratorResponseDescriptor instead')
@@ -73,30 +66,13 @@ const CodeGeneratorResponse_File$json = {
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'insertion_point', '3': 2, '4': 1, '5': 9, '10': 'insertionPoint'},
{'1': 'content', '3': 15, '4': 1, '5': 9, '10': 'content'},
{'1': 'generated_code_info', '3': 16, '4': 1, '5': 11, '6': '.google.protobuf.GeneratedCodeInfo', '10': 'generatedCodeInfo'},
],
};
@$core.Deprecated('Use codeGeneratorResponseDescriptor instead')
const CodeGeneratorResponse_Feature$json = {
'1': 'Feature',
'2': [
{'1': 'FEATURE_NONE', '2': 0},
{'1': 'FEATURE_PROTO3_OPTIONAL', '2': 1},
{'1': 'FEATURE_SUPPORTS_EDITIONS', '2': 2},
],
};
/// Descriptor for `CodeGeneratorResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List codeGeneratorResponseDescriptor = $convert.base64Decode(
'ChVDb2RlR2VuZXJhdG9yUmVzcG9uc2USFAoFZXJyb3IYASABKAlSBWVycm9yEi0KEnN1cHBvcn'
'RlZF9mZWF0dXJlcxgCIAEoBFIRc3VwcG9ydGVkRmVhdHVyZXMSJwoPbWluaW11bV9lZGl0aW9u'
'GAMgASgFUg5taW5pbXVtRWRpdGlvbhInCg9tYXhpbXVtX2VkaXRpb24YBCABKAVSDm1heGltdW'
'1FZGl0aW9uEkgKBGZpbGUYDyADKAsyNC5nb29nbGUucHJvdG9idWYuY29tcGlsZXIuQ29kZUdl'
'bmVyYXRvclJlc3BvbnNlLkZpbGVSBGZpbGUasQEKBEZpbGUSEgoEbmFtZRgBIAEoCVIEbmFtZR'
'InCg9pbnNlcnRpb25fcG9pbnQYAiABKAlSDmluc2VydGlvblBvaW50EhgKB2NvbnRlbnQYDyAB'
'KAlSB2NvbnRlbnQSUgoTZ2VuZXJhdGVkX2NvZGVfaW5mbxgQIAEoCzIiLmdvb2dsZS5wcm90b2'
'J1Zi5HZW5lcmF0ZWRDb2RlSW5mb1IRZ2VuZXJhdGVkQ29kZUluZm8iVwoHRmVhdHVyZRIQCgxG'
'RUFUVVJFX05PTkUQABIbChdGRUFUVVJFX1BST1RPM19PUFRJT05BTBABEh0KGUZFQVRVUkVfU1'
'VQUE9SVFNfRURJVElPTlMQAg==');
'ChVDb2RlR2VuZXJhdG9yUmVzcG9uc2USFAoFZXJyb3IYASABKAlSBWVycm9yEkgKBGZpbGUYDy'
'ADKAsyNC5nb29nbGUucHJvdG9idWYuY29tcGlsZXIuQ29kZUdlbmVyYXRvclJlc3BvbnNlLkZp'
'bGVSBGZpbGUaXQoERmlsZRISCgRuYW1lGAEgASgJUgRuYW1lEicKD2luc2VydGlvbl9wb2ludB'
'gCIAEoCVIOaW5zZXJ0aW9uUG9pbnQSGAoHY29udGVudBgPIAEoCVIHY29udGVudA==');