Some checks failed
Security / Security check (push) Failing after 2s
Regenerates the gRPC stubs from the updated proto and adds: - HubClient.submitStreaming(...) -> Stream<SubmitStreamEvent>: follow a flow execution live (step markers, module emit-events, terminal result/error). Works over native gRPC and, on web, gRPC-Web (the same conditional channel factory the rest of the SDK uses). - submit(..., detach: true) and getInvocationStatus / getInvocationResult / cancelInvocation wrappers (T3). - SubmitStreamEvent + InvocationStatus re-exported as typedefs. Shared _buildSubmitRequest between submit + submitStreaming. analyze clean, tests pass. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
96 lines
3.6 KiB
Dart
96 lines
3.6 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from chain/v1/hub.proto.
|
|
|
|
// @dart = 3.3
|
|
|
|
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
|
// 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 InvocationStatus_Phase extends $pb.ProtobufEnum {
|
|
static const InvocationStatus_Phase PHASE_UNKNOWN =
|
|
InvocationStatus_Phase._(0, _omitEnumNames ? '' : 'PHASE_UNKNOWN');
|
|
static const InvocationStatus_Phase PENDING =
|
|
InvocationStatus_Phase._(1, _omitEnumNames ? '' : 'PENDING');
|
|
static const InvocationStatus_Phase RUNNING =
|
|
InvocationStatus_Phase._(2, _omitEnumNames ? '' : 'RUNNING');
|
|
static const InvocationStatus_Phase SUCCEEDED =
|
|
InvocationStatus_Phase._(3, _omitEnumNames ? '' : 'SUCCEEDED');
|
|
static const InvocationStatus_Phase FAILED =
|
|
InvocationStatus_Phase._(4, _omitEnumNames ? '' : 'FAILED');
|
|
static const InvocationStatus_Phase CANCELLED =
|
|
InvocationStatus_Phase._(5, _omitEnumNames ? '' : 'CANCELLED');
|
|
|
|
static const $core.List<InvocationStatus_Phase> values =
|
|
<InvocationStatus_Phase>[
|
|
PHASE_UNKNOWN,
|
|
PENDING,
|
|
RUNNING,
|
|
SUCCEEDED,
|
|
FAILED,
|
|
CANCELLED,
|
|
];
|
|
|
|
static final $core.List<InvocationStatus_Phase?> _byValue =
|
|
$pb.ProtobufEnum.$_initByValueList(values, 5);
|
|
static InvocationStatus_Phase? valueOf($core.int value) =>
|
|
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
|
|
|
const InvocationStatus_Phase._(super.value, super.name);
|
|
}
|
|
|
|
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 $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];
|
|
|
|
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 $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];
|
|
|
|
const DecideApprovalRequest_Decision._(super.value, super.name);
|
|
}
|
|
|
|
const $core.bool _omitEnumNames =
|
|
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|