// This is a generated file - do not edit.
//
// Generated from oto/runner.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:protobuf/protobuf.dart' as $pb;

import 'runner.pbenum.dart';

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

export 'runner.pbenum.dart';

class RunnerCapability extends $pb.GeneratedMessage {
  factory RunnerCapability({
    $core.String? name,
    $core.String? version,
  }) {
    final result = create();
    if (name != null) result.name = name;
    if (version != null) result.version = version;
    return result;
  }

  RunnerCapability._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'RunnerCapability',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'name')
    ..aOS(2, _omitFieldNames ? '' : 'version')
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.String get name => $_getSZ(0);
  @$pb.TagNumber(1)
  set name($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasName() => $_has(0);
  @$pb.TagNumber(1)
  void clearName() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get version => $_getSZ(1);
  @$pb.TagNumber(2)
  set version($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasVersion() => $_has(1);
  @$pb.TagNumber(2)
  void clearVersion() => $_clearField(2);
}

class CommandCatalogSummary extends $pb.GeneratedMessage {
  factory CommandCatalogSummary({
    $core.Iterable<$core.String>? commandTypes,
  }) {
    final result = create();
    if (commandTypes != null) result.commandTypes.addAll(commandTypes);
    return result;
  }

  CommandCatalogSummary._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'CommandCatalogSummary',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..pPS(1, _omitFieldNames ? '' : 'commandTypes')
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $pb.PbList<$core.String> get commandTypes => $_getList(0);
}

class RegisterRunnerRequest extends $pb.GeneratedMessage {
  factory RegisterRunnerRequest({
    $core.String? enrollmentToken,
    $core.String? runnerId,
    $core.String? alias,
    $core.String? protocolVersion,
    RunnerCapability? capability,
    CommandCatalogSummary? commandCatalog,
  }) {
    final result = create();
    if (enrollmentToken != null) result.enrollmentToken = enrollmentToken;
    if (runnerId != null) result.runnerId = runnerId;
    if (alias != null) result.alias = alias;
    if (protocolVersion != null) result.protocolVersion = protocolVersion;
    if (capability != null) result.capability = capability;
    if (commandCatalog != null) result.commandCatalog = commandCatalog;
    return result;
  }

  RegisterRunnerRequest._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'RegisterRunnerRequest',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'enrollmentToken')
    ..aOS(2, _omitFieldNames ? '' : 'runnerId')
    ..aOS(3, _omitFieldNames ? '' : 'alias')
    ..aOS(4, _omitFieldNames ? '' : 'protocolVersion')
    ..aOM<RunnerCapability>(5, _omitFieldNames ? '' : 'capability',
        subBuilder: RunnerCapability.create)
    ..aOM<CommandCatalogSummary>(6, _omitFieldNames ? '' : 'commandCatalog',
        subBuilder: CommandCatalogSummary.create)
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.String get enrollmentToken => $_getSZ(0);
  @$pb.TagNumber(1)
  set enrollmentToken($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasEnrollmentToken() => $_has(0);
  @$pb.TagNumber(1)
  void clearEnrollmentToken() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get runnerId => $_getSZ(1);
  @$pb.TagNumber(2)
  set runnerId($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasRunnerId() => $_has(1);
  @$pb.TagNumber(2)
  void clearRunnerId() => $_clearField(2);

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

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

  @$pb.TagNumber(5)
  RunnerCapability get capability => $_getN(4);
  @$pb.TagNumber(5)
  set capability(RunnerCapability value) => $_setField(5, value);
  @$pb.TagNumber(5)
  $core.bool hasCapability() => $_has(4);
  @$pb.TagNumber(5)
  void clearCapability() => $_clearField(5);
  @$pb.TagNumber(5)
  RunnerCapability ensureCapability() => $_ensure(4);

  @$pb.TagNumber(6)
  CommandCatalogSummary get commandCatalog => $_getN(5);
  @$pb.TagNumber(6)
  set commandCatalog(CommandCatalogSummary value) => $_setField(6, value);
  @$pb.TagNumber(6)
  $core.bool hasCommandCatalog() => $_has(5);
  @$pb.TagNumber(6)
  void clearCommandCatalog() => $_clearField(6);
  @$pb.TagNumber(6)
  CommandCatalogSummary ensureCommandCatalog() => $_ensure(5);
}

class RegisterRunnerResponse extends $pb.GeneratedMessage {
  factory RegisterRunnerResponse({
    $core.bool? accepted,
    $core.String? rejectReason,
    $core.String? runnerId,
    $core.String? alias,
    ProtocolError? error,
  }) {
    final result = create();
    if (accepted != null) result.accepted = accepted;
    if (rejectReason != null) result.rejectReason = rejectReason;
    if (runnerId != null) result.runnerId = runnerId;
    if (alias != null) result.alias = alias;
    if (error != null) result.error = error;
    return result;
  }

  RegisterRunnerResponse._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'RegisterRunnerResponse',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOB(1, _omitFieldNames ? '' : 'accepted')
    ..aOS(2, _omitFieldNames ? '' : 'rejectReason')
    ..aOS(3, _omitFieldNames ? '' : 'runnerId')
    ..aOS(4, _omitFieldNames ? '' : 'alias')
    ..aOM<ProtocolError>(5, _omitFieldNames ? '' : 'error',
        subBuilder: ProtocolError.create)
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.bool get accepted => $_getBF(0);
  @$pb.TagNumber(1)
  set accepted($core.bool value) => $_setBool(0, value);
  @$pb.TagNumber(1)
  $core.bool hasAccepted() => $_has(0);
  @$pb.TagNumber(1)
  void clearAccepted() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get rejectReason => $_getSZ(1);
  @$pb.TagNumber(2)
  set rejectReason($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasRejectReason() => $_has(1);
  @$pb.TagNumber(2)
  void clearRejectReason() => $_clearField(2);

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

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

  @$pb.TagNumber(5)
  ProtocolError get error => $_getN(4);
  @$pb.TagNumber(5)
  set error(ProtocolError value) => $_setField(5, value);
  @$pb.TagNumber(5)
  $core.bool hasError() => $_has(4);
  @$pb.TagNumber(5)
  void clearError() => $_clearField(5);
  @$pb.TagNumber(5)
  ProtocolError ensureError() => $_ensure(4);
}

class HeartbeatRequest extends $pb.GeneratedMessage {
  factory HeartbeatRequest({
    $core.String? runnerId,
    HeartbeatStatus? status,
  }) {
    final result = create();
    if (runnerId != null) result.runnerId = runnerId;
    if (status != null) result.status = status;
    return result;
  }

  HeartbeatRequest._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'HeartbeatRequest',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'runnerId')
    ..aE<HeartbeatStatus>(2, _omitFieldNames ? '' : 'status',
        enumValues: HeartbeatStatus.values)
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.String get runnerId => $_getSZ(0);
  @$pb.TagNumber(1)
  set runnerId($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasRunnerId() => $_has(0);
  @$pb.TagNumber(1)
  void clearRunnerId() => $_clearField(1);

  @$pb.TagNumber(2)
  HeartbeatStatus get status => $_getN(1);
  @$pb.TagNumber(2)
  set status(HeartbeatStatus value) => $_setField(2, value);
  @$pb.TagNumber(2)
  $core.bool hasStatus() => $_has(1);
  @$pb.TagNumber(2)
  void clearStatus() => $_clearField(2);
}

class HeartbeatResponse extends $pb.GeneratedMessage {
  factory HeartbeatResponse({
    $core.bool? success,
    $core.String? errorMessage,
    ProtocolError? error,
  }) {
    final result = create();
    if (success != null) result.success = success;
    if (errorMessage != null) result.errorMessage = errorMessage;
    if (error != null) result.error = error;
    return result;
  }

  HeartbeatResponse._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'HeartbeatResponse',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOB(1, _omitFieldNames ? '' : 'success')
    ..aOS(2, _omitFieldNames ? '' : 'errorMessage')
    ..aOM<ProtocolError>(3, _omitFieldNames ? '' : 'error',
        subBuilder: ProtocolError.create)
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.bool get success => $_getBF(0);
  @$pb.TagNumber(1)
  set success($core.bool value) => $_setBool(0, value);
  @$pb.TagNumber(1)
  $core.bool hasSuccess() => $_has(0);
  @$pb.TagNumber(1)
  void clearSuccess() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get errorMessage => $_getSZ(1);
  @$pb.TagNumber(2)
  set errorMessage($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasErrorMessage() => $_has(1);
  @$pb.TagNumber(2)
  void clearErrorMessage() => $_clearField(2);

  @$pb.TagNumber(3)
  ProtocolError get error => $_getN(2);
  @$pb.TagNumber(3)
  set error(ProtocolError value) => $_setField(3, value);
  @$pb.TagNumber(3)
  $core.bool hasError() => $_has(2);
  @$pb.TagNumber(3)
  void clearError() => $_clearField(3);
  @$pb.TagNumber(3)
  ProtocolError ensureError() => $_ensure(2);
}

class BootstrapCommandRequest extends $pb.GeneratedMessage {
  factory BootstrapCommandRequest({
    $core.String? runnerId,
    $core.String? enrollmentToken,
    $core.String? target,
  }) {
    final result = create();
    if (runnerId != null) result.runnerId = runnerId;
    if (enrollmentToken != null) result.enrollmentToken = enrollmentToken;
    if (target != null) result.target = target;
    return result;
  }

  BootstrapCommandRequest._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'BootstrapCommandRequest',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'runnerId')
    ..aOS(2, _omitFieldNames ? '' : 'enrollmentToken')
    ..aOS(3, _omitFieldNames ? '' : 'target')
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.String get runnerId => $_getSZ(0);
  @$pb.TagNumber(1)
  set runnerId($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasRunnerId() => $_has(0);
  @$pb.TagNumber(1)
  void clearRunnerId() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get enrollmentToken => $_getSZ(1);
  @$pb.TagNumber(2)
  set enrollmentToken($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasEnrollmentToken() => $_has(1);
  @$pb.TagNumber(2)
  void clearEnrollmentToken() => $_clearField(2);

  @$pb.TagNumber(3)
  $core.String get target => $_getSZ(2);
  @$pb.TagNumber(3)
  set target($core.String value) => $_setString(2, value);
  @$pb.TagNumber(3)
  $core.bool hasTarget() => $_has(2);
  @$pb.TagNumber(3)
  void clearTarget() => $_clearField(3);
}

class BootstrapCommandResponse extends $pb.GeneratedMessage {
  factory BootstrapCommandResponse({
    $core.String? bootstrapCommand,
  }) {
    final result = create();
    if (bootstrapCommand != null) result.bootstrapCommand = bootstrapCommand;
    return result;
  }

  BootstrapCommandResponse._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'BootstrapCommandResponse',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'bootstrapCommand')
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.String get bootstrapCommand => $_getSZ(0);
  @$pb.TagNumber(1)
  set bootstrapCommand($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasBootstrapCommand() => $_has(0);
  @$pb.TagNumber(1)
  void clearBootstrapCommand() => $_clearField(1);
}

class JobClaimRequest extends $pb.GeneratedMessage {
  factory JobClaimRequest({
    $core.String? runnerId,
    $core.String? jobId,
    $core.String? executionId,
  }) {
    final result = create();
    if (runnerId != null) result.runnerId = runnerId;
    if (jobId != null) result.jobId = jobId;
    if (executionId != null) result.executionId = executionId;
    return result;
  }

  JobClaimRequest._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'JobClaimRequest',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'runnerId')
    ..aOS(2, _omitFieldNames ? '' : 'jobId')
    ..aOS(3, _omitFieldNames ? '' : 'executionId')
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.String get runnerId => $_getSZ(0);
  @$pb.TagNumber(1)
  set runnerId($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasRunnerId() => $_has(0);
  @$pb.TagNumber(1)
  void clearRunnerId() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get jobId => $_getSZ(1);
  @$pb.TagNumber(2)
  set jobId($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasJobId() => $_has(1);
  @$pb.TagNumber(2)
  void clearJobId() => $_clearField(2);

  @$pb.TagNumber(3)
  $core.String get executionId => $_getSZ(2);
  @$pb.TagNumber(3)
  set executionId($core.String value) => $_setString(2, value);
  @$pb.TagNumber(3)
  $core.bool hasExecutionId() => $_has(2);
  @$pb.TagNumber(3)
  void clearExecutionId() => $_clearField(3);
}

class JobClaimResponse extends $pb.GeneratedMessage {
  factory JobClaimResponse({
    $core.bool? accepted,
    $core.String? errorMessage,
    $core.String? jobId,
    $core.String? executionId,
    $core.String? state,
    $core.String? runnerId,
    RunRequest? runRequest,
    ProtocolError? error,
  }) {
    final result = create();
    if (accepted != null) result.accepted = accepted;
    if (errorMessage != null) result.errorMessage = errorMessage;
    if (jobId != null) result.jobId = jobId;
    if (executionId != null) result.executionId = executionId;
    if (state != null) result.state = state;
    if (runnerId != null) result.runnerId = runnerId;
    if (runRequest != null) result.runRequest = runRequest;
    if (error != null) result.error = error;
    return result;
  }

  JobClaimResponse._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'JobClaimResponse',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOB(1, _omitFieldNames ? '' : 'accepted')
    ..aOS(2, _omitFieldNames ? '' : 'errorMessage')
    ..aOS(3, _omitFieldNames ? '' : 'jobId')
    ..aOS(4, _omitFieldNames ? '' : 'executionId')
    ..aOS(5, _omitFieldNames ? '' : 'state')
    ..aOS(6, _omitFieldNames ? '' : 'runnerId')
    ..aOM<RunRequest>(7, _omitFieldNames ? '' : 'runRequest',
        subBuilder: RunRequest.create)
    ..aOM<ProtocolError>(8, _omitFieldNames ? '' : 'error',
        subBuilder: ProtocolError.create)
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.bool get accepted => $_getBF(0);
  @$pb.TagNumber(1)
  set accepted($core.bool value) => $_setBool(0, value);
  @$pb.TagNumber(1)
  $core.bool hasAccepted() => $_has(0);
  @$pb.TagNumber(1)
  void clearAccepted() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get errorMessage => $_getSZ(1);
  @$pb.TagNumber(2)
  set errorMessage($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasErrorMessage() => $_has(1);
  @$pb.TagNumber(2)
  void clearErrorMessage() => $_clearField(2);

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

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

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

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

  @$pb.TagNumber(7)
  RunRequest get runRequest => $_getN(6);
  @$pb.TagNumber(7)
  set runRequest(RunRequest value) => $_setField(7, value);
  @$pb.TagNumber(7)
  $core.bool hasRunRequest() => $_has(6);
  @$pb.TagNumber(7)
  void clearRunRequest() => $_clearField(7);
  @$pb.TagNumber(7)
  RunRequest ensureRunRequest() => $_ensure(6);

  @$pb.TagNumber(8)
  ProtocolError get error => $_getN(7);
  @$pb.TagNumber(8)
  set error(ProtocolError value) => $_setField(8, value);
  @$pb.TagNumber(8)
  $core.bool hasError() => $_has(7);
  @$pb.TagNumber(8)
  void clearError() => $_clearField(8);
  @$pb.TagNumber(8)
  ProtocolError ensureError() => $_ensure(7);
}

class StepEventReport extends $pb.GeneratedMessage {
  factory StepEventReport({
    $core.int? stepId,
    $core.int? workflowIndex,
    $core.String? stepType,
    $core.String? event,
    $core.String? timestamp,
    $core.String? commandId,
    $core.String? commandType,
    $core.Iterable<$core.MapEntry<$core.String, $core.String>>? error,
  }) {
    final result = create();
    if (stepId != null) result.stepId = stepId;
    if (workflowIndex != null) result.workflowIndex = workflowIndex;
    if (stepType != null) result.stepType = stepType;
    if (event != null) result.event = event;
    if (timestamp != null) result.timestamp = timestamp;
    if (commandId != null) result.commandId = commandId;
    if (commandType != null) result.commandType = commandType;
    if (error != null) result.error.addEntries(error);
    return result;
  }

  StepEventReport._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'StepEventReport',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aI(1, _omitFieldNames ? '' : 'stepId')
    ..aI(2, _omitFieldNames ? '' : 'workflowIndex')
    ..aOS(3, _omitFieldNames ? '' : 'stepType')
    ..aOS(4, _omitFieldNames ? '' : 'event')
    ..aOS(5, _omitFieldNames ? '' : 'timestamp')
    ..aOS(6, _omitFieldNames ? '' : 'commandId')
    ..aOS(7, _omitFieldNames ? '' : 'commandType')
    ..m<$core.String, $core.String>(8, _omitFieldNames ? '' : 'error',
        entryClassName: 'StepEventReport.ErrorEntry',
        keyFieldType: $pb.PbFieldType.OS,
        valueFieldType: $pb.PbFieldType.OS,
        packageName: const $pb.PackageName('oto.runner.v1'))
    ..hasRequiredFields = false;

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

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

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

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

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

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

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

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

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

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

  @$pb.TagNumber(8)
  $pb.PbMap<$core.String, $core.String> get error => $_getMap(7);
}

class ExecutionReportRequest extends $pb.GeneratedMessage {
  factory ExecutionReportRequest({
    $core.String? runnerId,
    $core.String? jobId,
    $core.String? executionId,
    $core.bool? success,
    $core.int? exitCode,
    $core.String? message,
    $core.Iterable<StepEventReport>? stepEvents,
  }) {
    final result = create();
    if (runnerId != null) result.runnerId = runnerId;
    if (jobId != null) result.jobId = jobId;
    if (executionId != null) result.executionId = executionId;
    if (success != null) result.success = success;
    if (exitCode != null) result.exitCode = exitCode;
    if (message != null) result.message = message;
    if (stepEvents != null) result.stepEvents.addAll(stepEvents);
    return result;
  }

  ExecutionReportRequest._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'ExecutionReportRequest',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'runnerId')
    ..aOS(2, _omitFieldNames ? '' : 'jobId')
    ..aOS(3, _omitFieldNames ? '' : 'executionId')
    ..aOB(4, _omitFieldNames ? '' : 'success')
    ..aI(5, _omitFieldNames ? '' : 'exitCode')
    ..aOS(6, _omitFieldNames ? '' : 'message')
    ..pPM<StepEventReport>(7, _omitFieldNames ? '' : 'stepEvents',
        subBuilder: StepEventReport.create)
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.String get runnerId => $_getSZ(0);
  @$pb.TagNumber(1)
  set runnerId($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasRunnerId() => $_has(0);
  @$pb.TagNumber(1)
  void clearRunnerId() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get jobId => $_getSZ(1);
  @$pb.TagNumber(2)
  set jobId($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasJobId() => $_has(1);
  @$pb.TagNumber(2)
  void clearJobId() => $_clearField(2);

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

  @$pb.TagNumber(4)
  $core.bool get success => $_getBF(3);
  @$pb.TagNumber(4)
  set success($core.bool value) => $_setBool(3, value);
  @$pb.TagNumber(4)
  $core.bool hasSuccess() => $_has(3);
  @$pb.TagNumber(4)
  void clearSuccess() => $_clearField(4);

  @$pb.TagNumber(5)
  $core.int get exitCode => $_getIZ(4);
  @$pb.TagNumber(5)
  set exitCode($core.int value) => $_setSignedInt32(4, value);
  @$pb.TagNumber(5)
  $core.bool hasExitCode() => $_has(4);
  @$pb.TagNumber(5)
  void clearExitCode() => $_clearField(5);

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

  @$pb.TagNumber(7)
  $pb.PbList<StepEventReport> get stepEvents => $_getList(6);
}

class ExecutionReportResponse extends $pb.GeneratedMessage {
  factory ExecutionReportResponse({
    $core.bool? accepted,
    $core.String? errorMessage,
    $core.String? jobId,
    $core.String? executionId,
    $core.String? state,
    $core.String? runnerId,
    ProtocolError? error,
  }) {
    final result = create();
    if (accepted != null) result.accepted = accepted;
    if (errorMessage != null) result.errorMessage = errorMessage;
    if (jobId != null) result.jobId = jobId;
    if (executionId != null) result.executionId = executionId;
    if (state != null) result.state = state;
    if (runnerId != null) result.runnerId = runnerId;
    if (error != null) result.error = error;
    return result;
  }

  ExecutionReportResponse._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'ExecutionReportResponse',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOB(1, _omitFieldNames ? '' : 'accepted')
    ..aOS(2, _omitFieldNames ? '' : 'errorMessage')
    ..aOS(3, _omitFieldNames ? '' : 'jobId')
    ..aOS(4, _omitFieldNames ? '' : 'executionId')
    ..aOS(5, _omitFieldNames ? '' : 'state')
    ..aOS(6, _omitFieldNames ? '' : 'runnerId')
    ..aOM<ProtocolError>(7, _omitFieldNames ? '' : 'error',
        subBuilder: ProtocolError.create)
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.bool get accepted => $_getBF(0);
  @$pb.TagNumber(1)
  set accepted($core.bool value) => $_setBool(0, value);
  @$pb.TagNumber(1)
  $core.bool hasAccepted() => $_has(0);
  @$pb.TagNumber(1)
  void clearAccepted() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get errorMessage => $_getSZ(1);
  @$pb.TagNumber(2)
  set errorMessage($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasErrorMessage() => $_has(1);
  @$pb.TagNumber(2)
  void clearErrorMessage() => $_clearField(2);

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

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

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

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

  @$pb.TagNumber(7)
  ProtocolError get error => $_getN(6);
  @$pb.TagNumber(7)
  set error(ProtocolError value) => $_setField(7, value);
  @$pb.TagNumber(7)
  $core.bool hasError() => $_has(6);
  @$pb.TagNumber(7)
  void clearError() => $_clearField(7);
  @$pb.TagNumber(7)
  ProtocolError ensureError() => $_ensure(6);
}

class LogAppendRequest extends $pb.GeneratedMessage {
  factory LogAppendRequest({
    $core.String? runnerId,
    $core.String? executionId,
    $core.String? line,
  }) {
    final result = create();
    if (runnerId != null) result.runnerId = runnerId;
    if (executionId != null) result.executionId = executionId;
    if (line != null) result.line = line;
    return result;
  }

  LogAppendRequest._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'LogAppendRequest',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'runnerId')
    ..aOS(2, _omitFieldNames ? '' : 'executionId')
    ..aOS(3, _omitFieldNames ? '' : 'line')
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.String get runnerId => $_getSZ(0);
  @$pb.TagNumber(1)
  set runnerId($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasRunnerId() => $_has(0);
  @$pb.TagNumber(1)
  void clearRunnerId() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get executionId => $_getSZ(1);
  @$pb.TagNumber(2)
  set executionId($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasExecutionId() => $_has(1);
  @$pb.TagNumber(2)
  void clearExecutionId() => $_clearField(2);

  @$pb.TagNumber(3)
  $core.String get line => $_getSZ(2);
  @$pb.TagNumber(3)
  set line($core.String value) => $_setString(2, value);
  @$pb.TagNumber(3)
  $core.bool hasLine() => $_has(2);
  @$pb.TagNumber(3)
  void clearLine() => $_clearField(3);
}

class LogAppendResponse extends $pb.GeneratedMessage {
  factory LogAppendResponse({
    $core.bool? accepted,
    $core.String? errorMessage,
    ProtocolError? error,
  }) {
    final result = create();
    if (accepted != null) result.accepted = accepted;
    if (errorMessage != null) result.errorMessage = errorMessage;
    if (error != null) result.error = error;
    return result;
  }

  LogAppendResponse._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'LogAppendResponse',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOB(1, _omitFieldNames ? '' : 'accepted')
    ..aOS(2, _omitFieldNames ? '' : 'errorMessage')
    ..aOM<ProtocolError>(3, _omitFieldNames ? '' : 'error',
        subBuilder: ProtocolError.create)
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.bool get accepted => $_getBF(0);
  @$pb.TagNumber(1)
  set accepted($core.bool value) => $_setBool(0, value);
  @$pb.TagNumber(1)
  $core.bool hasAccepted() => $_has(0);
  @$pb.TagNumber(1)
  void clearAccepted() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get errorMessage => $_getSZ(1);
  @$pb.TagNumber(2)
  set errorMessage($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasErrorMessage() => $_has(1);
  @$pb.TagNumber(2)
  void clearErrorMessage() => $_clearField(2);

  @$pb.TagNumber(3)
  ProtocolError get error => $_getN(2);
  @$pb.TagNumber(3)
  set error(ProtocolError value) => $_setField(3, value);
  @$pb.TagNumber(3)
  $core.bool hasError() => $_has(2);
  @$pb.TagNumber(3)
  void clearError() => $_clearField(3);
  @$pb.TagNumber(3)
  ProtocolError ensureError() => $_ensure(2);
}

class ArtifactReportRequest extends $pb.GeneratedMessage {
  factory ArtifactReportRequest({
    $core.String? runnerId,
    $core.String? executionId,
    $core.String? name,
    $core.String? path,
  }) {
    final result = create();
    if (runnerId != null) result.runnerId = runnerId;
    if (executionId != null) result.executionId = executionId;
    if (name != null) result.name = name;
    if (path != null) result.path = path;
    return result;
  }

  ArtifactReportRequest._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'ArtifactReportRequest',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'runnerId')
    ..aOS(2, _omitFieldNames ? '' : 'executionId')
    ..aOS(3, _omitFieldNames ? '' : 'name')
    ..aOS(4, _omitFieldNames ? '' : 'path')
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.String get runnerId => $_getSZ(0);
  @$pb.TagNumber(1)
  set runnerId($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasRunnerId() => $_has(0);
  @$pb.TagNumber(1)
  void clearRunnerId() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get executionId => $_getSZ(1);
  @$pb.TagNumber(2)
  set executionId($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasExecutionId() => $_has(1);
  @$pb.TagNumber(2)
  void clearExecutionId() => $_clearField(2);

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

  @$pb.TagNumber(4)
  $core.String get path => $_getSZ(3);
  @$pb.TagNumber(4)
  set path($core.String value) => $_setString(3, value);
  @$pb.TagNumber(4)
  $core.bool hasPath() => $_has(3);
  @$pb.TagNumber(4)
  void clearPath() => $_clearField(4);
}

class ArtifactReportResponse extends $pb.GeneratedMessage {
  factory ArtifactReportResponse({
    $core.bool? accepted,
    $core.String? errorMessage,
    ProtocolError? error,
  }) {
    final result = create();
    if (accepted != null) result.accepted = accepted;
    if (errorMessage != null) result.errorMessage = errorMessage;
    if (error != null) result.error = error;
    return result;
  }

  ArtifactReportResponse._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'ArtifactReportResponse',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOB(1, _omitFieldNames ? '' : 'accepted')
    ..aOS(2, _omitFieldNames ? '' : 'errorMessage')
    ..aOM<ProtocolError>(3, _omitFieldNames ? '' : 'error',
        subBuilder: ProtocolError.create)
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.bool get accepted => $_getBF(0);
  @$pb.TagNumber(1)
  set accepted($core.bool value) => $_setBool(0, value);
  @$pb.TagNumber(1)
  $core.bool hasAccepted() => $_has(0);
  @$pb.TagNumber(1)
  void clearAccepted() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get errorMessage => $_getSZ(1);
  @$pb.TagNumber(2)
  set errorMessage($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasErrorMessage() => $_has(1);
  @$pb.TagNumber(2)
  void clearErrorMessage() => $_clearField(2);

  @$pb.TagNumber(3)
  ProtocolError get error => $_getN(2);
  @$pb.TagNumber(3)
  set error(ProtocolError value) => $_setField(3, value);
  @$pb.TagNumber(3)
  $core.bool hasError() => $_has(2);
  @$pb.TagNumber(3)
  void clearError() => $_clearField(3);
  @$pb.TagNumber(3)
  ProtocolError ensureError() => $_ensure(2);
}

class ProtocolError extends $pb.GeneratedMessage {
  factory ProtocolError({
    $core.String? code,
    $core.String? message,
    $core.Iterable<$core.MapEntry<$core.String, $core.String>>? details,
  }) {
    final result = create();
    if (code != null) result.code = code;
    if (message != null) result.message = message;
    if (details != null) result.details.addEntries(details);
    return result;
  }

  ProtocolError._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'ProtocolError',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'code')
    ..aOS(2, _omitFieldNames ? '' : 'message')
    ..m<$core.String, $core.String>(3, _omitFieldNames ? '' : 'details',
        entryClassName: 'ProtocolError.DetailsEntry',
        keyFieldType: $pb.PbFieldType.OS,
        valueFieldType: $pb.PbFieldType.OS,
        packageName: const $pb.PackageName('oto.runner.v1'))
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.String get code => $_getSZ(0);
  @$pb.TagNumber(1)
  set code($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasCode() => $_has(0);
  @$pb.TagNumber(1)
  void clearCode() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get message => $_getSZ(1);
  @$pb.TagNumber(2)
  set message($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasMessage() => $_has(1);
  @$pb.TagNumber(2)
  void clearMessage() => $_clearField(2);

  @$pb.TagNumber(3)
  $pb.PbMap<$core.String, $core.String> get details => $_getMap(2);
}

class RunRequest extends $pb.GeneratedMessage {
  factory RunRequest({
    $core.String? runnerId,
    $core.String? jobId,
    $core.String? executionId,
    $core.String? pipelineYamlPath,
    $core.String? pipelineYaml,
    $core.Iterable<$core.MapEntry<$core.String, $core.String>>? variables,
    $core.Iterable<$core.String>? commandTypes,
  }) {
    final result = create();
    if (runnerId != null) result.runnerId = runnerId;
    if (jobId != null) result.jobId = jobId;
    if (executionId != null) result.executionId = executionId;
    if (pipelineYamlPath != null) result.pipelineYamlPath = pipelineYamlPath;
    if (pipelineYaml != null) result.pipelineYaml = pipelineYaml;
    if (variables != null) result.variables.addEntries(variables);
    if (commandTypes != null) result.commandTypes.addAll(commandTypes);
    return result;
  }

  RunRequest._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'RunRequest',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'runnerId')
    ..aOS(2, _omitFieldNames ? '' : 'jobId')
    ..aOS(3, _omitFieldNames ? '' : 'executionId')
    ..aOS(4, _omitFieldNames ? '' : 'pipelineYamlPath')
    ..aOS(5, _omitFieldNames ? '' : 'pipelineYaml')
    ..m<$core.String, $core.String>(6, _omitFieldNames ? '' : 'variables',
        entryClassName: 'RunRequest.VariablesEntry',
        keyFieldType: $pb.PbFieldType.OS,
        valueFieldType: $pb.PbFieldType.OS,
        packageName: const $pb.PackageName('oto.runner.v1'))
    ..pPS(7, _omitFieldNames ? '' : 'commandTypes')
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.String get runnerId => $_getSZ(0);
  @$pb.TagNumber(1)
  set runnerId($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasRunnerId() => $_has(0);
  @$pb.TagNumber(1)
  void clearRunnerId() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get jobId => $_getSZ(1);
  @$pb.TagNumber(2)
  set jobId($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasJobId() => $_has(1);
  @$pb.TagNumber(2)
  void clearJobId() => $_clearField(2);

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

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

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

  @$pb.TagNumber(6)
  $pb.PbMap<$core.String, $core.String> get variables => $_getMap(5);

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

class CancelRunRequest extends $pb.GeneratedMessage {
  factory CancelRunRequest({
    $core.String? runnerId,
    $core.String? executionId,
    $core.String? reason,
  }) {
    final result = create();
    if (runnerId != null) result.runnerId = runnerId;
    if (executionId != null) result.executionId = executionId;
    if (reason != null) result.reason = reason;
    return result;
  }

  CancelRunRequest._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'CancelRunRequest',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'runnerId')
    ..aOS(2, _omitFieldNames ? '' : 'executionId')
    ..aOS(3, _omitFieldNames ? '' : 'reason')
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.String get runnerId => $_getSZ(0);
  @$pb.TagNumber(1)
  set runnerId($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasRunnerId() => $_has(0);
  @$pb.TagNumber(1)
  void clearRunnerId() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get executionId => $_getSZ(1);
  @$pb.TagNumber(2)
  set executionId($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasExecutionId() => $_has(1);
  @$pb.TagNumber(2)
  void clearExecutionId() => $_clearField(2);

  @$pb.TagNumber(3)
  $core.String get reason => $_getSZ(2);
  @$pb.TagNumber(3)
  set reason($core.String value) => $_setString(2, value);
  @$pb.TagNumber(3)
  $core.bool hasReason() => $_has(2);
  @$pb.TagNumber(3)
  void clearReason() => $_clearField(3);
}

class CancelRunResponse extends $pb.GeneratedMessage {
  factory CancelRunResponse({
    $core.bool? success,
    $core.String? errorMessage,
    ProtocolError? error,
  }) {
    final result = create();
    if (success != null) result.success = success;
    if (errorMessage != null) result.errorMessage = errorMessage;
    if (error != null) result.error = error;
    return result;
  }

  CancelRunResponse._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'CancelRunResponse',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOB(1, _omitFieldNames ? '' : 'success')
    ..aOS(2, _omitFieldNames ? '' : 'errorMessage')
    ..aOM<ProtocolError>(3, _omitFieldNames ? '' : 'error',
        subBuilder: ProtocolError.create)
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.bool get success => $_getBF(0);
  @$pb.TagNumber(1)
  set success($core.bool value) => $_setBool(0, value);
  @$pb.TagNumber(1)
  $core.bool hasSuccess() => $_has(0);
  @$pb.TagNumber(1)
  void clearSuccess() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get errorMessage => $_getSZ(1);
  @$pb.TagNumber(2)
  set errorMessage($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasErrorMessage() => $_has(1);
  @$pb.TagNumber(2)
  void clearErrorMessage() => $_clearField(2);

  @$pb.TagNumber(3)
  ProtocolError get error => $_getN(2);
  @$pb.TagNumber(3)
  set error(ProtocolError value) => $_setField(3, value);
  @$pb.TagNumber(3)
  $core.bool hasError() => $_has(2);
  @$pb.TagNumber(3)
  void clearError() => $_clearField(3);
  @$pb.TagNumber(3)
  ProtocolError ensureError() => $_ensure(2);
}

class RunnerStatusRequest extends $pb.GeneratedMessage {
  factory RunnerStatusRequest({
    $core.String? runnerId,
  }) {
    final result = create();
    if (runnerId != null) result.runnerId = runnerId;
    return result;
  }

  RunnerStatusRequest._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'RunnerStatusRequest',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'runnerId')
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.String get runnerId => $_getSZ(0);
  @$pb.TagNumber(1)
  set runnerId($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasRunnerId() => $_has(0);
  @$pb.TagNumber(1)
  void clearRunnerId() => $_clearField(1);
}

class RunnerStatusResponse extends $pb.GeneratedMessage {
  factory RunnerStatusResponse({
    $core.String? runnerId,
    $core.String? status,
    $core.String? currentExecutionId,
    ProtocolError? error,
  }) {
    final result = create();
    if (runnerId != null) result.runnerId = runnerId;
    if (status != null) result.status = status;
    if (currentExecutionId != null)
      result.currentExecutionId = currentExecutionId;
    if (error != null) result.error = error;
    return result;
  }

  RunnerStatusResponse._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'RunnerStatusResponse',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'runnerId')
    ..aOS(2, _omitFieldNames ? '' : 'status')
    ..aOS(3, _omitFieldNames ? '' : 'currentExecutionId')
    ..aOM<ProtocolError>(4, _omitFieldNames ? '' : 'error',
        subBuilder: ProtocolError.create)
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.String get runnerId => $_getSZ(0);
  @$pb.TagNumber(1)
  set runnerId($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasRunnerId() => $_has(0);
  @$pb.TagNumber(1)
  void clearRunnerId() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get status => $_getSZ(1);
  @$pb.TagNumber(2)
  set status($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasStatus() => $_has(1);
  @$pb.TagNumber(2)
  void clearStatus() => $_clearField(2);

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

  @$pb.TagNumber(4)
  ProtocolError get error => $_getN(3);
  @$pb.TagNumber(4)
  set error(ProtocolError value) => $_setField(4, value);
  @$pb.TagNumber(4)
  $core.bool hasError() => $_has(3);
  @$pb.TagNumber(4)
  void clearError() => $_clearField(4);
  @$pb.TagNumber(4)
  ProtocolError ensureError() => $_ensure(3);
}

class SelfUpdateRequest extends $pb.GeneratedMessage {
  factory SelfUpdateRequest({
    $core.String? runnerId,
    $core.String? version,
    $core.String? downloadUrl,
  }) {
    final result = create();
    if (runnerId != null) result.runnerId = runnerId;
    if (version != null) result.version = version;
    if (downloadUrl != null) result.downloadUrl = downloadUrl;
    return result;
  }

  SelfUpdateRequest._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'SelfUpdateRequest',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'runnerId')
    ..aOS(2, _omitFieldNames ? '' : 'version')
    ..aOS(3, _omitFieldNames ? '' : 'downloadUrl')
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.String get runnerId => $_getSZ(0);
  @$pb.TagNumber(1)
  set runnerId($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasRunnerId() => $_has(0);
  @$pb.TagNumber(1)
  void clearRunnerId() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get version => $_getSZ(1);
  @$pb.TagNumber(2)
  set version($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasVersion() => $_has(1);
  @$pb.TagNumber(2)
  void clearVersion() => $_clearField(2);

  @$pb.TagNumber(3)
  $core.String get downloadUrl => $_getSZ(2);
  @$pb.TagNumber(3)
  set downloadUrl($core.String value) => $_setString(2, value);
  @$pb.TagNumber(3)
  $core.bool hasDownloadUrl() => $_has(2);
  @$pb.TagNumber(3)
  void clearDownloadUrl() => $_clearField(3);
}

class SelfUpdateResponse extends $pb.GeneratedMessage {
  factory SelfUpdateResponse({
    $core.bool? success,
    $core.String? errorMessage,
    ProtocolError? error,
  }) {
    final result = create();
    if (success != null) result.success = success;
    if (errorMessage != null) result.errorMessage = errorMessage;
    if (error != null) result.error = error;
    return result;
  }

  SelfUpdateResponse._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(
      _omitMessageNames ? '' : 'SelfUpdateResponse',
      package: const $pb.PackageName(_omitMessageNames ? '' : 'oto.runner.v1'),
      createEmptyInstance: create)
    ..aOB(1, _omitFieldNames ? '' : 'success')
    ..aOS(2, _omitFieldNames ? '' : 'errorMessage')
    ..aOM<ProtocolError>(3, _omitFieldNames ? '' : 'error',
        subBuilder: ProtocolError.create)
    ..hasRequiredFields = false;

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

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

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

  @$pb.TagNumber(1)
  $core.bool get success => $_getBF(0);
  @$pb.TagNumber(1)
  set success($core.bool value) => $_setBool(0, value);
  @$pb.TagNumber(1)
  $core.bool hasSuccess() => $_has(0);
  @$pb.TagNumber(1)
  void clearSuccess() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get errorMessage => $_getSZ(1);
  @$pb.TagNumber(2)
  set errorMessage($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasErrorMessage() => $_has(1);
  @$pb.TagNumber(2)
  void clearErrorMessage() => $_clearField(2);

  @$pb.TagNumber(3)
  ProtocolError get error => $_getN(2);
  @$pb.TagNumber(3)
  set error(ProtocolError value) => $_setField(3, value);
  @$pb.TagNumber(3)
  $core.bool hasError() => $_has(2);
  @$pb.TagNumber(3)
  void clearError() => $_clearField(3);
  @$pb.TagNumber(3)
  ProtocolError ensureError() => $_ensure(2);
}

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