From 408f0eb850027782e410d0bad015ec71d5ca6f83 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Sat, 11 Jul 2026 23:14:21 +0200 Subject: [PATCH] =?UTF-8?q?refactor!:=20regenerate=20stubs=20=E2=80=94=20w?= =?UTF-8?q?ire=20message=20FaiError=20is=20now=20ChainError?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lockstep with the platform's proto rename (binary wire-compatible; protobuf field numbers unchanged). Signed-off-by: flemming-it --- lib/src/generated/chain/v1/common.pb.dart | 38 +++++++++---------- lib/src/generated/chain/v1/common.pbenum.dart | 38 +++++++++---------- lib/src/generated/chain/v1/common.pbjson.dart | 28 +++++++------- lib/src/generated/chain/v1/federation.pb.dart | 16 ++++---- .../generated/chain/v1/federation.pbjson.dart | 12 +++--- lib/src/generated/chain/v1/module.pb.dart | 12 +++--- lib/src/generated/chain/v1/module.pbjson.dart | 6 +-- 7 files changed, 75 insertions(+), 75 deletions(-) diff --git a/lib/src/generated/chain/v1/common.pb.dart b/lib/src/generated/chain/v1/common.pb.dart index 16691d8..1490fce 100644 --- a/lib/src/generated/chain/v1/common.pb.dart +++ b/lib/src/generated/chain/v1/common.pb.dart @@ -434,9 +434,9 @@ class FileRef extends $pb.GeneratedMessage { } /// Standard error shape for hub and module responses. -class FaiError extends $pb.GeneratedMessage { - factory FaiError({ - FaiError_Code? code, +class ChainError extends $pb.GeneratedMessage { + factory ChainError({ + ChainError_Code? code, $core.String? message, $core.String? details, }) { @@ -447,47 +447,47 @@ class FaiError extends $pb.GeneratedMessage { return result; } - FaiError._(); + ChainError._(); - factory FaiError.fromBuffer($core.List<$core.int> data, + factory ChainError.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); - factory FaiError.fromJson($core.String json, + factory ChainError.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); static final $pb.BuilderInfo _i = $pb.BuilderInfo( - _omitMessageNames ? '' : 'FaiError', + _omitMessageNames ? '' : 'ChainError', package: const $pb.PackageName(_omitMessageNames ? '' : 'chain.v1'), createEmptyInstance: create) - ..aE(1, _omitFieldNames ? '' : 'code', - enumValues: FaiError_Code.values) + ..aE(1, _omitFieldNames ? '' : 'code', + enumValues: ChainError_Code.values) ..aOS(2, _omitFieldNames ? '' : 'message') ..aOS(3, _omitFieldNames ? '' : 'details') ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - FaiError clone() => deepCopy(); + ChainError clone() => deepCopy(); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') - FaiError copyWith(void Function(FaiError) updates) => - super.copyWith((message) => updates(message as FaiError)) as FaiError; + ChainError copyWith(void Function(ChainError) updates) => + super.copyWith((message) => updates(message as ChainError)) as ChainError; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static FaiError create() => FaiError._(); + static ChainError create() => ChainError._(); @$core.override - FaiError createEmptyInstance() => create(); + ChainError createEmptyInstance() => create(); @$core.pragma('dart2js:noInline') - static FaiError getDefault() => - _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static FaiError? _defaultInstance; + static ChainError getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static ChainError? _defaultInstance; @$pb.TagNumber(1) - FaiError_Code get code => $_getN(0); + ChainError_Code get code => $_getN(0); @$pb.TagNumber(1) - set code(FaiError_Code value) => $_setField(1, value); + set code(ChainError_Code value) => $_setField(1, value); @$pb.TagNumber(1) $core.bool hasCode() => $_has(0); @$pb.TagNumber(1) diff --git a/lib/src/generated/chain/v1/common.pbenum.dart b/lib/src/generated/chain/v1/common.pbenum.dart index 6f52e9a..1cd451c 100644 --- a/lib/src/generated/chain/v1/common.pbenum.dart +++ b/lib/src/generated/chain/v1/common.pbenum.dart @@ -14,23 +14,23 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -class FaiError_Code extends $pb.ProtobufEnum { - static const FaiError_Code UNKNOWN = - FaiError_Code._(0, _omitEnumNames ? '' : 'UNKNOWN'); - static const FaiError_Code INVALID_INPUT = - FaiError_Code._(1, _omitEnumNames ? '' : 'INVALID_INPUT'); - static const FaiError_Code CAPABILITY_NOT_SUPPORTED = - FaiError_Code._(2, _omitEnumNames ? '' : 'CAPABILITY_NOT_SUPPORTED'); - static const FaiError_Code PERMISSION_DENIED = - FaiError_Code._(3, _omitEnumNames ? '' : 'PERMISSION_DENIED'); - static const FaiError_Code RESOURCE_EXHAUSTED = - FaiError_Code._(4, _omitEnumNames ? '' : 'RESOURCE_EXHAUSTED'); - static const FaiError_Code DEADLINE_EXCEEDED = - FaiError_Code._(5, _omitEnumNames ? '' : 'DEADLINE_EXCEEDED'); - static const FaiError_Code INTERNAL = - FaiError_Code._(6, _omitEnumNames ? '' : 'INTERNAL'); +class ChainError_Code extends $pb.ProtobufEnum { + static const ChainError_Code UNKNOWN = + ChainError_Code._(0, _omitEnumNames ? '' : 'UNKNOWN'); + static const ChainError_Code INVALID_INPUT = + ChainError_Code._(1, _omitEnumNames ? '' : 'INVALID_INPUT'); + static const ChainError_Code CAPABILITY_NOT_SUPPORTED = + ChainError_Code._(2, _omitEnumNames ? '' : 'CAPABILITY_NOT_SUPPORTED'); + static const ChainError_Code PERMISSION_DENIED = + ChainError_Code._(3, _omitEnumNames ? '' : 'PERMISSION_DENIED'); + static const ChainError_Code RESOURCE_EXHAUSTED = + ChainError_Code._(4, _omitEnumNames ? '' : 'RESOURCE_EXHAUSTED'); + static const ChainError_Code DEADLINE_EXCEEDED = + ChainError_Code._(5, _omitEnumNames ? '' : 'DEADLINE_EXCEEDED'); + static const ChainError_Code INTERNAL = + ChainError_Code._(6, _omitEnumNames ? '' : 'INTERNAL'); - static const $core.List values = [ + static const $core.List values = [ UNKNOWN, INVALID_INPUT, CAPABILITY_NOT_SUPPORTED, @@ -40,12 +40,12 @@ class FaiError_Code extends $pb.ProtobufEnum { INTERNAL, ]; - static final $core.List _byValue = + static final $core.List _byValue = $pb.ProtobufEnum.$_initByValueList(values, 6); - static FaiError_Code? valueOf($core.int value) => + static ChainError_Code? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value]; - const FaiError_Code._(super.value, super.name); + const ChainError_Code._(super.value, super.name); } const $core.bool _omitEnumNames = diff --git a/lib/src/generated/chain/v1/common.pbjson.dart b/lib/src/generated/chain/v1/common.pbjson.dart index 98d7839..3f4d860 100644 --- a/lib/src/generated/chain/v1/common.pbjson.dart +++ b/lib/src/generated/chain/v1/common.pbjson.dart @@ -117,26 +117,26 @@ final $typed_data.Uint8List fileRefDescriptor = $convert.base64Decode( 'CgdGaWxlUmVmEhAKA3VyaRgBIAEoCVIDdXJpEhsKCW1pbWVfdHlwZRgCIAEoCVIIbWltZVR5cG' 'USHQoKc2l6ZV9ieXRlcxgDIAEoBFIJc2l6ZUJ5dGVzEhYKBnNoYTI1NhgEIAEoCVIGc2hhMjU2'); -@$core.Deprecated('Use faiErrorDescriptor instead') -const FaiError$json = { - '1': 'FaiError', +@$core.Deprecated('Use chainErrorDescriptor instead') +const ChainError$json = { + '1': 'ChainError', '2': [ { '1': 'code', '3': 1, '4': 1, '5': 14, - '6': '.chain.v1.FaiError.Code', + '6': '.chain.v1.ChainError.Code', '10': 'code' }, {'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'}, {'1': 'details', '3': 3, '4': 1, '5': 9, '10': 'details'}, ], - '4': [FaiError_Code$json], + '4': [ChainError_Code$json], }; -@$core.Deprecated('Use faiErrorDescriptor instead') -const FaiError_Code$json = { +@$core.Deprecated('Use chainErrorDescriptor instead') +const ChainError_Code$json = { '1': 'Code', '2': [ {'1': 'UNKNOWN', '2': 0}, @@ -149,10 +149,10 @@ const FaiError_Code$json = { ], }; -/// Descriptor for `FaiError`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List faiErrorDescriptor = $convert.base64Decode( - 'CghGYWlFcnJvchIrCgRjb2RlGAEgASgOMhcuY2hhaW4udjEuRmFpRXJyb3IuQ29kZVIEY29kZR' - 'IYCgdtZXNzYWdlGAIgASgJUgdtZXNzYWdlEhgKB2RldGFpbHMYAyABKAlSB2RldGFpbHMimAEK' - 'BENvZGUSCwoHVU5LTk9XThAAEhEKDUlOVkFMSURfSU5QVVQQARIcChhDQVBBQklMSVRZX05PVF' - '9TVVBQT1JURUQQAhIVChFQRVJNSVNTSU9OX0RFTklFRBADEhYKElJFU09VUkNFX0VYSEFVU1RF' - 'RBAEEhUKEURFQURMSU5FX0VYQ0VFREVEEAUSDAoISU5URVJOQUwQBg=='); +/// Descriptor for `ChainError`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List chainErrorDescriptor = $convert.base64Decode( + 'CgpDaGFpbkVycm9yEi0KBGNvZGUYASABKA4yGS5jaGFpbi52MS5DaGFpbkVycm9yLkNvZGVSBG' + 'NvZGUSGAoHbWVzc2FnZRgCIAEoCVIHbWVzc2FnZRIYCgdkZXRhaWxzGAMgASgJUgdkZXRhaWxz' + 'IpgBCgRDb2RlEgsKB1VOS05PV04QABIRCg1JTlZBTElEX0lOUFVUEAESHAoYQ0FQQUJJTElUWV' + '9OT1RfU1VQUE9SVEVEEAISFQoRUEVSTUlTU0lPTl9ERU5JRUQQAxIWChJSRVNPVVJDRV9FWEhB' + 'VVNURUQQBBIVChFERUFETElORV9FWENFRURFRBAFEgwKCElOVEVSTkFMEAY='); diff --git a/lib/src/generated/chain/v1/federation.pb.dart b/lib/src/generated/chain/v1/federation.pb.dart index f59ca63..3128a0d 100644 --- a/lib/src/generated/chain/v1/federation.pb.dart +++ b/lib/src/generated/chain/v1/federation.pb.dart @@ -1640,7 +1640,7 @@ class DispatchRequest extends $pb.GeneratedMessage { class DispatchResponse extends $pb.GeneratedMessage { factory DispatchResponse({ $core.Iterable<$core.MapEntry<$core.String, $1.Payload>>? outputs, - $1.FaiError? error, + $1.ChainError? error, $core.int? durationMs, $core.String? executedAtHubId, }) { @@ -1672,8 +1672,8 @@ class DispatchResponse extends $pb.GeneratedMessage { valueCreator: $1.Payload.create, valueDefaultOrMaker: $1.Payload.getDefault, packageName: const $pb.PackageName('chain.v1')) - ..aOM<$1.FaiError>(2, _omitFieldNames ? '' : 'error', - subBuilder: $1.FaiError.create) + ..aOM<$1.ChainError>(2, _omitFieldNames ? '' : 'error', + subBuilder: $1.ChainError.create) ..aI(3, _omitFieldNames ? '' : 'durationMs', fieldType: $pb.PbFieldType.OU3) ..aOS(4, _omitFieldNames ? '' : 'executedAtHubId') ..hasRequiredFields = false; @@ -1701,18 +1701,18 @@ class DispatchResponse extends $pb.GeneratedMessage { @$pb.TagNumber(1) $pb.PbMap<$core.String, $1.Payload> get outputs => $_getMap(0); - /// Error shape on failure. The `code` mirrors common.FaiError - /// codes; the satellite maps its local FaiError to this wire. + /// Error shape on failure. The `code` mirrors common.ChainError + /// codes; the satellite maps its local ChainError to this wire. @$pb.TagNumber(2) - $1.FaiError get error => $_getN(1); + $1.ChainError get error => $_getN(1); @$pb.TagNumber(2) - set error($1.FaiError value) => $_setField(2, value); + set error($1.ChainError value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasError() => $_has(1); @$pb.TagNumber(2) void clearError() => $_clearField(2); @$pb.TagNumber(2) - $1.FaiError ensureError() => $_ensure(1); + $1.ChainError ensureError() => $_ensure(1); /// Wall-clock duration of the actual module invocation at the /// satellite, in milliseconds. Excludes federation transport. diff --git a/lib/src/generated/chain/v1/federation.pbjson.dart b/lib/src/generated/chain/v1/federation.pbjson.dart index 12185eb..c11e5f8 100644 --- a/lib/src/generated/chain/v1/federation.pbjson.dart +++ b/lib/src/generated/chain/v1/federation.pbjson.dart @@ -485,7 +485,7 @@ const DispatchResponse$json = { '3': 2, '4': 1, '5': 11, - '6': '.chain.v1.FaiError', + '6': '.chain.v1.ChainError', '10': 'error' }, {'1': 'duration_ms', '3': 3, '4': 1, '5': 13, '10': 'durationMs'}, @@ -520,11 +520,11 @@ const DispatchResponse_OutputsEntry$json = { /// Descriptor for `DispatchResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List dispatchResponseDescriptor = $convert.base64Decode( 'ChBEaXNwYXRjaFJlc3BvbnNlEkEKB291dHB1dHMYASADKAsyJy5jaGFpbi52MS5EaXNwYXRjaF' - 'Jlc3BvbnNlLk91dHB1dHNFbnRyeVIHb3V0cHV0cxIoCgVlcnJvchgCIAEoCzISLmNoYWluLnYx' - 'LkZhaUVycm9yUgVlcnJvchIfCgtkdXJhdGlvbl9tcxgDIAEoDVIKZHVyYXRpb25NcxIrChJleG' - 'VjdXRlZF9hdF9odWJfaWQYBCABKAlSD2V4ZWN1dGVkQXRIdWJJZBpNCgxPdXRwdXRzRW50cnkS' - 'EAoDa2V5GAEgASgJUgNrZXkSJwoFdmFsdWUYAiABKAsyES5jaGFpbi52MS5QYXlsb2FkUgV2YW' - 'x1ZToCOAE='); + 'Jlc3BvbnNlLk91dHB1dHNFbnRyeVIHb3V0cHV0cxIqCgVlcnJvchgCIAEoCzIULmNoYWluLnYx' + 'LkNoYWluRXJyb3JSBWVycm9yEh8KC2R1cmF0aW9uX21zGAMgASgNUgpkdXJhdGlvbk1zEisKEm' + 'V4ZWN1dGVkX2F0X2h1Yl9pZBgEIAEoCVIPZXhlY3V0ZWRBdEh1YklkGk0KDE91dHB1dHNFbnRy' + 'eRIQCgNrZXkYASABKAlSA2tleRInCgV2YWx1ZRgCIAEoCzIRLmNoYWluLnYxLlBheWxvYWRSBX' + 'ZhbHVlOgI4AQ=='); @$core.Deprecated('Use blobChunkDescriptor instead') const BlobChunk$json = { diff --git a/lib/src/generated/chain/v1/module.pb.dart b/lib/src/generated/chain/v1/module.pb.dart index 654be26..b1e0f2b 100644 --- a/lib/src/generated/chain/v1/module.pb.dart +++ b/lib/src/generated/chain/v1/module.pb.dart @@ -122,7 +122,7 @@ enum InvokeResponse_Result { success, error, notSet } class InvokeResponse extends $pb.GeneratedMessage { factory InvokeResponse({ Success? success, - $2.FaiError? error, + $2.ChainError? error, }) { final result = create(); if (success != null) result.success = success; @@ -152,8 +152,8 @@ class InvokeResponse extends $pb.GeneratedMessage { ..oo(0, [1, 2]) ..aOM(1, _omitFieldNames ? '' : 'success', subBuilder: Success.create) - ..aOM<$2.FaiError>(2, _omitFieldNames ? '' : 'error', - subBuilder: $2.FaiError.create) + ..aOM<$2.ChainError>(2, _omitFieldNames ? '' : 'error', + subBuilder: $2.ChainError.create) ..hasRequiredFields = false; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @@ -195,15 +195,15 @@ class InvokeResponse extends $pb.GeneratedMessage { Success ensureSuccess() => $_ensure(0); @$pb.TagNumber(2) - $2.FaiError get error => $_getN(1); + $2.ChainError get error => $_getN(1); @$pb.TagNumber(2) - set error($2.FaiError value) => $_setField(2, value); + set error($2.ChainError value) => $_setField(2, value); @$pb.TagNumber(2) $core.bool hasError() => $_has(1); @$pb.TagNumber(2) void clearError() => $_clearField(2); @$pb.TagNumber(2) - $2.FaiError ensureError() => $_ensure(1); + $2.ChainError ensureError() => $_ensure(1); } class Success extends $pb.GeneratedMessage { diff --git a/lib/src/generated/chain/v1/module.pbjson.dart b/lib/src/generated/chain/v1/module.pbjson.dart index bb1ab65..ca1e20f 100644 --- a/lib/src/generated/chain/v1/module.pbjson.dart +++ b/lib/src/generated/chain/v1/module.pbjson.dart @@ -92,7 +92,7 @@ const InvokeResponse$json = { '3': 2, '4': 1, '5': 11, - '6': '.chain.v1.FaiError', + '6': '.chain.v1.ChainError', '9': 0, '10': 'error' }, @@ -105,8 +105,8 @@ const InvokeResponse$json = { /// Descriptor for `InvokeResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List invokeResponseDescriptor = $convert.base64Decode( 'Cg5JbnZva2VSZXNwb25zZRItCgdzdWNjZXNzGAEgASgLMhEuY2hhaW4udjEuU3VjY2Vzc0gAUg' - 'dzdWNjZXNzEioKBWVycm9yGAIgASgLMhIuY2hhaW4udjEuRmFpRXJyb3JIAFIFZXJyb3JCCAoG' - 'cmVzdWx0'); + 'dzdWNjZXNzEiwKBWVycm9yGAIgASgLMhQuY2hhaW4udjEuQ2hhaW5FcnJvckgAUgVlcnJvckII' + 'CgZyZXN1bHQ='); @$core.Deprecated('Use successDescriptor instead') const Success$json = {