From eb11f022be9c1fc5db6e87f3463a1ceb3e04501f Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Thu, 4 Apr 2024 10:46:06 +0200 Subject: [PATCH] Update proto files --- Makefile | 6 +- lib/accounts/accounts_v1.pb.dart | 22 ++-- lib/accounts/accounts_v1.pbgrpc.dart | 38 +++--- lib/accounts/accounts_v1.pbjson.dart | 16 +-- lib/email/email_v1.pb.dart | 132 +++++++++++++++++++ lib/email/email_v1.pbenum.dart | 11 ++ lib/email/email_v1.pbgrpc.dart | 80 +++++++++++ lib/email/email_v1.pbjson.dart | 41 ++++++ lib/environments/environments_v1.pb.dart | 97 +++++++++++++- lib/environments/environments_v1.pbenum.dart | 21 ++- lib/environments/environments_v1.pbgrpc.dart | 84 ++++++------ lib/environments/environments_v1.pbjson.dart | 40 +++++- lib/google/protobuf/api.pb.dart | 44 +++---- lib/google/protobuf/type.pb.dart | 34 ++--- proto | 2 +- 15 files changed, 539 insertions(+), 129 deletions(-) create mode 100644 lib/email/email_v1.pb.dart create mode 100644 lib/email/email_v1.pbenum.dart create mode 100644 lib/email/email_v1.pbgrpc.dart create mode 100644 lib/email/email_v1.pbjson.dart diff --git a/Makefile b/Makefile index 29f456f..079b769 100644 --- a/Makefile +++ b/Makefile @@ -3,10 +3,10 @@ # --------------------------------------------------------------------- CONTAINER_TOOL ?= docker -container-go-protobuf: - $(CONTAINER_TOOL) build -t gogen . && \ +container-dart-protobuf: + $(CONTAINER_TOOL) build -t dartgen . && \ $(CONTAINER_TOOL) run --rm \ - -v $$(pwd)/lib:/dart gogen \ + -v $$(pwd)/lib:/dart dartgen \ cp -R /out/. /dart/ update-exports: diff --git a/lib/accounts/accounts_v1.pb.dart b/lib/accounts/accounts_v1.pb.dart index 7835b2c..f6db444 100644 --- a/lib/accounts/accounts_v1.pb.dart +++ b/lib/accounts/accounts_v1.pb.dart @@ -80,7 +80,7 @@ class AccountPassword extends $pb.GeneratedMessage { factory AccountPassword.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AccountPassword', package: const $pb.PackageName(_omitMessageNames ? '' : 'accounts'), createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'Password', protoName: 'Password') + ..aOS(1, _omitFieldNames ? '' : 'password') ..hasRequiredFields = false ; @@ -182,14 +182,14 @@ class AccountData extends $pb.GeneratedMessage { class AccountWithPassword extends $pb.GeneratedMessage { factory AccountWithPassword({ AccountData? data, - AccountPassword? accountPassword, + AccountPassword? password, }) { final $result = create(); if (data != null) { $result.data = data; } - if (accountPassword != null) { - $result.accountPassword = accountPassword; + if (password != null) { + $result.password = password; } return $result; } @@ -199,7 +199,7 @@ class AccountWithPassword extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AccountWithPassword', package: const $pb.PackageName(_omitMessageNames ? '' : 'accounts'), createEmptyInstance: create) ..aOM(1, _omitFieldNames ? '' : 'data', subBuilder: AccountData.create) - ..aOM(2, _omitFieldNames ? '' : 'AccountPassword', protoName: 'AccountPassword', subBuilder: AccountPassword.create) + ..aOM(2, _omitFieldNames ? '' : 'password', subBuilder: AccountPassword.create) ..hasRequiredFields = false ; @@ -236,15 +236,15 @@ class AccountWithPassword extends $pb.GeneratedMessage { AccountData ensureData() => $_ensure(0); @$pb.TagNumber(2) - AccountPassword get accountPassword => $_getN(1); + AccountPassword get password => $_getN(1); @$pb.TagNumber(2) - set accountPassword(AccountPassword v) { setField(2, v); } + set password(AccountPassword v) { setField(2, v); } @$pb.TagNumber(2) - $core.bool hasAccountPassword() => $_has(1); + $core.bool hasPassword() => $_has(1); @$pb.TagNumber(2) - void clearAccountPassword() => clearField(2); + void clearPassword() => clearField(2); @$pb.TagNumber(2) - AccountPassword ensureAccountPassword() => $_ensure(1); + AccountPassword ensurePassword() => $_ensure(1); } class AccountFull extends $pb.GeneratedMessage { @@ -340,7 +340,7 @@ class AccountFullWithToken extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AccountFullWithToken', package: const $pb.PackageName(_omitMessageNames ? '' : 'accounts'), createEmptyInstance: create) ..aOM(1, _omitFieldNames ? '' : 'id', subBuilder: AccountId.create) ..aOM(2, _omitFieldNames ? '' : 'data', subBuilder: AccountData.create) - ..aOS(3, _omitFieldNames ? '' : 'Token', protoName: 'Token') + ..aOS(3, _omitFieldNames ? '' : 'token') ..hasRequiredFields = false ; diff --git a/lib/accounts/accounts_v1.pbgrpc.dart b/lib/accounts/accounts_v1.pbgrpc.dart index 70b7882..66629d4 100644 --- a/lib/accounts/accounts_v1.pbgrpc.dart +++ b/lib/accounts/accounts_v1.pbgrpc.dart @@ -15,20 +15,20 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'accounts_v1.pb.dart' as $2; +import 'accounts_v1.pb.dart' as $3; export 'accounts_v1.pb.dart'; @$pb.GrpcServiceName('accounts.Accounts') class AccountsClient extends $grpc.Client { - static final _$signUp = $grpc.ClientMethod<$2.AccountWithPassword, $2.AccountFullWithToken>( + static final _$signUp = $grpc.ClientMethod<$3.AccountWithPassword, $3.AccountFullWithToken>( '/accounts.Accounts/SignUp', - ($2.AccountWithPassword value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $2.AccountFullWithToken.fromBuffer(value)); - static final _$signIn = $grpc.ClientMethod<$2.AccountWithPassword, $2.AccountFullWithToken>( + ($3.AccountWithPassword value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $3.AccountFullWithToken.fromBuffer(value)); + static final _$signIn = $grpc.ClientMethod<$3.AccountWithPassword, $3.AccountFullWithToken>( '/accounts.Accounts/SignIn', - ($2.AccountWithPassword value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $2.AccountFullWithToken.fromBuffer(value)); + ($3.AccountWithPassword value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $3.AccountFullWithToken.fromBuffer(value)); AccountsClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -36,11 +36,11 @@ class AccountsClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$2.AccountFullWithToken> signUp($2.AccountWithPassword request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$3.AccountFullWithToken> signUp($3.AccountWithPassword request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$signUp, request, options: options); } - $grpc.ResponseFuture<$2.AccountFullWithToken> signIn($2.AccountWithPassword request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$3.AccountFullWithToken> signIn($3.AccountWithPassword request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$signIn, request, options: options); } } @@ -50,30 +50,30 @@ abstract class AccountsServiceBase extends $grpc.Service { $core.String get $name => 'accounts.Accounts'; AccountsServiceBase() { - $addMethod($grpc.ServiceMethod<$2.AccountWithPassword, $2.AccountFullWithToken>( + $addMethod($grpc.ServiceMethod<$3.AccountWithPassword, $3.AccountFullWithToken>( 'SignUp', signUp_Pre, false, false, - ($core.List<$core.int> value) => $2.AccountWithPassword.fromBuffer(value), - ($2.AccountFullWithToken value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$2.AccountWithPassword, $2.AccountFullWithToken>( + ($core.List<$core.int> value) => $3.AccountWithPassword.fromBuffer(value), + ($3.AccountFullWithToken value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$3.AccountWithPassword, $3.AccountFullWithToken>( 'SignIn', signIn_Pre, false, false, - ($core.List<$core.int> value) => $2.AccountWithPassword.fromBuffer(value), - ($2.AccountFullWithToken value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $3.AccountWithPassword.fromBuffer(value), + ($3.AccountFullWithToken value) => value.writeToBuffer())); } - $async.Future<$2.AccountFullWithToken> signUp_Pre($grpc.ServiceCall call, $async.Future<$2.AccountWithPassword> request) async { + $async.Future<$3.AccountFullWithToken> signUp_Pre($grpc.ServiceCall call, $async.Future<$3.AccountWithPassword> request) async { return signUp(call, await request); } - $async.Future<$2.AccountFullWithToken> signIn_Pre($grpc.ServiceCall call, $async.Future<$2.AccountWithPassword> request) async { + $async.Future<$3.AccountFullWithToken> signIn_Pre($grpc.ServiceCall call, $async.Future<$3.AccountWithPassword> request) async { return signIn(call, await request); } - $async.Future<$2.AccountFullWithToken> signUp($grpc.ServiceCall call, $2.AccountWithPassword request); - $async.Future<$2.AccountFullWithToken> signIn($grpc.ServiceCall call, $2.AccountWithPassword request); + $async.Future<$3.AccountFullWithToken> signUp($grpc.ServiceCall call, $3.AccountWithPassword request); + $async.Future<$3.AccountFullWithToken> signIn($grpc.ServiceCall call, $3.AccountWithPassword request); } diff --git a/lib/accounts/accounts_v1.pbjson.dart b/lib/accounts/accounts_v1.pbjson.dart index 6a7ce03..f39518d 100644 --- a/lib/accounts/accounts_v1.pbjson.dart +++ b/lib/accounts/accounts_v1.pbjson.dart @@ -29,13 +29,13 @@ final $typed_data.Uint8List accountIdDescriptor = $convert.base64Decode( const AccountPassword$json = { '1': 'AccountPassword', '2': [ - {'1': 'Password', '3': 1, '4': 1, '5': 9, '10': 'Password'}, + {'1': 'password', '3': 1, '4': 1, '5': 9, '10': 'password'}, ], }; /// Descriptor for `AccountPassword`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List accountPasswordDescriptor = $convert.base64Decode( - 'Cg9BY2NvdW50UGFzc3dvcmQSGgoIUGFzc3dvcmQYASABKAlSCFBhc3N3b3Jk'); + 'Cg9BY2NvdW50UGFzc3dvcmQSGgoIcGFzc3dvcmQYASABKAlSCHBhc3N3b3Jk'); @$core.Deprecated('Use accountDataDescriptor instead') const AccountData$json = { @@ -56,15 +56,15 @@ const AccountWithPassword$json = { '1': 'AccountWithPassword', '2': [ {'1': 'data', '3': 1, '4': 1, '5': 11, '6': '.accounts.AccountData', '10': 'data'}, - {'1': 'AccountPassword', '3': 2, '4': 1, '5': 11, '6': '.accounts.AccountPassword', '10': 'AccountPassword'}, + {'1': 'password', '3': 2, '4': 1, '5': 11, '6': '.accounts.AccountPassword', '10': 'password'}, ], }; /// Descriptor for `AccountWithPassword`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List accountWithPasswordDescriptor = $convert.base64Decode( 'ChNBY2NvdW50V2l0aFBhc3N3b3JkEikKBGRhdGEYASABKAsyFS5hY2NvdW50cy5BY2NvdW50RG' - 'F0YVIEZGF0YRJDCg9BY2NvdW50UGFzc3dvcmQYAiABKAsyGS5hY2NvdW50cy5BY2NvdW50UGFz' - 'c3dvcmRSD0FjY291bnRQYXNzd29yZA=='); + 'F0YVIEZGF0YRI1CghwYXNzd29yZBgCIAEoCzIZLmFjY291bnRzLkFjY291bnRQYXNzd29yZFII' + 'cGFzc3dvcmQ='); @$core.Deprecated('Use accountFullDescriptor instead') const AccountFull$json = { @@ -86,13 +86,13 @@ const AccountFullWithToken$json = { '2': [ {'1': 'id', '3': 1, '4': 1, '5': 11, '6': '.accounts.AccountId', '10': 'id'}, {'1': 'data', '3': 2, '4': 1, '5': 11, '6': '.accounts.AccountData', '10': 'data'}, - {'1': 'Token', '3': 3, '4': 1, '5': 9, '10': 'Token'}, + {'1': 'token', '3': 3, '4': 1, '5': 9, '10': 'token'}, ], }; /// Descriptor for `AccountFullWithToken`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List accountFullWithTokenDescriptor = $convert.base64Decode( 'ChRBY2NvdW50RnVsbFdpdGhUb2tlbhIjCgJpZBgBIAEoCzITLmFjY291bnRzLkFjY291bnRJZF' - 'ICaWQSKQoEZGF0YRgCIAEoCzIVLmFjY291bnRzLkFjY291bnREYXRhUgRkYXRhEhQKBVRva2Vu' - 'GAMgASgJUgVUb2tlbg=='); + 'ICaWQSKQoEZGF0YRgCIAEoCzIVLmFjY291bnRzLkFjY291bnREYXRhUgRkYXRhEhQKBXRva2Vu' + 'GAMgASgJUgV0b2tlbg=='); diff --git a/lib/email/email_v1.pb.dart b/lib/email/email_v1.pb.dart new file mode 100644 index 0000000..86be6b4 --- /dev/null +++ b/lib/email/email_v1.pb.dart @@ -0,0 +1,132 @@ +// +// Generated code. Do not modify. +// source: email/email_v1.proto +// +// @dart = 2.12 + +// 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; + +class RequestValidation extends $pb.GeneratedMessage { + factory RequestValidation({ + $core.String? userId, + }) { + final $result = create(); + if (userId != null) { + $result.userId = userId; + } + return $result; + } + RequestValidation._() : super(); + factory RequestValidation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory RequestValidation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RequestValidation', package: const $pb.PackageName(_omitMessageNames ? '' : 'email'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'userId') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + RequestValidation clone() => RequestValidation()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + RequestValidation copyWith(void Function(RequestValidation) updates) => super.copyWith((message) => updates(message as RequestValidation)) as RequestValidation; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static RequestValidation create() => RequestValidation._(); + RequestValidation createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static RequestValidation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static RequestValidation? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get userId => $_getSZ(0); + @$pb.TagNumber(1) + set userId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasUserId() => $_has(0); + @$pb.TagNumber(1) + void clearUserId() => clearField(1); +} + +class ConfirmValidation extends $pb.GeneratedMessage { + factory ConfirmValidation({ + $core.String? userId, + $core.int? code, + }) { + final $result = create(); + if (userId != null) { + $result.userId = userId; + } + if (code != null) { + $result.code = code; + } + return $result; + } + ConfirmValidation._() : super(); + factory ConfirmValidation.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ConfirmValidation.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ConfirmValidation', package: const $pb.PackageName(_omitMessageNames ? '' : 'email'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'userId') + ..a<$core.int>(2, _omitFieldNames ? '' : 'code', $pb.PbFieldType.O3) + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ConfirmValidation clone() => ConfirmValidation()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ConfirmValidation copyWith(void Function(ConfirmValidation) updates) => super.copyWith((message) => updates(message as ConfirmValidation)) as ConfirmValidation; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static ConfirmValidation create() => ConfirmValidation._(); + ConfirmValidation createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static ConfirmValidation getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static ConfirmValidation? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get userId => $_getSZ(0); + @$pb.TagNumber(1) + set userId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasUserId() => $_has(0); + @$pb.TagNumber(1) + void clearUserId() => clearField(1); + + @$pb.TagNumber(2) + $core.int get code => $_getIZ(1); + @$pb.TagNumber(2) + set code($core.int v) { $_setSignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasCode() => $_has(1); + @$pb.TagNumber(2) + void clearCode() => clearField(2); +} + + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/email/email_v1.pbenum.dart b/lib/email/email_v1.pbenum.dart new file mode 100644 index 0000000..22bc24f --- /dev/null +++ b/lib/email/email_v1.pbenum.dart @@ -0,0 +1,11 @@ +// +// Generated code. Do not modify. +// source: email/email_v1.proto +// +// @dart = 2.12 + +// 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 + diff --git a/lib/email/email_v1.pbgrpc.dart b/lib/email/email_v1.pbgrpc.dart new file mode 100644 index 0000000..287fd1d --- /dev/null +++ b/lib/email/email_v1.pbgrpc.dart @@ -0,0 +1,80 @@ +// +// Generated code. Do not modify. +// source: email/email_v1.proto +// +// @dart = 2.12 + +// 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:async' as $async; +import 'dart:core' as $core; + +import 'package:grpc/service_api.dart' as $grpc; +import 'package:protobuf/protobuf.dart' as $pb; + +import '../google/protobuf/empty.pb.dart' as $1; +import 'email_v1.pb.dart' as $0; + +export 'email_v1.pb.dart'; + +@$pb.GrpcServiceName('email.EmailValidation') +class EmailValidationClient extends $grpc.Client { + static final _$sendRequest = $grpc.ClientMethod<$0.RequestValidation, $1.Empty>( + '/email.EmailValidation/SendRequest', + ($0.RequestValidation value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); + static final _$validateEmail = $grpc.ClientMethod<$0.ConfirmValidation, $1.Empty>( + '/email.EmailValidation/ValidateEmail', + ($0.ConfirmValidation value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); + + EmailValidationClient($grpc.ClientChannel channel, + {$grpc.CallOptions? options, + $core.Iterable<$grpc.ClientInterceptor>? interceptors}) + : super(channel, options: options, + interceptors: interceptors); + + $grpc.ResponseFuture<$1.Empty> sendRequest($0.RequestValidation request, {$grpc.CallOptions? options}) { + return $createUnaryCall(_$sendRequest, request, options: options); + } + + $grpc.ResponseFuture<$1.Empty> validateEmail($0.ConfirmValidation request, {$grpc.CallOptions? options}) { + return $createUnaryCall(_$validateEmail, request, options: options); + } +} + +@$pb.GrpcServiceName('email.EmailValidation') +abstract class EmailValidationServiceBase extends $grpc.Service { + $core.String get $name => 'email.EmailValidation'; + + EmailValidationServiceBase() { + $addMethod($grpc.ServiceMethod<$0.RequestValidation, $1.Empty>( + 'SendRequest', + sendRequest_Pre, + false, + false, + ($core.List<$core.int> value) => $0.RequestValidation.fromBuffer(value), + ($1.Empty value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.ConfirmValidation, $1.Empty>( + 'ValidateEmail', + validateEmail_Pre, + false, + false, + ($core.List<$core.int> value) => $0.ConfirmValidation.fromBuffer(value), + ($1.Empty value) => value.writeToBuffer())); + } + + $async.Future<$1.Empty> sendRequest_Pre($grpc.ServiceCall call, $async.Future<$0.RequestValidation> request) async { + return sendRequest(call, await request); + } + + $async.Future<$1.Empty> validateEmail_Pre($grpc.ServiceCall call, $async.Future<$0.ConfirmValidation> request) async { + return validateEmail(call, await request); + } + + $async.Future<$1.Empty> sendRequest($grpc.ServiceCall call, $0.RequestValidation request); + $async.Future<$1.Empty> validateEmail($grpc.ServiceCall call, $0.ConfirmValidation request); +} diff --git a/lib/email/email_v1.pbjson.dart b/lib/email/email_v1.pbjson.dart new file mode 100644 index 0000000..92b7803 --- /dev/null +++ b/lib/email/email_v1.pbjson.dart @@ -0,0 +1,41 @@ +// +// Generated code. Do not modify. +// source: email/email_v1.proto +// +// @dart = 2.12 + +// 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:convert' as $convert; +import 'dart:core' as $core; +import 'dart:typed_data' as $typed_data; + +@$core.Deprecated('Use requestValidationDescriptor instead') +const RequestValidation$json = { + '1': 'RequestValidation', + '2': [ + {'1': 'user_id', '3': 1, '4': 1, '5': 9, '10': 'userId'}, + ], +}; + +/// Descriptor for `RequestValidation`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List requestValidationDescriptor = $convert.base64Decode( + 'ChFSZXF1ZXN0VmFsaWRhdGlvbhIXCgd1c2VyX2lkGAEgASgJUgZ1c2VySWQ='); + +@$core.Deprecated('Use confirmValidationDescriptor instead') +const ConfirmValidation$json = { + '1': 'ConfirmValidation', + '2': [ + {'1': 'user_id', '3': 1, '4': 1, '5': 9, '10': 'userId'}, + {'1': 'code', '3': 2, '4': 1, '5': 5, '10': 'code'}, + ], +}; + +/// Descriptor for `ConfirmValidation`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List confirmValidationDescriptor = $convert.base64Decode( + 'ChFDb25maXJtVmFsaWRhdGlvbhIXCgd1c2VyX2lkGAEgASgJUgZ1c2VySWQSEgoEY29kZRgCIA' + 'EoBVIEY29kZQ=='); + diff --git a/lib/environments/environments_v1.pb.dart b/lib/environments/environments_v1.pb.dart index ccd9c22..534eb1d 100644 --- a/lib/environments/environments_v1.pb.dart +++ b/lib/environments/environments_v1.pb.dart @@ -19,6 +19,7 @@ export 'environments_v1.pbenum.dart'; /// * /// Represents a environment UUID only +/// I don't think we need it class EnvironmentId extends $pb.GeneratedMessage { factory EnvironmentId({ $core.String? id, @@ -73,6 +74,8 @@ class EnvironmentData extends $pb.GeneratedMessage { factory EnvironmentData({ $core.String? name, Provider? provider, + Kubernetes? kubernetes, + HetznerOptions? hetznerOptions, }) { final $result = create(); if (name != null) { @@ -81,6 +84,12 @@ class EnvironmentData extends $pb.GeneratedMessage { if (provider != null) { $result.provider = provider; } + if (kubernetes != null) { + $result.kubernetes = kubernetes; + } + if (hetznerOptions != null) { + $result.hetznerOptions = hetznerOptions; + } return $result; } EnvironmentData._() : super(); @@ -89,7 +98,9 @@ class EnvironmentData extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EnvironmentData', package: const $pb.PackageName(_omitMessageNames ? '' : 'environments'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'name') - ..e(2, _omitFieldNames ? '' : 'provider', $pb.PbFieldType.OE, defaultOrMaker: Provider.Hetzner, valueOf: Provider.valueOf, enumValues: Provider.values) + ..e(2, _omitFieldNames ? '' : 'provider', $pb.PbFieldType.OE, defaultOrMaker: Provider.PROVIDER_UNSPECIFIED, valueOf: Provider.valueOf, enumValues: Provider.values) + ..e(3, _omitFieldNames ? '' : 'kubernetes', $pb.PbFieldType.OE, defaultOrMaker: Kubernetes.KUBERNETES_UNSPECIFIED, valueOf: Kubernetes.valueOf, enumValues: Kubernetes.values) + ..aOM(4, _omitFieldNames ? '' : 'hetznerOptions', subBuilder: HetznerOptions.create) ..hasRequiredFields = false ; @@ -131,6 +142,90 @@ class EnvironmentData extends $pb.GeneratedMessage { $core.bool hasProvider() => $_has(1); @$pb.TagNumber(2) void clearProvider() => clearField(2); + + @$pb.TagNumber(3) + Kubernetes get kubernetes => $_getN(2); + @$pb.TagNumber(3) + set kubernetes(Kubernetes v) { setField(3, v); } + @$pb.TagNumber(3) + $core.bool hasKubernetes() => $_has(2); + @$pb.TagNumber(3) + void clearKubernetes() => clearField(3); + + @$pb.TagNumber(4) + HetznerOptions get hetznerOptions => $_getN(3); + @$pb.TagNumber(4) + set hetznerOptions(HetznerOptions v) { setField(4, v); } + @$pb.TagNumber(4) + $core.bool hasHetznerOptions() => $_has(3); + @$pb.TagNumber(4) + void clearHetznerOptions() => clearField(4); + @$pb.TagNumber(4) + HetznerOptions ensureHetznerOptions() => $_ensure(3); +} + +class HetznerOptions extends $pb.GeneratedMessage { + factory HetznerOptions({ + $core.String? serverType, + $core.String? serverLocation, + }) { + final $result = create(); + if (serverType != null) { + $result.serverType = serverType; + } + if (serverLocation != null) { + $result.serverLocation = serverLocation; + } + return $result; + } + HetznerOptions._() : super(); + factory HetznerOptions.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory HetznerOptions.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'HetznerOptions', package: const $pb.PackageName(_omitMessageNames ? '' : 'environments'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'serverType') + ..aOS(2, _omitFieldNames ? '' : 'serverLocation') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + HetznerOptions clone() => HetznerOptions()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + HetznerOptions copyWith(void Function(HetznerOptions) updates) => super.copyWith((message) => updates(message as HetznerOptions)) as HetznerOptions; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static HetznerOptions create() => HetznerOptions._(); + HetznerOptions createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static HetznerOptions getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static HetznerOptions? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get serverType => $_getSZ(0); + @$pb.TagNumber(1) + set serverType($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasServerType() => $_has(0); + @$pb.TagNumber(1) + void clearServerType() => clearField(1); + + @$pb.TagNumber(2) + $core.String get serverLocation => $_getSZ(1); + @$pb.TagNumber(2) + set serverLocation($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasServerLocation() => $_has(1); + @$pb.TagNumber(2) + void clearServerLocation() => clearField(2); } class EnvironmentFull extends $pb.GeneratedMessage { diff --git a/lib/environments/environments_v1.pbenum.dart b/lib/environments/environments_v1.pbenum.dart index 2c58f72..0dc522b 100644 --- a/lib/environments/environments_v1.pbenum.dart +++ b/lib/environments/environments_v1.pbenum.dart @@ -14,10 +14,12 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; class Provider extends $pb.ProtobufEnum { - static const Provider Hetzner = Provider._(0, _omitEnumNames ? '' : 'Hetzner'); + static const Provider PROVIDER_UNSPECIFIED = Provider._(0, _omitEnumNames ? '' : 'PROVIDER_UNSPECIFIED'); + static const Provider PROVIDER_HETZNER = Provider._(1, _omitEnumNames ? '' : 'PROVIDER_HETZNER'); static const $core.List values = [ - Hetzner, + PROVIDER_UNSPECIFIED, + PROVIDER_HETZNER, ]; static final $core.Map<$core.int, Provider> _byValue = $pb.ProtobufEnum.initByValue(values); @@ -26,5 +28,20 @@ class Provider extends $pb.ProtobufEnum { const Provider._($core.int v, $core.String n) : super(v, n); } +class Kubernetes extends $pb.ProtobufEnum { + static const Kubernetes KUBERNETES_UNSPECIFIED = Kubernetes._(0, _omitEnumNames ? '' : 'KUBERNETES_UNSPECIFIED'); + static const Kubernetes KUBERNETES_K3S = Kubernetes._(1, _omitEnumNames ? '' : 'KUBERNETES_K3S'); + + static const $core.List values = [ + KUBERNETES_UNSPECIFIED, + KUBERNETES_K3S, + ]; + + static final $core.Map<$core.int, Kubernetes> _byValue = $pb.ProtobufEnum.initByValue(values); + static Kubernetes? valueOf($core.int value) => _byValue[value]; + + const Kubernetes._($core.int v, $core.String n) : super(v, n); +} + const _omitEnumNames = $core.bool.fromEnvironment('protobuf.omit_enum_names'); diff --git a/lib/environments/environments_v1.pbgrpc.dart b/lib/environments/environments_v1.pbgrpc.dart index fb4cb77..6331d27 100644 --- a/lib/environments/environments_v1.pbgrpc.dart +++ b/lib/environments/environments_v1.pbgrpc.dart @@ -16,32 +16,32 @@ import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; import '../google/protobuf/empty.pb.dart' as $1; -import 'environments_v1.pb.dart' as $0; +import 'environments_v1.pb.dart' as $2; export 'environments_v1.pb.dart'; @$pb.GrpcServiceName('environments.Environments') class EnvironmentsClient extends $grpc.Client { - static final _$create = $grpc.ClientMethod<$0.EnvironmentData, $0.EnvironmentFull>( + static final _$create = $grpc.ClientMethod<$2.EnvironmentData, $2.EnvironmentFull>( '/environments.Environments/Create', - ($0.EnvironmentData value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.EnvironmentFull.fromBuffer(value)); - static final _$update = $grpc.ClientMethod<$0.EnvironmentFull, $0.EnvironmentFull>( + ($2.EnvironmentData value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $2.EnvironmentFull.fromBuffer(value)); + static final _$update = $grpc.ClientMethod<$2.EnvironmentFull, $2.EnvironmentFull>( '/environments.Environments/Update', - ($0.EnvironmentFull value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.EnvironmentFull.fromBuffer(value)); - static final _$delete = $grpc.ClientMethod<$0.EnvironmentFull, $1.Empty>( + ($2.EnvironmentFull value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $2.EnvironmentFull.fromBuffer(value)); + static final _$delete = $grpc.ClientMethod<$2.EnvironmentFull, $1.Empty>( '/environments.Environments/Delete', - ($0.EnvironmentFull value) => value.writeToBuffer(), + ($2.EnvironmentFull value) => value.writeToBuffer(), ($core.List<$core.int> value) => $1.Empty.fromBuffer(value)); - static final _$get = $grpc.ClientMethod<$0.EnvironmentId, $0.EnvironmentFull>( + static final _$get = $grpc.ClientMethod<$2.EnvironmentId, $2.EnvironmentFull>( '/environments.Environments/Get', - ($0.EnvironmentId value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.EnvironmentFull.fromBuffer(value)); - static final _$list = $grpc.ClientMethod<$1.Empty, $0.EnvironmentFull>( + ($2.EnvironmentId value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $2.EnvironmentFull.fromBuffer(value)); + static final _$list = $grpc.ClientMethod<$1.Empty, $2.EnvironmentFull>( '/environments.Environments/List', ($1.Empty value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.EnvironmentFull.fromBuffer(value)); + ($core.List<$core.int> value) => $2.EnvironmentFull.fromBuffer(value)); EnvironmentsClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -49,23 +49,23 @@ class EnvironmentsClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$0.EnvironmentFull> create($0.EnvironmentData request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$2.EnvironmentFull> create($2.EnvironmentData request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$create, request, options: options); } - $grpc.ResponseFuture<$0.EnvironmentFull> update($0.EnvironmentFull request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$2.EnvironmentFull> update($2.EnvironmentFull request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$update, request, options: options); } - $grpc.ResponseFuture<$1.Empty> delete($0.EnvironmentFull request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$1.Empty> delete($2.EnvironmentFull request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$delete, request, options: options); } - $grpc.ResponseFuture<$0.EnvironmentFull> get($0.EnvironmentId request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$2.EnvironmentFull> get($2.EnvironmentId request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$get, request, options: options); } - $grpc.ResponseStream<$0.EnvironmentFull> list($1.Empty request, {$grpc.CallOptions? options}) { + $grpc.ResponseStream<$2.EnvironmentFull> list($1.Empty request, {$grpc.CallOptions? options}) { return $createStreamingCall(_$list, $async.Stream.fromIterable([request]), options: options); } } @@ -75,66 +75,66 @@ abstract class EnvironmentsServiceBase extends $grpc.Service { $core.String get $name => 'environments.Environments'; EnvironmentsServiceBase() { - $addMethod($grpc.ServiceMethod<$0.EnvironmentData, $0.EnvironmentFull>( + $addMethod($grpc.ServiceMethod<$2.EnvironmentData, $2.EnvironmentFull>( 'Create', create_Pre, false, false, - ($core.List<$core.int> value) => $0.EnvironmentData.fromBuffer(value), - ($0.EnvironmentFull value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.EnvironmentFull, $0.EnvironmentFull>( + ($core.List<$core.int> value) => $2.EnvironmentData.fromBuffer(value), + ($2.EnvironmentFull value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$2.EnvironmentFull, $2.EnvironmentFull>( 'Update', update_Pre, false, false, - ($core.List<$core.int> value) => $0.EnvironmentFull.fromBuffer(value), - ($0.EnvironmentFull value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.EnvironmentFull, $1.Empty>( + ($core.List<$core.int> value) => $2.EnvironmentFull.fromBuffer(value), + ($2.EnvironmentFull value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$2.EnvironmentFull, $1.Empty>( 'Delete', delete_Pre, false, false, - ($core.List<$core.int> value) => $0.EnvironmentFull.fromBuffer(value), + ($core.List<$core.int> value) => $2.EnvironmentFull.fromBuffer(value), ($1.Empty value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.EnvironmentId, $0.EnvironmentFull>( + $addMethod($grpc.ServiceMethod<$2.EnvironmentId, $2.EnvironmentFull>( 'Get', get_Pre, false, false, - ($core.List<$core.int> value) => $0.EnvironmentId.fromBuffer(value), - ($0.EnvironmentFull value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$1.Empty, $0.EnvironmentFull>( + ($core.List<$core.int> value) => $2.EnvironmentId.fromBuffer(value), + ($2.EnvironmentFull value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$1.Empty, $2.EnvironmentFull>( 'List', list_Pre, false, true, ($core.List<$core.int> value) => $1.Empty.fromBuffer(value), - ($0.EnvironmentFull value) => value.writeToBuffer())); + ($2.EnvironmentFull value) => value.writeToBuffer())); } - $async.Future<$0.EnvironmentFull> create_Pre($grpc.ServiceCall call, $async.Future<$0.EnvironmentData> request) async { + $async.Future<$2.EnvironmentFull> create_Pre($grpc.ServiceCall call, $async.Future<$2.EnvironmentData> request) async { return create(call, await request); } - $async.Future<$0.EnvironmentFull> update_Pre($grpc.ServiceCall call, $async.Future<$0.EnvironmentFull> request) async { + $async.Future<$2.EnvironmentFull> update_Pre($grpc.ServiceCall call, $async.Future<$2.EnvironmentFull> request) async { return update(call, await request); } - $async.Future<$1.Empty> delete_Pre($grpc.ServiceCall call, $async.Future<$0.EnvironmentFull> request) async { + $async.Future<$1.Empty> delete_Pre($grpc.ServiceCall call, $async.Future<$2.EnvironmentFull> request) async { return delete(call, await request); } - $async.Future<$0.EnvironmentFull> get_Pre($grpc.ServiceCall call, $async.Future<$0.EnvironmentId> request) async { + $async.Future<$2.EnvironmentFull> get_Pre($grpc.ServiceCall call, $async.Future<$2.EnvironmentId> request) async { return get(call, await request); } - $async.Stream<$0.EnvironmentFull> list_Pre($grpc.ServiceCall call, $async.Future<$1.Empty> request) async* { + $async.Stream<$2.EnvironmentFull> list_Pre($grpc.ServiceCall call, $async.Future<$1.Empty> request) async* { yield* list(call, await request); } - $async.Future<$0.EnvironmentFull> create($grpc.ServiceCall call, $0.EnvironmentData request); - $async.Future<$0.EnvironmentFull> update($grpc.ServiceCall call, $0.EnvironmentFull request); - $async.Future<$1.Empty> delete($grpc.ServiceCall call, $0.EnvironmentFull request); - $async.Future<$0.EnvironmentFull> get($grpc.ServiceCall call, $0.EnvironmentId request); - $async.Stream<$0.EnvironmentFull> list($grpc.ServiceCall call, $1.Empty request); + $async.Future<$2.EnvironmentFull> create($grpc.ServiceCall call, $2.EnvironmentData request); + $async.Future<$2.EnvironmentFull> update($grpc.ServiceCall call, $2.EnvironmentFull request); + $async.Future<$1.Empty> delete($grpc.ServiceCall call, $2.EnvironmentFull request); + $async.Future<$2.EnvironmentFull> get($grpc.ServiceCall call, $2.EnvironmentId request); + $async.Stream<$2.EnvironmentFull> list($grpc.ServiceCall call, $1.Empty request); } diff --git a/lib/environments/environments_v1.pbjson.dart b/lib/environments/environments_v1.pbjson.dart index a7bdec9..b4c4a53 100644 --- a/lib/environments/environments_v1.pbjson.dart +++ b/lib/environments/environments_v1.pbjson.dart @@ -17,13 +17,29 @@ import 'dart:typed_data' as $typed_data; const Provider$json = { '1': 'Provider', '2': [ - {'1': 'Hetzner', '2': 0}, + {'1': 'PROVIDER_UNSPECIFIED', '2': 0}, + {'1': 'PROVIDER_HETZNER', '2': 1}, ], }; /// Descriptor for `Provider`. Decode as a `google.protobuf.EnumDescriptorProto`. final $typed_data.Uint8List providerDescriptor = $convert.base64Decode( - 'CghQcm92aWRlchILCgdIZXR6bmVyEAA='); + 'CghQcm92aWRlchIYChRQUk9WSURFUl9VTlNQRUNJRklFRBAAEhQKEFBST1ZJREVSX0hFVFpORV' + 'IQAQ=='); + +@$core.Deprecated('Use kubernetesDescriptor instead') +const Kubernetes$json = { + '1': 'Kubernetes', + '2': [ + {'1': 'KUBERNETES_UNSPECIFIED', '2': 0}, + {'1': 'KUBERNETES_K3S', '2': 1}, + ], +}; + +/// Descriptor for `Kubernetes`. Decode as a `google.protobuf.EnumDescriptorProto`. +final $typed_data.Uint8List kubernetesDescriptor = $convert.base64Decode( + 'CgpLdWJlcm5ldGVzEhoKFktVQkVSTkVURVNfVU5TUEVDSUZJRUQQABISCg5LVUJFUk5FVEVTX0' + 'szUxAB'); @$core.Deprecated('Use environmentIdDescriptor instead') const EnvironmentId$json = { @@ -43,13 +59,31 @@ const EnvironmentData$json = { '2': [ {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, {'1': 'provider', '3': 2, '4': 1, '5': 14, '6': '.environments.Provider', '10': 'provider'}, + {'1': 'kubernetes', '3': 3, '4': 1, '5': 14, '6': '.environments.Kubernetes', '10': 'kubernetes'}, + {'1': 'hetzner_options', '3': 4, '4': 1, '5': 11, '6': '.environments.HetznerOptions', '10': 'hetznerOptions'}, ], }; /// Descriptor for `EnvironmentData`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List environmentDataDescriptor = $convert.base64Decode( 'Cg9FbnZpcm9ubWVudERhdGESEgoEbmFtZRgBIAEoCVIEbmFtZRIyCghwcm92aWRlchgCIAEoDj' - 'IWLmVudmlyb25tZW50cy5Qcm92aWRlclIIcHJvdmlkZXI='); + 'IWLmVudmlyb25tZW50cy5Qcm92aWRlclIIcHJvdmlkZXISOAoKa3ViZXJuZXRlcxgDIAEoDjIY' + 'LmVudmlyb25tZW50cy5LdWJlcm5ldGVzUgprdWJlcm5ldGVzEkUKD2hldHpuZXJfb3B0aW9ucx' + 'gEIAEoCzIcLmVudmlyb25tZW50cy5IZXR6bmVyT3B0aW9uc1IOaGV0em5lck9wdGlvbnM='); + +@$core.Deprecated('Use hetznerOptionsDescriptor instead') +const HetznerOptions$json = { + '1': 'HetznerOptions', + '2': [ + {'1': 'server_type', '3': 1, '4': 1, '5': 9, '10': 'serverType'}, + {'1': 'server_location', '3': 2, '4': 1, '5': 9, '10': 'serverLocation'}, + ], +}; + +/// Descriptor for `HetznerOptions`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List hetznerOptionsDescriptor = $convert.base64Decode( + 'Cg5IZXR6bmVyT3B0aW9ucxIfCgtzZXJ2ZXJfdHlwZRgBIAEoCVIKc2VydmVyVHlwZRInCg9zZX' + 'J2ZXJfbG9jYXRpb24YAiABKAlSDnNlcnZlckxvY2F0aW9u'); @$core.Deprecated('Use environmentFullDescriptor instead') const EnvironmentFull$json = { diff --git a/lib/google/protobuf/api.pb.dart b/lib/google/protobuf/api.pb.dart index 27707aa..47d33bc 100644 --- a/lib/google/protobuf/api.pb.dart +++ b/lib/google/protobuf/api.pb.dart @@ -13,9 +13,9 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -import 'source_context.pb.dart' as $3; -import 'type.pb.dart' as $5; -import 'type.pbenum.dart' as $5; +import 'source_context.pb.dart' as $4; +import 'type.pb.dart' as $6; +import 'type.pbenum.dart' as $6; /// Api is a light-weight descriptor for an API Interface. /// @@ -30,11 +30,11 @@ class Api extends $pb.GeneratedMessage { factory Api({ $core.String? name, $core.Iterable? methods, - $core.Iterable<$5.Option>? options, + $core.Iterable<$6.Option>? options, $core.String? version, - $3.SourceContext? sourceContext, + $4.SourceContext? sourceContext, $core.Iterable? mixins, - $5.Syntax? syntax, + $6.Syntax? syntax, }) { final $result = create(); if (name != null) { @@ -67,11 +67,11 @@ class Api extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Api', package: const $pb.PackageName(_omitMessageNames ? '' : 'google.protobuf'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'name') ..pc(2, _omitFieldNames ? '' : 'methods', $pb.PbFieldType.PM, subBuilder: Method.create) - ..pc<$5.Option>(3, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, subBuilder: $5.Option.create) + ..pc<$6.Option>(3, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, subBuilder: $6.Option.create) ..aOS(4, _omitFieldNames ? '' : 'version') - ..aOM<$3.SourceContext>(5, _omitFieldNames ? '' : 'sourceContext', subBuilder: $3.SourceContext.create) + ..aOM<$4.SourceContext>(5, _omitFieldNames ? '' : 'sourceContext', subBuilder: $4.SourceContext.create) ..pc(6, _omitFieldNames ? '' : 'mixins', $pb.PbFieldType.PM, subBuilder: Mixin.create) - ..e<$5.Syntax>(7, _omitFieldNames ? '' : 'syntax', $pb.PbFieldType.OE, defaultOrMaker: $5.Syntax.SYNTAX_PROTO2, valueOf: $5.Syntax.valueOf, enumValues: $5.Syntax.values) + ..e<$6.Syntax>(7, _omitFieldNames ? '' : 'syntax', $pb.PbFieldType.OE, defaultOrMaker: $6.Syntax.SYNTAX_PROTO2, valueOf: $6.Syntax.valueOf, enumValues: $6.Syntax.values) ..hasRequiredFields = false ; @@ -113,7 +113,7 @@ class Api extends $pb.GeneratedMessage { /// Any metadata attached to the interface. @$pb.TagNumber(3) - $core.List<$5.Option> get options => $_getList(2); + $core.List<$6.Option> get options => $_getList(2); /// A version string for this interface. If specified, must have the form /// `major-version.minor-version`, as in `1.10`. If the minor version is @@ -146,15 +146,15 @@ class Api extends $pb.GeneratedMessage { /// Source context for the protocol buffer service represented by this /// message. @$pb.TagNumber(5) - $3.SourceContext get sourceContext => $_getN(4); + $4.SourceContext get sourceContext => $_getN(4); @$pb.TagNumber(5) - set sourceContext($3.SourceContext v) { setField(5, v); } + set sourceContext($4.SourceContext v) { setField(5, v); } @$pb.TagNumber(5) $core.bool hasSourceContext() => $_has(4); @$pb.TagNumber(5) void clearSourceContext() => clearField(5); @$pb.TagNumber(5) - $3.SourceContext ensureSourceContext() => $_ensure(4); + $4.SourceContext ensureSourceContext() => $_ensure(4); /// Included interfaces. See [Mixin][]. @$pb.TagNumber(6) @@ -162,9 +162,9 @@ class Api extends $pb.GeneratedMessage { /// The source syntax of the service. @$pb.TagNumber(7) - $5.Syntax get syntax => $_getN(6); + $6.Syntax get syntax => $_getN(6); @$pb.TagNumber(7) - set syntax($5.Syntax v) { setField(7, v); } + set syntax($6.Syntax v) { setField(7, v); } @$pb.TagNumber(7) $core.bool hasSyntax() => $_has(6); @$pb.TagNumber(7) @@ -179,8 +179,8 @@ class Method extends $pb.GeneratedMessage { $core.bool? requestStreaming, $core.String? responseTypeUrl, $core.bool? responseStreaming, - $core.Iterable<$5.Option>? options, - $5.Syntax? syntax, + $core.Iterable<$6.Option>? options, + $6.Syntax? syntax, }) { final $result = create(); if (name != null) { @@ -216,8 +216,8 @@ class Method extends $pb.GeneratedMessage { ..aOB(3, _omitFieldNames ? '' : 'requestStreaming') ..aOS(4, _omitFieldNames ? '' : 'responseTypeUrl') ..aOB(5, _omitFieldNames ? '' : 'responseStreaming') - ..pc<$5.Option>(6, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, subBuilder: $5.Option.create) - ..e<$5.Syntax>(7, _omitFieldNames ? '' : 'syntax', $pb.PbFieldType.OE, defaultOrMaker: $5.Syntax.SYNTAX_PROTO2, valueOf: $5.Syntax.valueOf, enumValues: $5.Syntax.values) + ..pc<$6.Option>(6, _omitFieldNames ? '' : 'options', $pb.PbFieldType.PM, subBuilder: $6.Option.create) + ..e<$6.Syntax>(7, _omitFieldNames ? '' : 'syntax', $pb.PbFieldType.OE, defaultOrMaker: $6.Syntax.SYNTAX_PROTO2, valueOf: $6.Syntax.valueOf, enumValues: $6.Syntax.values) ..hasRequiredFields = false ; @@ -294,13 +294,13 @@ class Method extends $pb.GeneratedMessage { /// Any metadata attached to the method. @$pb.TagNumber(6) - $core.List<$5.Option> get options => $_getList(5); + $core.List<$6.Option> get options => $_getList(5); /// The source syntax of this method. @$pb.TagNumber(7) - $5.Syntax get syntax => $_getN(6); + $6.Syntax get syntax => $_getN(6); @$pb.TagNumber(7) - set syntax($5.Syntax v) { setField(7, v); } + set syntax($6.Syntax v) { setField(7, v); } @$pb.TagNumber(7) $core.bool hasSyntax() => $_has(6); @$pb.TagNumber(7) diff --git a/lib/google/protobuf/type.pb.dart b/lib/google/protobuf/type.pb.dart index 136b713..9aa3d17 100644 --- a/lib/google/protobuf/type.pb.dart +++ b/lib/google/protobuf/type.pb.dart @@ -13,8 +13,8 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -import 'any.pb.dart' as $4; -import 'source_context.pb.dart' as $3; +import 'any.pb.dart' as $5; +import 'source_context.pb.dart' as $4; import 'type.pbenum.dart'; export 'type.pbenum.dart'; @@ -26,7 +26,7 @@ class Type extends $pb.GeneratedMessage { $core.Iterable? fields, $core.Iterable<$core.String>? oneofs, $core.Iterable