//
//  Generated code. Do not modify.
//  source: user-groups.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 'shared.pb.dart' as $3;
import 'user-groups.pbenum.dart';

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

export 'user-groups.pbenum.dart';

class UserGroup extends $pb.GeneratedMessage {
  factory UserGroup({
    $core.String? projectID,
    $core.String? entityRefID,
    EntityRefType? entityRefType,
    $core.Iterable<$core.String>? allowedRoles,
    $core.bool? allowAllRoles,
  }) {
    final $result = create();
    if (projectID != null) {
      $result.projectID = projectID;
    }
    if (entityRefID != null) {
      $result.entityRefID = entityRefID;
    }
    if (entityRefType != null) {
      $result.entityRefType = entityRefType;
    }
    if (allowedRoles != null) {
      $result.allowedRoles.addAll(allowedRoles);
    }
    if (allowAllRoles != null) {
      $result.allowAllRoles = allowAllRoles;
    }
    return $result;
  }
  UserGroup._() : super();
  factory UserGroup.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory UserGroup.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UserGroup', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'ProjectID', protoName: 'ProjectID')
    ..aOS(2, _omitFieldNames ? '' : 'EntityRefID', protoName: 'EntityRefID')
    ..e<EntityRefType>(3, _omitFieldNames ? '' : 'EntityRefType', $pb.PbFieldType.OE, protoName: 'EntityRefType', defaultOrMaker: EntityRefType.REF_TYPE_UNKNOWN, valueOf: EntityRefType.valueOf, enumValues: EntityRefType.values)
    ..pPS(4, _omitFieldNames ? '' : 'AllowedRoles', protoName: 'AllowedRoles')
    ..aOB(5, _omitFieldNames ? '' : 'AllowAllRoles', protoName: 'AllowAllRoles')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $core.String get projectID => $_getSZ(0);
  @$pb.TagNumber(1)
  set projectID($core.String v) { $_setString(0, v); }
  @$pb.TagNumber(1)
  $core.bool hasProjectID() => $_has(0);
  @$pb.TagNumber(1)
  void clearProjectID() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get entityRefID => $_getSZ(1);
  @$pb.TagNumber(2)
  set entityRefID($core.String v) { $_setString(1, v); }
  @$pb.TagNumber(2)
  $core.bool hasEntityRefID() => $_has(1);
  @$pb.TagNumber(2)
  void clearEntityRefID() => $_clearField(2);

  @$pb.TagNumber(3)
  EntityRefType get entityRefType => $_getN(2);
  @$pb.TagNumber(3)
  set entityRefType(EntityRefType v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasEntityRefType() => $_has(2);
  @$pb.TagNumber(3)
  void clearEntityRefType() => $_clearField(3);

  @$pb.TagNumber(4)
  $pb.PbList<$core.String> get allowedRoles => $_getList(3);

  @$pb.TagNumber(5)
  $core.bool get allowAllRoles => $_getBF(4);
  @$pb.TagNumber(5)
  set allowAllRoles($core.bool v) { $_setBool(4, v); }
  @$pb.TagNumber(5)
  $core.bool hasAllowAllRoles() => $_has(4);
  @$pb.TagNumber(5)
  void clearAllowAllRoles() => $_clearField(5);
}

class PutUserGroupsRequest extends $pb.GeneratedMessage {
  factory PutUserGroupsRequest({
    $3.RequestProjectHeader? header,
    $core.String? entityRefID,
    EntityRefType? entityRefType,
    $core.Iterable<$core.String>? allowedRoles,
    $core.bool? allowAllRoles,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (entityRefID != null) {
      $result.entityRefID = entityRefID;
    }
    if (entityRefType != null) {
      $result.entityRefType = entityRefType;
    }
    if (allowedRoles != null) {
      $result.allowedRoles.addAll(allowedRoles);
    }
    if (allowAllRoles != null) {
      $result.allowAllRoles = allowAllRoles;
    }
    return $result;
  }
  PutUserGroupsRequest._() : super();
  factory PutUserGroupsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory PutUserGroupsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PutUserGroupsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
    ..aOS(2, _omitFieldNames ? '' : 'EntityRefID', protoName: 'EntityRefID')
    ..e<EntityRefType>(3, _omitFieldNames ? '' : 'EntityRefType', $pb.PbFieldType.OE, protoName: 'EntityRefType', defaultOrMaker: EntityRefType.REF_TYPE_UNKNOWN, valueOf: EntityRefType.valueOf, enumValues: EntityRefType.values)
    ..pPS(4, _omitFieldNames ? '' : 'AllowedRoles', protoName: 'AllowedRoles')
    ..aOB(5, _omitFieldNames ? '' : 'AllowAllRoles', protoName: 'AllowAllRoles')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.RequestProjectHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.RequestProjectHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.RequestProjectHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  $core.String get entityRefID => $_getSZ(1);
  @$pb.TagNumber(2)
  set entityRefID($core.String v) { $_setString(1, v); }
  @$pb.TagNumber(2)
  $core.bool hasEntityRefID() => $_has(1);
  @$pb.TagNumber(2)
  void clearEntityRefID() => $_clearField(2);

  @$pb.TagNumber(3)
  EntityRefType get entityRefType => $_getN(2);
  @$pb.TagNumber(3)
  set entityRefType(EntityRefType v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasEntityRefType() => $_has(2);
  @$pb.TagNumber(3)
  void clearEntityRefType() => $_clearField(3);

  @$pb.TagNumber(4)
  $pb.PbList<$core.String> get allowedRoles => $_getList(3);

  @$pb.TagNumber(5)
  $core.bool get allowAllRoles => $_getBF(4);
  @$pb.TagNumber(5)
  set allowAllRoles($core.bool v) { $_setBool(4, v); }
  @$pb.TagNumber(5)
  $core.bool hasAllowAllRoles() => $_has(4);
  @$pb.TagNumber(5)
  void clearAllowAllRoles() => $_clearField(5);
}

class PutUserGroupsResult extends $pb.GeneratedMessage {
  factory PutUserGroupsResult({
    UserGroup? userGroup,
  }) {
    final $result = create();
    if (userGroup != null) {
      $result.userGroup = userGroup;
    }
    return $result;
  }
  PutUserGroupsResult._() : super();
  factory PutUserGroupsResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory PutUserGroupsResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  UserGroup get userGroup => $_getN(0);
  @$pb.TagNumber(1)
  set userGroup(UserGroup v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasUserGroup() => $_has(0);
  @$pb.TagNumber(1)
  void clearUserGroup() => $_clearField(1);
  @$pb.TagNumber(1)
  UserGroup ensureUserGroup() => $_ensure(0);
}

class GetUserGroupsRequest extends $pb.GeneratedMessage {
  factory GetUserGroupsRequest({
    $3.RequestProjectHeader? header,
    $core.String? entityRefID,
    EntityRefType? entityRefType,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (entityRefID != null) {
      $result.entityRefID = entityRefID;
    }
    if (entityRefType != null) {
      $result.entityRefType = entityRefType;
    }
    return $result;
  }
  GetUserGroupsRequest._() : super();
  factory GetUserGroupsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory GetUserGroupsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetUserGroupsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
    ..aOS(2, _omitFieldNames ? '' : 'EntityRefID', protoName: 'EntityRefID')
    ..e<EntityRefType>(3, _omitFieldNames ? '' : 'EntityRefType', $pb.PbFieldType.OE, protoName: 'EntityRefType', defaultOrMaker: EntityRefType.REF_TYPE_UNKNOWN, valueOf: EntityRefType.valueOf, enumValues: EntityRefType.values)
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.RequestProjectHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.RequestProjectHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.RequestProjectHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  $core.String get entityRefID => $_getSZ(1);
  @$pb.TagNumber(2)
  set entityRefID($core.String v) { $_setString(1, v); }
  @$pb.TagNumber(2)
  $core.bool hasEntityRefID() => $_has(1);
  @$pb.TagNumber(2)
  void clearEntityRefID() => $_clearField(2);

  @$pb.TagNumber(3)
  EntityRefType get entityRefType => $_getN(2);
  @$pb.TagNumber(3)
  set entityRefType(EntityRefType v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasEntityRefType() => $_has(2);
  @$pb.TagNumber(3)
  void clearEntityRefType() => $_clearField(3);
}

class GetUserGroupsResult extends $pb.GeneratedMessage {
  factory GetUserGroupsResult({
    UserGroup? userGroup,
  }) {
    final $result = create();
    if (userGroup != null) {
      $result.userGroup = userGroup;
    }
    return $result;
  }
  GetUserGroupsResult._() : super();
  factory GetUserGroupsResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory GetUserGroupsResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  UserGroup get userGroup => $_getN(0);
  @$pb.TagNumber(1)
  set userGroup(UserGroup v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasUserGroup() => $_has(0);
  @$pb.TagNumber(1)
  void clearUserGroup() => $_clearField(1);
  @$pb.TagNumber(1)
  UserGroup ensureUserGroup() => $_ensure(0);
}

class DeleteUserGroupsRequest extends $pb.GeneratedMessage {
  factory DeleteUserGroupsRequest({
    $3.RequestProjectHeader? header,
    $core.String? entityRefID,
    EntityRefType? entityRefType,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (entityRefID != null) {
      $result.entityRefID = entityRefID;
    }
    if (entityRefType != null) {
      $result.entityRefType = entityRefType;
    }
    return $result;
  }
  DeleteUserGroupsRequest._() : super();
  factory DeleteUserGroupsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory DeleteUserGroupsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteUserGroupsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
    ..aOS(2, _omitFieldNames ? '' : 'EntityRefID', protoName: 'EntityRefID')
    ..e<EntityRefType>(3, _omitFieldNames ? '' : 'EntityRefType', $pb.PbFieldType.OE, protoName: 'EntityRefType', defaultOrMaker: EntityRefType.REF_TYPE_UNKNOWN, valueOf: EntityRefType.valueOf, enumValues: EntityRefType.values)
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.RequestProjectHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.RequestProjectHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.RequestProjectHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  $core.String get entityRefID => $_getSZ(1);
  @$pb.TagNumber(2)
  set entityRefID($core.String v) { $_setString(1, v); }
  @$pb.TagNumber(2)
  $core.bool hasEntityRefID() => $_has(1);
  @$pb.TagNumber(2)
  void clearEntityRefID() => $_clearField(2);

  @$pb.TagNumber(3)
  EntityRefType get entityRefType => $_getN(2);
  @$pb.TagNumber(3)
  set entityRefType(EntityRefType v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasEntityRefType() => $_has(2);
  @$pb.TagNumber(3)
  void clearEntityRefType() => $_clearField(3);
}

class DeleteUserGroupsResult extends $pb.GeneratedMessage {
  factory DeleteUserGroupsResult() => create();
  DeleteUserGroupsResult._() : super();
  factory DeleteUserGroupsResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory DeleteUserGroupsResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

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

class ListUserGroupsRequest extends $pb.GeneratedMessage {
  factory ListUserGroupsRequest({
    $3.RequestProjectHeader? header,
    EntityRefType? entityRefType,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (entityRefType != null) {
      $result.entityRefType = entityRefType;
    }
    return $result;
  }
  ListUserGroupsRequest._() : super();
  factory ListUserGroupsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory ListUserGroupsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListUserGroupsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
    ..e<EntityRefType>(2, _omitFieldNames ? '' : 'EntityRefType', $pb.PbFieldType.OE, protoName: 'EntityRefType', defaultOrMaker: EntityRefType.REF_TYPE_UNKNOWN, valueOf: EntityRefType.valueOf, enumValues: EntityRefType.values)
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.RequestProjectHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.RequestProjectHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.RequestProjectHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  EntityRefType get entityRefType => $_getN(1);
  @$pb.TagNumber(2)
  set entityRefType(EntityRefType v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasEntityRefType() => $_has(1);
  @$pb.TagNumber(2)
  void clearEntityRefType() => $_clearField(2);
}

class ListUserGroupsResult extends $pb.GeneratedMessage {
  factory ListUserGroupsResult({
    $core.Iterable<UserGroup>? userGroups,
  }) {
    final $result = create();
    if (userGroups != null) {
      $result.userGroups.addAll(userGroups);
    }
    return $result;
  }
  ListUserGroupsResult._() : super();
  factory ListUserGroupsResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory ListUserGroupsResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $pb.PbList<UserGroup> get userGroups => $_getList(0);
}


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