// This is a generated file - do not edit.
//
// Generated from admin-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 'admin-actor.pb.dart' as $1;
import 'repositoryShared.pb.dart' as $0;

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

class AdminPartner extends $pb.GeneratedMessage {
  factory AdminPartner({
    $core.String? iD,
    $core.String? name,
    $core.String? legalStructure,
    $0.Address? address,
    $core.String? organisationID,
    $core.Iterable<$core.String>? actorIDs,
    $core.Iterable<$1.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._();

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

  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<$0.Address>(4, _omitFieldNames ? '' : 'Address', protoName: 'Address', subBuilder: $0.Address.create)
    ..aOS(5, _omitFieldNames ? '' : 'OrganisationID', protoName: 'OrganisationID')
    ..pPS(6, _omitFieldNames ? '' : 'ActorIDs', protoName: 'ActorIDs')
    ..pc<$1.AdminActor>(7, _omitFieldNames ? '' : 'Actors', $pb.PbFieldType.PM, protoName: 'Actors', subBuilder: $1.AdminActor.create)
    ..aOS(8, _omitFieldNames ? '' : 'PhotoURI', protoName: 'PhotoURI')
    ..hasRequiredFields = false
  ;

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

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

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

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

  @$pb.TagNumber(5)
  $core.String get organisationID => $_getSZ(4);
  @$pb.TagNumber(5)
  set organisationID($core.String value) => $_setString(4, value);
  @$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<$1.AdminActor> get actors => $_getList(6);

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


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