// This is a generated file - do not edit.
//
// Generated from partner.proto.

// @dart = 3.3

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names

import 'dart:core' as $core;

import 'package:protobuf/protobuf.dart' as $pb;

import 'repositoryShared.pb.dart' as $1;
import 'shared.pb.dart' as $0;

export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;

class Partner extends $pb.GeneratedMessage {
  factory Partner({
    $0.EventHeader? lastEventHeader,
    $0.EntityID? iD,
    PartnerPayload? payload,
  }) {
    final result = create();
    if (lastEventHeader != null) result.lastEventHeader = lastEventHeader;
    if (iD != null) result.iD = iD;
    if (payload != null) result.payload = payload;
    return result;
  }

  Partner._();

  factory Partner.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
  factory Partner.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Partner', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$0.EventHeader>(1, _omitFieldNames ? '' : 'LastEventHeader', protoName: 'LastEventHeader', subBuilder: $0.EventHeader.create)
    ..aOM<$0.EntityID>(2, _omitFieldNames ? '' : 'ID', protoName: 'ID', subBuilder: $0.EntityID.create)
    ..aOM<PartnerPayload>(3, _omitFieldNames ? '' : 'Payload', protoName: 'Payload', subBuilder: PartnerPayload.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  Partner clone() => Partner()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  Partner copyWith(void Function(Partner) updates) => super.copyWith((message) => updates(message as Partner)) as Partner;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static Partner create() => Partner._();
  @$core.override
  Partner createEmptyInstance() => create();
  static $pb.PbList<Partner> createRepeated() => $pb.PbList<Partner>();
  @$core.pragma('dart2js:noInline')
  static Partner getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Partner>(create);
  static Partner? _defaultInstance;

  @$pb.TagNumber(1)
  $0.EventHeader get lastEventHeader => $_getN(0);
  @$pb.TagNumber(1)
  set lastEventHeader($0.EventHeader value) => $_setField(1, value);
  @$pb.TagNumber(1)
  $core.bool hasLastEventHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearLastEventHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $0.EventHeader ensureLastEventHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  $0.EntityID get iD => $_getN(1);
  @$pb.TagNumber(2)
  set iD($0.EntityID value) => $_setField(2, value);
  @$pb.TagNumber(2)
  $core.bool hasID() => $_has(1);
  @$pb.TagNumber(2)
  void clearID() => $_clearField(2);
  @$pb.TagNumber(2)
  $0.EntityID ensureID() => $_ensure(1);

  @$pb.TagNumber(3)
  PartnerPayload get payload => $_getN(2);
  @$pb.TagNumber(3)
  set payload(PartnerPayload value) => $_setField(3, value);
  @$pb.TagNumber(3)
  $core.bool hasPayload() => $_has(2);
  @$pb.TagNumber(3)
  void clearPayload() => $_clearField(3);
  @$pb.TagNumber(3)
  PartnerPayload ensurePayload() => $_ensure(2);
}

class PartnerPayload extends $pb.GeneratedMessage {
  factory PartnerPayload({
    $core.String? name,
    $core.String? legalStructure,
    $1.Address? address,
    $1.PartnerStatusStruct? status,
    $core.String? photoURI,
    $core.Iterable<$0.AttachmentSummary>? attachments,
    $core.int? attachmentNumber,
  @$core.Deprecated('This field is deprecated.')
    $core.Iterable<$core.String>? allowedRoles,
  }) {
    final result = create();
    if (name != null) result.name = name;
    if (legalStructure != null) result.legalStructure = legalStructure;
    if (address != null) result.address = address;
    if (status != null) result.status = status;
    if (photoURI != null) result.photoURI = photoURI;
    if (attachments != null) result.attachments.addAll(attachments);
    if (attachmentNumber != null) result.attachmentNumber = attachmentNumber;
    if (allowedRoles != null) result.allowedRoles.addAll(allowedRoles);
    return result;
  }

  PartnerPayload._();

  factory PartnerPayload.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
  factory PartnerPayload.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PartnerPayload', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'Name', protoName: 'Name')
    ..aOS(2, _omitFieldNames ? '' : 'LegalStructure', protoName: 'LegalStructure')
    ..aOM<$1.Address>(4, _omitFieldNames ? '' : 'Address', protoName: 'Address', subBuilder: $1.Address.create)
    ..aOM<$1.PartnerStatusStruct>(6, _omitFieldNames ? '' : 'Status', protoName: 'Status', subBuilder: $1.PartnerStatusStruct.create)
    ..aOS(7, _omitFieldNames ? '' : 'PhotoURI', protoName: 'PhotoURI')
    ..pc<$0.AttachmentSummary>(8, _omitFieldNames ? '' : 'Attachments', $pb.PbFieldType.PM, protoName: 'Attachments', subBuilder: $0.AttachmentSummary.create)
    ..a<$core.int>(9, _omitFieldNames ? '' : 'AttachmentNumber', $pb.PbFieldType.O3, protoName: 'AttachmentNumber')
    ..pPS(10, _omitFieldNames ? '' : 'AllowedRoles', protoName: 'AllowedRoles')
    ..hasRequiredFields = false
  ;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  PartnerPayload clone() => PartnerPayload()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  PartnerPayload copyWith(void Function(PartnerPayload) updates) => super.copyWith((message) => updates(message as PartnerPayload)) as PartnerPayload;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static PartnerPayload create() => PartnerPayload._();
  @$core.override
  PartnerPayload createEmptyInstance() => create();
  static $pb.PbList<PartnerPayload> createRepeated() => $pb.PbList<PartnerPayload>();
  @$core.pragma('dart2js:noInline')
  static PartnerPayload getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PartnerPayload>(create);
  static PartnerPayload? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get name => $_getSZ(0);
  @$pb.TagNumber(1)
  set name($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasName() => $_has(0);
  @$pb.TagNumber(1)
  void clearName() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get legalStructure => $_getSZ(1);
  @$pb.TagNumber(2)
  set legalStructure($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasLegalStructure() => $_has(1);
  @$pb.TagNumber(2)
  void clearLegalStructure() => $_clearField(2);

  @$pb.TagNumber(4)
  $1.Address get address => $_getN(2);
  @$pb.TagNumber(4)
  set address($1.Address value) => $_setField(4, value);
  @$pb.TagNumber(4)
  $core.bool hasAddress() => $_has(2);
  @$pb.TagNumber(4)
  void clearAddress() => $_clearField(4);
  @$pb.TagNumber(4)
  $1.Address ensureAddress() => $_ensure(2);

  @$pb.TagNumber(6)
  $1.PartnerStatusStruct get status => $_getN(3);
  @$pb.TagNumber(6)
  set status($1.PartnerStatusStruct value) => $_setField(6, value);
  @$pb.TagNumber(6)
  $core.bool hasStatus() => $_has(3);
  @$pb.TagNumber(6)
  void clearStatus() => $_clearField(6);
  @$pb.TagNumber(6)
  $1.PartnerStatusStruct ensureStatus() => $_ensure(3);

  @$pb.TagNumber(7)
  $core.String get photoURI => $_getSZ(4);
  @$pb.TagNumber(7)
  set photoURI($core.String value) => $_setString(4, value);
  @$pb.TagNumber(7)
  $core.bool hasPhotoURI() => $_has(4);
  @$pb.TagNumber(7)
  void clearPhotoURI() => $_clearField(7);

  @$pb.TagNumber(8)
  $pb.PbList<$0.AttachmentSummary> get attachments => $_getList(5);

  @$pb.TagNumber(9)
  $core.int get attachmentNumber => $_getIZ(6);
  @$pb.TagNumber(9)
  set attachmentNumber($core.int value) => $_setSignedInt32(6, value);
  @$pb.TagNumber(9)
  $core.bool hasAttachmentNumber() => $_has(6);
  @$pb.TagNumber(9)
  void clearAttachmentNumber() => $_clearField(9);

  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(10)
  $pb.PbList<$core.String> get allowedRoles => $_getList(7);
}

class PartnerTriplet extends $pb.GeneratedMessage {
  factory PartnerTriplet({
    Partner? current,
    Partner? previous,
    Partner? lastEvent,
  }) {
    final result = create();
    if (current != null) result.current = current;
    if (previous != null) result.previous = previous;
    if (lastEvent != null) result.lastEvent = lastEvent;
    return result;
  }

  PartnerTriplet._();

  factory PartnerTriplet.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
  factory PartnerTriplet.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PartnerTriplet', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<Partner>(1, _omitFieldNames ? '' : 'Current', protoName: 'Current', subBuilder: Partner.create)
    ..aOM<Partner>(2, _omitFieldNames ? '' : 'Previous', protoName: 'Previous', subBuilder: Partner.create)
    ..aOM<Partner>(3, _omitFieldNames ? '' : 'LastEvent', protoName: 'LastEvent', subBuilder: Partner.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  PartnerTriplet clone() => PartnerTriplet()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  PartnerTriplet copyWith(void Function(PartnerTriplet) updates) => super.copyWith((message) => updates(message as PartnerTriplet)) as PartnerTriplet;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static PartnerTriplet create() => PartnerTriplet._();
  @$core.override
  PartnerTriplet createEmptyInstance() => create();
  static $pb.PbList<PartnerTriplet> createRepeated() => $pb.PbList<PartnerTriplet>();
  @$core.pragma('dart2js:noInline')
  static PartnerTriplet getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<PartnerTriplet>(create);
  static PartnerTriplet? _defaultInstance;

  @$pb.TagNumber(1)
  Partner get current => $_getN(0);
  @$pb.TagNumber(1)
  set current(Partner value) => $_setField(1, value);
  @$pb.TagNumber(1)
  $core.bool hasCurrent() => $_has(0);
  @$pb.TagNumber(1)
  void clearCurrent() => $_clearField(1);
  @$pb.TagNumber(1)
  Partner ensureCurrent() => $_ensure(0);

  @$pb.TagNumber(2)
  Partner get previous => $_getN(1);
  @$pb.TagNumber(2)
  set previous(Partner value) => $_setField(2, value);
  @$pb.TagNumber(2)
  $core.bool hasPrevious() => $_has(1);
  @$pb.TagNumber(2)
  void clearPrevious() => $_clearField(2);
  @$pb.TagNumber(2)
  Partner ensurePrevious() => $_ensure(1);

  @$pb.TagNumber(3)
  Partner get lastEvent => $_getN(2);
  @$pb.TagNumber(3)
  set lastEvent(Partner value) => $_setField(3, value);
  @$pb.TagNumber(3)
  $core.bool hasLastEvent() => $_has(2);
  @$pb.TagNumber(3)
  void clearLastEvent() => $_clearField(3);
  @$pb.TagNumber(3)
  Partner ensureLastEvent() => $_ensure(2);
}


const $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
