// This is a generated file - do not edit.
//
// Generated from user-groups.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 'shared.pb.dart' as $1;
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._();

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

  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('See https://github.com/google/protobuf.dart/issues/998.')
  UserGroup clone() => UserGroup()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  UserGroup copyWith(void Function(UserGroup) updates) => super.copyWith((message) => updates(message as UserGroup)) as UserGroup;

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

  @$core.pragma('dart2js:noInline')
  static UserGroup create() => UserGroup._();
  @$core.override
  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 value) => $_setString(0, value);
  @$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 value) => $_setString(1, value);
  @$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 value) => $_setField(3, value);
  @$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 value) => $_setBool(4, value);
  @$pb.TagNumber(5)
  $core.bool hasAllowAllRoles() => $_has(4);
  @$pb.TagNumber(5)
  void clearAllowAllRoles() => $_clearField(5);
}

class PutUserGroupsRequest extends $pb.GeneratedMessage {
  factory PutUserGroupsRequest({
    $1.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._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PutUserGroupsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$1.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $1.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('See https://github.com/google/protobuf.dart/issues/998.')
  PutUserGroupsRequest clone() => PutUserGroupsRequest()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  PutUserGroupsRequest copyWith(void Function(PutUserGroupsRequest) updates) => super.copyWith((message) => updates(message as PutUserGroupsRequest)) as PutUserGroupsRequest;

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

  @$core.pragma('dart2js:noInline')
  static PutUserGroupsRequest create() => PutUserGroupsRequest._();
  @$core.override
  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)
  $1.RequestProjectHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($1.RequestProjectHeader value) => $_setField(1, value);
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $1.RequestProjectHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  $core.String get entityRefID => $_getSZ(1);
  @$pb.TagNumber(2)
  set entityRefID($core.String value) => $_setString(1, value);
  @$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 value) => $_setField(3, value);
  @$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 value) => $_setBool(4, value);
  @$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._();

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

  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('See https://github.com/google/protobuf.dart/issues/998.')
  PutUserGroupsResult clone() => PutUserGroupsResult()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  PutUserGroupsResult copyWith(void Function(PutUserGroupsResult) updates) => super.copyWith((message) => updates(message as PutUserGroupsResult)) as PutUserGroupsResult;

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

  @$core.pragma('dart2js:noInline')
  static PutUserGroupsResult create() => PutUserGroupsResult._();
  @$core.override
  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 value) => $_setField(1, value);
  @$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({
    $1.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._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetUserGroupsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$1.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $1.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('See https://github.com/google/protobuf.dart/issues/998.')
  GetUserGroupsRequest clone() => GetUserGroupsRequest()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  GetUserGroupsRequest copyWith(void Function(GetUserGroupsRequest) updates) => super.copyWith((message) => updates(message as GetUserGroupsRequest)) as GetUserGroupsRequest;

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

  @$core.pragma('dart2js:noInline')
  static GetUserGroupsRequest create() => GetUserGroupsRequest._();
  @$core.override
  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)
  $1.RequestProjectHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($1.RequestProjectHeader value) => $_setField(1, value);
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $1.RequestProjectHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  $core.String get entityRefID => $_getSZ(1);
  @$pb.TagNumber(2)
  set entityRefID($core.String value) => $_setString(1, value);
  @$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 value) => $_setField(3, value);
  @$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._();

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

  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('See https://github.com/google/protobuf.dart/issues/998.')
  GetUserGroupsResult clone() => GetUserGroupsResult()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  GetUserGroupsResult copyWith(void Function(GetUserGroupsResult) updates) => super.copyWith((message) => updates(message as GetUserGroupsResult)) as GetUserGroupsResult;

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

  @$core.pragma('dart2js:noInline')
  static GetUserGroupsResult create() => GetUserGroupsResult._();
  @$core.override
  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 value) => $_setField(1, value);
  @$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({
    $1.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._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteUserGroupsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$1.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $1.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('See https://github.com/google/protobuf.dart/issues/998.')
  DeleteUserGroupsRequest clone() => DeleteUserGroupsRequest()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  DeleteUserGroupsRequest copyWith(void Function(DeleteUserGroupsRequest) updates) => super.copyWith((message) => updates(message as DeleteUserGroupsRequest)) as DeleteUserGroupsRequest;

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

  @$core.pragma('dart2js:noInline')
  static DeleteUserGroupsRequest create() => DeleteUserGroupsRequest._();
  @$core.override
  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)
  $1.RequestProjectHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($1.RequestProjectHeader value) => $_setField(1, value);
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $1.RequestProjectHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  $core.String get entityRefID => $_getSZ(1);
  @$pb.TagNumber(2)
  set entityRefID($core.String value) => $_setString(1, value);
  @$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 value) => $_setField(3, value);
  @$pb.TagNumber(3)
  $core.bool hasEntityRefType() => $_has(2);
  @$pb.TagNumber(3)
  void clearEntityRefType() => $_clearField(3);
}

class DeleteUserGroupsResult extends $pb.GeneratedMessage {
  factory DeleteUserGroupsResult() => create();

  DeleteUserGroupsResult._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteUserGroupsResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..hasRequiredFields = false
  ;

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

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

  @$core.pragma('dart2js:noInline')
  static DeleteUserGroupsResult create() => DeleteUserGroupsResult._();
  @$core.override
  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({
    $1.RequestProjectHeader? header,
    EntityRefType? entityRefType,
  }) {
    final result = create();
    if (header != null) result.header = header;
    if (entityRefType != null) result.entityRefType = entityRefType;
    return result;
  }

  ListUserGroupsRequest._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListUserGroupsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$1.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $1.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('See https://github.com/google/protobuf.dart/issues/998.')
  ListUserGroupsRequest clone() => ListUserGroupsRequest()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ListUserGroupsRequest copyWith(void Function(ListUserGroupsRequest) updates) => super.copyWith((message) => updates(message as ListUserGroupsRequest)) as ListUserGroupsRequest;

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

  @$core.pragma('dart2js:noInline')
  static ListUserGroupsRequest create() => ListUserGroupsRequest._();
  @$core.override
  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)
  $1.RequestProjectHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($1.RequestProjectHeader value) => $_setField(1, value);
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $1.RequestProjectHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  EntityRefType get entityRefType => $_getN(1);
  @$pb.TagNumber(2)
  set entityRefType(EntityRefType value) => $_setField(2, value);
  @$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._();

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

  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('See https://github.com/google/protobuf.dart/issues/998.')
  ListUserGroupsResult clone() => ListUserGroupsResult()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ListUserGroupsResult copyWith(void Function(ListUserGroupsResult) updates) => super.copyWith((message) => updates(message as ListUserGroupsResult)) as ListUserGroupsResult;

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

  @$core.pragma('dart2js:noInline')
  static ListUserGroupsResult create() => ListUserGroupsResult._();
  @$core.override
  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 $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
