// This is a generated file - do not edit.
//
// Generated from bilibili/metadata/device.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, prefer_relative_imports

import 'dart:core' as $core;

import 'package:fixnum/fixnum.dart' as $fixnum;
import 'package:protobuf/protobuf.dart' as $pb;

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

class Device extends $pb.GeneratedMessage {
  factory Device({
    $core.int? appId,
    $core.int? build,
    $core.String? buvid,
    $core.String? mobiApp,
    $core.String? platform,
    $core.String? device,
    $core.String? channel,
    $core.String? brand,
    $core.String? model,
    $core.String? osver,
    $core.String? fpLocal,
    $core.String? fpRemote,
    $core.String? versionName,
    $core.String? fp,
    $fixnum.Int64? fts,
    $core.String? guestId,
  }) {
    final result = create();
    if (appId != null) result.appId = appId;
    if (build != null) result.build = build;
    if (buvid != null) result.buvid = buvid;
    if (mobiApp != null) result.mobiApp = mobiApp;
    if (platform != null) result.platform = platform;
    if (device != null) result.device = device;
    if (channel != null) result.channel = channel;
    if (brand != null) result.brand = brand;
    if (model != null) result.model = model;
    if (osver != null) result.osver = osver;
    if (fpLocal != null) result.fpLocal = fpLocal;
    if (fpRemote != null) result.fpRemote = fpRemote;
    if (versionName != null) result.versionName = versionName;
    if (fp != null) result.fp = fp;
    if (fts != null) result.fts = fts;
    if (guestId != null) result.guestId = guestId;
    return result;
  }

  Device._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'Device',
      package: const $pb.PackageName(
          _omitMessageNames ? '' : 'bilibili.metadata.device'),
      createEmptyInstance: create)
    ..aI(1, _omitFieldNames ? '' : 'appId')
    ..aI(2, _omitFieldNames ? '' : 'build')
    ..aOS(3, _omitFieldNames ? '' : 'buvid')
    ..aOS(4, _omitFieldNames ? '' : 'mobiApp')
    ..aOS(5, _omitFieldNames ? '' : 'platform')
    ..aOS(6, _omitFieldNames ? '' : 'device')
    ..aOS(7, _omitFieldNames ? '' : 'channel')
    ..aOS(8, _omitFieldNames ? '' : 'brand')
    ..aOS(9, _omitFieldNames ? '' : 'model')
    ..aOS(10, _omitFieldNames ? '' : 'osver')
    ..aOS(11, _omitFieldNames ? '' : 'fpLocal')
    ..aOS(12, _omitFieldNames ? '' : 'fpRemote')
    ..aOS(13, _omitFieldNames ? '' : 'versionName')
    ..aOS(14, _omitFieldNames ? '' : 'fp')
    ..aInt64(15, _omitFieldNames ? '' : 'fts')
    ..aOS(16, _omitFieldNames ? '' : 'guestId')
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.int get appId => $_getIZ(0);
  @$pb.TagNumber(1)
  set appId($core.int value) => $_setSignedInt32(0, value);
  @$pb.TagNumber(1)
  $core.bool hasAppId() => $_has(0);
  @$pb.TagNumber(1)
  void clearAppId() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.int get build => $_getIZ(1);
  @$pb.TagNumber(2)
  set build($core.int value) => $_setSignedInt32(1, value);
  @$pb.TagNumber(2)
  $core.bool hasBuild() => $_has(1);
  @$pb.TagNumber(2)
  void clearBuild() => $_clearField(2);

  @$pb.TagNumber(3)
  $core.String get buvid => $_getSZ(2);
  @$pb.TagNumber(3)
  set buvid($core.String value) => $_setString(2, value);
  @$pb.TagNumber(3)
  $core.bool hasBuvid() => $_has(2);
  @$pb.TagNumber(3)
  void clearBuvid() => $_clearField(3);

  @$pb.TagNumber(4)
  $core.String get mobiApp => $_getSZ(3);
  @$pb.TagNumber(4)
  set mobiApp($core.String value) => $_setString(3, value);
  @$pb.TagNumber(4)
  $core.bool hasMobiApp() => $_has(3);
  @$pb.TagNumber(4)
  void clearMobiApp() => $_clearField(4);

  @$pb.TagNumber(5)
  $core.String get platform => $_getSZ(4);
  @$pb.TagNumber(5)
  set platform($core.String value) => $_setString(4, value);
  @$pb.TagNumber(5)
  $core.bool hasPlatform() => $_has(4);
  @$pb.TagNumber(5)
  void clearPlatform() => $_clearField(5);

  @$pb.TagNumber(6)
  $core.String get device => $_getSZ(5);
  @$pb.TagNumber(6)
  set device($core.String value) => $_setString(5, value);
  @$pb.TagNumber(6)
  $core.bool hasDevice() => $_has(5);
  @$pb.TagNumber(6)
  void clearDevice() => $_clearField(6);

  @$pb.TagNumber(7)
  $core.String get channel => $_getSZ(6);
  @$pb.TagNumber(7)
  set channel($core.String value) => $_setString(6, value);
  @$pb.TagNumber(7)
  $core.bool hasChannel() => $_has(6);
  @$pb.TagNumber(7)
  void clearChannel() => $_clearField(7);

  @$pb.TagNumber(8)
  $core.String get brand => $_getSZ(7);
  @$pb.TagNumber(8)
  set brand($core.String value) => $_setString(7, value);
  @$pb.TagNumber(8)
  $core.bool hasBrand() => $_has(7);
  @$pb.TagNumber(8)
  void clearBrand() => $_clearField(8);

  @$pb.TagNumber(9)
  $core.String get model => $_getSZ(8);
  @$pb.TagNumber(9)
  set model($core.String value) => $_setString(8, value);
  @$pb.TagNumber(9)
  $core.bool hasModel() => $_has(8);
  @$pb.TagNumber(9)
  void clearModel() => $_clearField(9);

  @$pb.TagNumber(10)
  $core.String get osver => $_getSZ(9);
  @$pb.TagNumber(10)
  set osver($core.String value) => $_setString(9, value);
  @$pb.TagNumber(10)
  $core.bool hasOsver() => $_has(9);
  @$pb.TagNumber(10)
  void clearOsver() => $_clearField(10);

  @$pb.TagNumber(11)
  $core.String get fpLocal => $_getSZ(10);
  @$pb.TagNumber(11)
  set fpLocal($core.String value) => $_setString(10, value);
  @$pb.TagNumber(11)
  $core.bool hasFpLocal() => $_has(10);
  @$pb.TagNumber(11)
  void clearFpLocal() => $_clearField(11);

  @$pb.TagNumber(12)
  $core.String get fpRemote => $_getSZ(11);
  @$pb.TagNumber(12)
  set fpRemote($core.String value) => $_setString(11, value);
  @$pb.TagNumber(12)
  $core.bool hasFpRemote() => $_has(11);
  @$pb.TagNumber(12)
  void clearFpRemote() => $_clearField(12);

  @$pb.TagNumber(13)
  $core.String get versionName => $_getSZ(12);
  @$pb.TagNumber(13)
  set versionName($core.String value) => $_setString(12, value);
  @$pb.TagNumber(13)
  $core.bool hasVersionName() => $_has(12);
  @$pb.TagNumber(13)
  void clearVersionName() => $_clearField(13);

  @$pb.TagNumber(14)
  $core.String get fp => $_getSZ(13);
  @$pb.TagNumber(14)
  set fp($core.String value) => $_setString(13, value);
  @$pb.TagNumber(14)
  $core.bool hasFp() => $_has(13);
  @$pb.TagNumber(14)
  void clearFp() => $_clearField(14);

  @$pb.TagNumber(15)
  $fixnum.Int64 get fts => $_getI64(14);
  @$pb.TagNumber(15)
  set fts($fixnum.Int64 value) => $_setInt64(14, value);
  @$pb.TagNumber(15)
  $core.bool hasFts() => $_has(14);
  @$pb.TagNumber(15)
  void clearFts() => $_clearField(15);

  @$pb.TagNumber(16)
  $core.String get guestId => $_getSZ(15);
  @$pb.TagNumber(16)
  set guestId($core.String value) => $_setString(15, value);
  @$pb.TagNumber(16)
  $core.bool hasGuestId() => $_has(15);
  @$pb.TagNumber(16)
  void clearGuestId() => $_clearField(16);
}

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

  DeviceType._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'DeviceType',
      package: const $pb.PackageName(
          _omitMessageNames ? '' : 'bilibili.metadata.device'),
      createEmptyInstance: create)
    ..hasRequiredFields = false;

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

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

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

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

  MobiApp._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'MobiApp',
      package: const $pb.PackageName(
          _omitMessageNames ? '' : 'bilibili.metadata.device'),
      createEmptyInstance: create)
    ..hasRequiredFields = false;

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

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

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

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

  Platform._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'Platform',
      package: const $pb.PackageName(
          _omitMessageNames ? '' : 'bilibili.metadata.device'),
      createEmptyInstance: create)
    ..hasRequiredFields = false;

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

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

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

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