// // Generated code. Do not modify. // source: slotbooking.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 'shared.pb.dart' as $3; import 'shared.pbenum.dart' as $3; import 'slotbooking.pbenum.dart'; export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; export 'slotbooking.pbenum.dart'; class Unit extends $pb.GeneratedMessage { factory Unit({ $core.String? unitID, $core.Iterable<$3.LabelByLanguage>? labels, }) { final $result = create(); if (unitID != null) { $result.unitID = unitID; } if (labels != null) { $result.labels.addAll(labels); } return $result; } Unit._() : super(); factory Unit.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Unit.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Unit', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'UnitID', protoName: 'UnitID') ..pc<$3.LabelByLanguage>(2, _omitFieldNames ? '' : 'Labels', $pb.PbFieldType.PM, protoName: 'Labels', subBuilder: $3.LabelByLanguage.create) ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Unit clone() => Unit()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Unit copyWith(void Function(Unit) updates) => super.copyWith((message) => updates(message as Unit)) as Unit; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Unit create() => Unit._(); Unit createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Unit getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Unit? _defaultInstance; @$pb.TagNumber(1) $core.String get unitID => $_getSZ(0); @$pb.TagNumber(1) set unitID($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasUnitID() => $_has(0); @$pb.TagNumber(1) void clearUnitID() => $_clearField(1); @$pb.TagNumber(2) $pb.PbList<$3.LabelByLanguage> get labels => $_getList(1); } class QuantityByUnit extends $pb.GeneratedMessage { factory QuantityByUnit({ Unit? unitID, $core.double? value, }) { final $result = create(); if (unitID != null) { $result.unitID = unitID; } if (value != null) { $result.value = value; } return $result; } QuantityByUnit._() : super(); factory QuantityByUnit.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory QuantityByUnit.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'QuantityByUnit', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOM(1, _omitFieldNames ? '' : 'UnitID', protoName: 'UnitID', subBuilder: Unit.create) ..a<$core.double>(2, _omitFieldNames ? '' : 'Value', $pb.PbFieldType.OD, protoName: 'Value') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') QuantityByUnit clone() => QuantityByUnit()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') QuantityByUnit copyWith(void Function(QuantityByUnit) updates) => super.copyWith((message) => updates(message as QuantityByUnit)) as QuantityByUnit; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static QuantityByUnit create() => QuantityByUnit._(); QuantityByUnit createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static QuantityByUnit getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static QuantityByUnit? _defaultInstance; /// referring to the Unit ID defined by the Site @$pb.TagNumber(1) Unit get unitID => $_getN(0); @$pb.TagNumber(1) set unitID(Unit v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasUnitID() => $_has(0); @$pb.TagNumber(1) void clearUnitID() => $_clearField(1); @$pb.TagNumber(1) Unit ensureUnitID() => $_ensure(0); /// Number of the specified unit @$pb.TagNumber(2) $core.double get value => $_getN(1); @$pb.TagNumber(2) set value($core.double v) { $_setDouble(1, v); } @$pb.TagNumber(2) $core.bool hasValue() => $_has(1); @$pb.TagNumber(2) void clearValue() => $_clearField(2); } class Period extends $pb.GeneratedMessage { factory Period({ $fixnum.Int64? value, PeriodUnit? unit, }) { final $result = create(); if (value != null) { $result.value = value; } if (unit != null) { $result.unit = unit; } return $result; } Period._() : super(); factory Period.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Period.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Period', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aInt64(1, _omitFieldNames ? '' : 'Value', protoName: 'Value') ..e(2, _omitFieldNames ? '' : 'Unit', $pb.PbFieldType.OE, protoName: 'Unit', defaultOrMaker: PeriodUnit.PERIODUNIT_UNDEFINED, valueOf: PeriodUnit.valueOf, enumValues: PeriodUnit.values) ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Period clone() => Period()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Period copyWith(void Function(Period) updates) => super.copyWith((message) => updates(message as Period)) as Period; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Period create() => Period._(); Period createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Period getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Period? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get value => $_getI64(0); @$pb.TagNumber(1) set value($fixnum.Int64 v) { $_setInt64(0, v); } @$pb.TagNumber(1) $core.bool hasValue() => $_has(0); @$pb.TagNumber(1) void clearValue() => $_clearField(1); @$pb.TagNumber(2) PeriodUnit get unit => $_getN(1); @$pb.TagNumber(2) set unit(PeriodUnit v) { $_setField(2, v); } @$pb.TagNumber(2) $core.bool hasUnit() => $_has(1); @$pb.TagNumber(2) void clearUnit() => $_clearField(2); } class Slot extends $pb.GeneratedMessage { factory Slot({ $core.String? startDateTime, $fixnum.Int64? durationInSeconds, }) { final $result = create(); if (startDateTime != null) { $result.startDateTime = startDateTime; } if (durationInSeconds != null) { $result.durationInSeconds = durationInSeconds; } return $result; } Slot._() : super(); factory Slot.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Slot.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Slot', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'StartDateTime', protoName: 'StartDateTime') ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'DurationInSeconds', $pb.PbFieldType.OU6, protoName: 'DurationInSeconds', defaultOrMaker: $fixnum.Int64.ZERO) ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Slot clone() => Slot()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Slot copyWith(void Function(Slot) updates) => super.copyWith((message) => updates(message as Slot)) as Slot; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Slot create() => Slot._(); Slot createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Slot getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Slot? _defaultInstance; /// Slot start date time, /// format yyyy-mm-jjThh:mm:ss (iso8601 without timezone, because the time zone is defined by the site on which the slot is booked) @$pb.TagNumber(1) $core.String get startDateTime => $_getSZ(0); @$pb.TagNumber(1) set startDateTime($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasStartDateTime() => $_has(0); @$pb.TagNumber(1) void clearStartDateTime() => $_clearField(1); /// Slot duration in seconds. @$pb.TagNumber(3) $fixnum.Int64 get durationInSeconds => $_getI64(1); @$pb.TagNumber(3) set durationInSeconds($fixnum.Int64 v) { $_setInt64(1, v); } @$pb.TagNumber(3) $core.bool hasDurationInSeconds() => $_has(1); @$pb.TagNumber(3) void clearDurationInSeconds() => $_clearField(3); } /// Segmentations class Segmentation extends $pb.GeneratedMessage { factory Segmentation({ $core.String? segmentationID, $core.Iterable<$3.LabelByLanguage>? segmentationLabel, $core.Iterable? values, }) { final $result = create(); if (segmentationID != null) { $result.segmentationID = segmentationID; } if (segmentationLabel != null) { $result.segmentationLabel.addAll(segmentationLabel); } if (values != null) { $result.values.addAll(values); } return $result; } Segmentation._() : super(); factory Segmentation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Segmentation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Segmentation', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'SegmentationID', protoName: 'SegmentationID') ..pc<$3.LabelByLanguage>(2, _omitFieldNames ? '' : 'SegmentationLabel', $pb.PbFieldType.PM, protoName: 'SegmentationLabel', subBuilder: $3.LabelByLanguage.create) ..pc(3, _omitFieldNames ? '' : 'Values', $pb.PbFieldType.PM, protoName: 'Values', subBuilder: SegmentationValue.create) ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Segmentation clone() => Segmentation()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Segmentation copyWith(void Function(Segmentation) updates) => super.copyWith((message) => updates(message as Segmentation)) as Segmentation; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Segmentation create() => Segmentation._(); Segmentation createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Segmentation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Segmentation? _defaultInstance; /// Identifier of the Segmentation @$pb.TagNumber(1) $core.String get segmentationID => $_getSZ(0); @$pb.TagNumber(1) set segmentationID($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasSegmentationID() => $_has(0); @$pb.TagNumber(1) void clearSegmentationID() => $_clearField(1); /// Translated labels of the Segmentation @$pb.TagNumber(2) $pb.PbList<$3.LabelByLanguage> get segmentationLabel => $_getList(1); /// Possible values of the Segmentation @$pb.TagNumber(3) $pb.PbList get values => $_getList(2); } class SegmentationValue extends $pb.GeneratedMessage { factory SegmentationValue({ $core.String? iD, $core.Iterable<$3.LabelByLanguage>? label, }) { final $result = create(); if (iD != null) { $result.iD = iD; } if (label != null) { $result.label.addAll(label); } return $result; } SegmentationValue._() : super(); factory SegmentationValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SegmentationValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SegmentationValue', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'ID', protoName: 'ID') ..pc<$3.LabelByLanguage>(2, _omitFieldNames ? '' : 'Label', $pb.PbFieldType.PM, protoName: 'Label', subBuilder: $3.LabelByLanguage.create) ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') SegmentationValue clone() => SegmentationValue()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') SegmentationValue copyWith(void Function(SegmentationValue) updates) => super.copyWith((message) => updates(message as SegmentationValue)) as SegmentationValue; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SegmentationValue create() => SegmentationValue._(); SegmentationValue createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SegmentationValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SegmentationValue? _defaultInstance; /// Identifier of the Segmentation value @$pb.TagNumber(1) $core.String get iD => $_getSZ(0); @$pb.TagNumber(1) set iD($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasID() => $_has(0); @$pb.TagNumber(1) void clearID() => $_clearField(1); /// Translated labels of the Segmentation value @$pb.TagNumber(2) $pb.PbList<$3.LabelByLanguage> get label => $_getList(1); } /// Rules class OpeningRule extends $pb.GeneratedMessage { factory OpeningRule({ $core.String? startDate, $core.String? endDate, $core.Iterable? openingDays, $core.String? calendarID, $core.String? label, }) { final $result = create(); if (startDate != null) { $result.startDate = startDate; } if (endDate != null) { $result.endDate = endDate; } if (openingDays != null) { $result.openingDays.addAll(openingDays); } if (calendarID != null) { $result.calendarID = calendarID; } if (label != null) { $result.label = label; } return $result; } OpeningRule._() : super(); factory OpeningRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory OpeningRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'OpeningRule', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'StartDate', protoName: 'StartDate') ..aOS(2, _omitFieldNames ? '' : 'EndDate', protoName: 'EndDate') ..pc(3, _omitFieldNames ? '' : 'OpeningDays', $pb.PbFieldType.PM, protoName: 'OpeningDays', subBuilder: OpeningDay.create) ..aOS(4, _omitFieldNames ? '' : 'CalendarID', protoName: 'CalendarID') ..aOS(5, _omitFieldNames ? '' : 'Label', protoName: 'Label') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') OpeningRule clone() => OpeningRule()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') OpeningRule copyWith(void Function(OpeningRule) updates) => super.copyWith((message) => updates(message as OpeningRule)) as OpeningRule; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static OpeningRule create() => OpeningRule._(); OpeningRule createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static OpeningRule getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static OpeningRule? _defaultInstance; /// Start date of the opening rule validity, format yyyy-mm-jj /// TODO Add time @$pb.TagNumber(1) $core.String get startDate => $_getSZ(0); @$pb.TagNumber(1) set startDate($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasStartDate() => $_has(0); @$pb.TagNumber(1) void clearStartDate() => $_clearField(1); /// End date of the opening rule validity, format yyyy-mm-jj @$pb.TagNumber(2) $core.String get endDate => $_getSZ(1); @$pb.TagNumber(2) set endDate($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasEndDate() => $_has(1); @$pb.TagNumber(2) void clearEndDate() => $_clearField(2); /// Definition of the opening rules by week day @$pb.TagNumber(3) $pb.PbList get openingDays => $_getList(2); /// The identifier of the calendar to be used within this period of time @$pb.TagNumber(4) $core.String get calendarID => $_getSZ(3); @$pb.TagNumber(4) set calendarID($core.String v) { $_setString(3, v); } @$pb.TagNumber(4) $core.bool hasCalendarID() => $_has(3); @$pb.TagNumber(4) void clearCalendarID() => $_clearField(4); /// Label of the Rule @$pb.TagNumber(5) $core.String get label => $_getSZ(4); @$pb.TagNumber(5) set label($core.String v) { $_setString(4, v); } @$pb.TagNumber(5) $core.bool hasLabel() => $_has(4); @$pb.TagNumber(5) void clearLabel() => $_clearField(5); } class OpeningDay extends $pb.GeneratedMessage { factory OpeningDay({ $3.WeekDay? weekDay, $core.Iterable? definition, }) { final $result = create(); if (weekDay != null) { $result.weekDay = weekDay; } if (definition != null) { $result.definition.addAll(definition); } return $result; } OpeningDay._() : super(); factory OpeningDay.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory OpeningDay.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'OpeningDay', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..e<$3.WeekDay>(1, _omitFieldNames ? '' : 'WeekDay', $pb.PbFieldType.OE, protoName: 'WeekDay', defaultOrMaker: $3.WeekDay.WEEKDAY_UNDEFINED, valueOf: $3.WeekDay.valueOf, enumValues: $3.WeekDay.values) ..pc(2, _omitFieldNames ? '' : 'Definition', $pb.PbFieldType.PM, protoName: 'Definition', subBuilder: OpeningDayDefinition.create) ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') OpeningDay clone() => OpeningDay()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') OpeningDay copyWith(void Function(OpeningDay) updates) => super.copyWith((message) => updates(message as OpeningDay)) as OpeningDay; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static OpeningDay create() => OpeningDay._(); OpeningDay createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static OpeningDay getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static OpeningDay? _defaultInstance; /// Day of the week @$pb.TagNumber(1) $3.WeekDay get weekDay => $_getN(0); @$pb.TagNumber(1) set weekDay($3.WeekDay v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasWeekDay() => $_has(0); @$pb.TagNumber(1) void clearWeekDay() => $_clearField(1); /// Opening hours definition according to filters @$pb.TagNumber(2) $pb.PbList get definition => $_getList(1); } class OpeningDayDefinition extends $pb.GeneratedMessage { factory OpeningDayDefinition({ $core.Iterable<$3.TimeRange>? timeRanges, RuleFilter? filter, $core.int? orderAppliance, }) { final $result = create(); if (timeRanges != null) { $result.timeRanges.addAll(timeRanges); } if (filter != null) { $result.filter = filter; } if (orderAppliance != null) { $result.orderAppliance = orderAppliance; } return $result; } OpeningDayDefinition._() : super(); factory OpeningDayDefinition.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory OpeningDayDefinition.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'OpeningDayDefinition', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..pc<$3.TimeRange>(2, _omitFieldNames ? '' : 'TimeRanges', $pb.PbFieldType.PM, protoName: 'TimeRanges', subBuilder: $3.TimeRange.create) ..aOM(3, _omitFieldNames ? '' : 'Filter', protoName: 'Filter', subBuilder: RuleFilter.create) ..a<$core.int>(4, _omitFieldNames ? '' : 'OrderAppliance', $pb.PbFieldType.O3, protoName: 'OrderAppliance') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') OpeningDayDefinition clone() => OpeningDayDefinition()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') OpeningDayDefinition copyWith(void Function(OpeningDayDefinition) updates) => super.copyWith((message) => updates(message as OpeningDayDefinition)) as OpeningDayDefinition; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static OpeningDayDefinition create() => OpeningDayDefinition._(); OpeningDayDefinition createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static OpeningDayDefinition getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static OpeningDayDefinition? _defaultInstance; /// List of opening hours @$pb.TagNumber(2) $pb.PbList<$3.TimeRange> get timeRanges => $_getList(0); /// Validity filters for this opening rule definition @$pb.TagNumber(3) RuleFilter get filter => $_getN(1); @$pb.TagNumber(3) set filter(RuleFilter v) { $_setField(3, v); } @$pb.TagNumber(3) $core.bool hasFilter() => $_has(1); @$pb.TagNumber(3) void clearFilter() => $_clearField(3); @$pb.TagNumber(3) RuleFilter ensureFilter() => $_ensure(1); /// Order in which the Rule will be applied @$pb.TagNumber(4) $core.int get orderAppliance => $_getIZ(2); @$pb.TagNumber(4) set orderAppliance($core.int v) { $_setSignedInt32(2, v); } @$pb.TagNumber(4) $core.bool hasOrderAppliance() => $_has(2); @$pb.TagNumber(4) void clearOrderAppliance() => $_clearField(4); } class CapacityRule extends $pb.GeneratedMessage { factory CapacityRule({ $core.String? startDate, $core.String? endDate, $core.Iterable<$3.WeekDay>? days, $core.Iterable? capacities, $core.String? label, }) { final $result = create(); if (startDate != null) { $result.startDate = startDate; } if (endDate != null) { $result.endDate = endDate; } if (days != null) { $result.days.addAll(days); } if (capacities != null) { $result.capacities.addAll(capacities); } if (label != null) { $result.label = label; } return $result; } CapacityRule._() : super(); factory CapacityRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CapacityRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CapacityRule', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'StartDate', protoName: 'StartDate') ..aOS(2, _omitFieldNames ? '' : 'EndDate', protoName: 'EndDate') ..pc<$3.WeekDay>(3, _omitFieldNames ? '' : 'Days', $pb.PbFieldType.KE, protoName: 'Days', valueOf: $3.WeekDay.valueOf, enumValues: $3.WeekDay.values, defaultEnumValue: $3.WeekDay.WEEKDAY_UNDEFINED) ..pc(4, _omitFieldNames ? '' : 'Capacities', $pb.PbFieldType.PM, protoName: 'Capacities', subBuilder: CapacityDefinition.create) ..aOS(5, _omitFieldNames ? '' : 'Label', protoName: 'Label') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') CapacityRule clone() => CapacityRule()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') CapacityRule copyWith(void Function(CapacityRule) updates) => super.copyWith((message) => updates(message as CapacityRule)) as CapacityRule; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static CapacityRule create() => CapacityRule._(); CapacityRule createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static CapacityRule getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static CapacityRule? _defaultInstance; /// Start date of the capacity rule validity, format yyyy-mm-jj. @$pb.TagNumber(1) $core.String get startDate => $_getSZ(0); @$pb.TagNumber(1) set startDate($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasStartDate() => $_has(0); @$pb.TagNumber(1) void clearStartDate() => $_clearField(1); /// End date of the capacity rule validity, format yyyy-mm-jj. @$pb.TagNumber(2) $core.String get endDate => $_getSZ(1); @$pb.TagNumber(2) set endDate($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasEndDate() => $_has(1); @$pb.TagNumber(2) void clearEndDate() => $_clearField(2); /// List of the days on which this rule is applied. @$pb.TagNumber(3) $pb.PbList<$3.WeekDay> get days => $_getList(2); /// Definition of the capacity rules. @$pb.TagNumber(4) $pb.PbList get capacities => $_getList(3); /// Label of the Rule @$pb.TagNumber(5) $core.String get label => $_getSZ(4); @$pb.TagNumber(5) set label($core.String v) { $_setString(4, v); } @$pb.TagNumber(5) $core.bool hasLabel() => $_has(4); @$pb.TagNumber(5) void clearLabel() => $_clearField(5); } class CapacityDefinition extends $pb.GeneratedMessage { factory CapacityDefinition({ RuleFilter? filter, CapacityRuleScope? scope, $fixnum.Int64? maximalCapacity, $core.String? unitID, }) { final $result = create(); if (filter != null) { $result.filter = filter; } if (scope != null) { $result.scope = scope; } if (maximalCapacity != null) { $result.maximalCapacity = maximalCapacity; } if (unitID != null) { $result.unitID = unitID; } return $result; } CapacityDefinition._() : super(); factory CapacityDefinition.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CapacityDefinition.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CapacityDefinition', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOM(1, _omitFieldNames ? '' : 'Filter', protoName: 'Filter', subBuilder: RuleFilter.create) ..e(2, _omitFieldNames ? '' : 'Scope', $pb.PbFieldType.OE, protoName: 'Scope', defaultOrMaker: CapacityRuleScope.CAPACITY_RULE_SCOPE_UNKNOWN, valueOf: CapacityRuleScope.valueOf, enumValues: CapacityRuleScope.values) ..aInt64(3, _omitFieldNames ? '' : 'MaximalCapacity', protoName: 'MaximalCapacity') ..aOS(4, _omitFieldNames ? '' : 'UnitID', protoName: 'UnitID') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') CapacityDefinition clone() => CapacityDefinition()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') CapacityDefinition copyWith(void Function(CapacityDefinition) updates) => super.copyWith((message) => updates(message as CapacityDefinition)) as CapacityDefinition; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static CapacityDefinition create() => CapacityDefinition._(); CapacityDefinition createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static CapacityDefinition getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static CapacityDefinition? _defaultInstance; /// Validity filters for this capacity rule definition. @$pb.TagNumber(1) RuleFilter get filter => $_getN(0); @$pb.TagNumber(1) set filter(RuleFilter v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasFilter() => $_has(0); @$pb.TagNumber(1) void clearFilter() => $_clearField(1); @$pb.TagNumber(1) RuleFilter ensureFilter() => $_ensure(0); /// Scope of the rule, simultaneous or daily. @$pb.TagNumber(2) CapacityRuleScope get scope => $_getN(1); @$pb.TagNumber(2) set scope(CapacityRuleScope v) { $_setField(2, v); } @$pb.TagNumber(2) $core.bool hasScope() => $_has(1); @$pb.TagNumber(2) void clearScope() => $_clearField(2); /// The capacity constraint to apply. @$pb.TagNumber(3) $fixnum.Int64 get maximalCapacity => $_getI64(2); @$pb.TagNumber(3) set maximalCapacity($fixnum.Int64 v) { $_setInt64(2, v); } @$pb.TagNumber(3) $core.bool hasMaximalCapacity() => $_has(2); @$pb.TagNumber(3) void clearMaximalCapacity() => $_clearField(3); /// Site unit identifier of the capacity if not 'APPOINTMENT'. @$pb.TagNumber(4) $core.String get unitID => $_getSZ(3); @$pb.TagNumber(4) set unitID($core.String v) { $_setString(3, v); } @$pb.TagNumber(4) $core.bool hasUnitID() => $_has(3); @$pb.TagNumber(4) void clearUnitID() => $_clearField(4); } class DurationRule extends $pb.GeneratedMessage { factory DurationRule({ RuleFilter? filter, $fixnum.Int64? baseDurationInSeconds, $core.Iterable? variableDurations, $core.int? orderAppliance, }) { final $result = create(); if (filter != null) { $result.filter = filter; } if (baseDurationInSeconds != null) { $result.baseDurationInSeconds = baseDurationInSeconds; } if (variableDurations != null) { $result.variableDurations.addAll(variableDurations); } if (orderAppliance != null) { $result.orderAppliance = orderAppliance; } return $result; } DurationRule._() : super(); factory DurationRule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DurationRule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DurationRule', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOM(1, _omitFieldNames ? '' : 'Filter', protoName: 'Filter', subBuilder: RuleFilter.create) ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'BaseDurationInSeconds', $pb.PbFieldType.OU6, protoName: 'BaseDurationInSeconds', defaultOrMaker: $fixnum.Int64.ZERO) ..pc(3, _omitFieldNames ? '' : 'VariableDurations', $pb.PbFieldType.PM, protoName: 'VariableDurations', subBuilder: VariableDuration.create) ..a<$core.int>(4, _omitFieldNames ? '' : 'OrderAppliance', $pb.PbFieldType.O3, protoName: 'OrderAppliance') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') DurationRule clone() => DurationRule()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') DurationRule copyWith(void Function(DurationRule) updates) => super.copyWith((message) => updates(message as DurationRule)) as DurationRule; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DurationRule create() => DurationRule._(); DurationRule createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static DurationRule getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static DurationRule? _defaultInstance; /// Validity filters for this duration rule definition. @$pb.TagNumber(1) RuleFilter get filter => $_getN(0); @$pb.TagNumber(1) set filter(RuleFilter v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasFilter() => $_has(0); @$pb.TagNumber(1) void clearFilter() => $_clearField(1); @$pb.TagNumber(1) RuleFilter ensureFilter() => $_ensure(0); /// Base duration in seconds @$pb.TagNumber(2) $fixnum.Int64 get baseDurationInSeconds => $_getI64(1); @$pb.TagNumber(2) set baseDurationInSeconds($fixnum.Int64 v) { $_setInt64(1, v); } @$pb.TagNumber(2) $core.bool hasBaseDurationInSeconds() => $_has(1); @$pb.TagNumber(2) void clearBaseDurationInSeconds() => $_clearField(2); /// Variable duration definition by site unit. @$pb.TagNumber(3) $pb.PbList get variableDurations => $_getList(2); /// Order in which the Rule will be applied @$pb.TagNumber(4) $core.int get orderAppliance => $_getIZ(3); @$pb.TagNumber(4) set orderAppliance($core.int v) { $_setSignedInt32(3, v); } @$pb.TagNumber(4) $core.bool hasOrderAppliance() => $_has(3); @$pb.TagNumber(4) void clearOrderAppliance() => $_clearField(4); } class VariableDuration extends $pb.GeneratedMessage { factory VariableDuration({ $core.String? unitID, $fixnum.Int64? durationInSeconds, }) { final $result = create(); if (unitID != null) { $result.unitID = unitID; } if (durationInSeconds != null) { $result.durationInSeconds = durationInSeconds; } return $result; } VariableDuration._() : super(); factory VariableDuration.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory VariableDuration.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'VariableDuration', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'UnitID', protoName: 'UnitID') ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'DurationInSeconds', $pb.PbFieldType.OU6, protoName: 'DurationInSeconds', defaultOrMaker: $fixnum.Int64.ZERO) ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') VariableDuration clone() => VariableDuration()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') VariableDuration copyWith(void Function(VariableDuration) updates) => super.copyWith((message) => updates(message as VariableDuration)) as VariableDuration; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static VariableDuration create() => VariableDuration._(); VariableDuration createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static VariableDuration getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static VariableDuration? _defaultInstance; /// Site unit identifier @$pb.TagNumber(1) $core.String get unitID => $_getSZ(0); @$pb.TagNumber(1) set unitID($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasUnitID() => $_has(0); @$pb.TagNumber(1) void clearUnitID() => $_clearField(1); /// Duration in seconds @$pb.TagNumber(2) $fixnum.Int64 get durationInSeconds => $_getI64(1); @$pb.TagNumber(2) set durationInSeconds($fixnum.Int64 v) { $_setInt64(1, v); } @$pb.TagNumber(2) $core.bool hasDurationInSeconds() => $_has(1); @$pb.TagNumber(2) void clearDurationInSeconds() => $_clearField(2); } /// Conditions on ProjectID, AppointmentType or/and Segmentation keys class RuleFilter extends $pb.GeneratedMessage { factory RuleFilter({ AppointmentType? type, $core.Iterable<$core.String>? projectID, $core.Iterable? segmentationKeys, }) { final $result = create(); if (type != null) { $result.type = type; } if (projectID != null) { $result.projectID.addAll(projectID); } if (segmentationKeys != null) { $result.segmentationKeys.addAll(segmentationKeys); } return $result; } RuleFilter._() : super(); factory RuleFilter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory RuleFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RuleFilter', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..e(1, _omitFieldNames ? '' : 'Type', $pb.PbFieldType.OE, protoName: 'Type', defaultOrMaker: AppointmentType.APPOINTMENTTYPE_UNKNOWN, valueOf: AppointmentType.valueOf, enumValues: AppointmentType.values) ..pPS(2, _omitFieldNames ? '' : 'ProjectID', protoName: 'ProjectID') ..pc(3, _omitFieldNames ? '' : 'SegmentationKeys', $pb.PbFieldType.PM, protoName: 'SegmentationKeys', subBuilder: SegmentationFilter.create) ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') RuleFilter clone() => RuleFilter()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') RuleFilter copyWith(void Function(RuleFilter) updates) => super.copyWith((message) => updates(message as RuleFilter)) as RuleFilter; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static RuleFilter create() => RuleFilter._(); RuleFilter createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static RuleFilter getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static RuleFilter? _defaultInstance; /// Filter on appointment type (expedition or reception). @$pb.TagNumber(1) AppointmentType get type => $_getN(0); @$pb.TagNumber(1) set type(AppointmentType v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasType() => $_has(0); @$pb.TagNumber(1) void clearType() => $_clearField(1); /// Filter on project identifier. @$pb.TagNumber(2) $pb.PbList<$core.String> get projectID => $_getList(1); /// Filter on site Segmentation keys. @$pb.TagNumber(3) $pb.PbList get segmentationKeys => $_getList(2); } class SegmentationFilter extends $pb.GeneratedMessage { factory SegmentationFilter({ $core.String? segmentationID, $core.Iterable<$core.String>? segmentationValueIDs, }) { final $result = create(); if (segmentationID != null) { $result.segmentationID = segmentationID; } if (segmentationValueIDs != null) { $result.segmentationValueIDs.addAll(segmentationValueIDs); } return $result; } SegmentationFilter._() : super(); factory SegmentationFilter.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SegmentationFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SegmentationFilter', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'SegmentationID', protoName: 'SegmentationID') ..pPS(2, _omitFieldNames ? '' : 'SegmentationValueIDs', protoName: 'SegmentationValueIDs') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') SegmentationFilter clone() => SegmentationFilter()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') SegmentationFilter copyWith(void Function(SegmentationFilter) updates) => super.copyWith((message) => updates(message as SegmentationFilter)) as SegmentationFilter; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SegmentationFilter create() => SegmentationFilter._(); SegmentationFilter createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SegmentationFilter getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SegmentationFilter? _defaultInstance; /// Identifier of the Segmentation key. @$pb.TagNumber(1) $core.String get segmentationID => $_getSZ(0); @$pb.TagNumber(1) set segmentationID($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasSegmentationID() => $_has(0); @$pb.TagNumber(1) void clearSegmentationID() => $_clearField(1); /// Identifiers of the Segmentation key values. @$pb.TagNumber(2) $pb.PbList<$core.String> get segmentationValueIDs => $_getList(1); } /// The five following messages are pretty similar, for each added object, they can add a translated version class CarrierInformation extends $pb.GeneratedMessage { factory CarrierInformation({ $core.String? carrierInformationID, $core.Iterable<$3.LabelByLanguage>? label, CarrierInformationType? type, $core.bool? isMandatory, $core.bool? formatCheck, }) { final $result = create(); if (carrierInformationID != null) { $result.carrierInformationID = carrierInformationID; } if (label != null) { $result.label.addAll(label); } if (type != null) { $result.type = type; } if (isMandatory != null) { $result.isMandatory = isMandatory; } if (formatCheck != null) { $result.formatCheck = formatCheck; } return $result; } CarrierInformation._() : super(); factory CarrierInformation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CarrierInformation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CarrierInformation', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'CarrierInformationID', protoName: 'CarrierInformationID') ..pc<$3.LabelByLanguage>(2, _omitFieldNames ? '' : 'Label', $pb.PbFieldType.PM, protoName: 'Label', subBuilder: $3.LabelByLanguage.create) ..e(3, _omitFieldNames ? '' : 'Type', $pb.PbFieldType.OE, protoName: 'Type', defaultOrMaker: CarrierInformationType.CARRIERINFORMATIONTYPE_UNKNOWN, valueOf: CarrierInformationType.valueOf, enumValues: CarrierInformationType.values) ..aOB(4, _omitFieldNames ? '' : 'IsMandatory', protoName: 'IsMandatory') ..aOB(5, _omitFieldNames ? '' : 'FormatCheck', protoName: 'FormatCheck') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') CarrierInformation clone() => CarrierInformation()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') CarrierInformation copyWith(void Function(CarrierInformation) updates) => super.copyWith((message) => updates(message as CarrierInformation)) as CarrierInformation; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static CarrierInformation create() => CarrierInformation._(); CarrierInformation createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static CarrierInformation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static CarrierInformation? _defaultInstance; @$pb.TagNumber(1) $core.String get carrierInformationID => $_getSZ(0); @$pb.TagNumber(1) set carrierInformationID($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasCarrierInformationID() => $_has(0); @$pb.TagNumber(1) void clearCarrierInformationID() => $_clearField(1); @$pb.TagNumber(2) $pb.PbList<$3.LabelByLanguage> get label => $_getList(1); @$pb.TagNumber(3) CarrierInformationType get type => $_getN(2); @$pb.TagNumber(3) set type(CarrierInformationType v) { $_setField(3, v); } @$pb.TagNumber(3) $core.bool hasType() => $_has(2); @$pb.TagNumber(3) void clearType() => $_clearField(3); @$pb.TagNumber(4) $core.bool get isMandatory => $_getBF(3); @$pb.TagNumber(4) set isMandatory($core.bool v) { $_setBool(3, v); } @$pb.TagNumber(4) $core.bool hasIsMandatory() => $_has(3); @$pb.TagNumber(4) void clearIsMandatory() => $_clearField(4); @$pb.TagNumber(5) $core.bool get formatCheck => $_getBF(4); @$pb.TagNumber(5) set formatCheck($core.bool v) { $_setBool(4, v); } @$pb.TagNumber(5) $core.bool hasFormatCheck() => $_has(4); @$pb.TagNumber(5) void clearFormatCheck() => $_clearField(5); } /// we anticipate that they want to put several but if they only have one with all the language, it should still work class Document extends $pb.GeneratedMessage { factory Document({ $core.String? docID, $core.Iterable? docsByLang, $core.bool? ackRequired, }) { final $result = create(); if (docID != null) { $result.docID = docID; } if (docsByLang != null) { $result.docsByLang.addAll(docsByLang); } if (ackRequired != null) { $result.ackRequired = ackRequired; } return $result; } Document._() : super(); factory Document.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Document.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Document', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'DocID', protoName: 'DocID') ..pc(2, _omitFieldNames ? '' : 'DocsByLang', $pb.PbFieldType.PM, protoName: 'DocsByLang', subBuilder: DocumentByLanguage.create) ..aOB(3, _omitFieldNames ? '' : 'AckRequired', protoName: 'AckRequired') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Document clone() => Document()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Document copyWith(void Function(Document) updates) => super.copyWith((message) => updates(message as Document)) as Document; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Document create() => Document._(); Document createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Document getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Document? _defaultInstance; @$pb.TagNumber(1) $core.String get docID => $_getSZ(0); @$pb.TagNumber(1) set docID($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasDocID() => $_has(0); @$pb.TagNumber(1) void clearDocID() => $_clearField(1); @$pb.TagNumber(2) $pb.PbList get docsByLang => $_getList(1); @$pb.TagNumber(3) $core.bool get ackRequired => $_getBF(2); @$pb.TagNumber(3) set ackRequired($core.bool v) { $_setBool(2, v); } @$pb.TagNumber(3) $core.bool hasAckRequired() => $_has(2); @$pb.TagNumber(3) void clearAckRequired() => $_clearField(3); } class DocumentByLanguage extends $pb.GeneratedMessage { factory DocumentByLanguage({ $core.String? name, $core.List<$core.int>? doc, $core.String? languageCodeISO6391, }) { final $result = create(); if (name != null) { $result.name = name; } if (doc != null) { $result.doc = doc; } if (languageCodeISO6391 != null) { $result.languageCodeISO6391 = languageCodeISO6391; } return $result; } DocumentByLanguage._() : super(); factory DocumentByLanguage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DocumentByLanguage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DocumentByLanguage', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'Name', protoName: 'Name') ..a<$core.List<$core.int>>(2, _omitFieldNames ? '' : 'Doc', $pb.PbFieldType.OY, protoName: 'Doc') ..aOS(3, _omitFieldNames ? '' : 'LanguageCodeISO6391', protoName: 'LanguageCodeISO6391') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') DocumentByLanguage clone() => DocumentByLanguage()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') DocumentByLanguage copyWith(void Function(DocumentByLanguage) updates) => super.copyWith((message) => updates(message as DocumentByLanguage)) as DocumentByLanguage; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DocumentByLanguage create() => DocumentByLanguage._(); DocumentByLanguage createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static DocumentByLanguage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static DocumentByLanguage? _defaultInstance; @$pb.TagNumber(1) $core.String get name => $_getSZ(0); @$pb.TagNumber(1) set name($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasName() => $_has(0); @$pb.TagNumber(1) void clearName() => $_clearField(1); @$pb.TagNumber(2) $core.List<$core.int> get doc => $_getN(1); @$pb.TagNumber(2) set doc($core.List<$core.int> v) { $_setBytes(1, v); } @$pb.TagNumber(2) $core.bool hasDoc() => $_has(1); @$pb.TagNumber(2) void clearDoc() => $_clearField(2); @$pb.TagNumber(3) $core.String get languageCodeISO6391 => $_getSZ(2); @$pb.TagNumber(3) set languageCodeISO6391($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasLanguageCodeISO6391() => $_has(2); @$pb.TagNumber(3) void clearLanguageCodeISO6391() => $_clearField(3); } /// Authorisation class ProjectAuthorisation extends $pb.GeneratedMessage { factory ProjectAuthorisation({ $core.String? organisationID, $core.String? projectID, ProjectConstraints? inConstraints, ProjectConstraints? outConstraints, }) { final $result = create(); if (organisationID != null) { $result.organisationID = organisationID; } if (projectID != null) { $result.projectID = projectID; } if (inConstraints != null) { $result.inConstraints = inConstraints; } if (outConstraints != null) { $result.outConstraints = outConstraints; } return $result; } ProjectAuthorisation._() : super(); factory ProjectAuthorisation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ProjectAuthorisation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ProjectAuthorisation', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'OrganisationID', protoName: 'OrganisationID') ..aOS(2, _omitFieldNames ? '' : 'ProjectID', protoName: 'ProjectID') ..aOM(3, _omitFieldNames ? '' : 'InConstraints', protoName: 'InConstraints', subBuilder: ProjectConstraints.create) ..aOM(4, _omitFieldNames ? '' : 'OutConstraints', protoName: 'OutConstraints', subBuilder: ProjectConstraints.create) ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') ProjectAuthorisation clone() => ProjectAuthorisation()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ProjectAuthorisation copyWith(void Function(ProjectAuthorisation) updates) => super.copyWith((message) => updates(message as ProjectAuthorisation)) as ProjectAuthorisation; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ProjectAuthorisation create() => ProjectAuthorisation._(); ProjectAuthorisation createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ProjectAuthorisation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ProjectAuthorisation? _defaultInstance; /// Identifier of the organisation @$pb.TagNumber(1) $core.String get organisationID => $_getSZ(0); @$pb.TagNumber(1) set organisationID($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasOrganisationID() => $_has(0); @$pb.TagNumber(1) void clearOrganisationID() => $_clearField(1); /// Identifier of the project @$pb.TagNumber(2) $core.String get projectID => $_getSZ(1); @$pb.TagNumber(2) set projectID($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasProjectID() => $_has(1); @$pb.TagNumber(2) void clearProjectID() => $_clearField(2); /// TODO Do we need explicit flags to show if receipt / ship is allowed / forbidden ? /// Constraints applied for reception appointment @$pb.TagNumber(3) ProjectConstraints get inConstraints => $_getN(2); @$pb.TagNumber(3) set inConstraints(ProjectConstraints v) { $_setField(3, v); } @$pb.TagNumber(3) $core.bool hasInConstraints() => $_has(2); @$pb.TagNumber(3) void clearInConstraints() => $_clearField(3); @$pb.TagNumber(3) ProjectConstraints ensureInConstraints() => $_ensure(2); /// Constraints applied for expedition appointment @$pb.TagNumber(4) ProjectConstraints get outConstraints => $_getN(3); @$pb.TagNumber(4) set outConstraints(ProjectConstraints v) { $_setField(4, v); } @$pb.TagNumber(4) $core.bool hasOutConstraints() => $_has(3); @$pb.TagNumber(4) void clearOutConstraints() => $_clearField(4); @$pb.TagNumber(4) ProjectConstraints ensureOutConstraints() => $_ensure(3); } class ProjectConstraints extends $pb.GeneratedMessage { factory ProjectConstraints({ $core.Iterable? segmentationConstraints, Period? minNoticePeriod, Period? maxBookingPeriod, }) { final $result = create(); if (segmentationConstraints != null) { $result.segmentationConstraints.addAll(segmentationConstraints); } if (minNoticePeriod != null) { $result.minNoticePeriod = minNoticePeriod; } if (maxBookingPeriod != null) { $result.maxBookingPeriod = maxBookingPeriod; } return $result; } ProjectConstraints._() : super(); factory ProjectConstraints.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ProjectConstraints.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ProjectConstraints', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..pc(1, _omitFieldNames ? '' : 'SegmentationConstraints', $pb.PbFieldType.PM, protoName: 'SegmentationConstraints', subBuilder: SegmentationConstraint.create) ..aOM(2, _omitFieldNames ? '' : 'MinNoticePeriod', protoName: 'MinNoticePeriod', subBuilder: Period.create) ..aOM(3, _omitFieldNames ? '' : 'MaxBookingPeriod', protoName: 'MaxBookingPeriod', subBuilder: Period.create) ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') ProjectConstraints clone() => ProjectConstraints()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ProjectConstraints copyWith(void Function(ProjectConstraints) updates) => super.copyWith((message) => updates(message as ProjectConstraints)) as ProjectConstraints; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ProjectConstraints create() => ProjectConstraints._(); ProjectConstraints createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ProjectConstraints getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ProjectConstraints? _defaultInstance; /// Specific Segmentation constraints applicable for the project @$pb.TagNumber(1) $pb.PbList get segmentationConstraints => $_getList(0); /// Minimal notice delay to book or cancel an appointment @$pb.TagNumber(2) Period get minNoticePeriod => $_getN(1); @$pb.TagNumber(2) set minNoticePeriod(Period v) { $_setField(2, v); } @$pb.TagNumber(2) $core.bool hasMinNoticePeriod() => $_has(1); @$pb.TagNumber(2) void clearMinNoticePeriod() => $_clearField(2); @$pb.TagNumber(2) Period ensureMinNoticePeriod() => $_ensure(1); /// Maximal delay to book an appointment @$pb.TagNumber(3) Period get maxBookingPeriod => $_getN(2); @$pb.TagNumber(3) set maxBookingPeriod(Period v) { $_setField(3, v); } @$pb.TagNumber(3) $core.bool hasMaxBookingPeriod() => $_has(2); @$pb.TagNumber(3) void clearMaxBookingPeriod() => $_clearField(3); @$pb.TagNumber(3) Period ensureMaxBookingPeriod() => $_ensure(2); } class SegmentationConstraint extends $pb.GeneratedMessage { factory SegmentationConstraint({ $core.String? segmentationID, $core.Iterable<$fixnum.Int64>? restrictedValueIDs, $core.bool? allValues, }) { final $result = create(); if (segmentationID != null) { $result.segmentationID = segmentationID; } if (restrictedValueIDs != null) { $result.restrictedValueIDs.addAll(restrictedValueIDs); } if (allValues != null) { $result.allValues = allValues; } return $result; } SegmentationConstraint._() : super(); factory SegmentationConstraint.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SegmentationConstraint.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SegmentationConstraint', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'SegmentationID', protoName: 'SegmentationID') ..p<$fixnum.Int64>(2, _omitFieldNames ? '' : 'RestrictedValueIDs', $pb.PbFieldType.K6, protoName: 'RestrictedValueIDs') ..aOB(3, _omitFieldNames ? '' : 'AllValues', protoName: 'AllValues') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') SegmentationConstraint clone() => SegmentationConstraint()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') SegmentationConstraint copyWith(void Function(SegmentationConstraint) updates) => super.copyWith((message) => updates(message as SegmentationConstraint)) as SegmentationConstraint; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SegmentationConstraint create() => SegmentationConstraint._(); SegmentationConstraint createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SegmentationConstraint getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SegmentationConstraint? _defaultInstance; /// Identifier of the Segmentation key to constraint @$pb.TagNumber(1) $core.String get segmentationID => $_getSZ(0); @$pb.TagNumber(1) set segmentationID($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasSegmentationID() => $_has(0); @$pb.TagNumber(1) void clearSegmentationID() => $_clearField(1); /// If some Segmentation values are restricted, define here the identifiers to keep @$pb.TagNumber(2) $pb.PbList<$fixnum.Int64> get restrictedValueIDs => $_getList(1); /// Set to not apply Segmentation value restriction and keep all the values @$pb.TagNumber(3) $core.bool get allValues => $_getBF(2); @$pb.TagNumber(3) set allValues($core.bool v) { $_setBool(2, v); } @$pb.TagNumber(3) $core.bool hasAllValues() => $_has(2); @$pb.TagNumber(3) void clearAllValues() => $_clearField(3); } class ActorAuthorisation extends $pb.GeneratedMessage { factory ActorAuthorisation({ ActorConstraints? inConstraints, ActorConstraints? outConstraints, }) { final $result = create(); if (inConstraints != null) { $result.inConstraints = inConstraints; } if (outConstraints != null) { $result.outConstraints = outConstraints; } return $result; } ActorAuthorisation._() : super(); factory ActorAuthorisation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ActorAuthorisation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ActorAuthorisation', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOM(3, _omitFieldNames ? '' : 'InConstraints', protoName: 'InConstraints', subBuilder: ActorConstraints.create) ..aOM(4, _omitFieldNames ? '' : 'OutConstraints', protoName: 'OutConstraints', subBuilder: ActorConstraints.create) ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') ActorAuthorisation clone() => ActorAuthorisation()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ActorAuthorisation copyWith(void Function(ActorAuthorisation) updates) => super.copyWith((message) => updates(message as ActorAuthorisation)) as ActorAuthorisation; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ActorAuthorisation create() => ActorAuthorisation._(); ActorAuthorisation createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ActorAuthorisation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ActorAuthorisation? _defaultInstance; /// Constraints applied for reception appointment @$pb.TagNumber(3) ActorConstraints get inConstraints => $_getN(0); @$pb.TagNumber(3) set inConstraints(ActorConstraints v) { $_setField(3, v); } @$pb.TagNumber(3) $core.bool hasInConstraints() => $_has(0); @$pb.TagNumber(3) void clearInConstraints() => $_clearField(3); @$pb.TagNumber(3) ActorConstraints ensureInConstraints() => $_ensure(0); /// Constraints applied for expedition appointment @$pb.TagNumber(4) ActorConstraints get outConstraints => $_getN(1); @$pb.TagNumber(4) set outConstraints(ActorConstraints v) { $_setField(4, v); } @$pb.TagNumber(4) $core.bool hasOutConstraints() => $_has(1); @$pb.TagNumber(4) void clearOutConstraints() => $_clearField(4); @$pb.TagNumber(4) ActorConstraints ensureOutConstraints() => $_ensure(1); } class ActorConstraints extends $pb.GeneratedMessage { factory ActorConstraints({ $core.Iterable? segmentationConstraints, Period? maxBookingPeriod, }) { final $result = create(); if (segmentationConstraints != null) { $result.segmentationConstraints.addAll(segmentationConstraints); } if (maxBookingPeriod != null) { $result.maxBookingPeriod = maxBookingPeriod; } return $result; } ActorConstraints._() : super(); factory ActorConstraints.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ActorConstraints.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ActorConstraints', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..pc(1, _omitFieldNames ? '' : 'SegmentationConstraints', $pb.PbFieldType.PM, protoName: 'SegmentationConstraints', subBuilder: SegmentationActorConstraint.create) ..aOM(3, _omitFieldNames ? '' : 'MaxBookingPeriod', protoName: 'MaxBookingPeriod', subBuilder: Period.create) ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') ActorConstraints clone() => ActorConstraints()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ActorConstraints copyWith(void Function(ActorConstraints) updates) => super.copyWith((message) => updates(message as ActorConstraints)) as ActorConstraints; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ActorConstraints create() => ActorConstraints._(); ActorConstraints createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ActorConstraints getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ActorConstraints? _defaultInstance; /// Specific Segmentation constraints applicable for the project @$pb.TagNumber(1) $pb.PbList get segmentationConstraints => $_getList(0); /// Maximal delay to book an appointment @$pb.TagNumber(3) Period get maxBookingPeriod => $_getN(1); @$pb.TagNumber(3) set maxBookingPeriod(Period v) { $_setField(3, v); } @$pb.TagNumber(3) $core.bool hasMaxBookingPeriod() => $_has(1); @$pb.TagNumber(3) void clearMaxBookingPeriod() => $_clearField(3); @$pb.TagNumber(3) Period ensureMaxBookingPeriod() => $_ensure(1); } class SegmentationActorConstraint extends $pb.GeneratedMessage { factory SegmentationActorConstraint({ $core.String? segmentationID, $core.Iterable<$fixnum.Int64>? restrictedValueIDs, $core.bool? allValues, SegmentationConstraintType? type, $core.String? attributePath, }) { final $result = create(); if (segmentationID != null) { $result.segmentationID = segmentationID; } if (restrictedValueIDs != null) { $result.restrictedValueIDs.addAll(restrictedValueIDs); } if (allValues != null) { $result.allValues = allValues; } if (type != null) { $result.type = type; } if (attributePath != null) { $result.attributePath = attributePath; } return $result; } SegmentationActorConstraint._() : super(); factory SegmentationActorConstraint.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SegmentationActorConstraint.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SegmentationActorConstraint', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'SegmentationID', protoName: 'SegmentationID') ..p<$fixnum.Int64>(2, _omitFieldNames ? '' : 'RestrictedValueIDs', $pb.PbFieldType.K6, protoName: 'RestrictedValueIDs') ..aOB(3, _omitFieldNames ? '' : 'AllValues', protoName: 'AllValues') ..e(4, _omitFieldNames ? '' : 'Type', $pb.PbFieldType.OE, protoName: 'Type', defaultOrMaker: SegmentationConstraintType.SegmentationConstraintType_UNKNOWN, valueOf: SegmentationConstraintType.valueOf, enumValues: SegmentationConstraintType.values) ..aOS(5, _omitFieldNames ? '' : 'AttributePath', protoName: 'AttributePath') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') SegmentationActorConstraint clone() => SegmentationActorConstraint()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') SegmentationActorConstraint copyWith(void Function(SegmentationActorConstraint) updates) => super.copyWith((message) => updates(message as SegmentationActorConstraint)) as SegmentationActorConstraint; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SegmentationActorConstraint create() => SegmentationActorConstraint._(); SegmentationActorConstraint createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SegmentationActorConstraint getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SegmentationActorConstraint? _defaultInstance; /// Identifier of the Segmentation key to constraint @$pb.TagNumber(1) $core.String get segmentationID => $_getSZ(0); @$pb.TagNumber(1) set segmentationID($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasSegmentationID() => $_has(0); @$pb.TagNumber(1) void clearSegmentationID() => $_clearField(1); /// If some Segmentation values are restricted, define here the identifiers to keep @$pb.TagNumber(2) $pb.PbList<$fixnum.Int64> get restrictedValueIDs => $_getList(1); /// In case of user value choice, to restrict Segmentation values @$pb.TagNumber(3) $core.bool get allValues => $_getBF(2); @$pb.TagNumber(3) set allValues($core.bool v) { $_setBool(2, v); } @$pb.TagNumber(3) $core.bool hasAllValues() => $_has(2); @$pb.TagNumber(3) void clearAllValues() => $_clearField(3); /// Define the type of restriction applied on the Segmentation key @$pb.TagNumber(4) SegmentationConstraintType get type => $_getN(3); @$pb.TagNumber(4) set type(SegmentationConstraintType v) { $_setField(4, v); } @$pb.TagNumber(4) $core.bool hasType() => $_has(3); @$pb.TagNumber(4) void clearType() => $_clearField(4); /// In case of order attribute choice, to define the attribute path @$pb.TagNumber(5) $core.String get attributePath => $_getSZ(4); @$pb.TagNumber(5) set attributePath($core.String v) { $_setString(4, v); } @$pb.TagNumber(5) $core.bool hasAttributePath() => $_has(4); @$pb.TagNumber(5) void clearAttributePath() => $_clearField(5); } const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');