//
//  Generated code. Do not modify.
//  source: object_db.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;

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

///
/// object in cassandra DB
class ObjectDB extends $pb.GeneratedMessage {
  factory ObjectDB({
    $core.String? project,
    $core.String? id,
    $3.DateTime? lastEventTS,
    $core.String? lastEventName,
    $core.List<$core.int>? entity,
  }) {
    final $result = create();
    if (project != null) {
      $result.project = project;
    }
    if (id != null) {
      $result.id = id;
    }
    if (lastEventTS != null) {
      $result.lastEventTS = lastEventTS;
    }
    if (lastEventName != null) {
      $result.lastEventName = lastEventName;
    }
    if (entity != null) {
      $result.entity = entity;
    }
    return $result;
  }
  ObjectDB._() : super();
  factory ObjectDB.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory ObjectDB.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ObjectDB', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'project')
    ..aOS(2, _omitFieldNames ? '' : 'id')
    ..aOM<$3.DateTime>(3, _omitFieldNames ? '' : 'lastEventTS', protoName: 'lastEventTS', subBuilder: $3.DateTime.create)
    ..aOS(4, _omitFieldNames ? '' : 'lastEventName', protoName: 'lastEventName')
    ..a<$core.List<$core.int>>(5, _omitFieldNames ? '' : 'entity', $pb.PbFieldType.OY)
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

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

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

  @$pb.TagNumber(3)
  $3.DateTime get lastEventTS => $_getN(2);
  @$pb.TagNumber(3)
  set lastEventTS($3.DateTime v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasLastEventTS() => $_has(2);
  @$pb.TagNumber(3)
  void clearLastEventTS() => $_clearField(3);
  @$pb.TagNumber(3)
  $3.DateTime ensureLastEventTS() => $_ensure(2);

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

  @$pb.TagNumber(5)
  $core.List<$core.int> get entity => $_getN(4);
  @$pb.TagNumber(5)
  set entity($core.List<$core.int> v) { $_setBytes(4, v); }
  @$pb.TagNumber(5)
  $core.bool hasEntity() => $_has(4);
  @$pb.TagNumber(5)
  void clearEntity() => $_clearField(5);
}


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