refactor!: regenerate stubs — wire message FaiError is now ChainError
Some checks failed
Security / Security check (push) Failing after 1s

Lockstep with the platform's proto rename (binary wire-compatible;
protobuf field numbers unchanged).

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
flemming-it 2026-07-11 23:14:21 +02:00
parent 58ff6b2376
commit 408f0eb850
7 changed files with 75 additions and 75 deletions

View file

@ -434,9 +434,9 @@ class FileRef extends $pb.GeneratedMessage {
} }
/// Standard error shape for hub and module responses. /// Standard error shape for hub and module responses.
class FaiError extends $pb.GeneratedMessage { class ChainError extends $pb.GeneratedMessage {
factory FaiError({ factory ChainError({
FaiError_Code? code, ChainError_Code? code,
$core.String? message, $core.String? message,
$core.String? details, $core.String? details,
}) { }) {
@ -447,47 +447,47 @@ class FaiError extends $pb.GeneratedMessage {
return result; 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]) => [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry); create()..mergeFromBuffer(data, registry);
factory FaiError.fromJson($core.String json, factory ChainError.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry); create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo( static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'FaiError', _omitMessageNames ? '' : 'ChainError',
package: const $pb.PackageName(_omitMessageNames ? '' : 'chain.v1'), package: const $pb.PackageName(_omitMessageNames ? '' : 'chain.v1'),
createEmptyInstance: create) createEmptyInstance: create)
..aE<FaiError_Code>(1, _omitFieldNames ? '' : 'code', ..aE<ChainError_Code>(1, _omitFieldNames ? '' : 'code',
enumValues: FaiError_Code.values) enumValues: ChainError_Code.values)
..aOS(2, _omitFieldNames ? '' : 'message') ..aOS(2, _omitFieldNames ? '' : 'message')
..aOS(3, _omitFieldNames ? '' : 'details') ..aOS(3, _omitFieldNames ? '' : 'details')
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$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.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
FaiError copyWith(void Function(FaiError) updates) => ChainError copyWith(void Function(ChainError) updates) =>
super.copyWith((message) => updates(message as FaiError)) as FaiError; super.copyWith((message) => updates(message as ChainError)) as ChainError;
@$core.override @$core.override
$pb.BuilderInfo get info_ => _i; $pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline') @$core.pragma('dart2js:noInline')
static FaiError create() => FaiError._(); static ChainError create() => ChainError._();
@$core.override @$core.override
FaiError createEmptyInstance() => create(); ChainError createEmptyInstance() => create();
@$core.pragma('dart2js:noInline') @$core.pragma('dart2js:noInline')
static FaiError getDefault() => static ChainError getDefault() => _defaultInstance ??=
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FaiError>(create); $pb.GeneratedMessage.$_defaultFor<ChainError>(create);
static FaiError? _defaultInstance; static ChainError? _defaultInstance;
@$pb.TagNumber(1) @$pb.TagNumber(1)
FaiError_Code get code => $_getN(0); ChainError_Code get code => $_getN(0);
@$pb.TagNumber(1) @$pb.TagNumber(1)
set code(FaiError_Code value) => $_setField(1, value); set code(ChainError_Code value) => $_setField(1, value);
@$pb.TagNumber(1) @$pb.TagNumber(1)
$core.bool hasCode() => $_has(0); $core.bool hasCode() => $_has(0);
@$pb.TagNumber(1) @$pb.TagNumber(1)

View file

@ -14,23 +14,23 @@ import 'dart:core' as $core;
import 'package:protobuf/protobuf.dart' as $pb; import 'package:protobuf/protobuf.dart' as $pb;
class FaiError_Code extends $pb.ProtobufEnum { class ChainError_Code extends $pb.ProtobufEnum {
static const FaiError_Code UNKNOWN = static const ChainError_Code UNKNOWN =
FaiError_Code._(0, _omitEnumNames ? '' : 'UNKNOWN'); ChainError_Code._(0, _omitEnumNames ? '' : 'UNKNOWN');
static const FaiError_Code INVALID_INPUT = static const ChainError_Code INVALID_INPUT =
FaiError_Code._(1, _omitEnumNames ? '' : 'INVALID_INPUT'); ChainError_Code._(1, _omitEnumNames ? '' : 'INVALID_INPUT');
static const FaiError_Code CAPABILITY_NOT_SUPPORTED = static const ChainError_Code CAPABILITY_NOT_SUPPORTED =
FaiError_Code._(2, _omitEnumNames ? '' : 'CAPABILITY_NOT_SUPPORTED'); ChainError_Code._(2, _omitEnumNames ? '' : 'CAPABILITY_NOT_SUPPORTED');
static const FaiError_Code PERMISSION_DENIED = static const ChainError_Code PERMISSION_DENIED =
FaiError_Code._(3, _omitEnumNames ? '' : 'PERMISSION_DENIED'); ChainError_Code._(3, _omitEnumNames ? '' : 'PERMISSION_DENIED');
static const FaiError_Code RESOURCE_EXHAUSTED = static const ChainError_Code RESOURCE_EXHAUSTED =
FaiError_Code._(4, _omitEnumNames ? '' : 'RESOURCE_EXHAUSTED'); ChainError_Code._(4, _omitEnumNames ? '' : 'RESOURCE_EXHAUSTED');
static const FaiError_Code DEADLINE_EXCEEDED = static const ChainError_Code DEADLINE_EXCEEDED =
FaiError_Code._(5, _omitEnumNames ? '' : 'DEADLINE_EXCEEDED'); ChainError_Code._(5, _omitEnumNames ? '' : 'DEADLINE_EXCEEDED');
static const FaiError_Code INTERNAL = static const ChainError_Code INTERNAL =
FaiError_Code._(6, _omitEnumNames ? '' : 'INTERNAL'); ChainError_Code._(6, _omitEnumNames ? '' : 'INTERNAL');
static const $core.List<FaiError_Code> values = <FaiError_Code>[ static const $core.List<ChainError_Code> values = <ChainError_Code>[
UNKNOWN, UNKNOWN,
INVALID_INPUT, INVALID_INPUT,
CAPABILITY_NOT_SUPPORTED, CAPABILITY_NOT_SUPPORTED,
@ -40,12 +40,12 @@ class FaiError_Code extends $pb.ProtobufEnum {
INTERNAL, INTERNAL,
]; ];
static final $core.List<FaiError_Code?> _byValue = static final $core.List<ChainError_Code?> _byValue =
$pb.ProtobufEnum.$_initByValueList(values, 6); $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]; 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 = const $core.bool _omitEnumNames =

View file

@ -117,26 +117,26 @@ final $typed_data.Uint8List fileRefDescriptor = $convert.base64Decode(
'CgdGaWxlUmVmEhAKA3VyaRgBIAEoCVIDdXJpEhsKCW1pbWVfdHlwZRgCIAEoCVIIbWltZVR5cG' 'CgdGaWxlUmVmEhAKA3VyaRgBIAEoCVIDdXJpEhsKCW1pbWVfdHlwZRgCIAEoCVIIbWltZVR5cG'
'USHQoKc2l6ZV9ieXRlcxgDIAEoBFIJc2l6ZUJ5dGVzEhYKBnNoYTI1NhgEIAEoCVIGc2hhMjU2'); 'USHQoKc2l6ZV9ieXRlcxgDIAEoBFIJc2l6ZUJ5dGVzEhYKBnNoYTI1NhgEIAEoCVIGc2hhMjU2');
@$core.Deprecated('Use faiErrorDescriptor instead') @$core.Deprecated('Use chainErrorDescriptor instead')
const FaiError$json = { const ChainError$json = {
'1': 'FaiError', '1': 'ChainError',
'2': [ '2': [
{ {
'1': 'code', '1': 'code',
'3': 1, '3': 1,
'4': 1, '4': 1,
'5': 14, '5': 14,
'6': '.chain.v1.FaiError.Code', '6': '.chain.v1.ChainError.Code',
'10': 'code' '10': 'code'
}, },
{'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'}, {'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'},
{'1': 'details', '3': 3, '4': 1, '5': 9, '10': 'details'}, {'1': 'details', '3': 3, '4': 1, '5': 9, '10': 'details'},
], ],
'4': [FaiError_Code$json], '4': [ChainError_Code$json],
}; };
@$core.Deprecated('Use faiErrorDescriptor instead') @$core.Deprecated('Use chainErrorDescriptor instead')
const FaiError_Code$json = { const ChainError_Code$json = {
'1': 'Code', '1': 'Code',
'2': [ '2': [
{'1': 'UNKNOWN', '2': 0}, {'1': 'UNKNOWN', '2': 0},
@ -149,10 +149,10 @@ const FaiError_Code$json = {
], ],
}; };
/// Descriptor for `FaiError`. Decode as a `google.protobuf.DescriptorProto`. /// Descriptor for `ChainError`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List faiErrorDescriptor = $convert.base64Decode( final $typed_data.Uint8List chainErrorDescriptor = $convert.base64Decode(
'CghGYWlFcnJvchIrCgRjb2RlGAEgASgOMhcuY2hhaW4udjEuRmFpRXJyb3IuQ29kZVIEY29kZR' 'CgpDaGFpbkVycm9yEi0KBGNvZGUYASABKA4yGS5jaGFpbi52MS5DaGFpbkVycm9yLkNvZGVSBG'
'IYCgdtZXNzYWdlGAIgASgJUgdtZXNzYWdlEhgKB2RldGFpbHMYAyABKAlSB2RldGFpbHMimAEK' 'NvZGUSGAoHbWVzc2FnZRgCIAEoCVIHbWVzc2FnZRIYCgdkZXRhaWxzGAMgASgJUgdkZXRhaWxz'
'BENvZGUSCwoHVU5LTk9XThAAEhEKDUlOVkFMSURfSU5QVVQQARIcChhDQVBBQklMSVRZX05PVF' 'IpgBCgRDb2RlEgsKB1VOS05PV04QABIRCg1JTlZBTElEX0lOUFVUEAESHAoYQ0FQQUJJTElUWV'
'9TVVBQT1JURUQQAhIVChFQRVJNSVNTSU9OX0RFTklFRBADEhYKElJFU09VUkNFX0VYSEFVU1RF' '9OT1RfU1VQUE9SVEVEEAISFQoRUEVSTUlTU0lPTl9ERU5JRUQQAxIWChJSRVNPVVJDRV9FWEhB'
'RBAEEhUKEURFQURMSU5FX0VYQ0VFREVEEAUSDAoISU5URVJOQUwQBg=='); 'VVNURUQQBBIVChFERUFETElORV9FWENFRURFRBAFEgwKCElOVEVSTkFMEAY=');

View file

@ -1640,7 +1640,7 @@ class DispatchRequest extends $pb.GeneratedMessage {
class DispatchResponse extends $pb.GeneratedMessage { class DispatchResponse extends $pb.GeneratedMessage {
factory DispatchResponse({ factory DispatchResponse({
$core.Iterable<$core.MapEntry<$core.String, $1.Payload>>? outputs, $core.Iterable<$core.MapEntry<$core.String, $1.Payload>>? outputs,
$1.FaiError? error, $1.ChainError? error,
$core.int? durationMs, $core.int? durationMs,
$core.String? executedAtHubId, $core.String? executedAtHubId,
}) { }) {
@ -1672,8 +1672,8 @@ class DispatchResponse extends $pb.GeneratedMessage {
valueCreator: $1.Payload.create, valueCreator: $1.Payload.create,
valueDefaultOrMaker: $1.Payload.getDefault, valueDefaultOrMaker: $1.Payload.getDefault,
packageName: const $pb.PackageName('chain.v1')) packageName: const $pb.PackageName('chain.v1'))
..aOM<$1.FaiError>(2, _omitFieldNames ? '' : 'error', ..aOM<$1.ChainError>(2, _omitFieldNames ? '' : 'error',
subBuilder: $1.FaiError.create) subBuilder: $1.ChainError.create)
..aI(3, _omitFieldNames ? '' : 'durationMs', fieldType: $pb.PbFieldType.OU3) ..aI(3, _omitFieldNames ? '' : 'durationMs', fieldType: $pb.PbFieldType.OU3)
..aOS(4, _omitFieldNames ? '' : 'executedAtHubId') ..aOS(4, _omitFieldNames ? '' : 'executedAtHubId')
..hasRequiredFields = false; ..hasRequiredFields = false;
@ -1701,18 +1701,18 @@ class DispatchResponse extends $pb.GeneratedMessage {
@$pb.TagNumber(1) @$pb.TagNumber(1)
$pb.PbMap<$core.String, $1.Payload> get outputs => $_getMap(0); $pb.PbMap<$core.String, $1.Payload> get outputs => $_getMap(0);
/// Error shape on failure. The `code` mirrors common.FaiError /// Error shape on failure. The `code` mirrors common.ChainError
/// codes; the satellite maps its local FaiError to this wire. /// codes; the satellite maps its local ChainError to this wire.
@$pb.TagNumber(2) @$pb.TagNumber(2)
$1.FaiError get error => $_getN(1); $1.ChainError get error => $_getN(1);
@$pb.TagNumber(2) @$pb.TagNumber(2)
set error($1.FaiError value) => $_setField(2, value); set error($1.ChainError value) => $_setField(2, value);
@$pb.TagNumber(2) @$pb.TagNumber(2)
$core.bool hasError() => $_has(1); $core.bool hasError() => $_has(1);
@$pb.TagNumber(2) @$pb.TagNumber(2)
void clearError() => $_clearField(2); void clearError() => $_clearField(2);
@$pb.TagNumber(2) @$pb.TagNumber(2)
$1.FaiError ensureError() => $_ensure(1); $1.ChainError ensureError() => $_ensure(1);
/// Wall-clock duration of the actual module invocation at the /// Wall-clock duration of the actual module invocation at the
/// satellite, in milliseconds. Excludes federation transport. /// satellite, in milliseconds. Excludes federation transport.

View file

@ -485,7 +485,7 @@ const DispatchResponse$json = {
'3': 2, '3': 2,
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.chain.v1.FaiError', '6': '.chain.v1.ChainError',
'10': 'error' '10': 'error'
}, },
{'1': 'duration_ms', '3': 3, '4': 1, '5': 13, '10': 'durationMs'}, {'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`. /// Descriptor for `DispatchResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List dispatchResponseDescriptor = $convert.base64Decode( final $typed_data.Uint8List dispatchResponseDescriptor = $convert.base64Decode(
'ChBEaXNwYXRjaFJlc3BvbnNlEkEKB291dHB1dHMYASADKAsyJy5jaGFpbi52MS5EaXNwYXRjaF' 'ChBEaXNwYXRjaFJlc3BvbnNlEkEKB291dHB1dHMYASADKAsyJy5jaGFpbi52MS5EaXNwYXRjaF'
'Jlc3BvbnNlLk91dHB1dHNFbnRyeVIHb3V0cHV0cxIoCgVlcnJvchgCIAEoCzISLmNoYWluLnYx' 'Jlc3BvbnNlLk91dHB1dHNFbnRyeVIHb3V0cHV0cxIqCgVlcnJvchgCIAEoCzIULmNoYWluLnYx'
'LkZhaUVycm9yUgVlcnJvchIfCgtkdXJhdGlvbl9tcxgDIAEoDVIKZHVyYXRpb25NcxIrChJleG' 'LkNoYWluRXJyb3JSBWVycm9yEh8KC2R1cmF0aW9uX21zGAMgASgNUgpkdXJhdGlvbk1zEisKEm'
'VjdXRlZF9hdF9odWJfaWQYBCABKAlSD2V4ZWN1dGVkQXRIdWJJZBpNCgxPdXRwdXRzRW50cnkS' 'V4ZWN1dGVkX2F0X2h1Yl9pZBgEIAEoCVIPZXhlY3V0ZWRBdEh1YklkGk0KDE91dHB1dHNFbnRy'
'EAoDa2V5GAEgASgJUgNrZXkSJwoFdmFsdWUYAiABKAsyES5jaGFpbi52MS5QYXlsb2FkUgV2YW' 'eRIQCgNrZXkYASABKAlSA2tleRInCgV2YWx1ZRgCIAEoCzIRLmNoYWluLnYxLlBheWxvYWRSBX'
'x1ZToCOAE='); 'ZhbHVlOgI4AQ==');
@$core.Deprecated('Use blobChunkDescriptor instead') @$core.Deprecated('Use blobChunkDescriptor instead')
const BlobChunk$json = { const BlobChunk$json = {

View file

@ -122,7 +122,7 @@ enum InvokeResponse_Result { success, error, notSet }
class InvokeResponse extends $pb.GeneratedMessage { class InvokeResponse extends $pb.GeneratedMessage {
factory InvokeResponse({ factory InvokeResponse({
Success? success, Success? success,
$2.FaiError? error, $2.ChainError? error,
}) { }) {
final result = create(); final result = create();
if (success != null) result.success = success; if (success != null) result.success = success;
@ -152,8 +152,8 @@ class InvokeResponse extends $pb.GeneratedMessage {
..oo(0, [1, 2]) ..oo(0, [1, 2])
..aOM<Success>(1, _omitFieldNames ? '' : 'success', ..aOM<Success>(1, _omitFieldNames ? '' : 'success',
subBuilder: Success.create) subBuilder: Success.create)
..aOM<$2.FaiError>(2, _omitFieldNames ? '' : 'error', ..aOM<$2.ChainError>(2, _omitFieldNames ? '' : 'error',
subBuilder: $2.FaiError.create) subBuilder: $2.ChainError.create)
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@ -195,15 +195,15 @@ class InvokeResponse extends $pb.GeneratedMessage {
Success ensureSuccess() => $_ensure(0); Success ensureSuccess() => $_ensure(0);
@$pb.TagNumber(2) @$pb.TagNumber(2)
$2.FaiError get error => $_getN(1); $2.ChainError get error => $_getN(1);
@$pb.TagNumber(2) @$pb.TagNumber(2)
set error($2.FaiError value) => $_setField(2, value); set error($2.ChainError value) => $_setField(2, value);
@$pb.TagNumber(2) @$pb.TagNumber(2)
$core.bool hasError() => $_has(1); $core.bool hasError() => $_has(1);
@$pb.TagNumber(2) @$pb.TagNumber(2)
void clearError() => $_clearField(2); void clearError() => $_clearField(2);
@$pb.TagNumber(2) @$pb.TagNumber(2)
$2.FaiError ensureError() => $_ensure(1); $2.ChainError ensureError() => $_ensure(1);
} }
class Success extends $pb.GeneratedMessage { class Success extends $pb.GeneratedMessage {

View file

@ -92,7 +92,7 @@ const InvokeResponse$json = {
'3': 2, '3': 2,
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.chain.v1.FaiError', '6': '.chain.v1.ChainError',
'9': 0, '9': 0,
'10': 'error' '10': 'error'
}, },
@ -105,8 +105,8 @@ const InvokeResponse$json = {
/// Descriptor for `InvokeResponse`. Decode as a `google.protobuf.DescriptorProto`. /// Descriptor for `InvokeResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List invokeResponseDescriptor = $convert.base64Decode( final $typed_data.Uint8List invokeResponseDescriptor = $convert.base64Decode(
'Cg5JbnZva2VSZXNwb25zZRItCgdzdWNjZXNzGAEgASgLMhEuY2hhaW4udjEuU3VjY2Vzc0gAUg' 'Cg5JbnZva2VSZXNwb25zZRItCgdzdWNjZXNzGAEgASgLMhEuY2hhaW4udjEuU3VjY2Vzc0gAUg'
'dzdWNjZXNzEioKBWVycm9yGAIgASgLMhIuY2hhaW4udjEuRmFpRXJyb3JIAFIFZXJyb3JCCAoG' 'dzdWNjZXNzEiwKBWVycm9yGAIgASgLMhQuY2hhaW4udjEuQ2hhaW5FcnJvckgAUgVlcnJvckII'
'cmVzdWx0'); 'CgZyZXN1bHQ=');
@$core.Deprecated('Use successDescriptor instead') @$core.Deprecated('Use successDescriptor instead')
const Success$json = { const Success$json = {