You've already forked dart-core-sdk
325 lines
13 KiB
Dart
325 lines
13 KiB
Dart
//
|
|
// Generated code. Do not modify.
|
|
// source: appointment.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 'collabShared.pb.dart' as $75;
|
|
import 'shared.pb.dart' as $3;
|
|
import 'slotbooking.pb.dart' as $70;
|
|
import 'slotbooking.pbenum.dart' as $70;
|
|
|
|
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
|
|
|
///
|
|
/// Aggregation object message
|
|
class Appointment extends $pb.GeneratedMessage {
|
|
factory Appointment({
|
|
$3.EventHeader? lastEventHeader,
|
|
$3.EntityID? iD,
|
|
AppointmentPayload? payload,
|
|
}) {
|
|
final $result = create();
|
|
if (lastEventHeader != null) {
|
|
$result.lastEventHeader = lastEventHeader;
|
|
}
|
|
if (iD != null) {
|
|
$result.iD = iD;
|
|
}
|
|
if (payload != null) {
|
|
$result.payload = payload;
|
|
}
|
|
return $result;
|
|
}
|
|
Appointment._() : super();
|
|
factory Appointment.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
|
factory Appointment.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Appointment', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
|
|
..aOM<$3.EventHeader>(1, _omitFieldNames ? '' : 'LastEventHeader', protoName: 'LastEventHeader', subBuilder: $3.EventHeader.create)
|
|
..aOM<$3.EntityID>(2, _omitFieldNames ? '' : 'ID', protoName: 'ID', subBuilder: $3.EntityID.create)
|
|
..aOM<AppointmentPayload>(3, _omitFieldNames ? '' : 'Payload', protoName: 'Payload', subBuilder: AppointmentPayload.create)
|
|
..hasRequiredFields = false
|
|
;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
Appointment clone() => Appointment()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
Appointment copyWith(void Function(Appointment) updates) => super.copyWith((message) => updates(message as Appointment)) as Appointment;
|
|
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static Appointment create() => Appointment._();
|
|
Appointment createEmptyInstance() => create();
|
|
static $pb.PbList<Appointment> createRepeated() => $pb.PbList<Appointment>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static Appointment getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Appointment>(create);
|
|
static Appointment? _defaultInstance;
|
|
|
|
@$pb.TagNumber(1)
|
|
$3.EventHeader get lastEventHeader => $_getN(0);
|
|
@$pb.TagNumber(1)
|
|
set lastEventHeader($3.EventHeader v) { $_setField(1, v); }
|
|
@$pb.TagNumber(1)
|
|
$core.bool hasLastEventHeader() => $_has(0);
|
|
@$pb.TagNumber(1)
|
|
void clearLastEventHeader() => $_clearField(1);
|
|
@$pb.TagNumber(1)
|
|
$3.EventHeader ensureLastEventHeader() => $_ensure(0);
|
|
|
|
@$pb.TagNumber(2)
|
|
$3.EntityID get iD => $_getN(1);
|
|
@$pb.TagNumber(2)
|
|
set iD($3.EntityID v) { $_setField(2, v); }
|
|
@$pb.TagNumber(2)
|
|
$core.bool hasID() => $_has(1);
|
|
@$pb.TagNumber(2)
|
|
void clearID() => $_clearField(2);
|
|
@$pb.TagNumber(2)
|
|
$3.EntityID ensureID() => $_ensure(1);
|
|
|
|
@$pb.TagNumber(3)
|
|
AppointmentPayload get payload => $_getN(2);
|
|
@$pb.TagNumber(3)
|
|
set payload(AppointmentPayload v) { $_setField(3, v); }
|
|
@$pb.TagNumber(3)
|
|
$core.bool hasPayload() => $_has(2);
|
|
@$pb.TagNumber(3)
|
|
void clearPayload() => $_clearField(3);
|
|
@$pb.TagNumber(3)
|
|
AppointmentPayload ensurePayload() => $_ensure(2);
|
|
}
|
|
|
|
class AppointmentPayload extends $pb.GeneratedMessage {
|
|
factory AppointmentPayload({
|
|
$70.AppointmentType? appointmentType,
|
|
$core.Iterable<$70.Commission>? commissions,
|
|
$core.Iterable<$70.QuantityByUnit>? quantitiesByUnits,
|
|
$core.Iterable<$70.Segmentation>? segmentations,
|
|
$core.Iterable<$70.CarrierInformationWithValue>? carrierInformation,
|
|
$70.Slot? slot,
|
|
$core.Iterable<$core.String>? emails,
|
|
$75.AppointmentStatusStruct? status,
|
|
$core.String? creationDate,
|
|
}) {
|
|
final $result = create();
|
|
if (appointmentType != null) {
|
|
$result.appointmentType = appointmentType;
|
|
}
|
|
if (commissions != null) {
|
|
$result.commissions.addAll(commissions);
|
|
}
|
|
if (quantitiesByUnits != null) {
|
|
$result.quantitiesByUnits.addAll(quantitiesByUnits);
|
|
}
|
|
if (segmentations != null) {
|
|
$result.segmentations.addAll(segmentations);
|
|
}
|
|
if (carrierInformation != null) {
|
|
$result.carrierInformation.addAll(carrierInformation);
|
|
}
|
|
if (slot != null) {
|
|
$result.slot = slot;
|
|
}
|
|
if (emails != null) {
|
|
$result.emails.addAll(emails);
|
|
}
|
|
if (status != null) {
|
|
$result.status = status;
|
|
}
|
|
if (creationDate != null) {
|
|
$result.creationDate = creationDate;
|
|
}
|
|
return $result;
|
|
}
|
|
AppointmentPayload._() : super();
|
|
factory AppointmentPayload.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
|
factory AppointmentPayload.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AppointmentPayload', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
|
|
..e<$70.AppointmentType>(1, _omitFieldNames ? '' : 'AppointmentType', $pb.PbFieldType.OE, protoName: 'AppointmentType', defaultOrMaker: $70.AppointmentType.APPOINTMENTTYPE_UNKNOWN, valueOf: $70.AppointmentType.valueOf, enumValues: $70.AppointmentType.values)
|
|
..pc<$70.Commission>(2, _omitFieldNames ? '' : 'Commissions', $pb.PbFieldType.PM, protoName: 'Commissions', subBuilder: $70.Commission.create)
|
|
..pc<$70.QuantityByUnit>(3, _omitFieldNames ? '' : 'QuantitiesByUnits', $pb.PbFieldType.PM, protoName: 'QuantitiesByUnits', subBuilder: $70.QuantityByUnit.create)
|
|
..pc<$70.Segmentation>(4, _omitFieldNames ? '' : 'Segmentations', $pb.PbFieldType.PM, protoName: 'Segmentations', subBuilder: $70.Segmentation.create)
|
|
..pc<$70.CarrierInformationWithValue>(5, _omitFieldNames ? '' : 'CarrierInformation', $pb.PbFieldType.PM, protoName: 'CarrierInformation', subBuilder: $70.CarrierInformationWithValue.create)
|
|
..aOM<$70.Slot>(6, _omitFieldNames ? '' : 'Slot', protoName: 'Slot', subBuilder: $70.Slot.create)
|
|
..pPS(7, _omitFieldNames ? '' : 'Emails', protoName: 'Emails')
|
|
..aOM<$75.AppointmentStatusStruct>(8, _omitFieldNames ? '' : 'Status', protoName: 'Status', subBuilder: $75.AppointmentStatusStruct.create)
|
|
..aOS(9, _omitFieldNames ? '' : 'CreationDate', protoName: 'CreationDate')
|
|
..hasRequiredFields = false
|
|
;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
AppointmentPayload clone() => AppointmentPayload()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
AppointmentPayload copyWith(void Function(AppointmentPayload) updates) => super.copyWith((message) => updates(message as AppointmentPayload)) as AppointmentPayload;
|
|
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static AppointmentPayload create() => AppointmentPayload._();
|
|
AppointmentPayload createEmptyInstance() => create();
|
|
static $pb.PbList<AppointmentPayload> createRepeated() => $pb.PbList<AppointmentPayload>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static AppointmentPayload getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AppointmentPayload>(create);
|
|
static AppointmentPayload? _defaultInstance;
|
|
|
|
/// Type of appointment : Expedition / Reception / Both
|
|
@$pb.TagNumber(1)
|
|
$70.AppointmentType get appointmentType => $_getN(0);
|
|
@$pb.TagNumber(1)
|
|
set appointmentType($70.AppointmentType v) { $_setField(1, v); }
|
|
@$pb.TagNumber(1)
|
|
$core.bool hasAppointmentType() => $_has(0);
|
|
@$pb.TagNumber(1)
|
|
void clearAppointmentType() => $_clearField(1);
|
|
|
|
/// List of the orders and projects for which the appointment is made, with the quantities
|
|
/// TODO ??
|
|
@$pb.TagNumber(2)
|
|
$pb.PbList<$70.Commission> get commissions => $_getList(1);
|
|
|
|
/// Cumulative quantity for all the commissions
|
|
@$pb.TagNumber(3)
|
|
$pb.PbList<$70.QuantityByUnit> get quantitiesByUnits => $_getList(2);
|
|
|
|
/// Set of segmentation constraining the slot booking
|
|
@$pb.TagNumber(4)
|
|
$pb.PbList<$70.Segmentation> get segmentations => $_getList(3);
|
|
|
|
/// Required carrierInformation, some can be obligatory
|
|
@$pb.TagNumber(5)
|
|
$pb.PbList<$70.CarrierInformationWithValue> get carrierInformation => $_getList(4);
|
|
|
|
/// The slot booked for the appointment
|
|
@$pb.TagNumber(6)
|
|
$70.Slot get slot => $_getN(5);
|
|
@$pb.TagNumber(6)
|
|
set slot($70.Slot v) { $_setField(6, v); }
|
|
@$pb.TagNumber(6)
|
|
$core.bool hasSlot() => $_has(5);
|
|
@$pb.TagNumber(6)
|
|
void clearSlot() => $_clearField(6);
|
|
@$pb.TagNumber(6)
|
|
$70.Slot ensureSlot() => $_ensure(5);
|
|
|
|
/// User mails being notified on this appointment
|
|
/// TODO Need to add a structure to store platform user identifiers which can act on this appointment ?
|
|
@$pb.TagNumber(7)
|
|
$pb.PbList<$core.String> get emails => $_getList(6);
|
|
|
|
/// Appointment Status and status history
|
|
@$pb.TagNumber(8)
|
|
$75.AppointmentStatusStruct get status => $_getN(7);
|
|
@$pb.TagNumber(8)
|
|
set status($75.AppointmentStatusStruct v) { $_setField(8, v); }
|
|
@$pb.TagNumber(8)
|
|
$core.bool hasStatus() => $_has(7);
|
|
@$pb.TagNumber(8)
|
|
void clearStatus() => $_clearField(8);
|
|
@$pb.TagNumber(8)
|
|
$75.AppointmentStatusStruct ensureStatus() => $_ensure(7);
|
|
|
|
/// Creation date of the appointment
|
|
@$pb.TagNumber(9)
|
|
$core.String get creationDate => $_getSZ(8);
|
|
@$pb.TagNumber(9)
|
|
set creationDate($core.String v) { $_setString(8, v); }
|
|
@$pb.TagNumber(9)
|
|
$core.bool hasCreationDate() => $_has(8);
|
|
@$pb.TagNumber(9)
|
|
void clearCreationDate() => $_clearField(9);
|
|
}
|
|
|
|
class AppointmentTriplet extends $pb.GeneratedMessage {
|
|
factory AppointmentTriplet({
|
|
Appointment? current,
|
|
Appointment? previous,
|
|
Appointment? lastEvent,
|
|
}) {
|
|
final $result = create();
|
|
if (current != null) {
|
|
$result.current = current;
|
|
}
|
|
if (previous != null) {
|
|
$result.previous = previous;
|
|
}
|
|
if (lastEvent != null) {
|
|
$result.lastEvent = lastEvent;
|
|
}
|
|
return $result;
|
|
}
|
|
AppointmentTriplet._() : super();
|
|
factory AppointmentTriplet.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
|
factory AppointmentTriplet.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
|
|
|
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AppointmentTriplet', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
|
|
..aOM<Appointment>(1, _omitFieldNames ? '' : 'Current', protoName: 'Current', subBuilder: Appointment.create)
|
|
..aOM<Appointment>(2, _omitFieldNames ? '' : 'Previous', protoName: 'Previous', subBuilder: Appointment.create)
|
|
..aOM<Appointment>(3, _omitFieldNames ? '' : 'LastEvent', protoName: 'LastEvent', subBuilder: Appointment.create)
|
|
..hasRequiredFields = false
|
|
;
|
|
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
AppointmentTriplet clone() => AppointmentTriplet()..mergeFromMessage(this);
|
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
AppointmentTriplet copyWith(void Function(AppointmentTriplet) updates) => super.copyWith((message) => updates(message as AppointmentTriplet)) as AppointmentTriplet;
|
|
|
|
$pb.BuilderInfo get info_ => _i;
|
|
|
|
@$core.pragma('dart2js:noInline')
|
|
static AppointmentTriplet create() => AppointmentTriplet._();
|
|
AppointmentTriplet createEmptyInstance() => create();
|
|
static $pb.PbList<AppointmentTriplet> createRepeated() => $pb.PbList<AppointmentTriplet>();
|
|
@$core.pragma('dart2js:noInline')
|
|
static AppointmentTriplet getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AppointmentTriplet>(create);
|
|
static AppointmentTriplet? _defaultInstance;
|
|
|
|
@$pb.TagNumber(1)
|
|
Appointment get current => $_getN(0);
|
|
@$pb.TagNumber(1)
|
|
set current(Appointment v) { $_setField(1, v); }
|
|
@$pb.TagNumber(1)
|
|
$core.bool hasCurrent() => $_has(0);
|
|
@$pb.TagNumber(1)
|
|
void clearCurrent() => $_clearField(1);
|
|
@$pb.TagNumber(1)
|
|
Appointment ensureCurrent() => $_ensure(0);
|
|
|
|
@$pb.TagNumber(2)
|
|
Appointment get previous => $_getN(1);
|
|
@$pb.TagNumber(2)
|
|
set previous(Appointment v) { $_setField(2, v); }
|
|
@$pb.TagNumber(2)
|
|
$core.bool hasPrevious() => $_has(1);
|
|
@$pb.TagNumber(2)
|
|
void clearPrevious() => $_clearField(2);
|
|
@$pb.TagNumber(2)
|
|
Appointment ensurePrevious() => $_ensure(1);
|
|
|
|
@$pb.TagNumber(3)
|
|
Appointment get lastEvent => $_getN(2);
|
|
@$pb.TagNumber(3)
|
|
set lastEvent(Appointment v) { $_setField(3, v); }
|
|
@$pb.TagNumber(3)
|
|
$core.bool hasLastEvent() => $_has(2);
|
|
@$pb.TagNumber(3)
|
|
void clearLastEvent() => $_clearField(3);
|
|
@$pb.TagNumber(3)
|
|
Appointment ensureLastEvent() => $_ensure(2);
|
|
}
|
|
|
|
|
|
const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
|
|
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
|