chore(deps): grpc 4→5, protobuf 4→6
Some checks failed
Security / Security check (push) Failing after 2s

Two coupled majors that have been blocking the rest of the
Dart-side dependency lift in Studio (the constraint solver
pins meta/characters/etc. through these). Picked up:

- grpc 5.1.0 (was 4.2.0)
- protobuf 6.0.0 (was 4.2.0)
- analyzer 13.0.0, _fe_analyzer_shared 100.0.0
- google_cloud 0.5.0, googleapis_auth 2.3.1 (transitive)

The bindings now live in `lib/src/generated/fai/v1/` only —
the well-known-types `lib/src/generated/google/protobuf/`
copy has been deleted. protobuf 6 ships its own bundled
`well_known_types/google/protobuf/empty.pb.dart` and the
`HubAdminClient` API expects the *packaged* Empty type;
emitting a local copy created two distinct Empty types and
broke every `_admin.<rpc>(Empty())` call site.

`tools/generate.sh` now skips the WKT generation pass and
wipes `lib/src/generated/google/` on every run so the
duplicate-types breakage can't regress silently. The
import in `hub_client.dart` switches from the local copy to
`package:protobuf/well_known_types/google/protobuf/empty.pb
.dart`.

Smoke-verified: dart analyze clean, dart test green
(4 tests). Bumped to 0.17.0 — Studio absorbs in the next
commit.

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
flemming-it 2026-05-29 14:35:05 +02:00
parent 427bd6c0d9
commit 023adcec31
23 changed files with 4311 additions and 3652 deletions

View file

@ -1,20 +1,21 @@
// This is a generated file - do not edit.
//
// Generated code. Do not modify.
// source: fai/v1/common.proto
//
// Generated from fai/v1/common.proto.
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
import 'dart:core' as $core;
import 'package:fixnum/fixnum.dart' as $fixnum;
import 'package:protobuf/protobuf.dart' as $pb;
import 'package:protobuf/well_known_types/google/protobuf/struct.pb.dart' as $0;
import '../../google/protobuf/struct.pb.dart' as $3;
import 'common.pbenum.dart';
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
@ -26,40 +27,50 @@ class InvocationId extends $pb.GeneratedMessage {
factory InvocationId({
$core.String? value,
}) {
final $result = create();
if (value != null) {
$result.value = value;
}
return $result;
final result = create();
if (value != null) result.value = value;
return result;
}
InvocationId._() : super();
factory InvocationId.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory InvocationId.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'InvocationId', package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'), createEmptyInstance: create)
InvocationId._();
factory InvocationId.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory InvocationId.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'InvocationId',
package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'value')
..hasRequiredFields = false
;
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
InvocationId clone() => InvocationId()..mergeFromMessage(this);
InvocationId clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
InvocationId copyWith(void Function(InvocationId) updates) => super.copyWith((message) => updates(message as InvocationId)) as InvocationId;
InvocationId copyWith(void Function(InvocationId) updates) =>
super.copyWith((message) => updates(message as InvocationId))
as InvocationId;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static InvocationId create() => InvocationId._();
@$core.override
InvocationId createEmptyInstance() => create();
static $pb.PbList<InvocationId> createRepeated() => $pb.PbList<InvocationId>();
@$core.pragma('dart2js:noInline')
static InvocationId getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<InvocationId>(create);
static InvocationId getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<InvocationId>(create);
static InvocationId? _defaultInstance;
@$pb.TagNumber(1)
$core.String get value => $_getSZ(0);
@$pb.TagNumber(1)
set value($core.String v) { $_setString(0, v); }
set value($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasValue() => $_has(0);
@$pb.TagNumber(1)
@ -75,48 +86,54 @@ class CapabilityRef extends $pb.GeneratedMessage {
$core.String? name,
$core.String? versionReq,
}) {
final $result = create();
if (namespace != null) {
$result.namespace = namespace;
}
if (name != null) {
$result.name = name;
}
if (versionReq != null) {
$result.versionReq = versionReq;
}
return $result;
final result = create();
if (namespace != null) result.namespace = namespace;
if (name != null) result.name = name;
if (versionReq != null) result.versionReq = versionReq;
return result;
}
CapabilityRef._() : super();
factory CapabilityRef.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory CapabilityRef.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CapabilityRef', package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'), createEmptyInstance: create)
CapabilityRef._();
factory CapabilityRef.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory CapabilityRef.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'CapabilityRef',
package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'namespace')
..aOS(2, _omitFieldNames ? '' : 'name')
..aOS(3, _omitFieldNames ? '' : 'versionReq')
..hasRequiredFields = false
;
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
CapabilityRef clone() => CapabilityRef()..mergeFromMessage(this);
CapabilityRef clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
CapabilityRef copyWith(void Function(CapabilityRef) updates) => super.copyWith((message) => updates(message as CapabilityRef)) as CapabilityRef;
CapabilityRef copyWith(void Function(CapabilityRef) updates) =>
super.copyWith((message) => updates(message as CapabilityRef))
as CapabilityRef;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static CapabilityRef create() => CapabilityRef._();
@$core.override
CapabilityRef createEmptyInstance() => create();
static $pb.PbList<CapabilityRef> createRepeated() => $pb.PbList<CapabilityRef>();
@$core.pragma('dart2js:noInline')
static CapabilityRef getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CapabilityRef>(create);
static CapabilityRef getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<CapabilityRef>(create);
static CapabilityRef? _defaultInstance;
@$pb.TagNumber(1)
$core.String get namespace => $_getSZ(0);
@$pb.TagNumber(1)
set namespace($core.String v) { $_setString(0, v); }
set namespace($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasNamespace() => $_has(0);
@$pb.TagNumber(1)
@ -125,7 +142,7 @@ class CapabilityRef extends $pb.GeneratedMessage {
@$pb.TagNumber(2)
$core.String get name => $_getSZ(1);
@$pb.TagNumber(2)
set name($core.String v) { $_setString(1, v); }
set name($core.String value) => $_setString(1, value);
@$pb.TagNumber(2)
$core.bool hasName() => $_has(1);
@$pb.TagNumber(2)
@ -134,106 +151,112 @@ class CapabilityRef extends $pb.GeneratedMessage {
@$pb.TagNumber(3)
$core.String get versionReq => $_getSZ(2);
@$pb.TagNumber(3)
set versionReq($core.String v) { $_setString(2, v); }
set versionReq($core.String value) => $_setString(2, value);
@$pb.TagNumber(3)
$core.bool hasVersionReq() => $_has(2);
@$pb.TagNumber(3)
void clearVersionReq() => $_clearField(3);
}
enum Payload_Kind {
text,
json,
bytes,
file,
notSet
}
enum Payload_Kind { text, json, bytes, file, notSet }
/// A typed value passed between flow steps.
class Payload extends $pb.GeneratedMessage {
factory Payload({
$core.String? text,
$3.Struct? json,
$0.Struct? json,
Bytes? bytes,
FileRef? file,
}) {
final $result = create();
if (text != null) {
$result.text = text;
}
if (json != null) {
$result.json = json;
}
if (bytes != null) {
$result.bytes = bytes;
}
if (file != null) {
$result.file = file;
}
return $result;
final result = create();
if (text != null) result.text = text;
if (json != null) result.json = json;
if (bytes != null) result.bytes = bytes;
if (file != null) result.file = file;
return result;
}
Payload._() : super();
factory Payload.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Payload.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
Payload._();
factory Payload.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory Payload.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static const $core.Map<$core.int, Payload_Kind> _Payload_KindByTag = {
1 : Payload_Kind.text,
2 : Payload_Kind.json,
3 : Payload_Kind.bytes,
4 : Payload_Kind.file,
0 : Payload_Kind.notSet
1: Payload_Kind.text,
2: Payload_Kind.json,
3: Payload_Kind.bytes,
4: Payload_Kind.file,
0: Payload_Kind.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Payload', package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'), createEmptyInstance: create)
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'Payload',
package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'),
createEmptyInstance: create)
..oo(0, [1, 2, 3, 4])
..aOS(1, _omitFieldNames ? '' : 'text')
..aOM<$3.Struct>(2, _omitFieldNames ? '' : 'json', subBuilder: $3.Struct.create)
..aOM<$0.Struct>(2, _omitFieldNames ? '' : 'json',
subBuilder: $0.Struct.create)
..aOM<Bytes>(3, _omitFieldNames ? '' : 'bytes', subBuilder: Bytes.create)
..aOM<FileRef>(4, _omitFieldNames ? '' : 'file', subBuilder: FileRef.create)
..hasRequiredFields = false
;
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Payload clone() => Payload()..mergeFromMessage(this);
Payload clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Payload copyWith(void Function(Payload) updates) => super.copyWith((message) => updates(message as Payload)) as Payload;
Payload copyWith(void Function(Payload) updates) =>
super.copyWith((message) => updates(message as Payload)) as Payload;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Payload create() => Payload._();
@$core.override
Payload createEmptyInstance() => create();
static $pb.PbList<Payload> createRepeated() => $pb.PbList<Payload>();
@$core.pragma('dart2js:noInline')
static Payload getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Payload>(create);
static Payload getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Payload>(create);
static Payload? _defaultInstance;
@$pb.TagNumber(1)
@$pb.TagNumber(2)
@$pb.TagNumber(3)
@$pb.TagNumber(4)
Payload_Kind whichKind() => _Payload_KindByTag[$_whichOneof(0)]!;
@$pb.TagNumber(1)
@$pb.TagNumber(2)
@$pb.TagNumber(3)
@$pb.TagNumber(4)
void clearKind() => $_clearField($_whichOneof(0));
@$pb.TagNumber(1)
$core.String get text => $_getSZ(0);
@$pb.TagNumber(1)
set text($core.String v) { $_setString(0, v); }
set text($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasText() => $_has(0);
@$pb.TagNumber(1)
void clearText() => $_clearField(1);
@$pb.TagNumber(2)
$3.Struct get json => $_getN(1);
$0.Struct get json => $_getN(1);
@$pb.TagNumber(2)
set json($3.Struct v) { $_setField(2, v); }
set json($0.Struct value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasJson() => $_has(1);
@$pb.TagNumber(2)
void clearJson() => $_clearField(2);
@$pb.TagNumber(2)
$3.Struct ensureJson() => $_ensure(1);
$0.Struct ensureJson() => $_ensure(1);
@$pb.TagNumber(3)
Bytes get bytes => $_getN(2);
@$pb.TagNumber(3)
set bytes(Bytes v) { $_setField(3, v); }
set bytes(Bytes value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasBytes() => $_has(2);
@$pb.TagNumber(3)
@ -244,7 +267,7 @@ class Payload extends $pb.GeneratedMessage {
@$pb.TagNumber(4)
FileRef get file => $_getN(3);
@$pb.TagNumber(4)
set file(FileRef v) { $_setField(4, v); }
set file(FileRef value) => $_setField(4, value);
@$pb.TagNumber(4)
$core.bool hasFile() => $_has(3);
@$pb.TagNumber(4)
@ -258,44 +281,52 @@ class Bytes extends $pb.GeneratedMessage {
$core.String? mimeType,
$core.List<$core.int>? data,
}) {
final $result = create();
if (mimeType != null) {
$result.mimeType = mimeType;
}
if (data != null) {
$result.data = data;
}
return $result;
final result = create();
if (mimeType != null) result.mimeType = mimeType;
if (data != null) result.data = data;
return result;
}
Bytes._() : super();
factory Bytes.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Bytes.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Bytes', package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'), createEmptyInstance: create)
Bytes._();
factory Bytes.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory Bytes.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'Bytes',
package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'mimeType')
..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY)
..hasRequiredFields = false
;
..a<$core.List<$core.int>>(
2, _omitFieldNames ? '' : 'data', $pb.PbFieldType.OY)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Bytes clone() => Bytes()..mergeFromMessage(this);
Bytes clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Bytes copyWith(void Function(Bytes) updates) => super.copyWith((message) => updates(message as Bytes)) as Bytes;
Bytes copyWith(void Function(Bytes) updates) =>
super.copyWith((message) => updates(message as Bytes)) as Bytes;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Bytes create() => Bytes._();
@$core.override
Bytes createEmptyInstance() => create();
static $pb.PbList<Bytes> createRepeated() => $pb.PbList<Bytes>();
@$core.pragma('dart2js:noInline')
static Bytes getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Bytes>(create);
static Bytes getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Bytes>(create);
static Bytes? _defaultInstance;
@$pb.TagNumber(1)
$core.String get mimeType => $_getSZ(0);
@$pb.TagNumber(1)
set mimeType($core.String v) { $_setString(0, v); }
set mimeType($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasMimeType() => $_has(0);
@$pb.TagNumber(1)
@ -304,7 +335,7 @@ class Bytes extends $pb.GeneratedMessage {
@$pb.TagNumber(2)
$core.List<$core.int> get data => $_getN(1);
@$pb.TagNumber(2)
set data($core.List<$core.int> v) { $_setBytes(1, v); }
set data($core.List<$core.int> value) => $_setBytes(1, value);
@$pb.TagNumber(2)
$core.bool hasData() => $_has(1);
@$pb.TagNumber(2)
@ -318,52 +349,57 @@ class FileRef extends $pb.GeneratedMessage {
$fixnum.Int64? sizeBytes,
$core.String? sha256,
}) {
final $result = create();
if (uri != null) {
$result.uri = uri;
}
if (mimeType != null) {
$result.mimeType = mimeType;
}
if (sizeBytes != null) {
$result.sizeBytes = sizeBytes;
}
if (sha256 != null) {
$result.sha256 = sha256;
}
return $result;
final result = create();
if (uri != null) result.uri = uri;
if (mimeType != null) result.mimeType = mimeType;
if (sizeBytes != null) result.sizeBytes = sizeBytes;
if (sha256 != null) result.sha256 = sha256;
return result;
}
FileRef._() : super();
factory FileRef.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory FileRef.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'FileRef', package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'), createEmptyInstance: create)
FileRef._();
factory FileRef.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory FileRef.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'FileRef',
package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'uri')
..aOS(2, _omitFieldNames ? '' : 'mimeType')
..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'sizeBytes', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO)
..a<$fixnum.Int64>(
3, _omitFieldNames ? '' : 'sizeBytes', $pb.PbFieldType.OU6,
defaultOrMaker: $fixnum.Int64.ZERO)
..aOS(4, _omitFieldNames ? '' : 'sha256')
..hasRequiredFields = false
;
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
FileRef clone() => FileRef()..mergeFromMessage(this);
FileRef clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
FileRef copyWith(void Function(FileRef) updates) => super.copyWith((message) => updates(message as FileRef)) as FileRef;
FileRef copyWith(void Function(FileRef) updates) =>
super.copyWith((message) => updates(message as FileRef)) as FileRef;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static FileRef create() => FileRef._();
@$core.override
FileRef createEmptyInstance() => create();
static $pb.PbList<FileRef> createRepeated() => $pb.PbList<FileRef>();
@$core.pragma('dart2js:noInline')
static FileRef getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FileRef>(create);
static FileRef getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FileRef>(create);
static FileRef? _defaultInstance;
@$pb.TagNumber(1)
$core.String get uri => $_getSZ(0);
@$pb.TagNumber(1)
set uri($core.String v) { $_setString(0, v); }
set uri($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasUri() => $_has(0);
@$pb.TagNumber(1)
@ -372,7 +408,7 @@ class FileRef extends $pb.GeneratedMessage {
@$pb.TagNumber(2)
$core.String get mimeType => $_getSZ(1);
@$pb.TagNumber(2)
set mimeType($core.String v) { $_setString(1, v); }
set mimeType($core.String value) => $_setString(1, value);
@$pb.TagNumber(2)
$core.bool hasMimeType() => $_has(1);
@$pb.TagNumber(2)
@ -381,7 +417,7 @@ class FileRef extends $pb.GeneratedMessage {
@$pb.TagNumber(3)
$fixnum.Int64 get sizeBytes => $_getI64(2);
@$pb.TagNumber(3)
set sizeBytes($fixnum.Int64 v) { $_setInt64(2, v); }
set sizeBytes($fixnum.Int64 value) => $_setInt64(2, value);
@$pb.TagNumber(3)
$core.bool hasSizeBytes() => $_has(2);
@$pb.TagNumber(3)
@ -390,7 +426,7 @@ class FileRef extends $pb.GeneratedMessage {
@$pb.TagNumber(4)
$core.String get sha256 => $_getSZ(3);
@$pb.TagNumber(4)
set sha256($core.String v) { $_setString(3, v); }
set sha256($core.String value) => $_setString(3, value);
@$pb.TagNumber(4)
$core.bool hasSha256() => $_has(3);
@$pb.TagNumber(4)
@ -404,48 +440,54 @@ class FaiError extends $pb.GeneratedMessage {
$core.String? message,
$core.String? details,
}) {
final $result = create();
if (code != null) {
$result.code = code;
}
if (message != null) {
$result.message = message;
}
if (details != null) {
$result.details = details;
}
return $result;
final result = create();
if (code != null) result.code = code;
if (message != null) result.message = message;
if (details != null) result.details = details;
return result;
}
FaiError._() : super();
factory FaiError.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory FaiError.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'FaiError', package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'), createEmptyInstance: create)
..e<FaiError_Code>(1, _omitFieldNames ? '' : 'code', $pb.PbFieldType.OE, defaultOrMaker: FaiError_Code.UNKNOWN, valueOf: FaiError_Code.valueOf, enumValues: FaiError_Code.values)
FaiError._();
factory FaiError.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory FaiError.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'FaiError',
package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'),
createEmptyInstance: create)
..aE<FaiError_Code>(1, _omitFieldNames ? '' : 'code',
enumValues: FaiError_Code.values)
..aOS(2, _omitFieldNames ? '' : 'message')
..aOS(3, _omitFieldNames ? '' : 'details')
..hasRequiredFields = false
;
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
FaiError clone() => FaiError()..mergeFromMessage(this);
FaiError 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;
FaiError copyWith(void Function(FaiError) updates) =>
super.copyWith((message) => updates(message as FaiError)) as FaiError;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static FaiError create() => FaiError._();
@$core.override
FaiError createEmptyInstance() => create();
static $pb.PbList<FaiError> createRepeated() => $pb.PbList<FaiError>();
@$core.pragma('dart2js:noInline')
static FaiError getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FaiError>(create);
static FaiError getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FaiError>(create);
static FaiError? _defaultInstance;
@$pb.TagNumber(1)
FaiError_Code get code => $_getN(0);
@$pb.TagNumber(1)
set code(FaiError_Code v) { $_setField(1, v); }
set code(FaiError_Code value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasCode() => $_has(0);
@$pb.TagNumber(1)
@ -454,7 +496,7 @@ class FaiError extends $pb.GeneratedMessage {
@$pb.TagNumber(2)
$core.String get message => $_getSZ(1);
@$pb.TagNumber(2)
set message($core.String v) { $_setString(1, v); }
set message($core.String value) => $_setString(1, value);
@$pb.TagNumber(2)
$core.bool hasMessage() => $_has(1);
@$pb.TagNumber(2)
@ -463,13 +505,14 @@ class FaiError extends $pb.GeneratedMessage {
@$pb.TagNumber(3)
$core.String get details => $_getSZ(2);
@$pb.TagNumber(3)
set details($core.String v) { $_setString(2, v); }
set details($core.String value) => $_setString(2, value);
@$pb.TagNumber(3)
$core.bool hasDetails() => $_has(2);
@$pb.TagNumber(3)
void clearDetails() => $_clearField(3);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
const $core.bool _omitFieldNames =
$core.bool.fromEnvironment('protobuf.omit_field_names');
const $core.bool _omitMessageNames =
$core.bool.fromEnvironment('protobuf.omit_message_names');

View file

@ -1,28 +1,36 @@
// This is a generated file - do not edit.
//
// Generated code. Do not modify.
// source: fai/v1/common.proto
//
// Generated from fai/v1/common.proto.
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
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');
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');
static const $core.List<FaiError_Code> values = <FaiError_Code> [
static const $core.List<FaiError_Code> values = <FaiError_Code>[
UNKNOWN,
INVALID_INPUT,
CAPABILITY_NOT_SUPPORTED,
@ -32,11 +40,13 @@ class FaiError_Code extends $pb.ProtobufEnum {
INTERNAL,
];
static final $core.List<FaiError_Code?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 6);
static FaiError_Code? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
static final $core.List<FaiError_Code?> _byValue =
$pb.ProtobufEnum.$_initByValueList(values, 6);
static FaiError_Code? valueOf($core.int value) =>
value < 0 || value >= _byValue.length ? null : _byValue[value];
const FaiError_Code._(super.v, super.n);
const FaiError_Code._(super.value, super.name);
}
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
const $core.bool _omitEnumNames =
$core.bool.fromEnvironment('protobuf.omit_enum_names');

View file

@ -1,13 +1,15 @@
// This is a generated file - do not edit.
//
// Generated code. Do not modify.
// source: fai/v1/common.proto
//
// Generated from fai/v1/common.proto.
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
// ignore_for_file: unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
@ -22,8 +24,8 @@ const InvocationId$json = {
};
/// Descriptor for `InvocationId`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List invocationIdDescriptor = $convert.base64Decode(
'CgxJbnZvY2F0aW9uSWQSFAoFdmFsdWUYASABKAlSBXZhbHVl');
final $typed_data.Uint8List invocationIdDescriptor =
$convert.base64Decode('CgxJbnZvY2F0aW9uSWQSFAoFdmFsdWUYASABKAlSBXZhbHVl');
@$core.Deprecated('Use capabilityRefDescriptor instead')
const CapabilityRef$json = {
@ -45,9 +47,33 @@ const Payload$json = {
'1': 'Payload',
'2': [
{'1': 'text', '3': 1, '4': 1, '5': 9, '9': 0, '10': 'text'},
{'1': 'json', '3': 2, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '9': 0, '10': 'json'},
{'1': 'bytes', '3': 3, '4': 1, '5': 11, '6': '.fai.v1.Bytes', '9': 0, '10': 'bytes'},
{'1': 'file', '3': 4, '4': 1, '5': 11, '6': '.fai.v1.FileRef', '9': 0, '10': 'file'},
{
'1': 'json',
'3': 2,
'4': 1,
'5': 11,
'6': '.google.protobuf.Struct',
'9': 0,
'10': 'json'
},
{
'1': 'bytes',
'3': 3,
'4': 1,
'5': 11,
'6': '.fai.v1.Bytes',
'9': 0,
'10': 'bytes'
},
{
'1': 'file',
'3': 4,
'4': 1,
'5': 11,
'6': '.fai.v1.FileRef',
'9': 0,
'10': 'file'
},
],
'8': [
{'1': 'kind'},
@ -94,7 +120,14 @@ final $typed_data.Uint8List fileRefDescriptor = $convert.base64Decode(
const FaiError$json = {
'1': 'FaiError',
'2': [
{'1': 'code', '3': 1, '4': 1, '5': 14, '6': '.fai.v1.FaiError.Code', '10': 'code'},
{
'1': 'code',
'3': 1,
'4': 1,
'5': 14,
'6': '.fai.v1.FaiError.Code',
'10': 'code'
},
{'1': 'message', '3': 2, '4': 1, '5': 9, '10': 'message'},
{'1': 'details', '3': 3, '4': 1, '5': 9, '10': 'details'},
],
@ -122,4 +155,3 @@ final $typed_data.Uint8List faiErrorDescriptor = $convert.base64Decode(
'b2RlEgsKB1VOS05PV04QABIRCg1JTlZBTElEX0lOUFVUEAESHAoYQ0FQQUJJTElUWV9OT1RfU1'
'VQUE9SVEVEEAISFQoRUEVSTUlTU0lPTl9ERU5JRUQQAxIWChJSRVNPVVJDRV9FWEhBVVNURUQQ'
'BBIVChFERUFETElORV9FWENFRURFRBAFEgwKCElOVEVSTkFMEAY=');

File diff suppressed because it is too large Load diff

View file

@ -1,51 +1,64 @@
// This is a generated file - do not edit.
//
// Generated code. Do not modify.
// source: fai/v1/hub.proto
//
// Generated from fai/v1/hub.proto.
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
import 'dart:core' as $core;
import 'package:protobuf/protobuf.dart' as $pb;
class HealthStatus_State extends $pb.ProtobufEnum {
static const HealthStatus_State UNKNOWN = HealthStatus_State._(0, _omitEnumNames ? '' : 'UNKNOWN');
static const HealthStatus_State SERVING = HealthStatus_State._(1, _omitEnumNames ? '' : 'SERVING');
static const HealthStatus_State NOT_SERVING = HealthStatus_State._(2, _omitEnumNames ? '' : 'NOT_SERVING');
static const HealthStatus_State UNKNOWN =
HealthStatus_State._(0, _omitEnumNames ? '' : 'UNKNOWN');
static const HealthStatus_State SERVING =
HealthStatus_State._(1, _omitEnumNames ? '' : 'SERVING');
static const HealthStatus_State NOT_SERVING =
HealthStatus_State._(2, _omitEnumNames ? '' : 'NOT_SERVING');
static const $core.List<HealthStatus_State> values = <HealthStatus_State> [
static const $core.List<HealthStatus_State> values = <HealthStatus_State>[
UNKNOWN,
SERVING,
NOT_SERVING,
];
static final $core.List<HealthStatus_State?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 2);
static HealthStatus_State? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
static final $core.List<HealthStatus_State?> _byValue =
$pb.ProtobufEnum.$_initByValueList(values, 2);
static HealthStatus_State? valueOf($core.int value) =>
value < 0 || value >= _byValue.length ? null : _byValue[value];
const HealthStatus_State._(super.v, super.n);
const HealthStatus_State._(super.value, super.name);
}
class DecideApprovalRequest_Decision extends $pb.ProtobufEnum {
static const DecideApprovalRequest_Decision DECISION_UNSPECIFIED = DecideApprovalRequest_Decision._(0, _omitEnumNames ? '' : 'DECISION_UNSPECIFIED');
static const DecideApprovalRequest_Decision APPROVE = DecideApprovalRequest_Decision._(1, _omitEnumNames ? '' : 'APPROVE');
static const DecideApprovalRequest_Decision REJECT = DecideApprovalRequest_Decision._(2, _omitEnumNames ? '' : 'REJECT');
static const DecideApprovalRequest_Decision DECISION_UNSPECIFIED =
DecideApprovalRequest_Decision._(
0, _omitEnumNames ? '' : 'DECISION_UNSPECIFIED');
static const DecideApprovalRequest_Decision APPROVE =
DecideApprovalRequest_Decision._(1, _omitEnumNames ? '' : 'APPROVE');
static const DecideApprovalRequest_Decision REJECT =
DecideApprovalRequest_Decision._(2, _omitEnumNames ? '' : 'REJECT');
static const $core.List<DecideApprovalRequest_Decision> values = <DecideApprovalRequest_Decision> [
static const $core.List<DecideApprovalRequest_Decision> values =
<DecideApprovalRequest_Decision>[
DECISION_UNSPECIFIED,
APPROVE,
REJECT,
];
static final $core.List<DecideApprovalRequest_Decision?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 2);
static DecideApprovalRequest_Decision? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
static final $core.List<DecideApprovalRequest_Decision?> _byValue =
$pb.ProtobufEnum.$_initByValueList(values, 2);
static DecideApprovalRequest_Decision? valueOf($core.int value) =>
value < 0 || value >= _byValue.length ? null : _byValue[value];
const DecideApprovalRequest_Decision._(super.v, super.n);
const DecideApprovalRequest_Decision._(super.value, super.name);
}
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');
const $core.bool _omitEnumNames =
$core.bool.fromEnvironment('protobuf.omit_enum_names');

File diff suppressed because it is too large Load diff

View file

@ -1,13 +1,15 @@
// This is a generated file - do not edit.
//
// Generated code. Do not modify.
// source: fai/v1/hub.proto
//
// Generated from fai/v1/hub.proto.
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
// ignore_for_file: unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
@ -18,7 +20,14 @@ const SubmitRequest$json = {
'1': 'SubmitRequest',
'2': [
{'1': 'flow_yaml', '3': 1, '4': 1, '5': 12, '10': 'flowYaml'},
{'1': 'inputs', '3': 2, '4': 3, '5': 11, '6': '.fai.v1.SubmitRequest.InputsEntry', '10': 'inputs'},
{
'1': 'inputs',
'3': 2,
'4': 3,
'5': 11,
'6': '.fai.v1.SubmitRequest.InputsEntry',
'10': 'inputs'
},
],
'3': [SubmitRequest_InputsEntry$json],
};
@ -28,7 +37,14 @@ const SubmitRequest_InputsEntry$json = {
'1': 'InputsEntry',
'2': [
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
{'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.fai.v1.Payload', '10': 'value'},
{
'1': 'value',
'3': 2,
'4': 1,
'5': 11,
'6': '.fai.v1.Payload',
'10': 'value'
},
],
'7': {'7': true},
};
@ -44,8 +60,22 @@ final $typed_data.Uint8List submitRequestDescriptor = $convert.base64Decode(
const SubmitResponse$json = {
'1': 'SubmitResponse',
'2': [
{'1': 'invocation_id', '3': 1, '4': 1, '5': 11, '6': '.fai.v1.InvocationId', '10': 'invocationId'},
{'1': 'outputs', '3': 2, '4': 3, '5': 11, '6': '.fai.v1.SubmitResponse.OutputsEntry', '10': 'outputs'},
{
'1': 'invocation_id',
'3': 1,
'4': 1,
'5': 11,
'6': '.fai.v1.InvocationId',
'10': 'invocationId'
},
{
'1': 'outputs',
'3': 2,
'4': 3,
'5': 11,
'6': '.fai.v1.SubmitResponse.OutputsEntry',
'10': 'outputs'
},
],
'3': [SubmitResponse_OutputsEntry$json],
};
@ -55,7 +85,14 @@ const SubmitResponse_OutputsEntry$json = {
'1': 'OutputsEntry',
'2': [
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
{'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.fai.v1.Payload', '10': 'value'},
{
'1': 'value',
'3': 2,
'4': 1,
'5': 11,
'6': '.fai.v1.Payload',
'10': 'value'
},
],
'7': {'7': true},
};
@ -71,7 +108,14 @@ final $typed_data.Uint8List submitResponseDescriptor = $convert.base64Decode(
const ModuleList$json = {
'1': 'ModuleList',
'2': [
{'1': 'modules', '3': 1, '4': 3, '5': 11, '6': '.fai.v1.ModuleSummary', '10': 'modules'},
{
'1': 'modules',
'3': 1,
'4': 3,
'5': 11,
'6': '.fai.v1.ModuleSummary',
'10': 'modules'
},
],
};
@ -86,7 +130,14 @@ const ModuleSummary$json = {
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'},
{'1': 'provides', '3': 3, '4': 3, '5': 11, '6': '.fai.v1.CapabilityRef', '10': 'provides'},
{
'1': 'provides',
'3': 3,
'4': 3,
'5': 11,
'6': '.fai.v1.CapabilityRef',
'10': 'provides'
},
],
};
@ -100,7 +151,14 @@ final $typed_data.Uint8List moduleSummaryDescriptor = $convert.base64Decode(
const HealthStatus$json = {
'1': 'HealthStatus',
'2': [
{'1': 'state', '3': 1, '4': 1, '5': 14, '6': '.fai.v1.HealthStatus.State', '10': 'state'},
{
'1': 'state',
'3': 1,
'4': 1,
'5': 14,
'6': '.fai.v1.HealthStatus.State',
'10': 'state'
},
{'1': 'detail', '3': 2, '4': 1, '5': 9, '10': 'detail'},
],
'4': [HealthStatus_State$json],
@ -126,7 +184,14 @@ final $typed_data.Uint8List healthStatusDescriptor = $convert.base64Decode(
const CapabilityList$json = {
'1': 'CapabilityList',
'2': [
{'1': 'capabilities', '3': 1, '4': 3, '5': 11, '6': '.fai.v1.CapabilityEntry', '10': 'capabilities'},
{
'1': 'capabilities',
'3': 1,
'4': 3,
'5': 11,
'6': '.fai.v1.CapabilityEntry',
'10': 'capabilities'
},
],
};
@ -176,7 +241,14 @@ const ModuleInfoResponse$json = {
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'},
{'1': 'provides', '3': 3, '4': 3, '5': 11, '6': '.fai.v1.CapabilityRef', '10': 'provides'},
{
'1': 'provides',
'3': 3,
'4': 3,
'5': 11,
'6': '.fai.v1.CapabilityRef',
'10': 'provides'
},
{'1': 'permissions', '3': 4, '4': 3, '5': 9, '10': 'permissions'},
{'1': 'directory', '3': 5, '4': 1, '5': 9, '10': 'directory'},
{'1': 'accepts_mime', '3': 6, '4': 3, '5': 9, '10': 'acceptsMime'},
@ -200,9 +272,10 @@ const CheckPermissionRequest$json = {
};
/// Descriptor for `CheckPermissionRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List checkPermissionRequestDescriptor = $convert.base64Decode(
'ChZDaGVja1Blcm1pc3Npb25SZXF1ZXN0Eh8KC21vZHVsZV9uYW1lGAEgASgJUgptb2R1bGVOYW'
'1lEh4KCnBlcm1pc3Npb24YAiABKAlSCnBlcm1pc3Npb24=');
final $typed_data.Uint8List checkPermissionRequestDescriptor =
$convert.base64Decode(
'ChZDaGVja1Blcm1pc3Npb25SZXF1ZXN0Eh8KC21vZHVsZV9uYW1lGAEgASgJUgptb2R1bGVOYW'
'1lEh4KCnBlcm1pc3Npb24YAiABKAlSCnBlcm1pc3Npb24=');
@$core.Deprecated('Use checkPermissionResponseDescriptor instead')
const CheckPermissionResponse$json = {
@ -214,9 +287,10 @@ const CheckPermissionResponse$json = {
};
/// Descriptor for `CheckPermissionResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List checkPermissionResponseDescriptor = $convert.base64Decode(
'ChdDaGVja1Blcm1pc3Npb25SZXNwb25zZRIYCgdhbGxvd2VkGAEgASgIUgdhbGxvd2VkEhYKBn'
'JlYXNvbhgCIAEoCVIGcmVhc29u');
final $typed_data.Uint8List checkPermissionResponseDescriptor =
$convert.base64Decode(
'ChdDaGVja1Blcm1pc3Npb25SZXNwb25zZRIYCgdhbGxvd2VkGAEgASgIUgdhbGxvd2VkEhYKBn'
'JlYXNvbhgCIAEoCVIGcmVhc29u');
@$core.Deprecated('Use eventLogRequestDescriptor instead')
const EventLogRequest$json = {
@ -236,7 +310,14 @@ final $typed_data.Uint8List eventLogRequestDescriptor = $convert.base64Decode(
const EventLogResponse$json = {
'1': 'EventLogResponse',
'2': [
{'1': 'events', '3': 1, '4': 3, '5': 11, '6': '.fai.v1.LoggedEvent', '10': 'events'},
{
'1': 'events',
'3': 1,
'4': 3,
'5': 11,
'6': '.fai.v1.LoggedEvent',
'10': 'events'
},
],
};
@ -326,8 +407,8 @@ const DeleteFlowRequest$json = {
};
/// Descriptor for `DeleteFlowRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List deleteFlowRequestDescriptor = $convert.base64Decode(
'ChFEZWxldGVGbG93UmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1l');
final $typed_data.Uint8List deleteFlowRequestDescriptor = $convert
.base64Decode('ChFEZWxldGVGbG93UmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1l');
@$core.Deprecated('Use deleteFlowResponseDescriptor instead')
const DeleteFlowResponse$json = {
@ -338,14 +419,21 @@ const DeleteFlowResponse$json = {
};
/// Descriptor for `DeleteFlowResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List deleteFlowResponseDescriptor = $convert.base64Decode(
'ChJEZWxldGVGbG93UmVzcG9uc2USEgoEbmFtZRgBIAEoCVIEbmFtZQ==');
final $typed_data.Uint8List deleteFlowResponseDescriptor = $convert
.base64Decode('ChJEZWxldGVGbG93UmVzcG9uc2USEgoEbmFtZRgBIAEoCVIEbmFtZQ==');
@$core.Deprecated('Use flowListDescriptor instead')
const FlowList$json = {
'1': 'FlowList',
'2': [
{'1': 'flows', '3': 1, '4': 3, '5': 11, '6': '.fai.v1.FlowSummary', '10': 'flows'},
{
'1': 'flows',
'3': 1,
'4': 3,
'5': 11,
'6': '.fai.v1.FlowSummary',
'10': 'flows'
},
],
};
@ -360,7 +448,13 @@ const FlowSummary$json = {
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'path', '3': 2, '4': 1, '5': 9, '10': 'path'},
{'1': 'size_bytes', '3': 3, '4': 1, '5': 3, '10': 'sizeBytes'},
{'1': 'required_capabilities', '3': 4, '4': 3, '5': 9, '10': 'requiredCapabilities'},
{
'1': 'required_capabilities',
'3': 4,
'4': 3,
'5': 9,
'10': 'requiredCapabilities'
},
],
};
@ -375,7 +469,14 @@ const RunSavedFlowRequest$json = {
'1': 'RunSavedFlowRequest',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'inputs', '3': 2, '4': 3, '5': 11, '6': '.fai.v1.RunSavedFlowRequest.InputsEntry', '10': 'inputs'},
{
'1': 'inputs',
'3': 2,
'4': 3,
'5': 11,
'6': '.fai.v1.RunSavedFlowRequest.InputsEntry',
'10': 'inputs'
},
],
'3': [RunSavedFlowRequest_InputsEntry$json],
};
@ -385,7 +486,14 @@ const RunSavedFlowRequest_InputsEntry$json = {
'1': 'InputsEntry',
'2': [
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
{'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.fai.v1.Payload', '10': 'value'},
{
'1': 'value',
'3': 2,
'4': 1,
'5': 11,
'6': '.fai.v1.Payload',
'10': 'value'
},
],
'7': {'7': true},
};
@ -406,15 +514,23 @@ const GetFlowDefinitionRequest$json = {
};
/// Descriptor for `GetFlowDefinitionRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List getFlowDefinitionRequestDescriptor = $convert.base64Decode(
'ChhHZXRGbG93RGVmaW5pdGlvblJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ==');
final $typed_data.Uint8List getFlowDefinitionRequestDescriptor =
$convert.base64Decode(
'ChhHZXRGbG93RGVmaW5pdGlvblJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ==');
@$core.Deprecated('Use flowDefinitionDescriptor instead')
const FlowDefinition$json = {
'1': 'FlowDefinition',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'inputs', '3': 2, '4': 3, '5': 11, '6': '.fai.v1.FlowInputSpec', '10': 'inputs'},
{
'1': 'inputs',
'3': 2,
'4': 3,
'5': 11,
'6': '.fai.v1.FlowInputSpec',
'10': 'inputs'
},
],
};
@ -462,7 +578,14 @@ final $typed_data.Uint8List searchStoreRequestDescriptor = $convert.base64Decode
const StoreSearchResponse$json = {
'1': 'StoreSearchResponse',
'2': [
{'1': 'entries', '3': 1, '4': 3, '5': 11, '6': '.fai.v1.StoreEntry', '10': 'entries'},
{
'1': 'entries',
'3': 1,
'4': 3,
'5': 11,
'6': '.fai.v1.StoreEntry',
'10': 'entries'
},
],
};
@ -513,9 +636,10 @@ const UninstallModuleRequest$json = {
};
/// Descriptor for `UninstallModuleRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List uninstallModuleRequestDescriptor = $convert.base64Decode(
'ChZVbmluc3RhbGxNb2R1bGVSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWUSGAoHdmVyc2lvbh'
'gCIAEoCVIHdmVyc2lvbg==');
final $typed_data.Uint8List uninstallModuleRequestDescriptor =
$convert.base64Decode(
'ChZVbmluc3RhbGxNb2R1bGVSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWUSGAoHdmVyc2lvbh'
'gCIAEoCVIHdmVyc2lvbg==');
@$core.Deprecated('Use uninstallModuleResponseDescriptor instead')
const UninstallModuleResponse$json = {
@ -527,9 +651,10 @@ const UninstallModuleResponse$json = {
};
/// Descriptor for `UninstallModuleResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List uninstallModuleResponseDescriptor = $convert.base64Decode(
'ChdVbmluc3RhbGxNb2R1bGVSZXNwb25zZRISCgRuYW1lGAEgASgJUgRuYW1lEhgKB3ZlcnNpb2'
'4YAiABKAlSB3ZlcnNpb24=');
final $typed_data.Uint8List uninstallModuleResponseDescriptor =
$convert.base64Decode(
'ChdVbmluc3RhbGxNb2R1bGVSZXNwb25zZRISCgRuYW1lGAEgASgJUgRuYW1lEhgKB3ZlcnNpb2'
'4YAiABKAlSB3ZlcnNpb24=');
@$core.Deprecated('Use fetchModuleDocsRequestDescriptor instead')
const FetchModuleDocsRequest$json = {
@ -541,9 +666,10 @@ const FetchModuleDocsRequest$json = {
};
/// Descriptor for `FetchModuleDocsRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List fetchModuleDocsRequestDescriptor = $convert.base64Decode(
'ChZGZXRjaE1vZHVsZURvY3NSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWUSFgoGbG9jYWxlGA'
'IgASgJUgZsb2NhbGU=');
final $typed_data.Uint8List fetchModuleDocsRequestDescriptor =
$convert.base64Decode(
'ChZGZXRjaE1vZHVsZURvY3NSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWUSFgoGbG9jYWxlGA'
'IgASgJUgZsb2NhbGU=');
@$core.Deprecated('Use fetchModuleDocsResponseDescriptor instead')
const FetchModuleDocsResponse$json = {
@ -570,9 +696,10 @@ const GetInstalledModuleDocsRequest$json = {
};
/// Descriptor for `GetInstalledModuleDocsRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List getInstalledModuleDocsRequestDescriptor = $convert.base64Decode(
'Ch1HZXRJbnN0YWxsZWRNb2R1bGVEb2NzUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEhYKBm'
'xvY2FsZRgCIAEoCVIGbG9jYWxl');
final $typed_data.Uint8List getInstalledModuleDocsRequestDescriptor =
$convert.base64Decode(
'Ch1HZXRJbnN0YWxsZWRNb2R1bGVEb2NzUmVxdWVzdBISCgRuYW1lGAEgASgJUgRuYW1lEhYKBm'
'xvY2FsZRgCIAEoCVIGbG9jYWxl');
@$core.Deprecated('Use getInstalledModuleDocsResponseDescriptor instead')
const GetInstalledModuleDocsResponse$json = {
@ -585,10 +712,11 @@ const GetInstalledModuleDocsResponse$json = {
};
/// Descriptor for `GetInstalledModuleDocsResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List getInstalledModuleDocsResponseDescriptor = $convert.base64Decode(
'Ch5HZXRJbnN0YWxsZWRNb2R1bGVEb2NzUmVzcG9uc2USEgoEdGV4dBgBIAEoCVIEdGV4dBIfCg'
'tzb3VyY2VfcGF0aBgCIAEoCVIKc291cmNlUGF0aBIjCg1ub3RfaW5zdGFsbGVkGAMgASgIUgxu'
'b3RJbnN0YWxsZWQ=');
final $typed_data.Uint8List getInstalledModuleDocsResponseDescriptor =
$convert.base64Decode(
'Ch5HZXRJbnN0YWxsZWRNb2R1bGVEb2NzUmVzcG9uc2USEgoEdGV4dBgBIAEoCVIEdGV4dBIfCg'
'tzb3VyY2VfcGF0aBgCIAEoCVIKc291cmNlUGF0aBIjCg1ub3RfaW5zdGFsbGVkGAMgASgIUgxu'
'b3RJbnN0YWxsZWQ=');
@$core.Deprecated('Use invokePluginThemeRequestDescriptor instead')
const InvokePluginThemeRequest$json = {
@ -600,9 +728,10 @@ const InvokePluginThemeRequest$json = {
};
/// Descriptor for `InvokePluginThemeRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List invokePluginThemeRequestDescriptor = $convert.base64Decode(
'ChhJbnZva2VQbHVnaW5UaGVtZVJlcXVlc3QSHgoKY2FwYWJpbGl0eRgBIAEoCVIKY2FwYWJpbG'
'l0eRIeCgpicmlnaHRuZXNzGAIgASgJUgpicmlnaHRuZXNz');
final $typed_data.Uint8List invokePluginThemeRequestDescriptor =
$convert.base64Decode(
'ChhJbnZva2VQbHVnaW5UaGVtZVJlcXVlc3QSHgoKY2FwYWJpbGl0eRgBIAEoCVIKY2FwYWJpbG'
'l0eRIeCgpicmlnaHRuZXNzGAIgASgJUgpicmlnaHRuZXNz');
@$core.Deprecated('Use invokePluginTranslateRequestDescriptor instead')
const InvokePluginTranslateRequest$json = {
@ -616,10 +745,11 @@ const InvokePluginTranslateRequest$json = {
};
/// Descriptor for `InvokePluginTranslateRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List invokePluginTranslateRequestDescriptor = $convert.base64Decode(
'ChxJbnZva2VQbHVnaW5UcmFuc2xhdGVSZXF1ZXN0Eh4KCmNhcGFiaWxpdHkYASABKAlSCmNhcG'
'FiaWxpdHkSEgoEdGV4dBgCIAEoCVIEdGV4dBIfCgtmcm9tX2xvY2FsZRgDIAEoCVIKZnJvbUxv'
'Y2FsZRIbCgl0b19sb2NhbGUYBCABKAlSCHRvTG9jYWxl');
final $typed_data.Uint8List invokePluginTranslateRequestDescriptor =
$convert.base64Decode(
'ChxJbnZva2VQbHVnaW5UcmFuc2xhdGVSZXF1ZXN0Eh4KCmNhcGFiaWxpdHkYASABKAlSCmNhcG'
'FiaWxpdHkSEgoEdGV4dBgCIAEoCVIEdGV4dBIfCgtmcm9tX2xvY2FsZRgDIAEoCVIKZnJvbUxv'
'Y2FsZRIbCgl0b19sb2NhbGUYBCABKAlSCHRvTG9jYWxl');
@$core.Deprecated('Use invokePluginTranslateResponseDescriptor instead')
const InvokePluginTranslateResponse$json = {
@ -630,9 +760,10 @@ const InvokePluginTranslateResponse$json = {
};
/// Descriptor for `InvokePluginTranslateResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List invokePluginTranslateResponseDescriptor = $convert.base64Decode(
'Ch1JbnZva2VQbHVnaW5UcmFuc2xhdGVSZXNwb25zZRIeCgp0cmFuc2xhdGVkGAEgASgJUgp0cm'
'Fuc2xhdGVk');
final $typed_data.Uint8List invokePluginTranslateResponseDescriptor =
$convert.base64Decode(
'Ch1JbnZva2VQbHVnaW5UcmFuc2xhdGVSZXNwb25zZRIeCgp0cmFuc2xhdGVkGAEgASgJUgp0cm'
'Fuc2xhdGVk');
@$core.Deprecated('Use invokePluginThemeResponseDescriptor instead')
const InvokePluginThemeResponse$json = {
@ -644,9 +775,10 @@ const InvokePluginThemeResponse$json = {
};
/// Descriptor for `InvokePluginThemeResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List invokePluginThemeResponseDescriptor = $convert.base64Decode(
'ChlJbnZva2VQbHVnaW5UaGVtZVJlc3BvbnNlEh4KCmJyaWdodG5lc3MYASABKAlSCmJyaWdodG'
'5lc3MSFgoGdG9rZW5zGAIgAygNUgZ0b2tlbnM=');
final $typed_data.Uint8List invokePluginThemeResponseDescriptor =
$convert.base64Decode(
'ChlJbnZva2VQbHVnaW5UaGVtZVJlc3BvbnNlEh4KCmJyaWdodG5lc3MYASABKAlSCmJyaWdodG'
'5lc3MSFgoGdG9rZW5zGAIgAygNUgZ0b2tlbnM=');
@$core.Deprecated('Use listApprovalsRequestDescriptor instead')
const ListApprovalsRequest$json = {
@ -666,7 +798,14 @@ final $typed_data.Uint8List listApprovalsRequestDescriptor = $convert.base64Deco
const ApprovalList$json = {
'1': 'ApprovalList',
'2': [
{'1': 'entries', '3': 1, '4': 3, '5': 11, '6': '.fai.v1.PendingApprovalEntry', '10': 'entries'},
{
'1': 'entries',
'3': 1,
'4': 3,
'5': 11,
'6': '.fai.v1.PendingApprovalEntry',
'10': 'entries'
},
],
};
@ -709,7 +848,14 @@ const DecideApprovalRequest$json = {
'1': 'DecideApprovalRequest',
'2': [
{'1': 'approval_id', '3': 1, '4': 1, '5': 9, '10': 'approvalId'},
{'1': 'decision', '3': 2, '4': 1, '5': 14, '6': '.fai.v1.DecideApprovalRequest.Decision', '10': 'decision'},
{
'1': 'decision',
'3': 2,
'4': 1,
'5': 14,
'6': '.fai.v1.DecideApprovalRequest.Decision',
'10': 'decision'
},
{'1': 'reviewer', '3': 3, '4': 1, '5': 9, '10': 'reviewer'},
{'1': 'reason', '3': 4, '4': 1, '5': 9, '10': 'reason'},
],
@ -744,9 +890,10 @@ const DecideApprovalResponse$json = {
};
/// Descriptor for `DecideApprovalResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List decideApprovalResponseDescriptor = $convert.base64Decode(
'ChZEZWNpZGVBcHByb3ZhbFJlc3BvbnNlEh8KC2FwcHJvdmFsX2lkGAEgASgJUgphcHByb3ZhbE'
'lkEhYKBnN0YXR1cxgCIAEoCVIGc3RhdHVz');
final $typed_data.Uint8List decideApprovalResponseDescriptor =
$convert.base64Decode(
'ChZEZWNpZGVBcHByb3ZhbFJlc3BvbnNlEh8KC2FwcHJvdmFsX2lkGAEgASgJUgphcHByb3ZhbE'
'lkEhYKBnN0YXR1cxgCIAEoCVIGc3RhdHVz');
@$core.Deprecated('Use verifyEventChainResponseDescriptor instead')
const VerifyEventChainResponse$json = {
@ -767,7 +914,14 @@ final $typed_data.Uint8List verifyEventChainResponseDescriptor = $convert.base64
const ServiceList$json = {
'1': 'ServiceList',
'2': [
{'1': 'services', '3': 1, '4': 3, '5': 11, '6': '.fai.v1.DeclaredService', '10': 'services'},
{
'1': 'services',
'3': 1,
'4': 3,
'5': 11,
'6': '.fai.v1.DeclaredService',
'10': 'services'
},
],
};
@ -804,8 +958,20 @@ const StoreEntry$json = {
{'1': 'description_de', '3': 5, '4': 1, '5': 9, '10': 'descriptionDe'},
{'1': 'category', '3': 6, '4': 1, '5': 9, '10': 'category'},
{'1': 'tags', '3': 7, '4': 3, '5': 9, '10': 'tags'},
{'1': 'requires_capabilities', '3': 8, '4': 3, '5': 9, '10': 'requiresCapabilities'},
{'1': 'requires_services', '3': 9, '4': 3, '5': 9, '10': 'requiresServices'},
{
'1': 'requires_capabilities',
'3': 8,
'4': 3,
'5': 9,
'10': 'requiresCapabilities'
},
{
'1': 'requires_services',
'3': 9,
'4': 3,
'5': 9,
'10': 'requiresServices'
},
{'1': 'license', '3': 10, '4': 1, '5': 9, '10': 'license'},
{'1': 'repository', '3': 11, '4': 1, '5': 9, '10': 'repository'},
{'1': 'best_version', '3': 12, '4': 1, '5': 9, '10': 'bestVersion'},
@ -842,7 +1008,14 @@ const ChannelStatusResponse$json = {
'1': 'ChannelStatusResponse',
'2': [
{'1': 'active', '3': 1, '4': 1, '5': 9, '10': 'active'},
{'1': 'channels', '3': 2, '4': 3, '5': 11, '6': '.fai.v1.ChannelEntry', '10': 'channels'},
{
'1': 'channels',
'3': 2,
'4': 3,
'5': 11,
'6': '.fai.v1.ChannelEntry',
'10': 'channels'
},
],
};
@ -897,7 +1070,13 @@ const CheckUpdateResponse$json = {
{'1': 'update_available', '3': 4, '4': 1, '5': 8, '10': 'updateAvailable'},
{'1': 'released_at', '3': 5, '4': 1, '5': 9, '10': 'releasedAt'},
{'1': 'release_notes_url', '3': 6, '4': 1, '5': 9, '10': 'releaseNotesUrl'},
{'1': 'manifest_reachable', '3': 7, '4': 1, '5': 8, '10': 'manifestReachable'},
{
'1': 'manifest_reachable',
'3': 7,
'4': 1,
'5': 8,
'10': 'manifestReachable'
},
{'1': 'reason', '3': 8, '4': 1, '5': 9, '10': 'reason'},
{'1': 'manifest_url', '3': 9, '4': 1, '5': 9, '10': 'manifestUrl'},
],
@ -978,8 +1157,9 @@ const ClearSystemLlmCacheResponse$json = {
};
/// Descriptor for `ClearSystemLlmCacheResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List clearSystemLlmCacheResponseDescriptor = $convert.base64Decode(
'ChtDbGVhclN5c3RlbUxsbUNhY2hlUmVzcG9uc2USFgoGcHVyZ2VkGAEgASgEUgZwdXJnZWQ=');
final $typed_data.Uint8List clearSystemLlmCacheResponseDescriptor =
$convert.base64Decode(
'ChtDbGVhclN5c3RlbUxsbUNhY2hlUmVzcG9uc2USFgoGcHVyZ2VkGAEgASgEUgZwdXJnZWQ=');
@$core.Deprecated('Use updateSystemAiRequestDescriptor instead')
const UpdateSystemAiRequest$json = {
@ -1025,15 +1205,23 @@ const ListSystemAiModelsResponse$json = {
'2': [
{'1': 'error_kind', '3': 1, '4': 1, '5': 9, '10': 'errorKind'},
{'1': 'text', '3': 2, '4': 1, '5': 9, '10': 'text'},
{'1': 'models', '3': 3, '4': 3, '5': 11, '6': '.fai.v1.SystemAiModel', '10': 'models'},
{
'1': 'models',
'3': 3,
'4': 3,
'5': 11,
'6': '.fai.v1.SystemAiModel',
'10': 'models'
},
],
};
/// Descriptor for `ListSystemAiModelsResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List listSystemAiModelsResponseDescriptor = $convert.base64Decode(
'ChpMaXN0U3lzdGVtQWlNb2RlbHNSZXNwb25zZRIdCgplcnJvcl9raW5kGAEgASgJUgllcnJvck'
'tpbmQSEgoEdGV4dBgCIAEoCVIEdGV4dBItCgZtb2RlbHMYAyADKAsyFS5mYWkudjEuU3lzdGVt'
'QWlNb2RlbFIGbW9kZWxz');
final $typed_data.Uint8List listSystemAiModelsResponseDescriptor =
$convert.base64Decode(
'ChpMaXN0U3lzdGVtQWlNb2RlbHNSZXNwb25zZRIdCgplcnJvcl9raW5kGAEgASgJUgllcnJvck'
'tpbmQSEgoEdGV4dBgCIAEoCVIEdGV4dBItCgZtb2RlbHMYAyADKAsyFS5mYWkudjEuU3lzdGVt'
'QWlNb2RlbFIGbW9kZWxz');
@$core.Deprecated('Use systemAiModelDescriptor instead')
const SystemAiModel$json = {
@ -1060,9 +1248,10 @@ const PullSystemAiModelRequest$json = {
};
/// Descriptor for `PullSystemAiModelRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List pullSystemAiModelRequestDescriptor = $convert.base64Decode(
'ChhQdWxsU3lzdGVtQWlNb2RlbFJlcXVlc3QSGgoIZW5kcG9pbnQYASABKAlSCGVuZHBvaW50Eh'
'4KC2FwaV9rZXlfZW52GAIgASgJUglhcGlLZXlFbnYSFAoFbW9kZWwYAyABKAlSBW1vZGVs');
final $typed_data.Uint8List pullSystemAiModelRequestDescriptor =
$convert.base64Decode(
'ChhQdWxsU3lzdGVtQWlNb2RlbFJlcXVlc3QSGgoIZW5kcG9pbnQYASABKAlSCGVuZHBvaW50Eh'
'4KC2FwaV9rZXlfZW52GAIgASgJUglhcGlLZXlFbnYSFAoFbW9kZWwYAyABKAlSBW1vZGVs');
@$core.Deprecated('Use pullSystemAiModelResponseDescriptor instead')
const PullSystemAiModelResponse$json = {
@ -1105,16 +1294,24 @@ final $typed_data.Uint8List hardwareInfoResponseDescriptor = $convert.base64Deco
const ListSystemAiCuratedModelsResponse$json = {
'1': 'ListSystemAiCuratedModelsResponse',
'2': [
{'1': 'models', '3': 1, '4': 3, '5': 11, '6': '.fai.v1.CuratedModel', '10': 'models'},
{
'1': 'models',
'3': 1,
'4': 3,
'5': 11,
'6': '.fai.v1.CuratedModel',
'10': 'models'
},
{'1': 'last_reviewed', '3': 2, '4': 1, '5': 9, '10': 'lastReviewed'},
],
};
/// Descriptor for `ListSystemAiCuratedModelsResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List listSystemAiCuratedModelsResponseDescriptor = $convert.base64Decode(
'CiFMaXN0U3lzdGVtQWlDdXJhdGVkTW9kZWxzUmVzcG9uc2USLAoGbW9kZWxzGAEgAygLMhQuZm'
'FpLnYxLkN1cmF0ZWRNb2RlbFIGbW9kZWxzEiMKDWxhc3RfcmV2aWV3ZWQYAiABKAlSDGxhc3RS'
'ZXZpZXdlZA==');
final $typed_data.Uint8List listSystemAiCuratedModelsResponseDescriptor =
$convert.base64Decode(
'CiFMaXN0U3lzdGVtQWlDdXJhdGVkTW9kZWxzUmVzcG9uc2USLAoGbW9kZWxzGAEgAygLMhQuZm'
'FpLnYxLkN1cmF0ZWRNb2RlbFIGbW9kZWxzEiMKDWxhc3RfcmV2aWV3ZWQYAiABKAlSDGxhc3RS'
'ZXZpZXdlZA==');
@$core.Deprecated('Use curatedModelDescriptor instead')
const CuratedModel$json = {
@ -1176,8 +1373,9 @@ const SetDefaultScopeRequest$json = {
};
/// Descriptor for `SetDefaultScopeRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List setDefaultScopeRequestDescriptor = $convert.base64Decode(
'ChZTZXREZWZhdWx0U2NvcGVSZXF1ZXN0EhQKBXNjb3BlGAEgAygJUgVzY29wZQ==');
final $typed_data.Uint8List setDefaultScopeRequestDescriptor =
$convert.base64Decode(
'ChZTZXREZWZhdWx0U2NvcGVSZXF1ZXN0EhQKBXNjb3BlGAEgAygJUgVzY29wZQ==');
@$core.Deprecated('Use defaultScopeResponseDescriptor instead')
const DefaultScopeResponse$json = {
@ -1214,20 +1412,35 @@ final $typed_data.Uint8List mcpClientConfigEntryDescriptor = $convert.base64Deco
const ListMcpClientsResponse$json = {
'1': 'ListMcpClientsResponse',
'2': [
{'1': 'clients', '3': 1, '4': 3, '5': 11, '6': '.fai.v1.McpClientStatus', '10': 'clients'},
{
'1': 'clients',
'3': 1,
'4': 3,
'5': 11,
'6': '.fai.v1.McpClientStatus',
'10': 'clients'
},
],
};
/// Descriptor for `ListMcpClientsResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List listMcpClientsResponseDescriptor = $convert.base64Decode(
'ChZMaXN0TWNwQ2xpZW50c1Jlc3BvbnNlEjEKB2NsaWVudHMYASADKAsyFy5mYWkudjEuTWNwQ2'
'xpZW50U3RhdHVzUgdjbGllbnRz');
final $typed_data.Uint8List listMcpClientsResponseDescriptor =
$convert.base64Decode(
'ChZMaXN0TWNwQ2xpZW50c1Jlc3BvbnNlEjEKB2NsaWVudHMYASADKAsyFy5mYWkudjEuTWNwQ2'
'xpZW50U3RhdHVzUgdjbGllbnRz');
@$core.Deprecated('Use mcpClientStatusDescriptor instead')
const McpClientStatus$json = {
'1': 'McpClientStatus',
'2': [
{'1': 'config', '3': 1, '4': 1, '5': 11, '6': '.fai.v1.McpClientConfigEntry', '10': 'config'},
{
'1': 'config',
'3': 1,
'4': 1,
'5': 11,
'6': '.fai.v1.McpClientConfigEntry',
'10': 'config'
},
{'1': 'tool_count', '3': 2, '4': 1, '5': 13, '10': 'toolCount'},
{'1': 'error_kind', '3': 3, '4': 1, '5': 9, '10': 'errorKind'},
{'1': 'message', '3': 4, '4': 1, '5': 9, '10': 'message'},
@ -1249,8 +1462,9 @@ const RemoveMcpClientRequest$json = {
};
/// Descriptor for `RemoveMcpClientRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List removeMcpClientRequestDescriptor = $convert.base64Decode(
'ChZSZW1vdmVNY3BDbGllbnRSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWU=');
final $typed_data.Uint8List removeMcpClientRequestDescriptor =
$convert.base64Decode(
'ChZSZW1vdmVNY3BDbGllbnRSZXF1ZXN0EhIKBG5hbWUYASABKAlSBG5hbWU=');
@$core.Deprecated('Use n8nEndpointConfigEntryDescriptor instead')
const N8nEndpointConfigEntry$json = {
@ -1273,20 +1487,35 @@ final $typed_data.Uint8List n8nEndpointConfigEntryDescriptor = $convert.base64De
const ListN8nEndpointsResponse$json = {
'1': 'ListN8nEndpointsResponse',
'2': [
{'1': 'endpoints', '3': 1, '4': 3, '5': 11, '6': '.fai.v1.N8nEndpointStatus', '10': 'endpoints'},
{
'1': 'endpoints',
'3': 1,
'4': 3,
'5': 11,
'6': '.fai.v1.N8nEndpointStatus',
'10': 'endpoints'
},
],
};
/// Descriptor for `ListN8nEndpointsResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List listN8nEndpointsResponseDescriptor = $convert.base64Decode(
'ChhMaXN0TjhuRW5kcG9pbnRzUmVzcG9uc2USNwoJZW5kcG9pbnRzGAEgAygLMhkuZmFpLnYxLk'
'44bkVuZHBvaW50U3RhdHVzUgllbmRwb2ludHM=');
final $typed_data.Uint8List listN8nEndpointsResponseDescriptor =
$convert.base64Decode(
'ChhMaXN0TjhuRW5kcG9pbnRzUmVzcG9uc2USNwoJZW5kcG9pbnRzGAEgAygLMhkuZmFpLnYxLk'
'44bkVuZHBvaW50U3RhdHVzUgllbmRwb2ludHM=');
@$core.Deprecated('Use n8nEndpointStatusDescriptor instead')
const N8nEndpointStatus$json = {
'1': 'N8nEndpointStatus',
'2': [
{'1': 'config', '3': 1, '4': 1, '5': 11, '6': '.fai.v1.N8nEndpointConfigEntry', '10': 'config'},
{
'1': 'config',
'3': 1,
'4': 1,
'5': 11,
'6': '.fai.v1.N8nEndpointConfigEntry',
'10': 'config'
},
{'1': 'workflow_count', '3': 2, '4': 1, '5': 13, '10': 'workflowCount'},
{'1': 'error_kind', '3': 3, '4': 1, '5': 9, '10': 'errorKind'},
{'1': 'message', '3': 4, '4': 1, '5': 9, '10': 'message'},
@ -1309,6 +1538,6 @@ const RemoveN8nEndpointRequest$json = {
};
/// Descriptor for `RemoveN8nEndpointRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List removeN8nEndpointRequestDescriptor = $convert.base64Decode(
'ChhSZW1vdmVOOG5FbmRwb2ludFJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ==');
final $typed_data.Uint8List removeN8nEndpointRequestDescriptor =
$convert.base64Decode(
'ChhSZW1vdmVOOG5FbmRwb2ludFJlcXVlc3QSEgoEbmFtZRgBIAEoCVIEbmFtZQ==');

View file

@ -1,165 +1,192 @@
// This is a generated file - do not edit.
//
// Generated code. Do not modify.
// source: fai/v1/module.proto
//
// Generated from fai/v1/module.proto.
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
import 'dart:core' as $core;
import 'package:fixnum/fixnum.dart' as $fixnum;
import 'package:protobuf/protobuf.dart' as $pb;
import 'common.pb.dart' as $4;
import 'common.pb.dart' as $2;
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
class InvokeRequest extends $pb.GeneratedMessage {
factory InvokeRequest({
$4.InvocationId? invocationId,
$4.CapabilityRef? capability,
$core.Iterable<$core.MapEntry<$core.String, $4.Payload>>? inputs,
$2.InvocationId? invocationId,
$2.CapabilityRef? capability,
$core.Iterable<$core.MapEntry<$core.String, $2.Payload>>? inputs,
$fixnum.Int64? deadlineMs,
}) {
final $result = create();
if (invocationId != null) {
$result.invocationId = invocationId;
}
if (capability != null) {
$result.capability = capability;
}
if (inputs != null) {
$result.inputs.addEntries(inputs);
}
if (deadlineMs != null) {
$result.deadlineMs = deadlineMs;
}
return $result;
final result = create();
if (invocationId != null) result.invocationId = invocationId;
if (capability != null) result.capability = capability;
if (inputs != null) result.inputs.addEntries(inputs);
if (deadlineMs != null) result.deadlineMs = deadlineMs;
return result;
}
InvokeRequest._() : super();
factory InvokeRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory InvokeRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'InvokeRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'), createEmptyInstance: create)
..aOM<$4.InvocationId>(1, _omitFieldNames ? '' : 'invocationId', subBuilder: $4.InvocationId.create)
..aOM<$4.CapabilityRef>(2, _omitFieldNames ? '' : 'capability', subBuilder: $4.CapabilityRef.create)
..m<$core.String, $4.Payload>(3, _omitFieldNames ? '' : 'inputs', entryClassName: 'InvokeRequest.InputsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: $4.Payload.create, valueDefaultOrMaker: $4.Payload.getDefault, packageName: const $pb.PackageName('fai.v1'))
..a<$fixnum.Int64>(4, _omitFieldNames ? '' : 'deadlineMs', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO)
..hasRequiredFields = false
;
InvokeRequest._();
factory InvokeRequest.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory InvokeRequest.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'InvokeRequest',
package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'),
createEmptyInstance: create)
..aOM<$2.InvocationId>(1, _omitFieldNames ? '' : 'invocationId',
subBuilder: $2.InvocationId.create)
..aOM<$2.CapabilityRef>(2, _omitFieldNames ? '' : 'capability',
subBuilder: $2.CapabilityRef.create)
..m<$core.String, $2.Payload>(3, _omitFieldNames ? '' : 'inputs',
entryClassName: 'InvokeRequest.InputsEntry',
keyFieldType: $pb.PbFieldType.OS,
valueFieldType: $pb.PbFieldType.OM,
valueCreator: $2.Payload.create,
valueDefaultOrMaker: $2.Payload.getDefault,
packageName: const $pb.PackageName('fai.v1'))
..a<$fixnum.Int64>(
4, _omitFieldNames ? '' : 'deadlineMs', $pb.PbFieldType.OU6,
defaultOrMaker: $fixnum.Int64.ZERO)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
InvokeRequest clone() => InvokeRequest()..mergeFromMessage(this);
InvokeRequest clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
InvokeRequest copyWith(void Function(InvokeRequest) updates) => super.copyWith((message) => updates(message as InvokeRequest)) as InvokeRequest;
InvokeRequest copyWith(void Function(InvokeRequest) updates) =>
super.copyWith((message) => updates(message as InvokeRequest))
as InvokeRequest;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static InvokeRequest create() => InvokeRequest._();
@$core.override
InvokeRequest createEmptyInstance() => create();
static $pb.PbList<InvokeRequest> createRepeated() => $pb.PbList<InvokeRequest>();
@$core.pragma('dart2js:noInline')
static InvokeRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<InvokeRequest>(create);
static InvokeRequest getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<InvokeRequest>(create);
static InvokeRequest? _defaultInstance;
@$pb.TagNumber(1)
$4.InvocationId get invocationId => $_getN(0);
$2.InvocationId get invocationId => $_getN(0);
@$pb.TagNumber(1)
set invocationId($4.InvocationId v) { $_setField(1, v); }
set invocationId($2.InvocationId value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasInvocationId() => $_has(0);
@$pb.TagNumber(1)
void clearInvocationId() => $_clearField(1);
@$pb.TagNumber(1)
$4.InvocationId ensureInvocationId() => $_ensure(0);
$2.InvocationId ensureInvocationId() => $_ensure(0);
@$pb.TagNumber(2)
$4.CapabilityRef get capability => $_getN(1);
$2.CapabilityRef get capability => $_getN(1);
@$pb.TagNumber(2)
set capability($4.CapabilityRef v) { $_setField(2, v); }
set capability($2.CapabilityRef value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasCapability() => $_has(1);
@$pb.TagNumber(2)
void clearCapability() => $_clearField(2);
@$pb.TagNumber(2)
$4.CapabilityRef ensureCapability() => $_ensure(1);
$2.CapabilityRef ensureCapability() => $_ensure(1);
@$pb.TagNumber(3)
$pb.PbMap<$core.String, $4.Payload> get inputs => $_getMap(2);
$pb.PbMap<$core.String, $2.Payload> get inputs => $_getMap(2);
@$pb.TagNumber(4)
$fixnum.Int64 get deadlineMs => $_getI64(3);
@$pb.TagNumber(4)
set deadlineMs($fixnum.Int64 v) { $_setInt64(3, v); }
set deadlineMs($fixnum.Int64 value) => $_setInt64(3, value);
@$pb.TagNumber(4)
$core.bool hasDeadlineMs() => $_has(3);
@$pb.TagNumber(4)
void clearDeadlineMs() => $_clearField(4);
}
enum InvokeResponse_Result {
success,
error,
notSet
}
enum InvokeResponse_Result { success, error, notSet }
class InvokeResponse extends $pb.GeneratedMessage {
factory InvokeResponse({
Success? success,
$4.FaiError? error,
$2.FaiError? error,
}) {
final $result = create();
if (success != null) {
$result.success = success;
}
if (error != null) {
$result.error = error;
}
return $result;
final result = create();
if (success != null) result.success = success;
if (error != null) result.error = error;
return result;
}
InvokeResponse._() : super();
factory InvokeResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory InvokeResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static const $core.Map<$core.int, InvokeResponse_Result> _InvokeResponse_ResultByTag = {
1 : InvokeResponse_Result.success,
2 : InvokeResponse_Result.error,
0 : InvokeResponse_Result.notSet
InvokeResponse._();
factory InvokeResponse.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory InvokeResponse.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static const $core.Map<$core.int, InvokeResponse_Result>
_InvokeResponse_ResultByTag = {
1: InvokeResponse_Result.success,
2: InvokeResponse_Result.error,
0: InvokeResponse_Result.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'InvokeResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'), createEmptyInstance: create)
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'InvokeResponse',
package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'),
createEmptyInstance: create)
..oo(0, [1, 2])
..aOM<Success>(1, _omitFieldNames ? '' : 'success', subBuilder: Success.create)
..aOM<$4.FaiError>(2, _omitFieldNames ? '' : 'error', subBuilder: $4.FaiError.create)
..hasRequiredFields = false
;
..aOM<Success>(1, _omitFieldNames ? '' : 'success',
subBuilder: Success.create)
..aOM<$2.FaiError>(2, _omitFieldNames ? '' : 'error',
subBuilder: $2.FaiError.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
InvokeResponse clone() => InvokeResponse()..mergeFromMessage(this);
InvokeResponse clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
InvokeResponse copyWith(void Function(InvokeResponse) updates) => super.copyWith((message) => updates(message as InvokeResponse)) as InvokeResponse;
InvokeResponse copyWith(void Function(InvokeResponse) updates) =>
super.copyWith((message) => updates(message as InvokeResponse))
as InvokeResponse;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static InvokeResponse create() => InvokeResponse._();
@$core.override
InvokeResponse createEmptyInstance() => create();
static $pb.PbList<InvokeResponse> createRepeated() => $pb.PbList<InvokeResponse>();
@$core.pragma('dart2js:noInline')
static InvokeResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<InvokeResponse>(create);
static InvokeResponse getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<InvokeResponse>(create);
static InvokeResponse? _defaultInstance;
InvokeResponse_Result whichResult() => _InvokeResponse_ResultByTag[$_whichOneof(0)]!;
@$pb.TagNumber(1)
@$pb.TagNumber(2)
InvokeResponse_Result whichResult() =>
_InvokeResponse_ResultByTag[$_whichOneof(0)]!;
@$pb.TagNumber(1)
@$pb.TagNumber(2)
void clearResult() => $_clearField($_whichOneof(0));
@$pb.TagNumber(1)
Success get success => $_getN(0);
@$pb.TagNumber(1)
set success(Success v) { $_setField(1, v); }
set success(Success value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasSuccess() => $_has(0);
@$pb.TagNumber(1)
@ -168,108 +195,128 @@ class InvokeResponse extends $pb.GeneratedMessage {
Success ensureSuccess() => $_ensure(0);
@$pb.TagNumber(2)
$4.FaiError get error => $_getN(1);
$2.FaiError get error => $_getN(1);
@$pb.TagNumber(2)
set error($4.FaiError v) { $_setField(2, v); }
set error($2.FaiError value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasError() => $_has(1);
@$pb.TagNumber(2)
void clearError() => $_clearField(2);
@$pb.TagNumber(2)
$4.FaiError ensureError() => $_ensure(1);
$2.FaiError ensureError() => $_ensure(1);
}
class Success extends $pb.GeneratedMessage {
factory Success({
$core.Iterable<$core.MapEntry<$core.String, $4.Payload>>? outputs,
$core.Iterable<$core.MapEntry<$core.String, $2.Payload>>? outputs,
}) {
final $result = create();
if (outputs != null) {
$result.outputs.addEntries(outputs);
}
return $result;
final result = create();
if (outputs != null) result.outputs.addEntries(outputs);
return result;
}
Success._() : super();
factory Success.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Success.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Success', package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'), createEmptyInstance: create)
..m<$core.String, $4.Payload>(1, _omitFieldNames ? '' : 'outputs', entryClassName: 'Success.OutputsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: $4.Payload.create, valueDefaultOrMaker: $4.Payload.getDefault, packageName: const $pb.PackageName('fai.v1'))
..hasRequiredFields = false
;
Success._();
factory Success.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory Success.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'Success',
package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'),
createEmptyInstance: create)
..m<$core.String, $2.Payload>(1, _omitFieldNames ? '' : 'outputs',
entryClassName: 'Success.OutputsEntry',
keyFieldType: $pb.PbFieldType.OS,
valueFieldType: $pb.PbFieldType.OM,
valueCreator: $2.Payload.create,
valueDefaultOrMaker: $2.Payload.getDefault,
packageName: const $pb.PackageName('fai.v1'))
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Success clone() => Success()..mergeFromMessage(this);
Success clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Success copyWith(void Function(Success) updates) => super.copyWith((message) => updates(message as Success)) as Success;
Success copyWith(void Function(Success) updates) =>
super.copyWith((message) => updates(message as Success)) as Success;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Success create() => Success._();
@$core.override
Success createEmptyInstance() => create();
static $pb.PbList<Success> createRepeated() => $pb.PbList<Success>();
@$core.pragma('dart2js:noInline')
static Success getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Success>(create);
static Success getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Success>(create);
static Success? _defaultInstance;
@$pb.TagNumber(1)
$pb.PbMap<$core.String, $4.Payload> get outputs => $_getMap(0);
$pb.PbMap<$core.String, $2.Payload> get outputs => $_getMap(0);
}
class ModuleDescriptor extends $pb.GeneratedMessage {
factory ModuleDescriptor({
$core.String? name,
$core.String? version,
$core.Iterable<$4.CapabilityRef>? provides,
$core.Iterable<$2.CapabilityRef>? provides,
$core.Iterable<$core.String>? permissions,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (version != null) {
$result.version = version;
}
if (provides != null) {
$result.provides.addAll(provides);
}
if (permissions != null) {
$result.permissions.addAll(permissions);
}
return $result;
final result = create();
if (name != null) result.name = name;
if (version != null) result.version = version;
if (provides != null) result.provides.addAll(provides);
if (permissions != null) result.permissions.addAll(permissions);
return result;
}
ModuleDescriptor._() : super();
factory ModuleDescriptor.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory ModuleDescriptor.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ModuleDescriptor', package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'), createEmptyInstance: create)
ModuleDescriptor._();
factory ModuleDescriptor.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory ModuleDescriptor.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'ModuleDescriptor',
package: const $pb.PackageName(_omitMessageNames ? '' : 'fai.v1'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'name')
..aOS(2, _omitFieldNames ? '' : 'version')
..pc<$4.CapabilityRef>(3, _omitFieldNames ? '' : 'provides', $pb.PbFieldType.PM, subBuilder: $4.CapabilityRef.create)
..pPM<$2.CapabilityRef>(3, _omitFieldNames ? '' : 'provides',
subBuilder: $2.CapabilityRef.create)
..pPS(4, _omitFieldNames ? '' : 'permissions')
..hasRequiredFields = false
;
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ModuleDescriptor clone() => ModuleDescriptor()..mergeFromMessage(this);
ModuleDescriptor clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ModuleDescriptor copyWith(void Function(ModuleDescriptor) updates) => super.copyWith((message) => updates(message as ModuleDescriptor)) as ModuleDescriptor;
ModuleDescriptor copyWith(void Function(ModuleDescriptor) updates) =>
super.copyWith((message) => updates(message as ModuleDescriptor))
as ModuleDescriptor;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ModuleDescriptor create() => ModuleDescriptor._();
@$core.override
ModuleDescriptor createEmptyInstance() => create();
static $pb.PbList<ModuleDescriptor> createRepeated() => $pb.PbList<ModuleDescriptor>();
@$core.pragma('dart2js:noInline')
static ModuleDescriptor getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ModuleDescriptor>(create);
static ModuleDescriptor getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<ModuleDescriptor>(create);
static ModuleDescriptor? _defaultInstance;
@$pb.TagNumber(1)
$core.String get name => $_getSZ(0);
@$pb.TagNumber(1)
set name($core.String v) { $_setString(0, v); }
set name($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasName() => $_has(0);
@$pb.TagNumber(1)
@ -278,19 +325,20 @@ class ModuleDescriptor extends $pb.GeneratedMessage {
@$pb.TagNumber(2)
$core.String get version => $_getSZ(1);
@$pb.TagNumber(2)
set version($core.String v) { $_setString(1, v); }
set version($core.String value) => $_setString(1, value);
@$pb.TagNumber(2)
$core.bool hasVersion() => $_has(1);
@$pb.TagNumber(2)
void clearVersion() => $_clearField(2);
@$pb.TagNumber(3)
$pb.PbList<$4.CapabilityRef> get provides => $_getList(2);
$pb.PbList<$2.CapabilityRef> get provides => $_getList(2);
@$pb.TagNumber(4)
$pb.PbList<$core.String> get permissions => $_getList(3);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
const $core.bool _omitFieldNames =
$core.bool.fromEnvironment('protobuf.omit_field_names');
const $core.bool _omitMessageNames =
$core.bool.fromEnvironment('protobuf.omit_message_names');

View file

@ -1,11 +1,11 @@
// This is a generated file - do not edit.
//
// Generated code. Do not modify.
// source: fai/v1/module.proto
//
// Generated from fai/v1/module.proto.
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports

View file

@ -1,22 +1,23 @@
// This is a generated file - do not edit.
//
// Generated code. Do not modify.
// source: fai/v1/module.proto
//
// Generated from fai/v1/module.proto.
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
import 'dart:async' as $async;
import 'dart:core' as $core;
import 'package:grpc/service_api.dart' as $grpc;
import 'package:protobuf/protobuf.dart' as $pb;
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart' as $1;
import '../../google/protobuf/empty.pb.dart' as $1;
import 'module.pb.dart' as $2;
import 'module.pb.dart' as $0;
export 'module.pb.dart';
@ -36,26 +37,35 @@ class ModuleClient extends $grpc.Client {
'',
];
static final _$invoke = $grpc.ClientMethod<$2.InvokeRequest, $2.InvokeResponse>(
'/fai.v1.Module/Invoke',
($2.InvokeRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $2.InvokeResponse.fromBuffer(value));
static final _$describe = $grpc.ClientMethod<$1.Empty, $2.ModuleDescriptor>(
'/fai.v1.Module/Describe',
($1.Empty value) => value.writeToBuffer(),
($core.List<$core.int> value) => $2.ModuleDescriptor.fromBuffer(value));
ModuleClient(super.channel, {super.options, super.interceptors});
/// Invoke the module once with typed inputs, receive typed outputs.
$grpc.ResponseFuture<$2.InvokeResponse> invoke($2.InvokeRequest request, {$grpc.CallOptions? options}) {
$grpc.ResponseFuture<$0.InvokeResponse> invoke(
$0.InvokeRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$invoke, request, options: options);
}
/// Return the module's self-description.
$grpc.ResponseFuture<$2.ModuleDescriptor> describe($1.Empty request, {$grpc.CallOptions? options}) {
$grpc.ResponseFuture<$0.ModuleDescriptor> describe(
$1.Empty request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$describe, request, options: options);
}
// method descriptors
static final _$invoke =
$grpc.ClientMethod<$0.InvokeRequest, $0.InvokeResponse>(
'/fai.v1.Module/Invoke',
($0.InvokeRequest value) => value.writeToBuffer(),
$0.InvokeResponse.fromBuffer);
static final _$describe = $grpc.ClientMethod<$1.Empty, $0.ModuleDescriptor>(
'/fai.v1.Module/Describe',
($1.Empty value) => value.writeToBuffer(),
$0.ModuleDescriptor.fromBuffer);
}
@$pb.GrpcServiceName('fai.v1.Module')
@ -63,30 +73,35 @@ abstract class ModuleServiceBase extends $grpc.Service {
$core.String get $name => 'fai.v1.Module';
ModuleServiceBase() {
$addMethod($grpc.ServiceMethod<$2.InvokeRequest, $2.InvokeResponse>(
$addMethod($grpc.ServiceMethod<$0.InvokeRequest, $0.InvokeResponse>(
'Invoke',
invoke_Pre,
false,
false,
($core.List<$core.int> value) => $2.InvokeRequest.fromBuffer(value),
($2.InvokeResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.Empty, $2.ModuleDescriptor>(
($core.List<$core.int> value) => $0.InvokeRequest.fromBuffer(value),
($0.InvokeResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.Empty, $0.ModuleDescriptor>(
'Describe',
describe_Pre,
false,
false,
($core.List<$core.int> value) => $1.Empty.fromBuffer(value),
($2.ModuleDescriptor value) => value.writeToBuffer()));
($0.ModuleDescriptor value) => value.writeToBuffer()));
}
$async.Future<$2.InvokeResponse> invoke_Pre($grpc.ServiceCall $call, $async.Future<$2.InvokeRequest> $request) async {
$async.Future<$0.InvokeResponse> invoke_Pre(
$grpc.ServiceCall $call, $async.Future<$0.InvokeRequest> $request) async {
return invoke($call, await $request);
}
$async.Future<$2.ModuleDescriptor> describe_Pre($grpc.ServiceCall $call, $async.Future<$1.Empty> $request) async {
$async.Future<$0.InvokeResponse> invoke(
$grpc.ServiceCall call, $0.InvokeRequest request);
$async.Future<$0.ModuleDescriptor> describe_Pre(
$grpc.ServiceCall $call, $async.Future<$1.Empty> $request) async {
return describe($call, await $request);
}
$async.Future<$2.InvokeResponse> invoke($grpc.ServiceCall call, $2.InvokeRequest request);
$async.Future<$2.ModuleDescriptor> describe($grpc.ServiceCall call, $1.Empty request);
$async.Future<$0.ModuleDescriptor> describe(
$grpc.ServiceCall call, $1.Empty request);
}

View file

@ -1,13 +1,15 @@
// This is a generated file - do not edit.
//
// Generated code. Do not modify.
// source: fai/v1/module.proto
//
// Generated from fai/v1/module.proto.
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
// ignore_for_file: unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
@ -17,9 +19,30 @@ import 'dart:typed_data' as $typed_data;
const InvokeRequest$json = {
'1': 'InvokeRequest',
'2': [
{'1': 'invocation_id', '3': 1, '4': 1, '5': 11, '6': '.fai.v1.InvocationId', '10': 'invocationId'},
{'1': 'capability', '3': 2, '4': 1, '5': 11, '6': '.fai.v1.CapabilityRef', '10': 'capability'},
{'1': 'inputs', '3': 3, '4': 3, '5': 11, '6': '.fai.v1.InvokeRequest.InputsEntry', '10': 'inputs'},
{
'1': 'invocation_id',
'3': 1,
'4': 1,
'5': 11,
'6': '.fai.v1.InvocationId',
'10': 'invocationId'
},
{
'1': 'capability',
'3': 2,
'4': 1,
'5': 11,
'6': '.fai.v1.CapabilityRef',
'10': 'capability'
},
{
'1': 'inputs',
'3': 3,
'4': 3,
'5': 11,
'6': '.fai.v1.InvokeRequest.InputsEntry',
'10': 'inputs'
},
{'1': 'deadline_ms', '3': 4, '4': 1, '5': 4, '10': 'deadlineMs'},
],
'3': [InvokeRequest_InputsEntry$json],
@ -30,7 +53,14 @@ const InvokeRequest_InputsEntry$json = {
'1': 'InputsEntry',
'2': [
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
{'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.fai.v1.Payload', '10': 'value'},
{
'1': 'value',
'3': 2,
'4': 1,
'5': 11,
'6': '.fai.v1.Payload',
'10': 'value'
},
],
'7': {'7': true},
};
@ -48,8 +78,24 @@ final $typed_data.Uint8List invokeRequestDescriptor = $convert.base64Decode(
const InvokeResponse$json = {
'1': 'InvokeResponse',
'2': [
{'1': 'success', '3': 1, '4': 1, '5': 11, '6': '.fai.v1.Success', '9': 0, '10': 'success'},
{'1': 'error', '3': 2, '4': 1, '5': 11, '6': '.fai.v1.FaiError', '9': 0, '10': 'error'},
{
'1': 'success',
'3': 1,
'4': 1,
'5': 11,
'6': '.fai.v1.Success',
'9': 0,
'10': 'success'
},
{
'1': 'error',
'3': 2,
'4': 1,
'5': 11,
'6': '.fai.v1.FaiError',
'9': 0,
'10': 'error'
},
],
'8': [
{'1': 'result'},
@ -66,7 +112,14 @@ final $typed_data.Uint8List invokeResponseDescriptor = $convert.base64Decode(
const Success$json = {
'1': 'Success',
'2': [
{'1': 'outputs', '3': 1, '4': 3, '5': 11, '6': '.fai.v1.Success.OutputsEntry', '10': 'outputs'},
{
'1': 'outputs',
'3': 1,
'4': 3,
'5': 11,
'6': '.fai.v1.Success.OutputsEntry',
'10': 'outputs'
},
],
'3': [Success_OutputsEntry$json],
};
@ -76,7 +129,14 @@ const Success_OutputsEntry$json = {
'1': 'OutputsEntry',
'2': [
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
{'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.fai.v1.Payload', '10': 'value'},
{
'1': 'value',
'3': 2,
'4': 1,
'5': 11,
'6': '.fai.v1.Payload',
'10': 'value'
},
],
'7': {'7': true},
};
@ -93,7 +153,14 @@ const ModuleDescriptor$json = {
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'},
{'1': 'provides', '3': 3, '4': 3, '5': 11, '6': '.fai.v1.CapabilityRef', '10': 'provides'},
{
'1': 'provides',
'3': 3,
'4': 3,
'5': 11,
'6': '.fai.v1.CapabilityRef',
'10': 'provides'
},
{'1': 'permissions', '3': 4, '4': 3, '5': 9, '10': 'permissions'},
],
};
@ -103,4 +170,3 @@ final $typed_data.Uint8List moduleDescriptorDescriptor = $convert.base64Decode(
'ChBNb2R1bGVEZXNjcmlwdG9yEhIKBG5hbWUYASABKAlSBG5hbWUSGAoHdmVyc2lvbhgCIAEoCV'
'IHdmVyc2lvbhIxCghwcm92aWRlcxgDIAMoCzIVLmZhaS52MS5DYXBhYmlsaXR5UmVmUghwcm92'
'aWRlcxIgCgtwZXJtaXNzaW9ucxgEIAMoCVILcGVybWlzc2lvbnM=');

View file

@ -1,52 +0,0 @@
//
// Generated code. Do not modify.
// source: google/protobuf/empty.proto
//
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:core' as $core;
import 'package:protobuf/protobuf.dart' as $pb;
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
/// A generic empty message that you can re-use to avoid defining duplicated
/// empty messages in your APIs. A typical example is to use it as the request
/// or the response type of an API method. For instance:
///
/// service Foo {
/// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
/// }
class Empty extends $pb.GeneratedMessage {
factory Empty() => create();
Empty._() : super();
factory Empty.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Empty.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Empty', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create)
..hasRequiredFields = false
;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Empty clone() => Empty()..mergeFromMessage(this);
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Empty copyWith(void Function(Empty) updates) => super.copyWith((message) => updates(message as Empty)) as Empty;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Empty create() => Empty._();
Empty createEmptyInstance() => create();
static $pb.PbList<Empty> createRepeated() => $pb.PbList<Empty>();
@$core.pragma('dart2js:noInline')
static Empty getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Empty>(create);
static Empty? _defaultInstance;
}
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View file

@ -1,11 +0,0 @@
//
// Generated code. Do not modify.
// source: google/protobuf/empty.proto
//
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

View file

@ -1,24 +0,0 @@
//
// Generated code. Do not modify.
// source: google/protobuf/empty.proto
//
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use emptyDescriptor instead')
const Empty$json = {
'1': 'Empty',
};
/// Descriptor for `Empty`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List emptyDescriptor = $convert.base64Decode(
'CgVFbXB0eQ==');

View file

@ -1,273 +0,0 @@
//
// Generated code. Do not modify.
// source: google/protobuf/struct.proto
//
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:core' as $core;
import 'package:protobuf/protobuf.dart' as $pb;
import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin;
import 'struct.pbenum.dart';
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
export 'struct.pbenum.dart';
/// Represents a JSON object.
///
/// An unordered key-value map, intending to perfectly capture the semantics of a
/// JSON object. This enables parsing any arbitrary JSON payload as a message
/// field in ProtoJSON format.
///
/// This follows RFC 8259 guidelines for interoperable JSON: notably this type
/// cannot represent large Int64 values or `NaN`/`Infinity` numbers,
/// since the JSON format generally does not support those values in its number
/// type.
///
/// If you do not intend to parse arbitrary JSON into your message, a custom
/// typed message should be preferred instead of using this type.
class Struct extends $pb.GeneratedMessage with $mixin.StructMixin {
factory Struct({
$core.Iterable<$core.MapEntry<$core.String, Value>>? fields,
}) {
final $result = create();
if (fields != null) {
$result.fields.addEntries(fields);
}
return $result;
}
Struct._() : super();
factory Struct.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Struct.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Struct', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.StructMixin.toProto3JsonHelper, fromProto3Json: $mixin.StructMixin.fromProto3JsonHelper)
..m<$core.String, Value>(1, _omitFieldNames ? '' : 'fields', entryClassName: 'Struct.FieldsEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: Value.create, valueDefaultOrMaker: Value.getDefault, packageName: const $pb.PackageName('google.protobuf'))
..hasRequiredFields = false
;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Struct clone() => Struct()..mergeFromMessage(this);
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Struct copyWith(void Function(Struct) updates) => super.copyWith((message) => updates(message as Struct)) as Struct;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Struct create() => Struct._();
Struct createEmptyInstance() => create();
static $pb.PbList<Struct> createRepeated() => $pb.PbList<Struct>();
@$core.pragma('dart2js:noInline')
static Struct getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Struct>(create);
static Struct? _defaultInstance;
/// Unordered map of dynamically typed values.
@$pb.TagNumber(1)
$pb.PbMap<$core.String, Value> get fields => $_getMap(0);
}
enum Value_Kind {
nullValue,
numberValue,
stringValue,
boolValue,
structValue,
listValue,
notSet
}
/// Represents a JSON value.
///
/// `Value` represents a dynamically typed value which can be either
/// null, a number, a string, a boolean, a recursive struct value, or a
/// list of values. A producer of value is expected to set one of these
/// variants. Absence of any variant is an invalid state.
class Value extends $pb.GeneratedMessage with $mixin.ValueMixin {
factory Value({
NullValue? nullValue,
$core.double? numberValue,
$core.String? stringValue,
$core.bool? boolValue,
Struct? structValue,
ListValue? listValue,
}) {
final $result = create();
if (nullValue != null) {
$result.nullValue = nullValue;
}
if (numberValue != null) {
$result.numberValue = numberValue;
}
if (stringValue != null) {
$result.stringValue = stringValue;
}
if (boolValue != null) {
$result.boolValue = boolValue;
}
if (structValue != null) {
$result.structValue = structValue;
}
if (listValue != null) {
$result.listValue = listValue;
}
return $result;
}
Value._() : super();
factory Value.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Value.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static const $core.Map<$core.int, Value_Kind> _Value_KindByTag = {
1 : Value_Kind.nullValue,
2 : Value_Kind.numberValue,
3 : Value_Kind.stringValue,
4 : Value_Kind.boolValue,
5 : Value_Kind.structValue,
6 : Value_Kind.listValue,
0 : Value_Kind.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Value', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.ValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.ValueMixin.fromProto3JsonHelper)
..oo(0, [1, 2, 3, 4, 5, 6])
..e<NullValue>(1, _omitFieldNames ? '' : 'nullValue', $pb.PbFieldType.OE, defaultOrMaker: NullValue.NULL_VALUE, valueOf: NullValue.valueOf, enumValues: NullValue.values)
..a<$core.double>(2, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OD)
..aOS(3, _omitFieldNames ? '' : 'stringValue')
..aOB(4, _omitFieldNames ? '' : 'boolValue')
..aOM<Struct>(5, _omitFieldNames ? '' : 'structValue', subBuilder: Struct.create)
..aOM<ListValue>(6, _omitFieldNames ? '' : 'listValue', subBuilder: ListValue.create)
..hasRequiredFields = false
;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Value clone() => Value()..mergeFromMessage(this);
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Value copyWith(void Function(Value) updates) => super.copyWith((message) => updates(message as Value)) as Value;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Value create() => Value._();
Value createEmptyInstance() => create();
static $pb.PbList<Value> createRepeated() => $pb.PbList<Value>();
@$core.pragma('dart2js:noInline')
static Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Value>(create);
static Value? _defaultInstance;
Value_Kind whichKind() => _Value_KindByTag[$_whichOneof(0)]!;
void clearKind() => $_clearField($_whichOneof(0));
/// Represents a JSON `null`.
@$pb.TagNumber(1)
NullValue get nullValue => $_getN(0);
@$pb.TagNumber(1)
set nullValue(NullValue v) { $_setField(1, v); }
@$pb.TagNumber(1)
$core.bool hasNullValue() => $_has(0);
@$pb.TagNumber(1)
void clearNullValue() => $_clearField(1);
/// Represents a JSON number. Must not be `NaN`, `Infinity` or
/// `-Infinity`, since those are not supported in JSON. This also cannot
/// represent large Int64 values, since JSON format generally does not
/// support them in its number type.
@$pb.TagNumber(2)
$core.double get numberValue => $_getN(1);
@$pb.TagNumber(2)
set numberValue($core.double v) { $_setDouble(1, v); }
@$pb.TagNumber(2)
$core.bool hasNumberValue() => $_has(1);
@$pb.TagNumber(2)
void clearNumberValue() => $_clearField(2);
/// Represents a JSON string.
@$pb.TagNumber(3)
$core.String get stringValue => $_getSZ(2);
@$pb.TagNumber(3)
set stringValue($core.String v) { $_setString(2, v); }
@$pb.TagNumber(3)
$core.bool hasStringValue() => $_has(2);
@$pb.TagNumber(3)
void clearStringValue() => $_clearField(3);
/// Represents a JSON boolean (`true` or `false` literal in JSON).
@$pb.TagNumber(4)
$core.bool get boolValue => $_getBF(3);
@$pb.TagNumber(4)
set boolValue($core.bool v) { $_setBool(3, v); }
@$pb.TagNumber(4)
$core.bool hasBoolValue() => $_has(3);
@$pb.TagNumber(4)
void clearBoolValue() => $_clearField(4);
/// Represents a JSON object.
@$pb.TagNumber(5)
Struct get structValue => $_getN(4);
@$pb.TagNumber(5)
set structValue(Struct v) { $_setField(5, v); }
@$pb.TagNumber(5)
$core.bool hasStructValue() => $_has(4);
@$pb.TagNumber(5)
void clearStructValue() => $_clearField(5);
@$pb.TagNumber(5)
Struct ensureStructValue() => $_ensure(4);
/// Represents a JSON array.
@$pb.TagNumber(6)
ListValue get listValue => $_getN(5);
@$pb.TagNumber(6)
set listValue(ListValue v) { $_setField(6, v); }
@$pb.TagNumber(6)
$core.bool hasListValue() => $_has(5);
@$pb.TagNumber(6)
void clearListValue() => $_clearField(6);
@$pb.TagNumber(6)
ListValue ensureListValue() => $_ensure(5);
}
/// Represents a JSON array.
class ListValue extends $pb.GeneratedMessage with $mixin.ListValueMixin {
factory ListValue({
$core.Iterable<Value>? values,
}) {
final $result = create();
if (values != null) {
$result.values.addAll(values);
}
return $result;
}
ListValue._() : super();
factory ListValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory ListValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.ListValueMixin.toProto3JsonHelper, fromProto3Json: $mixin.ListValueMixin.fromProto3JsonHelper)
..pc<Value>(1, _omitFieldNames ? '' : 'values', $pb.PbFieldType.PM, subBuilder: Value.create)
..hasRequiredFields = false
;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ListValue clone() => ListValue()..mergeFromMessage(this);
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ListValue copyWith(void Function(ListValue) updates) => super.copyWith((message) => updates(message as ListValue)) as ListValue;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ListValue create() => ListValue._();
ListValue createEmptyInstance() => create();
static $pb.PbList<ListValue> createRepeated() => $pb.PbList<ListValue>();
@$core.pragma('dart2js:noInline')
static ListValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ListValue>(create);
static ListValue? _defaultInstance;
/// Repeated field of dynamically typed values.
@$pb.TagNumber(1)
$pb.PbList<Value> get values => $_getList(0);
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View file

@ -1,40 +0,0 @@
//
// Generated code. Do not modify.
// source: google/protobuf/struct.proto
//
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:core' as $core;
import 'package:protobuf/protobuf.dart' as $pb;
/// Represents a JSON `null`.
///
/// `NullValue` is a sentinel, using an enum with only one value to represent
/// the null value for the `Value` type union.
///
/// A field of type `NullValue` with any value other than `0` is considered
/// invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
/// as a JSON `null` regardless of the integer value, and so will round trip to
/// a `0` value.
class NullValue extends $pb.ProtobufEnum {
/// Null value.
static const NullValue NULL_VALUE = NullValue._(0, _omitEnumNames ? '' : 'NULL_VALUE');
static const $core.List<NullValue> values = <NullValue> [
NULL_VALUE,
];
static final $core.List<NullValue?> _byValue = $pb.ProtobufEnum.$_initByValueList(values, 0);
static NullValue? valueOf($core.int value) => value < 0 || value >= _byValue.length ? null : _byValue[value];
const NullValue._(super.v, super.n);
}
const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names');

View file

@ -1,90 +0,0 @@
//
// Generated code. Do not modify.
// source: google/protobuf/struct.proto
//
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use nullValueDescriptor instead')
const NullValue$json = {
'1': 'NullValue',
'2': [
{'1': 'NULL_VALUE', '2': 0},
],
};
/// Descriptor for `NullValue`. Decode as a `google.protobuf.EnumDescriptorProto`.
final $typed_data.Uint8List nullValueDescriptor = $convert.base64Decode(
'CglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAA');
@$core.Deprecated('Use structDescriptor instead')
const Struct$json = {
'1': 'Struct',
'2': [
{'1': 'fields', '3': 1, '4': 3, '5': 11, '6': '.google.protobuf.Struct.FieldsEntry', '10': 'fields'},
],
'3': [Struct_FieldsEntry$json],
};
@$core.Deprecated('Use structDescriptor instead')
const Struct_FieldsEntry$json = {
'1': 'FieldsEntry',
'2': [
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
{'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.google.protobuf.Value', '10': 'value'},
],
'7': {'7': true},
};
/// Descriptor for `Struct`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List structDescriptor = $convert.base64Decode(
'CgZTdHJ1Y3QSOwoGZmllbGRzGAEgAygLMiMuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdC5GaWVsZH'
'NFbnRyeVIGZmllbGRzGlEKC0ZpZWxkc0VudHJ5EhAKA2tleRgBIAEoCVIDa2V5EiwKBXZhbHVl'
'GAIgASgLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlUgV2YWx1ZToCOAE=');
@$core.Deprecated('Use valueDescriptor instead')
const Value$json = {
'1': 'Value',
'2': [
{'1': 'null_value', '3': 1, '4': 1, '5': 14, '6': '.google.protobuf.NullValue', '9': 0, '10': 'nullValue'},
{'1': 'number_value', '3': 2, '4': 1, '5': 1, '9': 0, '10': 'numberValue'},
{'1': 'string_value', '3': 3, '4': 1, '5': 9, '9': 0, '10': 'stringValue'},
{'1': 'bool_value', '3': 4, '4': 1, '5': 8, '9': 0, '10': 'boolValue'},
{'1': 'struct_value', '3': 5, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '9': 0, '10': 'structValue'},
{'1': 'list_value', '3': 6, '4': 1, '5': 11, '6': '.google.protobuf.ListValue', '9': 0, '10': 'listValue'},
],
'8': [
{'1': 'kind'},
],
};
/// Descriptor for `Value`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List valueDescriptor = $convert.base64Decode(
'CgVWYWx1ZRI7CgpudWxsX3ZhbHVlGAEgASgOMhouZ29vZ2xlLnByb3RvYnVmLk51bGxWYWx1ZU'
'gAUgludWxsVmFsdWUSIwoMbnVtYmVyX3ZhbHVlGAIgASgBSABSC251bWJlclZhbHVlEiMKDHN0'
'cmluZ192YWx1ZRgDIAEoCUgAUgtzdHJpbmdWYWx1ZRIfCgpib29sX3ZhbHVlGAQgASgISABSCW'
'Jvb2xWYWx1ZRI8CgxzdHJ1Y3RfdmFsdWUYBSABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0'
'SABSC3N0cnVjdFZhbHVlEjsKCmxpc3RfdmFsdWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYuTG'
'lzdFZhbHVlSABSCWxpc3RWYWx1ZUIGCgRraW5k');
@$core.Deprecated('Use listValueDescriptor instead')
const ListValue$json = {
'1': 'ListValue',
'2': [
{'1': 'values', '3': 1, '4': 3, '5': 11, '6': '.google.protobuf.Value', '10': 'values'},
],
};
/// Descriptor for `ListValue`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List listValueDescriptor = $convert.base64Decode(
'CglMaXN0VmFsdWUSLgoGdmFsdWVzGAEgAygLMhYuZ29vZ2xlLnByb3RvYnVmLlZhbHVlUgZ2YW'
'x1ZXM=');

View file

@ -1,185 +0,0 @@
//
// Generated code. Do not modify.
// source: google/protobuf/timestamp.proto
//
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:core' as $core;
import 'package:fixnum/fixnum.dart' as $fixnum;
import 'package:protobuf/protobuf.dart' as $pb;
import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin;
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
/// A Timestamp represents a point in time independent of any time zone or local
/// calendar, encoded as a count of seconds and fractions of seconds at
/// nanosecond resolution. The count is relative to an epoch at UTC midnight on
/// January 1, 1970, in the proleptic Gregorian calendar which extends the
/// Gregorian calendar backwards to year one.
///
/// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
/// second table is needed for interpretation, using a [24-hour linear
/// smear](https://developers.google.com/time/smear).
///
/// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
/// restricting to that range, we ensure that we can convert to and from [RFC
/// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
///
/// # Examples
///
/// Example 1: Compute Timestamp from POSIX `time()`.
///
/// Timestamp timestamp;
/// timestamp.set_seconds(time(NULL));
/// timestamp.set_nanos(0);
///
/// Example 2: Compute Timestamp from POSIX `gettimeofday()`.
///
/// struct timeval tv;
/// gettimeofday(&tv, NULL);
///
/// Timestamp timestamp;
/// timestamp.set_seconds(tv.tv_sec);
/// timestamp.set_nanos(tv.tv_usec * 1000);
///
/// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
///
/// FILETIME ft;
/// GetSystemTimeAsFileTime(&ft);
/// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
///
/// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
/// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
/// Timestamp timestamp;
/// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
/// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
///
/// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
///
/// long millis = System.currentTimeMillis();
///
/// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
/// .setNanos((int) ((millis % 1000) * 1000000)).build();
///
/// Example 5: Compute Timestamp from Java `Instant.now()`.
///
/// Instant now = Instant.now();
///
/// Timestamp timestamp =
/// Timestamp.newBuilder().setSeconds(now.getEpochSecond())
/// .setNanos(now.getNano()).build();
///
/// Example 6: Compute Timestamp from current time in Python.
///
/// timestamp = Timestamp()
/// timestamp.GetCurrentTime()
///
/// # JSON Mapping
///
/// In JSON format, the Timestamp type is encoded as a string in the
/// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
/// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
/// where {year} is always expressed using four digits while {month}, {day},
/// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
/// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
/// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
/// is required. A ProtoJSON serializer should always use UTC (as indicated by
/// "Z") when printing the Timestamp type and a ProtoJSON parser should be
/// able to accept both UTC and other timezones (as indicated by an offset).
///
/// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
/// 01:30 UTC on January 15, 2017.
///
/// In JavaScript, one can convert a Date object to this format using the
/// standard
/// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
/// method. In Python, a standard `datetime.datetime` object can be converted
/// to this format using
/// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
/// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
/// the Joda Time's [`ISODateTimeFormat.dateTime()`](
/// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
/// ) to obtain a formatter capable of generating timestamps in this format.
class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin {
factory Timestamp({
$fixnum.Int64? seconds,
$core.int? nanos,
}) {
final $result = create();
if (seconds != null) {
$result.seconds = seconds;
}
if (nanos != null) {
$result.nanos = nanos;
}
return $result;
}
Timestamp._() : super();
factory Timestamp.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory Timestamp.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Timestamp', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.TimestampMixin.toProto3JsonHelper, fromProto3Json: $mixin.TimestampMixin.fromProto3JsonHelper)
..aInt64(1, _omitFieldNames ? '' : 'seconds')
..a<$core.int>(2, _omitFieldNames ? '' : 'nanos', $pb.PbFieldType.O3)
..hasRequiredFields = false
;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Timestamp clone() => Timestamp()..mergeFromMessage(this);
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Timestamp copyWith(void Function(Timestamp) updates) => super.copyWith((message) => updates(message as Timestamp)) as Timestamp;
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Timestamp create() => Timestamp._();
Timestamp createEmptyInstance() => create();
static $pb.PbList<Timestamp> createRepeated() => $pb.PbList<Timestamp>();
@$core.pragma('dart2js:noInline')
static Timestamp getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Timestamp>(create);
static Timestamp? _defaultInstance;
/// Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
/// be between -62135596800 and 253402300799 inclusive (which corresponds to
/// 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
@$pb.TagNumber(1)
$fixnum.Int64 get seconds => $_getI64(0);
@$pb.TagNumber(1)
set seconds($fixnum.Int64 v) { $_setInt64(0, v); }
@$pb.TagNumber(1)
$core.bool hasSeconds() => $_has(0);
@$pb.TagNumber(1)
void clearSeconds() => $_clearField(1);
/// Non-negative fractions of a second at nanosecond resolution. This field is
/// the nanosecond portion of the duration, not an alternative to seconds.
/// Negative second values with fractions must still have non-negative nanos
/// values that count forward in time. Must be between 0 and 999,999,999
/// inclusive.
@$pb.TagNumber(2)
$core.int get nanos => $_getIZ(1);
@$pb.TagNumber(2)
set nanos($core.int v) { $_setSignedInt32(1, v); }
@$pb.TagNumber(2)
$core.bool hasNanos() => $_has(1);
@$pb.TagNumber(2)
void clearNanos() => $_clearField(2);
/// Creates a new instance from [dateTime].
///
/// Time zone information will not be preserved.
static Timestamp fromDateTime($core.DateTime dateTime) {
final result = create();
$mixin.TimestampMixin.setFromDateTime(result, dateTime);
return result;
}
}
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');

View file

@ -1,11 +0,0 @@
//
// Generated code. Do not modify.
// source: google/protobuf/timestamp.proto
//
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

View file

@ -1,29 +0,0 @@
//
// Generated code. Do not modify.
// source: google/protobuf/timestamp.proto
//
// @dart = 3.3
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use timestampDescriptor instead')
const Timestamp$json = {
'1': 'Timestamp',
'2': [
{'1': 'seconds', '3': 1, '4': 1, '5': 3, '10': 'seconds'},
{'1': 'nanos', '3': 2, '4': 1, '5': 5, '10': 'nanos'},
],
};
/// Descriptor for `Timestamp`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List timestampDescriptor = $convert.base64Decode(
'CglUaW1lc3RhbXASGAoHc2Vjb25kcxgBIAEoA1IHc2Vjb25kcxIUCgVuYW5vcxgCIAEoBVIFbm'
'Fub3M=');

View file

@ -14,7 +14,8 @@ import 'channel_factory_io.dart'
import 'generated/fai/v1/common.pb.dart' as pb_common;
import 'generated/fai/v1/hub.pb.dart' as pb;
import 'generated/fai/v1/hub.pbgrpc.dart' as grpc_hub;
import 'generated/google/protobuf/empty.pb.dart' show Empty;
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart'
show Empty;
/// Connection coordinates for a hub endpoint.
class HubEndpoint {

View file

@ -1,6 +1,6 @@
name: fai_client_sdk
description: gRPC client SDK for the F∆I Platform hub. Used by F∆I Studio and Tier-3 domain apps.
version: 0.16.0
version: 0.17.0
publish_to: 'none'
repository: https://git.flemming.ai/fai/client-sdk-dart
@ -8,8 +8,8 @@ environment:
sdk: ^3.11.0-200.1.beta
dependencies:
grpc: ^4.0.0
protobuf: ^4.0.0
grpc: ^5.0.0
protobuf: ^6.0.0
fixnum: ^1.1.0
dev_dependencies:

View file

@ -55,9 +55,13 @@ if [[ ${#PROTO_FILES[@]} -eq 0 ]]; then
exit 1
fi
# Locate the well-known-types include directory. Required so we
# can generate Dart bindings for google.protobuf.Empty,
# google.protobuf.Struct, etc. that the platform's protos import.
# Locate the well-known-types include directory. Only needed
# for protoc's resolver; we do NOT generate the WKT Dart files
# anymore — `package:protobuf` (6.x+) ships them as
# `well_known_types/google/protobuf/empty.pb.dart` etc., and
# emitting our own copy creates duplicate-Empty-type errors at
# the API boundary (HubAdminClient expects the packaged Empty,
# our local copy is a distinct type to the analyser).
WKT_INCLUDE=""
for candidate in \
"/opt/homebrew/include" \
@ -75,23 +79,22 @@ if [[ -z "$WKT_INCLUDE" ]]; then
exit 1
fi
WKT_PROTOS=(
"$WKT_INCLUDE/google/protobuf/empty.proto"
"$WKT_INCLUDE/google/protobuf/struct.proto"
"$WKT_INCLUDE/google/protobuf/timestamp.proto"
)
# Wipe any stale WKT files generated by an earlier (pre-
# protobuf-6) version of this script. Keeping them around
# silently revives the duplicate-types breakage above on
# regen.
rm -rf "$OUT_DIR/google"
echo "generating Dart bindings"
echo " protos: ${#PROTO_FILES[@]} files under $PROTO_ROOT"
echo " WKT include: $WKT_INCLUDE"
echo " WKT include: $WKT_INCLUDE (protoc resolver only)"
echo " output: $OUT_DIR"
protoc \
--proto_path="$PROTO_ROOT" \
--proto_path="$WKT_INCLUDE" \
--dart_out=grpc:"$OUT_DIR" \
"${PROTO_FILES[@]}" \
"${WKT_PROTOS[@]}"
"${PROTO_FILES[@]}"
echo "done. generated files:"
find "$OUT_DIR" -name '*.dart' | sort