//
//  Generated code. Do not modify.
//  source: client.proto
//
// @dart = 3.3

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

import 'dart:core' as $core;

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

import 'shared.pb.dart' as $3;

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

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'OpenIDClient', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'AppName', protoName: 'AppName')
    ..aOS(2, _omitFieldNames ? '' : 'DisplayName', protoName: 'DisplayName')
    ..aOS(3, _omitFieldNames ? '' : 'RootURI', protoName: 'RootURI')
    ..pPS(4, _omitFieldNames ? '' : 'RedirectURIs', protoName: 'RedirectURIs')
    ..aOS(5, _omitFieldNames ? '' : 'Description', protoName: 'Description')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

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

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

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

  @$pb.TagNumber(4)
  $pb.PbList<$core.String> get redirectURIs => $_getList(3);

  @$pb.TagNumber(5)
  $core.String get description => $_getSZ(4);
  @$pb.TagNumber(5)
  set description($core.String v) { $_setString(4, v); }
  @$pb.TagNumber(5)
  $core.bool hasDescription() => $_has(4);
  @$pb.TagNumber(5)
  void clearDescription() => $_clearField(5);
}

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RegisterPlatformClientRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<OpenIDClient>(1, _omitFieldNames ? '' : 'Client', protoName: 'Client', subBuilder: OpenIDClient.create)
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  OpenIDClient get client => $_getN(0);
  @$pb.TagNumber(1)
  set client(OpenIDClient v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasClient() => $_has(0);
  @$pb.TagNumber(1)
  void clearClient() => $_clearField(1);
  @$pb.TagNumber(1)
  OpenIDClient ensureClient() => $_ensure(0);
}

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RegisterClientRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.RequestOrganisationHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.RequestOrganisationHeader.create)
    ..aOM<OpenIDClient>(2, _omitFieldNames ? '' : 'Client', protoName: 'Client', subBuilder: OpenIDClient.create)
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.RequestOrganisationHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.RequestOrganisationHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.RequestOrganisationHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  OpenIDClient get client => $_getN(1);
  @$pb.TagNumber(2)
  set client(OpenIDClient v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasClient() => $_has(1);
  @$pb.TagNumber(2)
  void clearClient() => $_clearField(2);
  @$pb.TagNumber(2)
  OpenIDClient ensureClient() => $_ensure(1);
}

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RegisterClientResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'ClientID', protoName: 'ClientID')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

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


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