//
//  Generated code. Do not modify.
//  source: go-ape.proto
//
// @dart = 3.3

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

import 'dart:core' as $core;

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

import 'go-ape.pbenum.dart';

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

export 'go-ape.pbenum.dart';

class GoAPEGenerateRequest extends $pb.GeneratedMessage {
  factory GoAPEGenerateRequest({
    $core.String? namespace,
    $core.String? templateName,
    $core.String? languageCode,
    $core.String? dataJSON,
    GoAPEGenerateType? outputFormat,
  }) {
    final $result = create();
    if (namespace != null) {
      $result.namespace = namespace;
    }
    if (templateName != null) {
      $result.templateName = templateName;
    }
    if (languageCode != null) {
      $result.languageCode = languageCode;
    }
    if (dataJSON != null) {
      $result.dataJSON = dataJSON;
    }
    if (outputFormat != null) {
      $result.outputFormat = outputFormat;
    }
    return $result;
  }
  GoAPEGenerateRequest._() : super();
  factory GoAPEGenerateRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory GoAPEGenerateRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GoAPEGenerateRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'Namespace', protoName: 'Namespace')
    ..aOS(2, _omitFieldNames ? '' : 'TemplateName', protoName: 'TemplateName')
    ..aOS(3, _omitFieldNames ? '' : 'LanguageCode', protoName: 'LanguageCode')
    ..aOS(4, _omitFieldNames ? '' : 'DataJSON', protoName: 'DataJSON')
    ..e<GoAPEGenerateType>(5, _omitFieldNames ? '' : 'OutputFormat', $pb.PbFieldType.OE, protoName: 'OutputFormat', defaultOrMaker: GoAPEGenerateType.GO_APE_GENERATE_TYPE_TEXT, valueOf: GoAPEGenerateType.valueOf, enumValues: GoAPEGenerateType.values)
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

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

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

  @$pb.TagNumber(3)
  $core.String get languageCode => $_getSZ(2);
  @$pb.TagNumber(3)
  set languageCode($core.String v) { $_setString(2, v); }
  @$pb.TagNumber(3)
  $core.bool hasLanguageCode() => $_has(2);
  @$pb.TagNumber(3)
  void clearLanguageCode() => $_clearField(3);

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

  @$pb.TagNumber(5)
  GoAPEGenerateType get outputFormat => $_getN(4);
  @$pb.TagNumber(5)
  set outputFormat(GoAPEGenerateType v) { $_setField(5, v); }
  @$pb.TagNumber(5)
  $core.bool hasOutputFormat() => $_has(4);
  @$pb.TagNumber(5)
  void clearOutputFormat() => $_clearField(5);
}

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GoAPEGenerateResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'Result', $pb.PbFieldType.OY, protoName: 'Result')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $core.List<$core.int> get result => $_getN(0);
  @$pb.TagNumber(1)
  set result($core.List<$core.int> v) { $_setBytes(0, v); }
  @$pb.TagNumber(1)
  $core.bool hasResult() => $_has(0);
  @$pb.TagNumber(1)
  void clearResult() => $_clearField(1);
}


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