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

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

/// Event Payload
class MetadataCreatedPayload extends $pb.GeneratedMessage {
  factory MetadataCreatedPayload({
    $core.bool? isSegmentationKey,
    $core.String? domain,
    $core.String? entity,
    $core.String? parent,
    $core.String? name,
    $core.String? type,
    $core.bool? isMandatory,
    $core.String? regularExpression,
    $72.MetadataType? typology,
    $core.Iterable<$core.String>? enumeration,
    $72.MetadataDisplayType? showOnCreation,
  }) {
    final $result = create();
    if (isSegmentationKey != null) {
      $result.isSegmentationKey = isSegmentationKey;
    }
    if (domain != null) {
      $result.domain = domain;
    }
    if (entity != null) {
      $result.entity = entity;
    }
    if (parent != null) {
      $result.parent = parent;
    }
    if (name != null) {
      $result.name = name;
    }
    if (type != null) {
      $result.type = type;
    }
    if (isMandatory != null) {
      $result.isMandatory = isMandatory;
    }
    if (regularExpression != null) {
      $result.regularExpression = regularExpression;
    }
    if (typology != null) {
      $result.typology = typology;
    }
    if (enumeration != null) {
      $result.enumeration.addAll(enumeration);
    }
    if (showOnCreation != null) {
      $result.showOnCreation = showOnCreation;
    }
    return $result;
  }
  MetadataCreatedPayload._() : super();
  factory MetadataCreatedPayload.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory MetadataCreatedPayload.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MetadataCreatedPayload', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOB(2, _omitFieldNames ? '' : 'IsSegmentationKey', protoName: 'IsSegmentationKey')
    ..aOS(3, _omitFieldNames ? '' : 'Domain', protoName: 'Domain')
    ..aOS(4, _omitFieldNames ? '' : 'Entity', protoName: 'Entity')
    ..aOS(5, _omitFieldNames ? '' : 'Parent', protoName: 'Parent')
    ..aOS(6, _omitFieldNames ? '' : 'Name', protoName: 'Name')
    ..aOS(7, _omitFieldNames ? '' : 'Type', protoName: 'Type')
    ..aOB(8, _omitFieldNames ? '' : 'IsMandatory', protoName: 'IsMandatory')
    ..aOS(10, _omitFieldNames ? '' : 'RegularExpression', protoName: 'RegularExpression')
    ..e<$72.MetadataType>(11, _omitFieldNames ? '' : 'Typology', $pb.PbFieldType.OE, protoName: 'Typology', defaultOrMaker: $72.MetadataType.TYPE_UNKNOWN, valueOf: $72.MetadataType.valueOf, enumValues: $72.MetadataType.values)
    ..pPS(12, _omitFieldNames ? '' : 'Enumeration', protoName: 'Enumeration')
    ..e<$72.MetadataDisplayType>(13, _omitFieldNames ? '' : 'ShowOnCreation', $pb.PbFieldType.OE, protoName: 'ShowOnCreation', defaultOrMaker: $72.MetadataDisplayType.DISPLAY_UNKNOWN, valueOf: $72.MetadataDisplayType.valueOf, enumValues: $72.MetadataDisplayType.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')
  MetadataCreatedPayload clone() => MetadataCreatedPayload()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  MetadataCreatedPayload copyWith(void Function(MetadataCreatedPayload) updates) => super.copyWith((message) => updates(message as MetadataCreatedPayload)) as MetadataCreatedPayload;

  $pb.BuilderInfo get info_ => _i;

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

  /// The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements
  @$pb.TagNumber(2)
  $core.bool get isSegmentationKey => $_getBF(0);
  @$pb.TagNumber(2)
  set isSegmentationKey($core.bool v) { $_setBool(0, v); }
  @$pb.TagNumber(2)
  $core.bool hasIsSegmentationKey() => $_has(0);
  @$pb.TagNumber(2)
  void clearIsSegmentationKey() => $_clearField(2);

  @$pb.TagNumber(3)
  $core.String get domain => $_getSZ(1);
  @$pb.TagNumber(3)
  set domain($core.String v) { $_setString(1, v); }
  @$pb.TagNumber(3)
  $core.bool hasDomain() => $_has(1);
  @$pb.TagNumber(3)
  void clearDomain() => $_clearField(3);

  /// Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"
  @$pb.TagNumber(4)
  $core.String get entity => $_getSZ(2);
  @$pb.TagNumber(4)
  set entity($core.String v) { $_setString(2, v); }
  @$pb.TagNumber(4)
  $core.bool hasEntity() => $_has(2);
  @$pb.TagNumber(4)
  void clearEntity() => $_clearField(4);

  /// Where the metadata is located, either \"Payload.Metadata\" or \"Payload.Goods.SegmentationKeys\"
  @$pb.TagNumber(5)
  $core.String get parent => $_getSZ(3);
  @$pb.TagNumber(5)
  set parent($core.String v) { $_setString(3, v); }
  @$pb.TagNumber(5)
  $core.bool hasParent() => $_has(3);
  @$pb.TagNumber(5)
  void clearParent() => $_clearField(5);

  @$pb.TagNumber(6)
  $core.String get name => $_getSZ(4);
  @$pb.TagNumber(6)
  set name($core.String v) { $_setString(4, v); }
  @$pb.TagNumber(6)
  $core.bool hasName() => $_has(4);
  @$pb.TagNumber(6)
  void clearName() => $_clearField(6);

  /// Type attached to the metadata, can be anything such as Item, Actor, Order...
  @$pb.TagNumber(7)
  $core.String get type => $_getSZ(5);
  @$pb.TagNumber(7)
  set type($core.String v) { $_setString(5, v); }
  @$pb.TagNumber(7)
  $core.bool hasType() => $_has(5);
  @$pb.TagNumber(7)
  void clearType() => $_clearField(7);

  @$pb.TagNumber(8)
  $core.bool get isMandatory => $_getBF(6);
  @$pb.TagNumber(8)
  set isMandatory($core.bool v) { $_setBool(6, v); }
  @$pb.TagNumber(8)
  $core.bool hasIsMandatory() => $_has(6);
  @$pb.TagNumber(8)
  void clearIsMandatory() => $_clearField(8);

  @$pb.TagNumber(10)
  $core.String get regularExpression => $_getSZ(7);
  @$pb.TagNumber(10)
  set regularExpression($core.String v) { $_setString(7, v); }
  @$pb.TagNumber(10)
  $core.bool hasRegularExpression() => $_has(7);
  @$pb.TagNumber(10)
  void clearRegularExpression() => $_clearField(10);

  @$pb.TagNumber(11)
  $72.MetadataType get typology => $_getN(8);
  @$pb.TagNumber(11)
  set typology($72.MetadataType v) { $_setField(11, v); }
  @$pb.TagNumber(11)
  $core.bool hasTypology() => $_has(8);
  @$pb.TagNumber(11)
  void clearTypology() => $_clearField(11);

  /// Customizable enumeration
  @$pb.TagNumber(12)
  $pb.PbList<$core.String> get enumeration => $_getList(9);

  @$pb.TagNumber(13)
  $72.MetadataDisplayType get showOnCreation => $_getN(10);
  @$pb.TagNumber(13)
  set showOnCreation($72.MetadataDisplayType v) { $_setField(13, v); }
  @$pb.TagNumber(13)
  $core.bool hasShowOnCreation() => $_has(10);
  @$pb.TagNumber(13)
  void clearShowOnCreation() => $_clearField(13);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

/// Event message
class MetadataCreatedEvent extends $pb.GeneratedMessage {
  factory MetadataCreatedEvent({
    $3.EventHeader? header,
    $3.EntityID? iD,
    MetadataCreatedPayload? payload,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (iD != null) {
      $result.iD = iD;
    }
    if (payload != null) {
      $result.payload = payload;
    }
    return $result;
  }
  MetadataCreatedEvent._() : super();
  factory MetadataCreatedEvent.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory MetadataCreatedEvent.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

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

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

  @$pb.TagNumber(2)
  $3.EntityID get iD => $_getN(1);
  @$pb.TagNumber(2)
  set iD($3.EntityID v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasID() => $_has(1);
  @$pb.TagNumber(2)
  void clearID() => $_clearField(2);
  @$pb.TagNumber(2)
  $3.EntityID ensureID() => $_ensure(1);

  @$pb.TagNumber(3)
  MetadataCreatedPayload get payload => $_getN(2);
  @$pb.TagNumber(3)
  set payload(MetadataCreatedPayload v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasPayload() => $_has(2);
  @$pb.TagNumber(3)
  void clearPayload() => $_clearField(3);
  @$pb.TagNumber(3)
  MetadataCreatedPayload ensurePayload() => $_ensure(2);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(3)
  MetadataCreatedPayload get payload => $_getN(2);
  @$pb.TagNumber(3)
  set payload(MetadataCreatedPayload v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasPayload() => $_has(2);
  @$pb.TagNumber(3)
  void clearPayload() => $_clearField(3);
  @$pb.TagNumber(3)
  MetadataCreatedPayload ensurePayload() => $_ensure(2);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(3)
  MetadataDeletedPayload get payload => $_getN(2);
  @$pb.TagNumber(3)
  set payload(MetadataDeletedPayload v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasPayload() => $_has(2);
  @$pb.TagNumber(3)
  void clearPayload() => $_clearField(3);
  @$pb.TagNumber(3)
  MetadataDeletedPayload ensurePayload() => $_ensure(2);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

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

  @$pb.TagNumber(2)
  $3.EntityID get iD => $_getN(1);
  @$pb.TagNumber(2)
  set iD($3.EntityID v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasID() => $_has(1);
  @$pb.TagNumber(2)
  void clearID() => $_clearField(2);
  @$pb.TagNumber(2)
  $3.EntityID ensureID() => $_ensure(1);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

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

  @$pb.TagNumber(2)
  $3.EntityID get iD => $_getN(1);
  @$pb.TagNumber(2)
  set iD($3.EntityID v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasID() => $_has(1);
  @$pb.TagNumber(2)
  void clearID() => $_clearField(2);
  @$pb.TagNumber(2)
  $3.EntityID ensureID() => $_ensure(1);
}


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