//
//  Generated code. Do not modify.
//  source: partner.proto
//
// @dart = 3.3

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

import 'dart:core' as $core;

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

import 'repositoryShared.pb.dart' as $65;
import 'shared.pb.dart' as $3;

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

class Partner extends $pb.GeneratedMessage {
  factory Partner({
    $3.EventHeader? lastEventHeader,
    $3.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._() : super();
  factory Partner.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory Partner.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Partner', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.EventHeader>(1, _omitFieldNames ? '' : 'LastEventHeader', protoName: 'LastEventHeader', subBuilder: $3.EventHeader.create)
    ..aOM<$3.EntityID>(2, _omitFieldNames ? '' : 'ID', protoName: 'ID', subBuilder: $3.EntityID.create)
    ..aOM<PartnerPayload>(3, _omitFieldNames ? '' : 'Payload', protoName: 'Payload', subBuilder: PartnerPayload.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')
  Partner clone() => Partner()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  Partner copyWith(void Function(Partner) updates) => super.copyWith((message) => updates(message as Partner)) as Partner;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static Partner create() => Partner._();
  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)
  $3.EventHeader get lastEventHeader => $_getN(0);
  @$pb.TagNumber(1)
  set lastEventHeader($3.EventHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasLastEventHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearLastEventHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.EventHeader ensureLastEventHeader() => $_ensure(0);

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

  @$pb.TagNumber(3)
  PartnerPayload get payload => $_getN(2);
  @$pb.TagNumber(3)
  set payload(PartnerPayload v) { $_setField(3, v); }
  @$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,
    $65.Address? address,
    $65.PartnerStatusStruct? status,
    $core.String? photoURI,
    $core.Iterable<$3.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) {
      // ignore: deprecated_member_use_from_same_package
      $result.allowedRoles.addAll(allowedRoles);
    }
    return $result;
  }
  PartnerPayload._() : super();
  factory PartnerPayload.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory PartnerPayload.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  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<$65.Address>(4, _omitFieldNames ? '' : 'Address', protoName: 'Address', subBuilder: $65.Address.create)
    ..aOM<$65.PartnerStatusStruct>(6, _omitFieldNames ? '' : 'Status', protoName: 'Status', subBuilder: $65.PartnerStatusStruct.create)
    ..aOS(7, _omitFieldNames ? '' : 'PhotoURI', protoName: 'PhotoURI')
    ..pc<$3.AttachmentSummary>(8, _omitFieldNames ? '' : 'Attachments', $pb.PbFieldType.PM, protoName: 'Attachments', subBuilder: $3.AttachmentSummary.create)
    ..a<$core.int>(9, _omitFieldNames ? '' : 'AttachmentNumber', $pb.PbFieldType.O3, protoName: 'AttachmentNumber')
    ..pPS(10, _omitFieldNames ? '' : 'AllowedRoles', protoName: 'AllowedRoles')
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  PartnerPayload clone() => PartnerPayload()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  PartnerPayload copyWith(void Function(PartnerPayload) updates) => super.copyWith((message) => updates(message as PartnerPayload)) as PartnerPayload;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static PartnerPayload create() => PartnerPayload._();
  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 v) { $_setString(0, v); }
  @$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 v) { $_setString(1, v); }
  @$pb.TagNumber(2)
  $core.bool hasLegalStructure() => $_has(1);
  @$pb.TagNumber(2)
  void clearLegalStructure() => $_clearField(2);

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

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

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

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

  @$pb.TagNumber(9)
  $core.int get attachmentNumber => $_getIZ(6);
  @$pb.TagNumber(9)
  set attachmentNumber($core.int v) { $_setSignedInt32(6, v); }
  @$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._() : super();
  factory PartnerTriplet.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory PartnerTriplet.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  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(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  PartnerTriplet clone() => PartnerTriplet()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  PartnerTriplet copyWith(void Function(PartnerTriplet) updates) => super.copyWith((message) => updates(message as PartnerTriplet)) as PartnerTriplet;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static PartnerTriplet create() => PartnerTriplet._();
  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 v) { $_setField(1, v); }
  @$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 v) { $_setField(2, v); }
  @$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 v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasLastEvent() => $_has(2);
  @$pb.TagNumber(3)
  void clearLastEvent() => $_clearField(3);
  @$pb.TagNumber(3)
  Partner ensureLastEvent() => $_ensure(2);
}


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