Latest generation

This commit is contained in:
ci core model
2025-10-06 08:55:03 +00:00
parent be0e34a3a9
commit 5dac1e4246
5 changed files with 308 additions and 507 deletions

View File

@@ -1970,7 +1970,7 @@ class BookAppointmentRequest extends $pb.GeneratedMessage {
void clearInstructionAck() => $_clearField(12);
}
/// BookAppointment
/// BookAppointmentNoReference
class BookAppointmentNoReferenceRequest extends $pb.GeneratedMessage {
factory BookAppointmentNoReferenceRequest({
$3.RequestProjectHeader? header,
@@ -2146,9 +2146,9 @@ class BookAppointmentNoReferenceRequest extends $pb.GeneratedMessage {
void clearInstructionAck() => $_clearField(13);
}
/// BookAppointment
class WMSBookAppointmentRequest extends $pb.GeneratedMessage {
factory WMSBookAppointmentRequest({
/// ForceBookAppointment
class ForceBookAppointmentRequest extends $pb.GeneratedMessage {
factory ForceBookAppointmentRequest({
$3.RequestProjectHeader? header,
$2.AppointmentType? appointmentType,
$core.Iterable<$2.Commission>? commissions,
@@ -2161,6 +2161,9 @@ class WMSBookAppointmentRequest extends $pb.GeneratedMessage {
$core.String? timeZone,
$core.String? appointmentID,
$core.bool? instructionAck,
$core.String? projectID,
$core.String? reason,
$core.Iterable<$2.QuantityByUnit>? quantities,
}) {
final result = create();
if (header != null) result.header = header;
@@ -2175,15 +2178,18 @@ class WMSBookAppointmentRequest extends $pb.GeneratedMessage {
if (timeZone != null) result.timeZone = timeZone;
if (appointmentID != null) result.appointmentID = appointmentID;
if (instructionAck != null) result.instructionAck = instructionAck;
if (projectID != null) result.projectID = projectID;
if (reason != null) result.reason = reason;
if (quantities != null) result.quantities.addAll(quantities);
return result;
}
WMSBookAppointmentRequest._();
ForceBookAppointmentRequest._();
factory WMSBookAppointmentRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
factory WMSBookAppointmentRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
factory ForceBookAppointmentRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
factory ForceBookAppointmentRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'WMSBookAppointmentRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ForceBookAppointmentRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
..e<$2.AppointmentType>(2, _omitFieldNames ? '' : 'AppointmentType', $pb.PbFieldType.OE, protoName: 'AppointmentType', defaultOrMaker: $2.AppointmentType.APPOINTMENT_TYPE_UNKNOWN, valueOf: $2.AppointmentType.valueOf, enumValues: $2.AppointmentType.values)
..pc<$2.Commission>(3, _omitFieldNames ? '' : 'Commissions', $pb.PbFieldType.PM, protoName: 'Commissions', subBuilder: $2.Commission.create)
@@ -2196,25 +2202,28 @@ class WMSBookAppointmentRequest extends $pb.GeneratedMessage {
..aOS(11, _omitFieldNames ? '' : 'TimeZone', protoName: 'TimeZone')
..aOS(12, _omitFieldNames ? '' : 'AppointmentID', protoName: 'AppointmentID')
..aOB(13, _omitFieldNames ? '' : 'InstructionAck', protoName: 'InstructionAck')
..aOS(14, _omitFieldNames ? '' : 'ProjectID', protoName: 'ProjectID')
..aOS(15, _omitFieldNames ? '' : 'Reason', protoName: 'Reason')
..pc<$2.QuantityByUnit>(16, _omitFieldNames ? '' : 'Quantities', $pb.PbFieldType.PM, protoName: 'Quantities', subBuilder: $2.QuantityByUnit.create)
..hasRequiredFields = false
;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
WMSBookAppointmentRequest clone() => WMSBookAppointmentRequest()..mergeFromMessage(this);
ForceBookAppointmentRequest clone() => ForceBookAppointmentRequest()..mergeFromMessage(this);
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
WMSBookAppointmentRequest copyWith(void Function(WMSBookAppointmentRequest) updates) => super.copyWith((message) => updates(message as WMSBookAppointmentRequest)) as WMSBookAppointmentRequest;
ForceBookAppointmentRequest copyWith(void Function(ForceBookAppointmentRequest) updates) => super.copyWith((message) => updates(message as ForceBookAppointmentRequest)) as ForceBookAppointmentRequest;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static WMSBookAppointmentRequest create() => WMSBookAppointmentRequest._();
static ForceBookAppointmentRequest create() => ForceBookAppointmentRequest._();
@$core.override
WMSBookAppointmentRequest createEmptyInstance() => create();
static $pb.PbList<WMSBookAppointmentRequest> createRepeated() => $pb.PbList<WMSBookAppointmentRequest>();
ForceBookAppointmentRequest createEmptyInstance() => create();
static $pb.PbList<ForceBookAppointmentRequest> createRepeated() => $pb.PbList<ForceBookAppointmentRequest>();
@$core.pragma('dart2js:noInline')
static WMSBookAppointmentRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<WMSBookAppointmentRequest>(create);
static WMSBookAppointmentRequest? _defaultInstance;
static ForceBookAppointmentRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ForceBookAppointmentRequest>(create);
static ForceBookAppointmentRequest? _defaultInstance;
@$pb.TagNumber(1)
$3.RequestProjectHeader get header => $_getN(0);
@@ -2307,195 +2316,30 @@ class WMSBookAppointmentRequest extends $pb.GeneratedMessage {
$core.bool hasInstructionAck() => $_has(11);
@$pb.TagNumber(13)
void clearInstructionAck() => $_clearField(13);
}
/// BookAppointment
class WMSBookAppointmentNoReferenceRequest extends $pb.GeneratedMessage {
factory WMSBookAppointmentNoReferenceRequest({
$3.RequestProjectHeader? header,
$2.AppointmentType? appointmentType,
$core.String? projectID,
$core.Iterable<$2.QuantityByUnit>? quantities,
$core.Iterable<$2.SegmentationSelection>? segmentationSelections,
$core.Iterable<$2.CarrierInformationWithValue>? carrierInformation,
$core.Iterable<$2.Slot>? slots,
$core.Iterable<$core.String>? emails,
$core.String? carrierID,
$core.String? carrierName,
$core.String? timeZone,
$core.String? appointmentID,
$core.String? reason,
$core.bool? instructionAck,
}) {
final result = create();
if (header != null) result.header = header;
if (appointmentType != null) result.appointmentType = appointmentType;
if (projectID != null) result.projectID = projectID;
if (quantities != null) result.quantities.addAll(quantities);
if (segmentationSelections != null) result.segmentationSelections.addAll(segmentationSelections);
if (carrierInformation != null) result.carrierInformation.addAll(carrierInformation);
if (slots != null) result.slots.addAll(slots);
if (emails != null) result.emails.addAll(emails);
if (carrierID != null) result.carrierID = carrierID;
if (carrierName != null) result.carrierName = carrierName;
if (timeZone != null) result.timeZone = timeZone;
if (appointmentID != null) result.appointmentID = appointmentID;
if (reason != null) result.reason = reason;
if (instructionAck != null) result.instructionAck = instructionAck;
return result;
}
WMSBookAppointmentNoReferenceRequest._();
factory WMSBookAppointmentNoReferenceRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
factory WMSBookAppointmentNoReferenceRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'WMSBookAppointmentNoReferenceRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
..e<$2.AppointmentType>(2, _omitFieldNames ? '' : 'AppointmentType', $pb.PbFieldType.OE, protoName: 'AppointmentType', defaultOrMaker: $2.AppointmentType.APPOINTMENT_TYPE_UNKNOWN, valueOf: $2.AppointmentType.valueOf, enumValues: $2.AppointmentType.values)
..aOS(3, _omitFieldNames ? '' : 'ProjectID', protoName: 'ProjectID')
..pc<$2.QuantityByUnit>(4, _omitFieldNames ? '' : 'Quantities', $pb.PbFieldType.PM, protoName: 'Quantities', subBuilder: $2.QuantityByUnit.create)
..pc<$2.SegmentationSelection>(5, _omitFieldNames ? '' : 'SegmentationSelections', $pb.PbFieldType.PM, protoName: 'SegmentationSelections', subBuilder: $2.SegmentationSelection.create)
..pc<$2.CarrierInformationWithValue>(6, _omitFieldNames ? '' : 'CarrierInformation', $pb.PbFieldType.PM, protoName: 'CarrierInformation', subBuilder: $2.CarrierInformationWithValue.create)
..pc<$2.Slot>(7, _omitFieldNames ? '' : 'Slots', $pb.PbFieldType.PM, protoName: 'Slots', subBuilder: $2.Slot.create)
..pPS(8, _omitFieldNames ? '' : 'Emails', protoName: 'Emails')
..aOS(9, _omitFieldNames ? '' : 'CarrierID', protoName: 'CarrierID')
..aOS(10, _omitFieldNames ? '' : 'CarrierName', protoName: 'CarrierName')
..aOS(11, _omitFieldNames ? '' : 'TimeZone', protoName: 'TimeZone')
..aOS(12, _omitFieldNames ? '' : 'AppointmentID', protoName: 'AppointmentID')
..aOS(13, _omitFieldNames ? '' : 'Reason', protoName: 'Reason')
..aOB(14, _omitFieldNames ? '' : 'InstructionAck', protoName: 'InstructionAck')
..hasRequiredFields = false
;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
WMSBookAppointmentNoReferenceRequest clone() => WMSBookAppointmentNoReferenceRequest()..mergeFromMessage(this);
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
WMSBookAppointmentNoReferenceRequest copyWith(void Function(WMSBookAppointmentNoReferenceRequest) updates) => super.copyWith((message) => updates(message as WMSBookAppointmentNoReferenceRequest)) as WMSBookAppointmentNoReferenceRequest;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static WMSBookAppointmentNoReferenceRequest create() => WMSBookAppointmentNoReferenceRequest._();
@$core.override
WMSBookAppointmentNoReferenceRequest createEmptyInstance() => create();
static $pb.PbList<WMSBookAppointmentNoReferenceRequest> createRepeated() => $pb.PbList<WMSBookAppointmentNoReferenceRequest>();
@$core.pragma('dart2js:noInline')
static WMSBookAppointmentNoReferenceRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<WMSBookAppointmentNoReferenceRequest>(create);
static WMSBookAppointmentNoReferenceRequest? _defaultInstance;
@$pb.TagNumber(1)
$3.RequestProjectHeader get header => $_getN(0);
@$pb.TagNumber(1)
set header($3.RequestProjectHeader value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasHeader() => $_has(0);
@$pb.TagNumber(1)
void clearHeader() => $_clearField(1);
@$pb.TagNumber(1)
$3.RequestProjectHeader ensureHeader() => $_ensure(0);
/// Type of appointment : Expedition / Reception / Both
@$pb.TagNumber(2)
$2.AppointmentType get appointmentType => $_getN(1);
@$pb.TagNumber(2)
set appointmentType($2.AppointmentType value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasAppointmentType() => $_has(1);
@$pb.TagNumber(2)
void clearAppointmentType() => $_clearField(2);
/// Project for which the appointment is made, with the quantities
@$pb.TagNumber(3)
$core.String get projectID => $_getSZ(2);
@$pb.TagNumber(3)
set projectID($core.String value) => $_setString(2, value);
@$pb.TagNumber(3)
$core.bool hasProjectID() => $_has(2);
@$pb.TagNumber(3)
void clearProjectID() => $_clearField(3);
/// quantities
@$pb.TagNumber(4)
$pb.PbList<$2.QuantityByUnit> get quantities => $_getList(3);
/// Set of segmentation constraining the slot booking
@$pb.TagNumber(5)
$pb.PbList<$2.SegmentationSelection> get segmentationSelections => $_getList(4);
/// Required carrierInformation, some can be obligatory
@$pb.TagNumber(6)
$pb.PbList<$2.CarrierInformationWithValue> get carrierInformation => $_getList(5);
/// The slot to book for the appointment
@$pb.TagNumber(7)
$pb.PbList<$2.Slot> get slots => $_getList(6);
/// TODO Need to add a structure to store platform user identifiers which can act on this appointment ?
/// User mails being notified on this appointment
@$pb.TagNumber(8)
$pb.PbList<$core.String> get emails => $_getList(7);
/// The carrier identifier who requests to book the appointment
@$pb.TagNumber(9)
$core.String get carrierID => $_getSZ(8);
@$pb.TagNumber(9)
set carrierID($core.String value) => $_setString(8, value);
@$pb.TagNumber(9)
$core.bool hasCarrierID() => $_has(8);
@$pb.TagNumber(9)
void clearCarrierID() => $_clearField(9);
/// The carrier name who requests to book the appointment
@$pb.TagNumber(10)
$core.String get carrierName => $_getSZ(9);
@$pb.TagNumber(10)
set carrierName($core.String value) => $_setString(9, value);
@$pb.TagNumber(10)
$core.bool hasCarrierName() => $_has(9);
@$pb.TagNumber(10)
void clearCarrierName() => $_clearField(10);
/// time zone, useful only if a WMS send a message
@$pb.TagNumber(11)
$core.String get timeZone => $_getSZ(10);
@$pb.TagNumber(11)
set timeZone($core.String value) => $_setString(10, value);
@$pb.TagNumber(11)
$core.bool hasTimeZone() => $_has(10);
@$pb.TagNumber(11)
void clearTimeZone() => $_clearField(11);
/// The appointment ID, usually generated using siteCounterServices
@$pb.TagNumber(12)
$core.String get appointmentID => $_getSZ(11);
@$pb.TagNumber(12)
set appointmentID($core.String value) => $_setString(11, value);
@$pb.TagNumber(12)
$core.bool hasAppointmentID() => $_has(11);
@$pb.TagNumber(12)
void clearAppointmentID() => $_clearField(12);
/// The Reason for which the appointment has no commissions
@$pb.TagNumber(13)
$core.String get reason => $_getSZ(12);
@$pb.TagNumber(13)
set reason($core.String value) => $_setString(12, value);
@$pb.TagNumber(13)
$core.bool hasReason() => $_has(12);
@$pb.TagNumber(13)
void clearReason() => $_clearField(13);
/// Acknowledgment of the site instructions
/// In case of no reference, Project for which the appointment is made, with the quantities
@$pb.TagNumber(14)
$core.bool get instructionAck => $_getBF(13);
$core.String get projectID => $_getSZ(12);
@$pb.TagNumber(14)
set instructionAck($core.bool value) => $_setBool(13, value);
set projectID($core.String value) => $_setString(12, value);
@$pb.TagNumber(14)
$core.bool hasInstructionAck() => $_has(13);
$core.bool hasProjectID() => $_has(12);
@$pb.TagNumber(14)
void clearInstructionAck() => $_clearField(14);
void clearProjectID() => $_clearField(14);
/// In case of no reference, The Reason for which the appointment has no reference
@$pb.TagNumber(15)
$core.String get reason => $_getSZ(13);
@$pb.TagNumber(15)
set reason($core.String value) => $_setString(13, value);
@$pb.TagNumber(15)
$core.bool hasReason() => $_has(13);
@$pb.TagNumber(15)
void clearReason() => $_clearField(15);
/// In case of no reference, quantities loaded or to load in the truck
@$pb.TagNumber(16)
$pb.PbList<$2.QuantityByUnit> get quantities => $_getList(14);
}
class BookAppointmentResponse extends $pb.GeneratedMessage {
@@ -2651,50 +2495,50 @@ class CancelAppointmentResponse extends $pb.GeneratedMessage {
void clearAppointmentID() => $_clearField(1);
}
class UpdateSlotAppointmentRequest extends $pb.GeneratedMessage {
factory UpdateSlotAppointmentRequest({
class UpdateAppointmentRequest extends $pb.GeneratedMessage {
factory UpdateAppointmentRequest({
$3.RequestProjectHeader? header,
$core.String? appointmentID,
$core.Iterable<$2.Slot>? slots,
$core.String? timeZone,
$core.Iterable<$2.Commission>? commissions,
}) {
final result = create();
if (header != null) result.header = header;
if (appointmentID != null) result.appointmentID = appointmentID;
if (slots != null) result.slots.addAll(slots);
if (timeZone != null) result.timeZone = timeZone;
if (commissions != null) result.commissions.addAll(commissions);
return result;
}
UpdateSlotAppointmentRequest._();
UpdateAppointmentRequest._();
factory UpdateSlotAppointmentRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
factory UpdateSlotAppointmentRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
factory UpdateAppointmentRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
factory UpdateAppointmentRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateSlotAppointmentRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateAppointmentRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
..aOS(2, _omitFieldNames ? '' : 'AppointmentID', protoName: 'AppointmentID')
..pc<$2.Slot>(3, _omitFieldNames ? '' : 'Slots', $pb.PbFieldType.PM, protoName: 'Slots', subBuilder: $2.Slot.create)
..aOS(4, _omitFieldNames ? '' : 'TimeZone', protoName: 'TimeZone')
..pc<$2.Commission>(4, _omitFieldNames ? '' : 'Commissions', $pb.PbFieldType.PM, protoName: 'Commissions', subBuilder: $2.Commission.create)
..hasRequiredFields = false
;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateSlotAppointmentRequest clone() => UpdateSlotAppointmentRequest()..mergeFromMessage(this);
UpdateAppointmentRequest clone() => UpdateAppointmentRequest()..mergeFromMessage(this);
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateSlotAppointmentRequest copyWith(void Function(UpdateSlotAppointmentRequest) updates) => super.copyWith((message) => updates(message as UpdateSlotAppointmentRequest)) as UpdateSlotAppointmentRequest;
UpdateAppointmentRequest copyWith(void Function(UpdateAppointmentRequest) updates) => super.copyWith((message) => updates(message as UpdateAppointmentRequest)) as UpdateAppointmentRequest;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static UpdateSlotAppointmentRequest create() => UpdateSlotAppointmentRequest._();
static UpdateAppointmentRequest create() => UpdateAppointmentRequest._();
@$core.override
UpdateSlotAppointmentRequest createEmptyInstance() => create();
static $pb.PbList<UpdateSlotAppointmentRequest> createRepeated() => $pb.PbList<UpdateSlotAppointmentRequest>();
UpdateAppointmentRequest createEmptyInstance() => create();
static $pb.PbList<UpdateAppointmentRequest> createRepeated() => $pb.PbList<UpdateAppointmentRequest>();
@$core.pragma('dart2js:noInline')
static UpdateSlotAppointmentRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<UpdateSlotAppointmentRequest>(create);
static UpdateSlotAppointmentRequest? _defaultInstance;
static UpdateAppointmentRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<UpdateAppointmentRequest>(create);
static UpdateAppointmentRequest? _defaultInstance;
@$pb.TagNumber(1)
$3.RequestProjectHeader get header => $_getN(0);
@@ -2720,70 +2564,121 @@ class UpdateSlotAppointmentRequest extends $pb.GeneratedMessage {
@$pb.TagNumber(3)
$pb.PbList<$2.Slot> get slots => $_getList(2);
/// time zone, useful only if a WMS use this API
/// The modified Commissions for the appointment
@$pb.TagNumber(4)
$core.String get timeZone => $_getSZ(3);
@$pb.TagNumber(4)
set timeZone($core.String value) => $_setString(3, value);
@$pb.TagNumber(4)
$core.bool hasTimeZone() => $_has(3);
@$pb.TagNumber(4)
void clearTimeZone() => $_clearField(4);
$pb.PbList<$2.Commission> get commissions => $_getList(3);
}
class UpdateSlotAppointmentResponse extends $pb.GeneratedMessage {
factory UpdateSlotAppointmentResponse({
class UpdateAppointmentNoReferenceRequest extends $pb.GeneratedMessage {
factory UpdateAppointmentNoReferenceRequest({
$3.RequestProjectHeader? header,
$core.String? appointmentID,
$core.Iterable<$2.Slot>? slots,
$core.String? projectID,
$core.Iterable<$2.QuantityByUnit>? quantities,
$core.String? reason,
}) {
final result = create();
if (header != null) result.header = header;
if (appointmentID != null) result.appointmentID = appointmentID;
if (slots != null) result.slots.addAll(slots);
if (projectID != null) result.projectID = projectID;
if (quantities != null) result.quantities.addAll(quantities);
if (reason != null) result.reason = reason;
return result;
}
UpdateSlotAppointmentResponse._();
UpdateAppointmentNoReferenceRequest._();
factory UpdateSlotAppointmentResponse.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
factory UpdateSlotAppointmentResponse.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
factory UpdateAppointmentNoReferenceRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
factory UpdateAppointmentNoReferenceRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateSlotAppointmentResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'AppointmentID', protoName: 'AppointmentID')
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateAppointmentNoReferenceRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
..aOS(2, _omitFieldNames ? '' : 'AppointmentID', protoName: 'AppointmentID')
..pc<$2.Slot>(3, _omitFieldNames ? '' : 'Slots', $pb.PbFieldType.PM, protoName: 'Slots', subBuilder: $2.Slot.create)
..aOS(4, _omitFieldNames ? '' : 'ProjectID', protoName: 'ProjectID')
..pc<$2.QuantityByUnit>(5, _omitFieldNames ? '' : 'Quantities', $pb.PbFieldType.PM, protoName: 'Quantities', subBuilder: $2.QuantityByUnit.create)
..aOS(6, _omitFieldNames ? '' : 'Reason', protoName: 'Reason')
..hasRequiredFields = false
;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateSlotAppointmentResponse clone() => UpdateSlotAppointmentResponse()..mergeFromMessage(this);
UpdateAppointmentNoReferenceRequest clone() => UpdateAppointmentNoReferenceRequest()..mergeFromMessage(this);
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateSlotAppointmentResponse copyWith(void Function(UpdateSlotAppointmentResponse) updates) => super.copyWith((message) => updates(message as UpdateSlotAppointmentResponse)) as UpdateSlotAppointmentResponse;
UpdateAppointmentNoReferenceRequest copyWith(void Function(UpdateAppointmentNoReferenceRequest) updates) => super.copyWith((message) => updates(message as UpdateAppointmentNoReferenceRequest)) as UpdateAppointmentNoReferenceRequest;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static UpdateSlotAppointmentResponse create() => UpdateSlotAppointmentResponse._();
static UpdateAppointmentNoReferenceRequest create() => UpdateAppointmentNoReferenceRequest._();
@$core.override
UpdateSlotAppointmentResponse createEmptyInstance() => create();
static $pb.PbList<UpdateSlotAppointmentResponse> createRepeated() => $pb.PbList<UpdateSlotAppointmentResponse>();
UpdateAppointmentNoReferenceRequest createEmptyInstance() => create();
static $pb.PbList<UpdateAppointmentNoReferenceRequest> createRepeated() => $pb.PbList<UpdateAppointmentNoReferenceRequest>();
@$core.pragma('dart2js:noInline')
static UpdateSlotAppointmentResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<UpdateSlotAppointmentResponse>(create);
static UpdateSlotAppointmentResponse? _defaultInstance;
static UpdateAppointmentNoReferenceRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<UpdateAppointmentNoReferenceRequest>(create);
static UpdateAppointmentNoReferenceRequest? _defaultInstance;
@$pb.TagNumber(1)
$core.String get appointmentID => $_getSZ(0);
$3.RequestProjectHeader get header => $_getN(0);
@$pb.TagNumber(1)
set appointmentID($core.String value) => $_setString(0, value);
set header($3.RequestProjectHeader value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasAppointmentID() => $_has(0);
$core.bool hasHeader() => $_has(0);
@$pb.TagNumber(1)
void clearAppointmentID() => $_clearField(1);
void clearHeader() => $_clearField(1);
@$pb.TagNumber(1)
$3.RequestProjectHeader ensureHeader() => $_ensure(0);
@$pb.TagNumber(2)
$core.String get appointmentID => $_getSZ(1);
@$pb.TagNumber(2)
set appointmentID($core.String value) => $_setString(1, value);
@$pb.TagNumber(2)
$core.bool hasAppointmentID() => $_has(1);
@$pb.TagNumber(2)
void clearAppointmentID() => $_clearField(2);
/// The slots to book for the appointment
@$pb.TagNumber(3)
$pb.PbList<$2.Slot> get slots => $_getList(2);
/// Project for which the appointment is made, with the quantities
@$pb.TagNumber(4)
$core.String get projectID => $_getSZ(3);
@$pb.TagNumber(4)
set projectID($core.String value) => $_setString(3, value);
@$pb.TagNumber(4)
$core.bool hasProjectID() => $_has(3);
@$pb.TagNumber(4)
void clearProjectID() => $_clearField(4);
/// In case of no reference, quantities
@$pb.TagNumber(5)
$pb.PbList<$2.QuantityByUnit> get quantities => $_getList(4);
/// In case of no reference, The Reason for which the appointment has no commissions
@$pb.TagNumber(6)
$core.String get reason => $_getSZ(5);
@$pb.TagNumber(6)
set reason($core.String value) => $_setString(5, value);
@$pb.TagNumber(6)
$core.bool hasReason() => $_has(5);
@$pb.TagNumber(6)
void clearReason() => $_clearField(6);
}
class UpdateCommissionsAppointmentRequest extends $pb.GeneratedMessage {
factory UpdateCommissionsAppointmentRequest({
class ForceUpdateAppointmentRequest extends $pb.GeneratedMessage {
factory ForceUpdateAppointmentRequest({
$3.RequestProjectHeader? header,
$core.String? appointmentID,
$core.Iterable<$2.Slot>? slots,
$core.Iterable<$2.Commission>? commissions,
$core.String? timeZone,
$core.String? projectID,
$core.Iterable<$2.QuantityByUnit>? quantities,
$core.String? reason,
}) {
final result = create();
if (header != null) result.header = header;
@@ -2791,39 +2686,45 @@ class UpdateCommissionsAppointmentRequest extends $pb.GeneratedMessage {
if (slots != null) result.slots.addAll(slots);
if (commissions != null) result.commissions.addAll(commissions);
if (timeZone != null) result.timeZone = timeZone;
if (projectID != null) result.projectID = projectID;
if (quantities != null) result.quantities.addAll(quantities);
if (reason != null) result.reason = reason;
return result;
}
UpdateCommissionsAppointmentRequest._();
ForceUpdateAppointmentRequest._();
factory UpdateCommissionsAppointmentRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
factory UpdateCommissionsAppointmentRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
factory ForceUpdateAppointmentRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
factory ForceUpdateAppointmentRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateCommissionsAppointmentRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ForceUpdateAppointmentRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
..aOS(2, _omitFieldNames ? '' : 'AppointmentID', protoName: 'AppointmentID')
..pc<$2.Slot>(3, _omitFieldNames ? '' : 'Slots', $pb.PbFieldType.PM, protoName: 'Slots', subBuilder: $2.Slot.create)
..pc<$2.Commission>(4, _omitFieldNames ? '' : 'Commissions', $pb.PbFieldType.PM, protoName: 'Commissions', subBuilder: $2.Commission.create)
..aOS(5, _omitFieldNames ? '' : 'TimeZone', protoName: 'TimeZone')
..aOS(6, _omitFieldNames ? '' : 'ProjectID', protoName: 'ProjectID')
..pc<$2.QuantityByUnit>(7, _omitFieldNames ? '' : 'Quantities', $pb.PbFieldType.PM, protoName: 'Quantities', subBuilder: $2.QuantityByUnit.create)
..aOS(8, _omitFieldNames ? '' : 'Reason', protoName: 'Reason')
..hasRequiredFields = false
;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateCommissionsAppointmentRequest clone() => UpdateCommissionsAppointmentRequest()..mergeFromMessage(this);
ForceUpdateAppointmentRequest clone() => ForceUpdateAppointmentRequest()..mergeFromMessage(this);
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateCommissionsAppointmentRequest copyWith(void Function(UpdateCommissionsAppointmentRequest) updates) => super.copyWith((message) => updates(message as UpdateCommissionsAppointmentRequest)) as UpdateCommissionsAppointmentRequest;
ForceUpdateAppointmentRequest copyWith(void Function(ForceUpdateAppointmentRequest) updates) => super.copyWith((message) => updates(message as ForceUpdateAppointmentRequest)) as ForceUpdateAppointmentRequest;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static UpdateCommissionsAppointmentRequest create() => UpdateCommissionsAppointmentRequest._();
static ForceUpdateAppointmentRequest create() => ForceUpdateAppointmentRequest._();
@$core.override
UpdateCommissionsAppointmentRequest createEmptyInstance() => create();
static $pb.PbList<UpdateCommissionsAppointmentRequest> createRepeated() => $pb.PbList<UpdateCommissionsAppointmentRequest>();
ForceUpdateAppointmentRequest createEmptyInstance() => create();
static $pb.PbList<ForceUpdateAppointmentRequest> createRepeated() => $pb.PbList<ForceUpdateAppointmentRequest>();
@$core.pragma('dart2js:noInline')
static UpdateCommissionsAppointmentRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<UpdateCommissionsAppointmentRequest>(create);
static UpdateCommissionsAppointmentRequest? _defaultInstance;
static ForceUpdateAppointmentRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ForceUpdateAppointmentRequest>(create);
static ForceUpdateAppointmentRequest? _defaultInstance;
@$pb.TagNumber(1)
$3.RequestProjectHeader get header => $_getN(0);
@@ -2862,52 +2763,30 @@ class UpdateCommissionsAppointmentRequest extends $pb.GeneratedMessage {
$core.bool hasTimeZone() => $_has(4);
@$pb.TagNumber(5)
void clearTimeZone() => $_clearField(5);
}
class UpdateCommissionsAppointmentResponse extends $pb.GeneratedMessage {
factory UpdateCommissionsAppointmentResponse({
$core.String? appointmentID,
}) {
final result = create();
if (appointmentID != null) result.appointmentID = appointmentID;
return result;
}
/// Project for which the appointment is made, with the quantities
@$pb.TagNumber(6)
$core.String get projectID => $_getSZ(5);
@$pb.TagNumber(6)
set projectID($core.String value) => $_setString(5, value);
@$pb.TagNumber(6)
$core.bool hasProjectID() => $_has(5);
@$pb.TagNumber(6)
void clearProjectID() => $_clearField(6);
UpdateCommissionsAppointmentResponse._();
/// In case of no reference, quantities
@$pb.TagNumber(7)
$pb.PbList<$2.QuantityByUnit> get quantities => $_getList(6);
factory UpdateCommissionsAppointmentResponse.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
factory UpdateCommissionsAppointmentResponse.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateCommissionsAppointmentResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'AppointmentID', protoName: 'AppointmentID')
..hasRequiredFields = false
;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateCommissionsAppointmentResponse clone() => UpdateCommissionsAppointmentResponse()..mergeFromMessage(this);
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateCommissionsAppointmentResponse copyWith(void Function(UpdateCommissionsAppointmentResponse) updates) => super.copyWith((message) => updates(message as UpdateCommissionsAppointmentResponse)) as UpdateCommissionsAppointmentResponse;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static UpdateCommissionsAppointmentResponse create() => UpdateCommissionsAppointmentResponse._();
@$core.override
UpdateCommissionsAppointmentResponse createEmptyInstance() => create();
static $pb.PbList<UpdateCommissionsAppointmentResponse> createRepeated() => $pb.PbList<UpdateCommissionsAppointmentResponse>();
@$core.pragma('dart2js:noInline')
static UpdateCommissionsAppointmentResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<UpdateCommissionsAppointmentResponse>(create);
static UpdateCommissionsAppointmentResponse? _defaultInstance;
@$pb.TagNumber(1)
$core.String get appointmentID => $_getSZ(0);
@$pb.TagNumber(1)
set appointmentID($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasAppointmentID() => $_has(0);
@$pb.TagNumber(1)
void clearAppointmentID() => $_clearField(1);
/// In case of no reference, The Reason for which the appointment has no commissions
@$pb.TagNumber(8)
$core.String get reason => $_getSZ(7);
@$pb.TagNumber(8)
set reason($core.String value) => $_setString(7, value);
@$pb.TagNumber(8)
$core.bool hasReason() => $_has(7);
@$pb.TagNumber(8)
void clearReason() => $_clearField(8);
}
/// ListUserSites