//
//  Generated code. Do not modify.
//  source: admin-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 'admin-actor.pb.dart' as $68;
import 'repositoryShared.pb.dart' as $65;

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

class AdminPartner extends $pb.GeneratedMessage {
  factory AdminPartner({
    $core.String? iD,
    $core.String? name,
    $core.String? legalStructure,
    $65.Address? address,
    $core.String? organisationID,
    $core.Iterable<$core.String>? actorIDs,
    $core.Iterable<$68.AdminActor>? actors,
    $core.String? photoURI,
  }) {
    final $result = create();
    if (iD != null) {
      $result.iD = iD;
    }
    if (name != null) {
      $result.name = name;
    }
    if (legalStructure != null) {
      $result.legalStructure = legalStructure;
    }
    if (address != null) {
      $result.address = address;
    }
    if (organisationID != null) {
      $result.organisationID = organisationID;
    }
    if (actorIDs != null) {
      $result.actorIDs.addAll(actorIDs);
    }
    if (actors != null) {
      $result.actors.addAll(actors);
    }
    if (photoURI != null) {
      $result.photoURI = photoURI;
    }
    return $result;
  }
  AdminPartner._() : super();
  factory AdminPartner.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory AdminPartner.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AdminPartner', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'ID', protoName: 'ID')
    ..aOS(2, _omitFieldNames ? '' : 'Name', protoName: 'Name')
    ..aOS(3, _omitFieldNames ? '' : 'LegalStructure', protoName: 'LegalStructure')
    ..aOM<$65.Address>(4, _omitFieldNames ? '' : 'Address', protoName: 'Address', subBuilder: $65.Address.create)
    ..aOS(5, _omitFieldNames ? '' : 'OrganisationID', protoName: 'OrganisationID')
    ..pPS(6, _omitFieldNames ? '' : 'ActorIDs', protoName: 'ActorIDs')
    ..pc<$68.AdminActor>(7, _omitFieldNames ? '' : 'Actors', $pb.PbFieldType.PM, protoName: 'Actors', subBuilder: $68.AdminActor.create)
    ..aOS(8, _omitFieldNames ? '' : 'PhotoURI', protoName: 'PhotoURI')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static AdminPartner create() => AdminPartner._();
  AdminPartner createEmptyInstance() => create();
  static $pb.PbList<AdminPartner> createRepeated() => $pb.PbList<AdminPartner>();
  @$core.pragma('dart2js:noInline')
  static AdminPartner getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AdminPartner>(create);
  static AdminPartner? _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);

  @$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);

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

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

  @$pb.TagNumber(5)
  $core.String get organisationID => $_getSZ(4);
  @$pb.TagNumber(5)
  set organisationID($core.String v) { $_setString(4, v); }
  @$pb.TagNumber(5)
  $core.bool hasOrganisationID() => $_has(4);
  @$pb.TagNumber(5)
  void clearOrganisationID() => $_clearField(5);

  /// In ActorIDs are given / Out not present
  @$pb.TagNumber(6)
  $pb.PbList<$core.String> get actorIDs => $_getList(5);

  /// In not accepted / Out Actors are returned
  @$pb.TagNumber(7)
  $pb.PbList<$68.AdminActor> get actors => $_getList(6);

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


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