// // Generated code. Do not modify. // source: site.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 'collabShared.pb.dart' as $75; import 'repositoryShared.pb.dart' as $69; import 'shared.pb.dart' as $3; import 'slotbooking.pb.dart' as $70; import 'slotbooking.pbenum.dart' as $70; export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; /// Message defining the structure of a Site. class Site extends $pb.GeneratedMessage { factory Site({ $core.String? iD, $core.String? name, $core.String? organisationID, $core.bool? active, $core.String? photoURI, $69.Address? address, $core.Iterable<$core.String>? phones, $core.String? fax, $core.Iterable<$70.Segmentation>? segmentations, $core.Iterable<$70.ProjectAuthorisation>? authorisations, $core.Iterable<$70.Unit>? units, $core.Iterable<$70.OpeningRule>? openingRules, $core.Iterable<$70.DurationRule>? durationRules, $core.Iterable<$70.CapacityRule>? capacityRules, $core.Iterable<$3.LabelByLanguage>? instructions, $core.Iterable<$70.Document>? instructionDocuments, $core.Iterable<$70.CarrierInformation>? carrierInformation, $fixnum.Int64? roundedPeriodInMinutes, $core.String? timeZone, $core.Iterable<$core.String>? emails, $core.String? defaultSiteLanguageISO6391, }) { final $result = create(); if (iD != null) { $result.iD = iD; } if (name != null) { $result.name = name; } if (organisationID != null) { $result.organisationID = organisationID; } if (active != null) { $result.active = active; } if (photoURI != null) { $result.photoURI = photoURI; } if (address != null) { $result.address = address; } if (phones != null) { $result.phones.addAll(phones); } if (fax != null) { $result.fax = fax; } if (segmentations != null) { $result.segmentations.addAll(segmentations); } if (authorisations != null) { $result.authorisations.addAll(authorisations); } if (units != null) { $result.units.addAll(units); } if (openingRules != null) { $result.openingRules.addAll(openingRules); } if (durationRules != null) { $result.durationRules.addAll(durationRules); } if (capacityRules != null) { $result.capacityRules.addAll(capacityRules); } if (instructions != null) { $result.instructions.addAll(instructions); } if (instructionDocuments != null) { $result.instructionDocuments.addAll(instructionDocuments); } if (carrierInformation != null) { $result.carrierInformation.addAll(carrierInformation); } if (roundedPeriodInMinutes != null) { $result.roundedPeriodInMinutes = roundedPeriodInMinutes; } if (timeZone != null) { $result.timeZone = timeZone; } if (emails != null) { $result.emails.addAll(emails); } if (defaultSiteLanguageISO6391 != null) { $result.defaultSiteLanguageISO6391 = defaultSiteLanguageISO6391; } return $result; } Site._() : super(); factory Site.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Site.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Site', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'ID', protoName: 'ID') ..aOS(2, _omitFieldNames ? '' : 'Name', protoName: 'Name') ..aOS(3, _omitFieldNames ? '' : 'OrganisationID', protoName: 'OrganisationID') ..aOB(4, _omitFieldNames ? '' : 'Active', protoName: 'Active') ..aOS(5, _omitFieldNames ? '' : 'PhotoURI', protoName: 'PhotoURI') ..aOM<$69.Address>(6, _omitFieldNames ? '' : 'Address', protoName: 'Address', subBuilder: $69.Address.create) ..pPS(7, _omitFieldNames ? '' : 'Phones', protoName: 'Phones') ..aOS(8, _omitFieldNames ? '' : 'Fax', protoName: 'Fax') ..pc<$70.Segmentation>(9, _omitFieldNames ? '' : 'Segmentations', $pb.PbFieldType.PM, protoName: 'Segmentations', subBuilder: $70.Segmentation.create) ..pc<$70.ProjectAuthorisation>(10, _omitFieldNames ? '' : 'Authorisations', $pb.PbFieldType.PM, protoName: 'Authorisations', subBuilder: $70.ProjectAuthorisation.create) ..pc<$70.Unit>(11, _omitFieldNames ? '' : 'Units', $pb.PbFieldType.PM, protoName: 'Units', subBuilder: $70.Unit.create) ..pc<$70.OpeningRule>(12, _omitFieldNames ? '' : 'OpeningRules', $pb.PbFieldType.PM, protoName: 'OpeningRules', subBuilder: $70.OpeningRule.create) ..pc<$70.DurationRule>(13, _omitFieldNames ? '' : 'DurationRules', $pb.PbFieldType.PM, protoName: 'DurationRules', subBuilder: $70.DurationRule.create) ..pc<$70.CapacityRule>(14, _omitFieldNames ? '' : 'CapacityRules', $pb.PbFieldType.PM, protoName: 'CapacityRules', subBuilder: $70.CapacityRule.create) ..pc<$3.LabelByLanguage>(15, _omitFieldNames ? '' : 'Instructions', $pb.PbFieldType.PM, protoName: 'Instructions', subBuilder: $3.LabelByLanguage.create) ..pc<$70.Document>(16, _omitFieldNames ? '' : 'InstructionDocuments', $pb.PbFieldType.PM, protoName: 'InstructionDocuments', subBuilder: $70.Document.create) ..pc<$70.CarrierInformation>(17, _omitFieldNames ? '' : 'CarrierInformation', $pb.PbFieldType.PM, protoName: 'CarrierInformation', subBuilder: $70.CarrierInformation.create) ..aInt64(18, _omitFieldNames ? '' : 'RoundedPeriodInMinutes', protoName: 'RoundedPeriodInMinutes') ..aOS(19, _omitFieldNames ? '' : 'TimeZone', protoName: 'TimeZone') ..pPS(20, _omitFieldNames ? '' : 'Emails', protoName: 'Emails') ..aOS(21, _omitFieldNames ? '' : 'DefaultSiteLanguageISO6391', protoName: 'DefaultSiteLanguageISO6391') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Site clone() => Site()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') Site copyWith(void Function(Site) updates) => super.copyWith((message) => updates(message as Site)) as Site; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Site create() => Site._(); Site createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Site getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Site? _defaultInstance; @$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); /// Name of the Site @$pb.TagNumber(2) $core.String get name => $_getSZ(1); @$pb.TagNumber(2) set name($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasName() => $_has(1); @$pb.TagNumber(2) void clearName() => $_clearField(2); /// Identifier for the organisation associated with the site. @$pb.TagNumber(3) $core.String get organisationID => $_getSZ(2); @$pb.TagNumber(3) set organisationID($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasOrganisationID() => $_has(2); @$pb.TagNumber(3) void clearOrganisationID() => $_clearField(3); @$pb.TagNumber(4) $core.bool get active => $_getBF(3); @$pb.TagNumber(4) set active($core.bool v) { $_setBool(3, v); } @$pb.TagNumber(4) $core.bool hasActive() => $_has(3); @$pb.TagNumber(4) void clearActive() => $_clearField(4); @$pb.TagNumber(5) $core.String get photoURI => $_getSZ(4); @$pb.TagNumber(5) set photoURI($core.String v) { $_setString(4, v); } @$pb.TagNumber(5) $core.bool hasPhotoURI() => $_has(4); @$pb.TagNumber(5) void clearPhotoURI() => $_clearField(5); @$pb.TagNumber(6) $69.Address get address => $_getN(5); @$pb.TagNumber(6) set address($69.Address v) { $_setField(6, v); } @$pb.TagNumber(6) $core.bool hasAddress() => $_has(5); @$pb.TagNumber(6) void clearAddress() => $_clearField(6); @$pb.TagNumber(6) $69.Address ensureAddress() => $_ensure(5); @$pb.TagNumber(7) $pb.PbList<$core.String> get phones => $_getList(6); @$pb.TagNumber(8) $core.String get fax => $_getSZ(7); @$pb.TagNumber(8) set fax($core.String v) { $_setString(7, v); } @$pb.TagNumber(8) $core.bool hasFax() => $_has(7); @$pb.TagNumber(8) void clearFax() => $_clearField(8); /// List of Segmentations that segment the logistic site. @$pb.TagNumber(9) $pb.PbList<$70.Segmentation> get segmentations => $_getList(8); /// List of allowed project and the constraints (interval time in which they can book an appointment) they are associated with. @$pb.TagNumber(10) $pb.PbList<$70.ProjectAuthorisation> get authorisations => $_getList(9); /// List of containment units which will be used to estimate the needed time to load or unload. @$pb.TagNumber(11) $pb.PbList<$70.Unit> get units => $_getList(10); /// Definition of the opening rules. 2 opening rule definitions cannot overlap. @$pb.TagNumber(12) $pb.PbList<$70.OpeningRule> get openingRules => $_getList(11); /// Definition of the booking slot duration rules. @$pb.TagNumber(13) $pb.PbList<$70.DurationRule> get durationRules => $_getList(12); /// Definition of the capacity rules. 2 capacity rule can overlap and the more constraining one will be applied. @$pb.TagNumber(14) $pb.PbList<$70.CapacityRule> get capacityRules => $_getList(13); @$pb.TagNumber(15) $pb.PbList<$3.LabelByLanguage> get instructions => $_getList(14); /// Set of instruction document, listing necessary equipment and such @$pb.TagNumber(16) $pb.PbList<$70.Document> get instructionDocuments => $_getList(15); /// Set of required or optional information to ask when a slot is booked @$pb.TagNumber(17) $pb.PbList<$70.CarrierInformation> get carrierInformation => $_getList(16); /// Defines the rounded value to define booking period @$pb.TagNumber(18) $fixnum.Int64 get roundedPeriodInMinutes => $_getI64(17); @$pb.TagNumber(18) set roundedPeriodInMinutes($fixnum.Int64 v) { $_setInt64(17, v); } @$pb.TagNumber(18) $core.bool hasRoundedPeriodInMinutes() => $_has(17); @$pb.TagNumber(18) void clearRoundedPeriodInMinutes() => $_clearField(18); /// Site Time zone @$pb.TagNumber(19) $core.String get timeZone => $_getSZ(18); @$pb.TagNumber(19) set timeZone($core.String v) { $_setString(18, v); } @$pb.TagNumber(19) $core.bool hasTimeZone() => $_has(18); @$pb.TagNumber(19) void clearTimeZone() => $_clearField(19); /// Must be a valid email address @$pb.TagNumber(20) $pb.PbList<$core.String> get emails => $_getList(19); /// set the fallback language in case of missing translation @$pb.TagNumber(21) $core.String get defaultSiteLanguageISO6391 => $_getSZ(20); @$pb.TagNumber(21) set defaultSiteLanguageISO6391($core.String v) { $_setString(20, v); } @$pb.TagNumber(21) $core.bool hasDefaultSiteLanguageISO6391() => $_has(20); @$pb.TagNumber(21) void clearDefaultSiteLanguageISO6391() => $_clearField(21); } /// Create class CreateSiteRequest extends $pb.GeneratedMessage { factory CreateSiteRequest({ $3.RequestOrganisationHeader? header, $core.String? siteID, $core.String? siteName, $core.String? email, }) { final $result = create(); if (header != null) { $result.header = header; } if (siteID != null) { $result.siteID = siteID; } if (siteName != null) { $result.siteName = siteName; } if (email != null) { $result.email = email; } return $result; } CreateSiteRequest._() : super(); factory CreateSiteRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateSiteRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreateSiteRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOM<$3.RequestOrganisationHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestOrganisationHeader.create) ..aOS(2, _omitFieldNames ? '' : 'SiteID', protoName: 'SiteID') ..aOS(3, _omitFieldNames ? '' : 'SiteName', protoName: 'SiteName') ..aOS(4, _omitFieldNames ? '' : 'Email', protoName: 'Email') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') CreateSiteRequest clone() => CreateSiteRequest()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') CreateSiteRequest copyWith(void Function(CreateSiteRequest) updates) => super.copyWith((message) => updates(message as CreateSiteRequest)) as CreateSiteRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static CreateSiteRequest create() => CreateSiteRequest._(); CreateSiteRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static CreateSiteRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static CreateSiteRequest? _defaultInstance; @$pb.TagNumber(1) $3.RequestOrganisationHeader get header => $_getN(0); @$pb.TagNumber(1) set header($3.RequestOrganisationHeader v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasHeader() => $_has(0); @$pb.TagNumber(1) void clearHeader() => $_clearField(1); @$pb.TagNumber(1) $3.RequestOrganisationHeader ensureHeader() => $_ensure(0); /// Identifier of the new Site @$pb.TagNumber(2) $core.String get siteID => $_getSZ(1); @$pb.TagNumber(2) set siteID($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasSiteID() => $_has(1); @$pb.TagNumber(2) void clearSiteID() => $_clearField(2); /// Name of the new Site, modifiable after creation @$pb.TagNumber(3) $core.String get siteName => $_getSZ(2); @$pb.TagNumber(3) set siteName($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasSiteName() => $_has(2); @$pb.TagNumber(3) void clearSiteName() => $_clearField(3); /// Must be a valid email address from a user know to the platform @$pb.TagNumber(4) $core.String get email => $_getSZ(3); @$pb.TagNumber(4) set email($core.String v) { $_setString(3, v); } @$pb.TagNumber(4) $core.bool hasEmail() => $_has(3); @$pb.TagNumber(4) void clearEmail() => $_clearField(4); } class CreateSiteResponse extends $pb.GeneratedMessage { factory CreateSiteResponse({ Site? site, }) { final $result = create(); if (site != null) { $result.site = site; } return $result; } CreateSiteResponse._() : super(); factory CreateSiteResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CreateSiteResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreateSiteResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOM(1, _omitFieldNames ? '' : 'Site', protoName: 'Site', subBuilder: Site.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') CreateSiteResponse clone() => CreateSiteResponse()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') CreateSiteResponse copyWith(void Function(CreateSiteResponse) updates) => super.copyWith((message) => updates(message as CreateSiteResponse)) as CreateSiteResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static CreateSiteResponse create() => CreateSiteResponse._(); CreateSiteResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static CreateSiteResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static CreateSiteResponse? _defaultInstance; @$pb.TagNumber(1) Site get site => $_getN(0); @$pb.TagNumber(1) set site(Site v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasSite() => $_has(0); @$pb.TagNumber(1) void clearSite() => $_clearField(1); @$pb.TagNumber(1) Site ensureSite() => $_ensure(0); } /// Get class GetSiteRequest extends $pb.GeneratedMessage { factory GetSiteRequest({ $3.RequestOrganisationHeader? header, $core.String? iD, }) { final $result = create(); if (header != null) { $result.header = header; } if (iD != null) { $result.iD = iD; } return $result; } GetSiteRequest._() : super(); factory GetSiteRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetSiteRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetSiteRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOM<$3.RequestOrganisationHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestOrganisationHeader.create) ..aOS(2, _omitFieldNames ? '' : 'ID', protoName: 'ID') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetSiteRequest clone() => GetSiteRequest()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetSiteRequest copyWith(void Function(GetSiteRequest) updates) => super.copyWith((message) => updates(message as GetSiteRequest)) as GetSiteRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetSiteRequest create() => GetSiteRequest._(); GetSiteRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static GetSiteRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static GetSiteRequest? _defaultInstance; @$pb.TagNumber(1) $3.RequestOrganisationHeader get header => $_getN(0); @$pb.TagNumber(1) set header($3.RequestOrganisationHeader v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasHeader() => $_has(0); @$pb.TagNumber(1) void clearHeader() => $_clearField(1); @$pb.TagNumber(1) $3.RequestOrganisationHeader ensureHeader() => $_ensure(0); @$pb.TagNumber(2) $core.String get iD => $_getSZ(1); @$pb.TagNumber(2) set iD($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasID() => $_has(1); @$pb.TagNumber(2) void clearID() => $_clearField(2); } class GetSiteResponse extends $pb.GeneratedMessage { factory GetSiteResponse({ Site? site, }) { final $result = create(); if (site != null) { $result.site = site; } return $result; } GetSiteResponse._() : super(); factory GetSiteResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetSiteResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetSiteResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOM(1, _omitFieldNames ? '' : 'Site', protoName: 'Site', subBuilder: Site.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') GetSiteResponse clone() => GetSiteResponse()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetSiteResponse copyWith(void Function(GetSiteResponse) updates) => super.copyWith((message) => updates(message as GetSiteResponse)) as GetSiteResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetSiteResponse create() => GetSiteResponse._(); GetSiteResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static GetSiteResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static GetSiteResponse? _defaultInstance; @$pb.TagNumber(1) Site get site => $_getN(0); @$pb.TagNumber(1) set site(Site v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasSite() => $_has(0); @$pb.TagNumber(1) void clearSite() => $_clearField(1); @$pb.TagNumber(1) Site ensureSite() => $_ensure(0); } /// List class ListSiteRequest extends $pb.GeneratedMessage { factory ListSiteRequest({ $3.RequestOrganisationHeader? header, }) { final $result = create(); if (header != null) { $result.header = header; } return $result; } ListSiteRequest._() : super(); factory ListSiteRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListSiteRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListSiteRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOM<$3.RequestOrganisationHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestOrganisationHeader.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') ListSiteRequest clone() => ListSiteRequest()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ListSiteRequest copyWith(void Function(ListSiteRequest) updates) => super.copyWith((message) => updates(message as ListSiteRequest)) as ListSiteRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ListSiteRequest create() => ListSiteRequest._(); ListSiteRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ListSiteRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ListSiteRequest? _defaultInstance; @$pb.TagNumber(1) $3.RequestOrganisationHeader get header => $_getN(0); @$pb.TagNumber(1) set header($3.RequestOrganisationHeader v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasHeader() => $_has(0); @$pb.TagNumber(1) void clearHeader() => $_clearField(1); @$pb.TagNumber(1) $3.RequestOrganisationHeader ensureHeader() => $_ensure(0); } class ListSiteResponse extends $pb.GeneratedMessage { factory ListSiteResponse({ $core.Iterable? sites, }) { final $result = create(); if (sites != null) { $result.sites.addAll(sites); } return $result; } ListSiteResponse._() : super(); factory ListSiteResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListSiteResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListSiteResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..pc(1, _omitFieldNames ? '' : 'Sites', $pb.PbFieldType.PM, protoName: 'Sites', subBuilder: Site.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') ListSiteResponse clone() => ListSiteResponse()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ListSiteResponse copyWith(void Function(ListSiteResponse) updates) => super.copyWith((message) => updates(message as ListSiteResponse)) as ListSiteResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ListSiteResponse create() => ListSiteResponse._(); ListSiteResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ListSiteResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ListSiteResponse? _defaultInstance; @$pb.TagNumber(1) $pb.PbList get sites => $_getList(0); } /// Update class UpdateSiteRequest extends $pb.GeneratedMessage { factory UpdateSiteRequest({ $3.RequestOrganisationHeader? header, $core.String? iD, $core.String? name, $core.bool? active, $core.String? photoURI, $69.Address? address, $core.Iterable<$core.String>? phones, $core.String? fax, $core.Iterable<$70.Segmentation>? segmentations, $core.Iterable<$70.ProjectAuthorisation>? authorisations, $core.Iterable<$70.Unit>? units, $core.Iterable<$70.OpeningRule>? openingRules, $core.Iterable<$70.DurationRule>? durationRules, $core.Iterable<$70.CapacityRule>? capacityRules, $core.Iterable<$3.LabelByLanguage>? instructions, $core.Iterable<$70.Document>? instructionDocuments, $core.Iterable<$70.CarrierInformation>? carrierInformation, $fixnum.Int64? roundedPeriodInMinutes, $core.String? timeZone, $core.Iterable<$core.String>? emails, $core.String? defaultSiteLanguageISO6391, }) { final $result = create(); if (header != null) { $result.header = header; } if (iD != null) { $result.iD = iD; } if (name != null) { $result.name = name; } if (active != null) { $result.active = active; } if (photoURI != null) { $result.photoURI = photoURI; } if (address != null) { $result.address = address; } if (phones != null) { $result.phones.addAll(phones); } if (fax != null) { $result.fax = fax; } if (segmentations != null) { $result.segmentations.addAll(segmentations); } if (authorisations != null) { $result.authorisations.addAll(authorisations); } if (units != null) { $result.units.addAll(units); } if (openingRules != null) { $result.openingRules.addAll(openingRules); } if (durationRules != null) { $result.durationRules.addAll(durationRules); } if (capacityRules != null) { $result.capacityRules.addAll(capacityRules); } if (instructions != null) { $result.instructions.addAll(instructions); } if (instructionDocuments != null) { $result.instructionDocuments.addAll(instructionDocuments); } if (carrierInformation != null) { $result.carrierInformation.addAll(carrierInformation); } if (roundedPeriodInMinutes != null) { $result.roundedPeriodInMinutes = roundedPeriodInMinutes; } if (timeZone != null) { $result.timeZone = timeZone; } if (emails != null) { $result.emails.addAll(emails); } if (defaultSiteLanguageISO6391 != null) { $result.defaultSiteLanguageISO6391 = defaultSiteLanguageISO6391; } return $result; } UpdateSiteRequest._() : super(); factory UpdateSiteRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateSiteRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateSiteRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOM<$3.RequestOrganisationHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestOrganisationHeader.create) ..aOS(2, _omitFieldNames ? '' : 'ID', protoName: 'ID') ..aOS(3, _omitFieldNames ? '' : 'Name', protoName: 'Name') ..aOB(4, _omitFieldNames ? '' : 'Active', protoName: 'Active') ..aOS(5, _omitFieldNames ? '' : 'PhotoURI', protoName: 'PhotoURI') ..aOM<$69.Address>(6, _omitFieldNames ? '' : 'Address', protoName: 'Address', subBuilder: $69.Address.create) ..pPS(7, _omitFieldNames ? '' : 'Phones', protoName: 'Phones') ..aOS(8, _omitFieldNames ? '' : 'Fax', protoName: 'Fax') ..pc<$70.Segmentation>(9, _omitFieldNames ? '' : 'Segmentations', $pb.PbFieldType.PM, protoName: 'Segmentations', subBuilder: $70.Segmentation.create) ..pc<$70.ProjectAuthorisation>(10, _omitFieldNames ? '' : 'Authorisations', $pb.PbFieldType.PM, protoName: 'Authorisations', subBuilder: $70.ProjectAuthorisation.create) ..pc<$70.Unit>(11, _omitFieldNames ? '' : 'Units', $pb.PbFieldType.PM, protoName: 'Units', subBuilder: $70.Unit.create) ..pc<$70.OpeningRule>(12, _omitFieldNames ? '' : 'OpeningRules', $pb.PbFieldType.PM, protoName: 'OpeningRules', subBuilder: $70.OpeningRule.create) ..pc<$70.DurationRule>(13, _omitFieldNames ? '' : 'DurationRules', $pb.PbFieldType.PM, protoName: 'DurationRules', subBuilder: $70.DurationRule.create) ..pc<$70.CapacityRule>(14, _omitFieldNames ? '' : 'CapacityRules', $pb.PbFieldType.PM, protoName: 'CapacityRules', subBuilder: $70.CapacityRule.create) ..pc<$3.LabelByLanguage>(15, _omitFieldNames ? '' : 'Instructions', $pb.PbFieldType.PM, protoName: 'Instructions', subBuilder: $3.LabelByLanguage.create) ..pc<$70.Document>(16, _omitFieldNames ? '' : 'InstructionDocuments', $pb.PbFieldType.PM, protoName: 'InstructionDocuments', subBuilder: $70.Document.create) ..pc<$70.CarrierInformation>(17, _omitFieldNames ? '' : 'CarrierInformation', $pb.PbFieldType.PM, protoName: 'CarrierInformation', subBuilder: $70.CarrierInformation.create) ..aInt64(18, _omitFieldNames ? '' : 'RoundedPeriodInMinutes', protoName: 'RoundedPeriodInMinutes') ..aOS(19, _omitFieldNames ? '' : 'TimeZone', protoName: 'TimeZone') ..pPS(20, _omitFieldNames ? '' : 'Emails', protoName: 'Emails') ..aOS(21, _omitFieldNames ? '' : 'DefaultSiteLanguageISO6391', protoName: 'DefaultSiteLanguageISO6391') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') UpdateSiteRequest clone() => UpdateSiteRequest()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') UpdateSiteRequest copyWith(void Function(UpdateSiteRequest) updates) => super.copyWith((message) => updates(message as UpdateSiteRequest)) as UpdateSiteRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static UpdateSiteRequest create() => UpdateSiteRequest._(); UpdateSiteRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static UpdateSiteRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static UpdateSiteRequest? _defaultInstance; @$pb.TagNumber(1) $3.RequestOrganisationHeader get header => $_getN(0); @$pb.TagNumber(1) set header($3.RequestOrganisationHeader v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasHeader() => $_has(0); @$pb.TagNumber(1) void clearHeader() => $_clearField(1); @$pb.TagNumber(1) $3.RequestOrganisationHeader ensureHeader() => $_ensure(0); /// Unique identifier of the site @$pb.TagNumber(2) $core.String get iD => $_getSZ(1); @$pb.TagNumber(2) set iD($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasID() => $_has(1); @$pb.TagNumber(2) void clearID() => $_clearField(2); /// Name of the Site @$pb.TagNumber(3) $core.String get name => $_getSZ(2); @$pb.TagNumber(3) set name($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasName() => $_has(2); @$pb.TagNumber(3) void clearName() => $_clearField(3); @$pb.TagNumber(4) $core.bool get active => $_getBF(3); @$pb.TagNumber(4) set active($core.bool v) { $_setBool(3, v); } @$pb.TagNumber(4) $core.bool hasActive() => $_has(3); @$pb.TagNumber(4) void clearActive() => $_clearField(4); @$pb.TagNumber(5) $core.String get photoURI => $_getSZ(4); @$pb.TagNumber(5) set photoURI($core.String v) { $_setString(4, v); } @$pb.TagNumber(5) $core.bool hasPhotoURI() => $_has(4); @$pb.TagNumber(5) void clearPhotoURI() => $_clearField(5); @$pb.TagNumber(6) $69.Address get address => $_getN(5); @$pb.TagNumber(6) set address($69.Address v) { $_setField(6, v); } @$pb.TagNumber(6) $core.bool hasAddress() => $_has(5); @$pb.TagNumber(6) void clearAddress() => $_clearField(6); @$pb.TagNumber(6) $69.Address ensureAddress() => $_ensure(5); @$pb.TagNumber(7) $pb.PbList<$core.String> get phones => $_getList(6); @$pb.TagNumber(8) $core.String get fax => $_getSZ(7); @$pb.TagNumber(8) set fax($core.String v) { $_setString(7, v); } @$pb.TagNumber(8) $core.bool hasFax() => $_has(7); @$pb.TagNumber(8) void clearFax() => $_clearField(8); /// List of Segmentations that segment the logistic site. @$pb.TagNumber(9) $pb.PbList<$70.Segmentation> get segmentations => $_getList(8); /// List of allowed project and the constraints (interval time in which they can book an appointment) they are associated with. @$pb.TagNumber(10) $pb.PbList<$70.ProjectAuthorisation> get authorisations => $_getList(9); /// List of containment units which will be used to estimate the needed time to load or unload. @$pb.TagNumber(11) $pb.PbList<$70.Unit> get units => $_getList(10); /// Definition of the opening rules. 2 opening rule definitions cannot overlap. @$pb.TagNumber(12) $pb.PbList<$70.OpeningRule> get openingRules => $_getList(11); /// Definition of the booking slot duration rules. @$pb.TagNumber(13) $pb.PbList<$70.DurationRule> get durationRules => $_getList(12); /// Definition of the capacity rules. 2 capacity rule can overlap and the more constraining one will be applied. @$pb.TagNumber(14) $pb.PbList<$70.CapacityRule> get capacityRules => $_getList(13); @$pb.TagNumber(15) $pb.PbList<$3.LabelByLanguage> get instructions => $_getList(14); /// Set of instruction document, listing necessary equipment and such @$pb.TagNumber(16) $pb.PbList<$70.Document> get instructionDocuments => $_getList(15); /// Set of required or optional information to ask when a slot is booked @$pb.TagNumber(17) $pb.PbList<$70.CarrierInformation> get carrierInformation => $_getList(16); /// Defines the rounded value to define booking period @$pb.TagNumber(18) $fixnum.Int64 get roundedPeriodInMinutes => $_getI64(17); @$pb.TagNumber(18) set roundedPeriodInMinutes($fixnum.Int64 v) { $_setInt64(17, v); } @$pb.TagNumber(18) $core.bool hasRoundedPeriodInMinutes() => $_has(17); @$pb.TagNumber(18) void clearRoundedPeriodInMinutes() => $_clearField(18); /// Add Site Time zone @$pb.TagNumber(19) $core.String get timeZone => $_getSZ(18); @$pb.TagNumber(19) set timeZone($core.String v) { $_setString(18, v); } @$pb.TagNumber(19) $core.bool hasTimeZone() => $_has(18); @$pb.TagNumber(19) void clearTimeZone() => $_clearField(19); /// Must be a valid email address @$pb.TagNumber(20) $pb.PbList<$core.String> get emails => $_getList(19); /// set the fallback language in case of missing translation @$pb.TagNumber(21) $core.String get defaultSiteLanguageISO6391 => $_getSZ(20); @$pb.TagNumber(21) set defaultSiteLanguageISO6391($core.String v) { $_setString(20, v); } @$pb.TagNumber(21) $core.bool hasDefaultSiteLanguageISO6391() => $_has(20); @$pb.TagNumber(21) void clearDefaultSiteLanguageISO6391() => $_clearField(21); } class UpdateSiteResponse extends $pb.GeneratedMessage { factory UpdateSiteResponse({ Site? site, }) { final $result = create(); if (site != null) { $result.site = site; } return $result; } UpdateSiteResponse._() : super(); factory UpdateSiteResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory UpdateSiteResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateSiteResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOM(1, _omitFieldNames ? '' : 'Site', protoName: 'Site', subBuilder: Site.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') UpdateSiteResponse clone() => UpdateSiteResponse()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') UpdateSiteResponse copyWith(void Function(UpdateSiteResponse) updates) => super.copyWith((message) => updates(message as UpdateSiteResponse)) as UpdateSiteResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static UpdateSiteResponse create() => UpdateSiteResponse._(); UpdateSiteResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static UpdateSiteResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static UpdateSiteResponse? _defaultInstance; @$pb.TagNumber(1) Site get site => $_getN(0); @$pb.TagNumber(1) set site(Site v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasSite() => $_has(0); @$pb.TagNumber(1) void clearSite() => $_clearField(1); @$pb.TagNumber(1) Site ensureSite() => $_ensure(0); } /// Delete class DeleteSiteRequest extends $pb.GeneratedMessage { factory DeleteSiteRequest({ $3.RequestOrganisationHeader? header, $core.String? iD, }) { final $result = create(); if (header != null) { $result.header = header; } if (iD != null) { $result.iD = iD; } return $result; } DeleteSiteRequest._() : super(); factory DeleteSiteRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteSiteRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteSiteRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOM<$3.RequestOrganisationHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestOrganisationHeader.create) ..aOS(2, _omitFieldNames ? '' : 'ID', protoName: 'ID') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') DeleteSiteRequest clone() => DeleteSiteRequest()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') DeleteSiteRequest copyWith(void Function(DeleteSiteRequest) updates) => super.copyWith((message) => updates(message as DeleteSiteRequest)) as DeleteSiteRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DeleteSiteRequest create() => DeleteSiteRequest._(); DeleteSiteRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static DeleteSiteRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static DeleteSiteRequest? _defaultInstance; @$pb.TagNumber(1) $3.RequestOrganisationHeader get header => $_getN(0); @$pb.TagNumber(1) set header($3.RequestOrganisationHeader v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasHeader() => $_has(0); @$pb.TagNumber(1) void clearHeader() => $_clearField(1); @$pb.TagNumber(1) $3.RequestOrganisationHeader ensureHeader() => $_ensure(0); @$pb.TagNumber(2) $core.String get iD => $_getSZ(1); @$pb.TagNumber(2) set iD($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasID() => $_has(1); @$pb.TagNumber(2) void clearID() => $_clearField(2); } class DeleteSiteResponse extends $pb.GeneratedMessage { factory DeleteSiteResponse() => create(); DeleteSiteResponse._() : super(); factory DeleteSiteResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DeleteSiteResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteSiteResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: 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') DeleteSiteResponse clone() => DeleteSiteResponse()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') DeleteSiteResponse copyWith(void Function(DeleteSiteResponse) updates) => super.copyWith((message) => updates(message as DeleteSiteResponse)) as DeleteSiteResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DeleteSiteResponse create() => DeleteSiteResponse._(); DeleteSiteResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static DeleteSiteResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static DeleteSiteResponse? _defaultInstance; } /// SuggestID class SuggestSiteIDRequest extends $pb.GeneratedMessage { factory SuggestSiteIDRequest({ $core.String? name, $3.RequestOrganisationHeader? header, }) { final $result = create(); if (name != null) { $result.name = name; } if (header != null) { $result.header = header; } return $result; } SuggestSiteIDRequest._() : super(); factory SuggestSiteIDRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SuggestSiteIDRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SuggestSiteIDRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(2, _omitFieldNames ? '' : 'Name', protoName: 'Name') ..aOM<$3.RequestOrganisationHeader>(3, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestOrganisationHeader.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') SuggestSiteIDRequest clone() => SuggestSiteIDRequest()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') SuggestSiteIDRequest copyWith(void Function(SuggestSiteIDRequest) updates) => super.copyWith((message) => updates(message as SuggestSiteIDRequest)) as SuggestSiteIDRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SuggestSiteIDRequest create() => SuggestSiteIDRequest._(); SuggestSiteIDRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SuggestSiteIDRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SuggestSiteIDRequest? _defaultInstance; @$pb.TagNumber(2) $core.String get name => $_getSZ(0); @$pb.TagNumber(2) set name($core.String v) { $_setString(0, v); } @$pb.TagNumber(2) $core.bool hasName() => $_has(0); @$pb.TagNumber(2) void clearName() => $_clearField(2); @$pb.TagNumber(3) $3.RequestOrganisationHeader get header => $_getN(1); @$pb.TagNumber(3) set header($3.RequestOrganisationHeader v) { $_setField(3, v); } @$pb.TagNumber(3) $core.bool hasHeader() => $_has(1); @$pb.TagNumber(3) void clearHeader() => $_clearField(3); @$pb.TagNumber(3) $3.RequestOrganisationHeader ensureHeader() => $_ensure(1); } class SuggestSiteIDResult extends $pb.GeneratedMessage { factory SuggestSiteIDResult({ $core.String? siteID, }) { final $result = create(); if (siteID != null) { $result.siteID = siteID; } return $result; } SuggestSiteIDResult._() : super(); factory SuggestSiteIDResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SuggestSiteIDResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SuggestSiteIDResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'SiteID', protoName: 'SiteID') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') SuggestSiteIDResult clone() => SuggestSiteIDResult()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') SuggestSiteIDResult copyWith(void Function(SuggestSiteIDResult) updates) => super.copyWith((message) => updates(message as SuggestSiteIDResult)) as SuggestSiteIDResult; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static SuggestSiteIDResult create() => SuggestSiteIDResult._(); SuggestSiteIDResult createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static SuggestSiteIDResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static SuggestSiteIDResult? _defaultInstance; @$pb.TagNumber(1) $core.String get siteID => $_getSZ(0); @$pb.TagNumber(1) set siteID($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasSiteID() => $_has(0); @$pb.TagNumber(1) void clearSiteID() => $_clearField(1); } /// GetAvailableSlots class GetAvailableSlotsRequest extends $pb.GeneratedMessage { factory GetAvailableSlotsRequest({ $3.RequestSiteHeader? header, $70.AppointmentType? appointmentType, $core.Iterable<$75.Commission>? commissions, $core.Iterable<$70.Segmentation>? segmentations, $core.String? startDate, $core.String? endDate, }) { final $result = create(); if (header != null) { $result.header = header; } if (appointmentType != null) { $result.appointmentType = appointmentType; } if (commissions != null) { $result.commissions.addAll(commissions); } if (segmentations != null) { $result.segmentations.addAll(segmentations); } if (startDate != null) { $result.startDate = startDate; } if (endDate != null) { $result.endDate = endDate; } return $result; } GetAvailableSlotsRequest._() : super(); factory GetAvailableSlotsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetAvailableSlotsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetAvailableSlotsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOM<$3.RequestSiteHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestSiteHeader.create) ..e<$70.AppointmentType>(2, _omitFieldNames ? '' : 'AppointmentType', $pb.PbFieldType.OE, protoName: 'AppointmentType', defaultOrMaker: $70.AppointmentType.APPOINTMENTTYPE_UNKNOWN, valueOf: $70.AppointmentType.valueOf, enumValues: $70.AppointmentType.values) ..pc<$75.Commission>(3, _omitFieldNames ? '' : 'Commissions', $pb.PbFieldType.PM, protoName: 'Commissions', subBuilder: $75.Commission.create) ..pc<$70.Segmentation>(4, _omitFieldNames ? '' : 'Segmentations', $pb.PbFieldType.PM, protoName: 'Segmentations', subBuilder: $70.Segmentation.create) ..aOS(5, _omitFieldNames ? '' : 'StartDate', protoName: 'StartDate') ..aOS(6, _omitFieldNames ? '' : 'EndDate', protoName: 'EndDate') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetAvailableSlotsRequest clone() => GetAvailableSlotsRequest()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetAvailableSlotsRequest copyWith(void Function(GetAvailableSlotsRequest) updates) => super.copyWith((message) => updates(message as GetAvailableSlotsRequest)) as GetAvailableSlotsRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetAvailableSlotsRequest create() => GetAvailableSlotsRequest._(); GetAvailableSlotsRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static GetAvailableSlotsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static GetAvailableSlotsRequest? _defaultInstance; @$pb.TagNumber(1) $3.RequestSiteHeader get header => $_getN(0); @$pb.TagNumber(1) set header($3.RequestSiteHeader v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasHeader() => $_has(0); @$pb.TagNumber(1) void clearHeader() => $_clearField(1); @$pb.TagNumber(1) $3.RequestSiteHeader ensureHeader() => $_ensure(0); /// Type of appointment : Expedition / Reception / Both @$pb.TagNumber(2) $70.AppointmentType get appointmentType => $_getN(1); @$pb.TagNumber(2) set appointmentType($70.AppointmentType v) { $_setField(2, v); } @$pb.TagNumber(2) $core.bool hasAppointmentType() => $_has(1); @$pb.TagNumber(2) void clearAppointmentType() => $_clearField(2); /// List of the orders and projects for which the appointment is made, with the quantities @$pb.TagNumber(3) $pb.PbList<$75.Commission> get commissions => $_getList(2); /// Set of segmentation constraining the slot booking @$pb.TagNumber(4) $pb.PbList<$70.Segmentation> get segmentations => $_getList(3); /// Start date of the range to look for available slots @$pb.TagNumber(5) $core.String get startDate => $_getSZ(4); @$pb.TagNumber(5) set startDate($core.String v) { $_setString(4, v); } @$pb.TagNumber(5) $core.bool hasStartDate() => $_has(4); @$pb.TagNumber(5) void clearStartDate() => $_clearField(5); /// End date of the range to look for available slots @$pb.TagNumber(6) $core.String get endDate => $_getSZ(5); @$pb.TagNumber(6) set endDate($core.String v) { $_setString(5, v); } @$pb.TagNumber(6) $core.bool hasEndDate() => $_has(5); @$pb.TagNumber(6) void clearEndDate() => $_clearField(6); } class GetAvailableSlotsResponse extends $pb.GeneratedMessage { factory GetAvailableSlotsResponse({ $core.Iterable<$70.Slot>? slots, }) { final $result = create(); if (slots != null) { $result.slots.addAll(slots); } return $result; } GetAvailableSlotsResponse._() : super(); factory GetAvailableSlotsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory GetAvailableSlotsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetAvailableSlotsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..pc<$70.Slot>(1, _omitFieldNames ? '' : 'Slots', $pb.PbFieldType.PM, protoName: 'Slots', subBuilder: $70.Slot.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') GetAvailableSlotsResponse clone() => GetAvailableSlotsResponse()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetAvailableSlotsResponse copyWith(void Function(GetAvailableSlotsResponse) updates) => super.copyWith((message) => updates(message as GetAvailableSlotsResponse)) as GetAvailableSlotsResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static GetAvailableSlotsResponse create() => GetAvailableSlotsResponse._(); GetAvailableSlotsResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static GetAvailableSlotsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static GetAvailableSlotsResponse? _defaultInstance; @$pb.TagNumber(1) $pb.PbList<$70.Slot> get slots => $_getList(0); } /// BookAppointment class BookAppointmentRequest extends $pb.GeneratedMessage { factory BookAppointmentRequest({ $3.RequestSiteHeader? header, $70.AppointmentType? appointmentType, $core.Iterable<$75.Commission>? commissions, $core.Iterable<$70.Segmentation>? segmentations, $core.Iterable<$70.CarrierInformation>? carrierInformation, $70.Slot? slot, $core.Iterable<$core.String>? emails, }) { final $result = create(); if (header != null) { $result.header = header; } if (appointmentType != null) { $result.appointmentType = appointmentType; } if (commissions != null) { $result.commissions.addAll(commissions); } if (segmentations != null) { $result.segmentations.addAll(segmentations); } if (carrierInformation != null) { $result.carrierInformation.addAll(carrierInformation); } if (slot != null) { $result.slot = slot; } if (emails != null) { $result.emails.addAll(emails); } return $result; } BookAppointmentRequest._() : super(); factory BookAppointmentRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BookAppointmentRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BookAppointmentRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOM<$3.RequestSiteHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestSiteHeader.create) ..e<$70.AppointmentType>(2, _omitFieldNames ? '' : 'AppointmentType', $pb.PbFieldType.OE, protoName: 'AppointmentType', defaultOrMaker: $70.AppointmentType.APPOINTMENTTYPE_UNKNOWN, valueOf: $70.AppointmentType.valueOf, enumValues: $70.AppointmentType.values) ..pc<$75.Commission>(3, _omitFieldNames ? '' : 'Commissions', $pb.PbFieldType.PM, protoName: 'Commissions', subBuilder: $75.Commission.create) ..pc<$70.Segmentation>(4, _omitFieldNames ? '' : 'Segmentations', $pb.PbFieldType.PM, protoName: 'Segmentations', subBuilder: $70.Segmentation.create) ..pc<$70.CarrierInformation>(5, _omitFieldNames ? '' : 'CarrierInformation', $pb.PbFieldType.PM, protoName: 'CarrierInformation', subBuilder: $70.CarrierInformation.create) ..aOM<$70.Slot>(6, _omitFieldNames ? '' : 'Slot', protoName: 'Slot', subBuilder: $70.Slot.create) ..pPS(8, _omitFieldNames ? '' : 'Emails', protoName: 'Emails') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') BookAppointmentRequest clone() => BookAppointmentRequest()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') BookAppointmentRequest copyWith(void Function(BookAppointmentRequest) updates) => super.copyWith((message) => updates(message as BookAppointmentRequest)) as BookAppointmentRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static BookAppointmentRequest create() => BookAppointmentRequest._(); BookAppointmentRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static BookAppointmentRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static BookAppointmentRequest? _defaultInstance; @$pb.TagNumber(1) $3.RequestSiteHeader get header => $_getN(0); @$pb.TagNumber(1) set header($3.RequestSiteHeader v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasHeader() => $_has(0); @$pb.TagNumber(1) void clearHeader() => $_clearField(1); @$pb.TagNumber(1) $3.RequestSiteHeader ensureHeader() => $_ensure(0); /// Type of appointment : Expedition / Reception / Both @$pb.TagNumber(2) $70.AppointmentType get appointmentType => $_getN(1); @$pb.TagNumber(2) set appointmentType($70.AppointmentType v) { $_setField(2, v); } @$pb.TagNumber(2) $core.bool hasAppointmentType() => $_has(1); @$pb.TagNumber(2) void clearAppointmentType() => $_clearField(2); /// List of the orders and projects for which the appointment is made, with the quantities @$pb.TagNumber(3) $pb.PbList<$75.Commission> get commissions => $_getList(2); /// Set of segmentation constraining the slot booking @$pb.TagNumber(4) $pb.PbList<$70.Segmentation> get segmentations => $_getList(3); /// Required carrierInformation, some can be obligatory @$pb.TagNumber(5) $pb.PbList<$70.CarrierInformation> get carrierInformation => $_getList(4); /// The slot to book for the appointment @$pb.TagNumber(6) $70.Slot get slot => $_getN(5); @$pb.TagNumber(6) set slot($70.Slot v) { $_setField(6, v); } @$pb.TagNumber(6) $core.bool hasSlot() => $_has(5); @$pb.TagNumber(6) void clearSlot() => $_clearField(6); @$pb.TagNumber(6) $70.Slot ensureSlot() => $_ensure(5); /// User mails being notified on this appointment /// TODO Need to add a structure to store platform user identifiers which can act on this appointment ? @$pb.TagNumber(8) $pb.PbList<$core.String> get emails => $_getList(6); } class BookAppointmentResponse extends $pb.GeneratedMessage { factory BookAppointmentResponse({ $core.String? appointmentID, }) { final $result = create(); if (appointmentID != null) { $result.appointmentID = appointmentID; } return $result; } BookAppointmentResponse._() : super(); factory BookAppointmentResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory BookAppointmentResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'BookAppointmentResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'AppointmentID', protoName: 'AppointmentID') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') BookAppointmentResponse clone() => BookAppointmentResponse()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') BookAppointmentResponse copyWith(void Function(BookAppointmentResponse) updates) => super.copyWith((message) => updates(message as BookAppointmentResponse)) as BookAppointmentResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static BookAppointmentResponse create() => BookAppointmentResponse._(); BookAppointmentResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static BookAppointmentResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static BookAppointmentResponse? _defaultInstance; @$pb.TagNumber(1) $core.String get appointmentID => $_getSZ(0); @$pb.TagNumber(1) set appointmentID($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasAppointmentID() => $_has(0); @$pb.TagNumber(1) void clearAppointmentID() => $_clearField(1); } /// CancelAppointment class CancelAppointmentRequest extends $pb.GeneratedMessage { factory CancelAppointmentRequest({ $3.RequestSiteHeader? header, $core.String? appointmentID, }) { final $result = create(); if (header != null) { $result.header = header; } if (appointmentID != null) { $result.appointmentID = appointmentID; } return $result; } CancelAppointmentRequest._() : super(); factory CancelAppointmentRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CancelAppointmentRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CancelAppointmentRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOM<$3.RequestSiteHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestSiteHeader.create) ..aOS(2, _omitFieldNames ? '' : 'AppointmentID', protoName: 'AppointmentID') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') CancelAppointmentRequest clone() => CancelAppointmentRequest()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') CancelAppointmentRequest copyWith(void Function(CancelAppointmentRequest) updates) => super.copyWith((message) => updates(message as CancelAppointmentRequest)) as CancelAppointmentRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static CancelAppointmentRequest create() => CancelAppointmentRequest._(); CancelAppointmentRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static CancelAppointmentRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static CancelAppointmentRequest? _defaultInstance; @$pb.TagNumber(1) $3.RequestSiteHeader get header => $_getN(0); @$pb.TagNumber(1) set header($3.RequestSiteHeader v) { $_setField(1, v); } @$pb.TagNumber(1) $core.bool hasHeader() => $_has(0); @$pb.TagNumber(1) void clearHeader() => $_clearField(1); @$pb.TagNumber(1) $3.RequestSiteHeader ensureHeader() => $_ensure(0); @$pb.TagNumber(2) $core.String get appointmentID => $_getSZ(1); @$pb.TagNumber(2) set appointmentID($core.String v) { $_setString(1, v); } @$pb.TagNumber(2) $core.bool hasAppointmentID() => $_has(1); @$pb.TagNumber(2) void clearAppointmentID() => $_clearField(2); } class CancelAppointmentResponse extends $pb.GeneratedMessage { factory CancelAppointmentResponse({ $core.String? appointmentID, }) { final $result = create(); if (appointmentID != null) { $result.appointmentID = appointmentID; } return $result; } CancelAppointmentResponse._() : super(); factory CancelAppointmentResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory CancelAppointmentResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CancelAppointmentResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'AppointmentID', protoName: 'AppointmentID') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') CancelAppointmentResponse clone() => CancelAppointmentResponse()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') CancelAppointmentResponse copyWith(void Function(CancelAppointmentResponse) updates) => super.copyWith((message) => updates(message as CancelAppointmentResponse)) as CancelAppointmentResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static CancelAppointmentResponse create() => CancelAppointmentResponse._(); CancelAppointmentResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static CancelAppointmentResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static CancelAppointmentResponse? _defaultInstance; @$pb.TagNumber(1) $core.String get appointmentID => $_getSZ(0); @$pb.TagNumber(1) set appointmentID($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasAppointmentID() => $_has(0); @$pb.TagNumber(1) void clearAppointmentID() => $_clearField(1); } /// ListUserSites class ListUserSitesRequest extends $pb.GeneratedMessage { factory ListUserSitesRequest({ $core.Iterable<$core.String>? projectID, }) { final $result = create(); if (projectID != null) { $result.projectID.addAll(projectID); } return $result; } ListUserSitesRequest._() : super(); factory ListUserSitesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListUserSitesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListUserSitesRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..pPS(1, _omitFieldNames ? '' : 'ProjectID', protoName: 'ProjectID') ..hasRequiredFields = false ; @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') ListUserSitesRequest clone() => ListUserSitesRequest()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ListUserSitesRequest copyWith(void Function(ListUserSitesRequest) updates) => super.copyWith((message) => updates(message as ListUserSitesRequest)) as ListUserSitesRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ListUserSitesRequest create() => ListUserSitesRequest._(); ListUserSitesRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ListUserSitesRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ListUserSitesRequest? _defaultInstance; /// TODO optional filter @$pb.TagNumber(1) $pb.PbList<$core.String> get projectID => $_getList(0); } class ListUserSitesResponse extends $pb.GeneratedMessage { factory ListUserSitesResponse({ $core.Iterable? sites, }) { final $result = create(); if (sites != null) { $result.sites.addAll(sites); } return $result; } ListUserSitesResponse._() : super(); factory ListUserSitesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListUserSitesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListUserSitesResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..pc(1, _omitFieldNames ? '' : 'Sites', $pb.PbFieldType.PM, protoName: 'Sites', subBuilder: Site.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') ListUserSitesResponse clone() => ListUserSitesResponse()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') ListUserSitesResponse copyWith(void Function(ListUserSitesResponse) updates) => super.copyWith((message) => updates(message as ListUserSitesResponse)) as ListUserSitesResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ListUserSitesResponse create() => ListUserSitesResponse._(); ListUserSitesResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ListUserSitesResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ListUserSitesResponse? _defaultInstance; @$pb.TagNumber(1) $pb.PbList get sites => $_getList(0); } const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');