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

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

/// Create
class CreateAttachmentTypeRequest extends $pb.GeneratedMessage {
  factory CreateAttachmentTypeRequest({
    $3.RequestProjectHeader? header,
    $core.String? code,
    $3.EntityType? entity,
    $core.String? label,
    $3.SharePolicy? sharePolicy,
    $core.Iterable<$core.String>? managerRoles,
    $core.Iterable<$core.String>? viewerRoles,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (code != null) {
      $result.code = code;
    }
    if (entity != null) {
      $result.entity = entity;
    }
    if (label != null) {
      $result.label = label;
    }
    if (sharePolicy != null) {
      $result.sharePolicy = sharePolicy;
    }
    if (managerRoles != null) {
      $result.managerRoles.addAll(managerRoles);
    }
    if (viewerRoles != null) {
      $result.viewerRoles.addAll(viewerRoles);
    }
    return $result;
  }
  CreateAttachmentTypeRequest._() : super();
  factory CreateAttachmentTypeRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory CreateAttachmentTypeRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreateAttachmentTypeRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
    ..aOS(2, _omitFieldNames ? '' : 'Code', protoName: 'Code')
    ..e<$3.EntityType>(3, _omitFieldNames ? '' : 'Entity', $pb.PbFieldType.OE, protoName: 'Entity', defaultOrMaker: $3.EntityType.ENTITY_TYPE_UNKNOWN, valueOf: $3.EntityType.valueOf, enumValues: $3.EntityType.values)
    ..aOS(4, _omitFieldNames ? '' : 'Label', protoName: 'Label')
    ..e<$3.SharePolicy>(5, _omitFieldNames ? '' : 'SharePolicy', $pb.PbFieldType.OE, protoName: 'SharePolicy', defaultOrMaker: $3.SharePolicy.SHARE_POLICY_UNKNOWN, valueOf: $3.SharePolicy.valueOf, enumValues: $3.SharePolicy.values)
    ..pPS(6, _omitFieldNames ? '' : 'ManagerRoles', protoName: 'ManagerRoles')
    ..pPS(7, _omitFieldNames ? '' : 'ViewerRoles', protoName: 'ViewerRoles')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static CreateAttachmentTypeRequest create() => CreateAttachmentTypeRequest._();
  CreateAttachmentTypeRequest createEmptyInstance() => create();
  static $pb.PbList<CreateAttachmentTypeRequest> createRepeated() => $pb.PbList<CreateAttachmentTypeRequest>();
  @$core.pragma('dart2js:noInline')
  static CreateAttachmentTypeRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CreateAttachmentTypeRequest>(create);
  static CreateAttachmentTypeRequest? _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 code => $_getSZ(1);
  @$pb.TagNumber(2)
  set code($core.String v) { $_setString(1, v); }
  @$pb.TagNumber(2)
  $core.bool hasCode() => $_has(1);
  @$pb.TagNumber(2)
  void clearCode() => $_clearField(2);

  @$pb.TagNumber(3)
  $3.EntityType get entity => $_getN(2);
  @$pb.TagNumber(3)
  set entity($3.EntityType v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasEntity() => $_has(2);
  @$pb.TagNumber(3)
  void clearEntity() => $_clearField(3);

  @$pb.TagNumber(4)
  $core.String get label => $_getSZ(3);
  @$pb.TagNumber(4)
  set label($core.String v) { $_setString(3, v); }
  @$pb.TagNumber(4)
  $core.bool hasLabel() => $_has(3);
  @$pb.TagNumber(4)
  void clearLabel() => $_clearField(4);

  @$pb.TagNumber(5)
  $3.SharePolicy get sharePolicy => $_getN(4);
  @$pb.TagNumber(5)
  set sharePolicy($3.SharePolicy v) { $_setField(5, v); }
  @$pb.TagNumber(5)
  $core.bool hasSharePolicy() => $_has(4);
  @$pb.TagNumber(5)
  void clearSharePolicy() => $_clearField(5);

  @$pb.TagNumber(6)
  $pb.PbList<$core.String> get managerRoles => $_getList(5);

  @$pb.TagNumber(7)
  $pb.PbList<$core.String> get viewerRoles => $_getList(6);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.AttachmentType get attachmentType => $_getN(0);
  @$pb.TagNumber(1)
  set attachmentType($3.AttachmentType v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasAttachmentType() => $_has(0);
  @$pb.TagNumber(1)
  void clearAttachmentType() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.AttachmentType ensureAttachmentType() => $_ensure(0);
}

/// Get
class GetAttachmentTypeRequest extends $pb.GeneratedMessage {
  factory GetAttachmentTypeRequest({
    $3.RequestProjectHeader? header,
  @$core.Deprecated('This field is deprecated.')
    $core.String? code,
  @$core.Deprecated('This field is deprecated.')
    $3.EntityType? entity,
    $core.String? iD,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (code != null) {
      // ignore: deprecated_member_use_from_same_package
      $result.code = code;
    }
    if (entity != null) {
      // ignore: deprecated_member_use_from_same_package
      $result.entity = entity;
    }
    if (iD != null) {
      $result.iD = iD;
    }
    return $result;
  }
  GetAttachmentTypeRequest._() : super();
  factory GetAttachmentTypeRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory GetAttachmentTypeRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetAttachmentTypeRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
    ..aOS(2, _omitFieldNames ? '' : 'Code', protoName: 'Code')
    ..e<$3.EntityType>(3, _omitFieldNames ? '' : 'Entity', $pb.PbFieldType.OE, protoName: 'Entity', defaultOrMaker: $3.EntityType.ENTITY_TYPE_UNKNOWN, valueOf: $3.EntityType.valueOf, enumValues: $3.EntityType.values)
    ..aOS(4, _omitFieldNames ? '' : 'ID', protoName: 'ID')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(2)
  $core.String get code => $_getSZ(1);
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(2)
  set code($core.String v) { $_setString(1, v); }
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(2)
  $core.bool hasCode() => $_has(1);
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(2)
  void clearCode() => $_clearField(2);

  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(3)
  $3.EntityType get entity => $_getN(2);
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(3)
  set entity($3.EntityType v) { $_setField(3, v); }
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(3)
  $core.bool hasEntity() => $_has(2);
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(3)
  void clearEntity() => $_clearField(3);

  @$pb.TagNumber(4)
  $core.String get iD => $_getSZ(3);
  @$pb.TagNumber(4)
  set iD($core.String v) { $_setString(3, v); }
  @$pb.TagNumber(4)
  $core.bool hasID() => $_has(3);
  @$pb.TagNumber(4)
  void clearID() => $_clearField(4);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.AttachmentType get attachmentType => $_getN(0);
  @$pb.TagNumber(1)
  set attachmentType($3.AttachmentType v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasAttachmentType() => $_has(0);
  @$pb.TagNumber(1)
  void clearAttachmentType() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.AttachmentType ensureAttachmentType() => $_ensure(0);
}

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

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

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static ListAttachmentTypeRequest create() => ListAttachmentTypeRequest._();
  ListAttachmentTypeRequest createEmptyInstance() => create();
  static $pb.PbList<ListAttachmentTypeRequest> createRepeated() => $pb.PbList<ListAttachmentTypeRequest>();
  @$core.pragma('dart2js:noInline')
  static ListAttachmentTypeRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ListAttachmentTypeRequest>(create);
  static ListAttachmentTypeRequest? _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)
  $3.EntityType get entity => $_getN(1);
  @$pb.TagNumber(2)
  set entity($3.EntityType v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasEntity() => $_has(1);
  @$pb.TagNumber(2)
  void clearEntity() => $_clearField(2);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $pb.PbList<$3.AttachmentType> get attachmentTypes => $_getList(0);
}

/// Update
class UpdateAttachmentTypeRequest extends $pb.GeneratedMessage {
  factory UpdateAttachmentTypeRequest({
    $3.RequestProjectHeader? header,
  @$core.Deprecated('This field is deprecated.')
    $core.String? code,
  @$core.Deprecated('This field is deprecated.')
    $3.EntityType? entity,
    $core.String? label,
    $3.SharePolicy? sharePolicy,
    $core.String? iD,
    $core.Iterable<$core.String>? managerRoles,
    $core.Iterable<$core.String>? viewerRoles,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (code != null) {
      // ignore: deprecated_member_use_from_same_package
      $result.code = code;
    }
    if (entity != null) {
      // ignore: deprecated_member_use_from_same_package
      $result.entity = entity;
    }
    if (label != null) {
      $result.label = label;
    }
    if (sharePolicy != null) {
      $result.sharePolicy = sharePolicy;
    }
    if (iD != null) {
      $result.iD = iD;
    }
    if (managerRoles != null) {
      $result.managerRoles.addAll(managerRoles);
    }
    if (viewerRoles != null) {
      $result.viewerRoles.addAll(viewerRoles);
    }
    return $result;
  }
  UpdateAttachmentTypeRequest._() : super();
  factory UpdateAttachmentTypeRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory UpdateAttachmentTypeRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateAttachmentTypeRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
    ..aOS(2, _omitFieldNames ? '' : 'Code', protoName: 'Code')
    ..e<$3.EntityType>(3, _omitFieldNames ? '' : 'Entity', $pb.PbFieldType.OE, protoName: 'Entity', defaultOrMaker: $3.EntityType.ENTITY_TYPE_UNKNOWN, valueOf: $3.EntityType.valueOf, enumValues: $3.EntityType.values)
    ..aOS(4, _omitFieldNames ? '' : 'Label', protoName: 'Label')
    ..e<$3.SharePolicy>(5, _omitFieldNames ? '' : 'SharePolicy', $pb.PbFieldType.OE, protoName: 'SharePolicy', defaultOrMaker: $3.SharePolicy.SHARE_POLICY_UNKNOWN, valueOf: $3.SharePolicy.valueOf, enumValues: $3.SharePolicy.values)
    ..aOS(6, _omitFieldNames ? '' : 'ID', protoName: 'ID')
    ..pPS(7, _omitFieldNames ? '' : 'ManagerRoles', protoName: 'ManagerRoles')
    ..pPS(8, _omitFieldNames ? '' : 'ViewerRoles', protoName: 'ViewerRoles')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(2)
  $core.String get code => $_getSZ(1);
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(2)
  set code($core.String v) { $_setString(1, v); }
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(2)
  $core.bool hasCode() => $_has(1);
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(2)
  void clearCode() => $_clearField(2);

  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(3)
  $3.EntityType get entity => $_getN(2);
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(3)
  set entity($3.EntityType v) { $_setField(3, v); }
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(3)
  $core.bool hasEntity() => $_has(2);
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(3)
  void clearEntity() => $_clearField(3);

  @$pb.TagNumber(4)
  $core.String get label => $_getSZ(3);
  @$pb.TagNumber(4)
  set label($core.String v) { $_setString(3, v); }
  @$pb.TagNumber(4)
  $core.bool hasLabel() => $_has(3);
  @$pb.TagNumber(4)
  void clearLabel() => $_clearField(4);

  @$pb.TagNumber(5)
  $3.SharePolicy get sharePolicy => $_getN(4);
  @$pb.TagNumber(5)
  set sharePolicy($3.SharePolicy v) { $_setField(5, v); }
  @$pb.TagNumber(5)
  $core.bool hasSharePolicy() => $_has(4);
  @$pb.TagNumber(5)
  void clearSharePolicy() => $_clearField(5);

  @$pb.TagNumber(6)
  $core.String get iD => $_getSZ(5);
  @$pb.TagNumber(6)
  set iD($core.String v) { $_setString(5, v); }
  @$pb.TagNumber(6)
  $core.bool hasID() => $_has(5);
  @$pb.TagNumber(6)
  void clearID() => $_clearField(6);

  @$pb.TagNumber(7)
  $pb.PbList<$core.String> get managerRoles => $_getList(6);

  @$pb.TagNumber(8)
  $pb.PbList<$core.String> get viewerRoles => $_getList(7);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.AttachmentType get attachmentType => $_getN(0);
  @$pb.TagNumber(1)
  set attachmentType($3.AttachmentType v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasAttachmentType() => $_has(0);
  @$pb.TagNumber(1)
  void clearAttachmentType() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.AttachmentType ensureAttachmentType() => $_ensure(0);
}

/// Delete
class DeleteAttachmentTypeRequest extends $pb.GeneratedMessage {
  factory DeleteAttachmentTypeRequest({
    $3.RequestProjectHeader? header,
  @$core.Deprecated('This field is deprecated.')
    $core.String? code,
  @$core.Deprecated('This field is deprecated.')
    $3.EntityType? entity,
    $core.String? iD,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (code != null) {
      // ignore: deprecated_member_use_from_same_package
      $result.code = code;
    }
    if (entity != null) {
      // ignore: deprecated_member_use_from_same_package
      $result.entity = entity;
    }
    if (iD != null) {
      $result.iD = iD;
    }
    return $result;
  }
  DeleteAttachmentTypeRequest._() : super();
  factory DeleteAttachmentTypeRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory DeleteAttachmentTypeRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteAttachmentTypeRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.RequestProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestProjectHeader.create)
    ..aOS(2, _omitFieldNames ? '' : 'Code', protoName: 'Code')
    ..e<$3.EntityType>(3, _omitFieldNames ? '' : 'Entity', $pb.PbFieldType.OE, protoName: 'Entity', defaultOrMaker: $3.EntityType.ENTITY_TYPE_UNKNOWN, valueOf: $3.EntityType.valueOf, enumValues: $3.EntityType.values)
    ..aOS(4, _omitFieldNames ? '' : 'ID', protoName: 'ID')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(2)
  $core.String get code => $_getSZ(1);
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(2)
  set code($core.String v) { $_setString(1, v); }
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(2)
  $core.bool hasCode() => $_has(1);
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(2)
  void clearCode() => $_clearField(2);

  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(3)
  $3.EntityType get entity => $_getN(2);
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(3)
  set entity($3.EntityType v) { $_setField(3, v); }
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(3)
  $core.bool hasEntity() => $_has(2);
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(3)
  void clearEntity() => $_clearField(3);

  @$pb.TagNumber(4)
  $core.String get iD => $_getSZ(3);
  @$pb.TagNumber(4)
  set iD($core.String v) { $_setString(3, v); }
  @$pb.TagNumber(4)
  $core.bool hasID() => $_has(3);
  @$pb.TagNumber(4)
  void clearID() => $_clearField(4);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

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

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

  $pb.BuilderInfo get info_ => _i;

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

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

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

  $pb.BuilderInfo get info_ => _i;

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


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