//
//  Generated code. Do not modify.
//  source: collabClickhouseStatement.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:fixnum/fixnum.dart' as $fixnum;
import 'package:protobuf/protobuf.dart' as $pb;

import 'claim.pb.dart' as $71;
import 'metadata.pb.dart' as $72;

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

/// ClickHouseInput Proto message for clickhouse streaming process
class CollabClickHouseInput extends $pb.GeneratedMessage {
  factory CollabClickHouseInput({
    CollabClickhouseElements? clickhouseElements,
    $core.Iterable<$72.MetadatasToApply>? metadatasToApply,
  }) {
    final $result = create();
    if (clickhouseElements != null) {
      $result.clickhouseElements = clickhouseElements;
    }
    if (metadatasToApply != null) {
      $result.metadatasToApply.addAll(metadatasToApply);
    }
    return $result;
  }
  CollabClickHouseInput._() : super();
  factory CollabClickHouseInput.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory CollabClickHouseInput.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  CollabClickhouseElements get clickhouseElements => $_getN(0);
  @$pb.TagNumber(1)
  set clickhouseElements(CollabClickhouseElements v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasClickhouseElements() => $_has(0);
  @$pb.TagNumber(1)
  void clearClickhouseElements() => $_clearField(1);
  @$pb.TagNumber(1)
  CollabClickhouseElements ensureClickhouseElements() => $_ensure(0);

  @$pb.TagNumber(2)
  $pb.PbList<$72.MetadatasToApply> get metadatasToApply => $_getList(1);
}

enum CollabClickhouseElement_Content {
  claim, 
  notSet
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

  CollabClickhouseElement_Content whichContent() => _CollabClickhouseElement_ContentByTag[$_whichOneof(0)]!;
  void clearContent() => $_clearField($_whichOneof(0));

  @$pb.TagNumber(1)
  $71.Claim get claim => $_getN(0);
  @$pb.TagNumber(1)
  set claim($71.Claim v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasClaim() => $_has(0);
  @$pb.TagNumber(1)
  void clearClaim() => $_clearField(1);
  @$pb.TagNumber(1)
  $71.Claim ensureClaim() => $_ensure(0);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

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

/// CollabCheckpointData  Proto message for clickhouse streaming process
class CollabCheckpointData extends $pb.GeneratedMessage {
  factory CollabCheckpointData({
    $fixnum.Int64? idCheckpoint,
    $core.String? project,
    $core.Iterable<CollabClickHouseInput>? clickHouseInput,
  }) {
    final $result = create();
    if (idCheckpoint != null) {
      $result.idCheckpoint = idCheckpoint;
    }
    if (project != null) {
      $result.project = project;
    }
    if (clickHouseInput != null) {
      $result.clickHouseInput.addAll(clickHouseInput);
    }
    return $result;
  }
  CollabCheckpointData._() : super();
  factory CollabCheckpointData.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory CollabCheckpointData.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $fixnum.Int64 get idCheckpoint => $_getI64(0);
  @$pb.TagNumber(1)
  set idCheckpoint($fixnum.Int64 v) { $_setInt64(0, v); }
  @$pb.TagNumber(1)
  $core.bool hasIdCheckpoint() => $_has(0);
  @$pb.TagNumber(1)
  void clearIdCheckpoint() => $_clearField(1);

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

  @$pb.TagNumber(3)
  $pb.PbList<CollabClickHouseInput> get clickHouseInput => $_getList(2);
}


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