Update protobuf definitions: a00093ff

By allanger

Commit link: a00093ffc1

Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/65
This commit is contained in:
2026-05-10 20:10:36 +00:00
parent b4be0eab10
commit c0b33d7839
16 changed files with 1632 additions and 3505 deletions

View File

@@ -129,6 +129,14 @@ class AccountsServiceClient extends $grpc.Client {
return $createUnaryCall(_$refreshSession, request, options: options);
}
/// Authorize using long living tokens
$grpc.ResponseFuture<$1.Empty> tokenAuthorization(
$1.Empty request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$tokenAuthorization, request, options: options);
}
// method descriptors
static final _$isEmailVerified =
@@ -140,6 +148,10 @@ class AccountsServiceClient extends $grpc.Client {
'/accounts.v1.AccountsService/RefreshSession',
($1.Empty value) => value.writeToBuffer(),
$1.Empty.fromBuffer);
static final _$tokenAuthorization = $grpc.ClientMethod<$1.Empty, $1.Empty>(
'/accounts.v1.AccountsService/TokenAuthorization',
($1.Empty value) => value.writeToBuffer(),
$1.Empty.fromBuffer);
}
@$pb.GrpcServiceName('accounts.v1.AccountsService')
@@ -163,6 +175,13 @@ abstract class AccountsServiceBase extends $grpc.Service {
false,
($core.List<$core.int> value) => $1.Empty.fromBuffer(value),
($1.Empty value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.Empty, $1.Empty>(
'TokenAuthorization',
tokenAuthorization_Pre,
false,
false,
($core.List<$core.int> value) => $1.Empty.fromBuffer(value),
($1.Empty value) => value.writeToBuffer()));
}
$async.Future<$0.IsEmailVerifiedResponse> isEmailVerified_Pre(
@@ -181,4 +200,12 @@ abstract class AccountsServiceBase extends $grpc.Service {
$async.Future<$1.Empty> refreshSession(
$grpc.ServiceCall call, $1.Empty request);
$async.Future<$1.Empty> tokenAuthorization_Pre(
$grpc.ServiceCall $call, $async.Future<$1.Empty> $request) async {
return tokenAuthorization($call, await $request);
}
$async.Future<$1.Empty> tokenAuthorization(
$grpc.ServiceCall call, $1.Empty request);
}

View File

@@ -1,939 +0,0 @@
// This is a generated file - do not edit.
//
// Generated from applications/v1/applications_v1.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;
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
class OwnerId extends $pb.GeneratedMessage {
factory OwnerId({
$core.String? uuid,
}) {
final result = create();
if (uuid != null) result.uuid = uuid;
return result;
}
OwnerId._();
factory OwnerId.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory OwnerId.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'OwnerId',
package: const $pb.PackageName(_omitMessageNames ? '' : 'applications'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'uuid')
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
OwnerId clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
OwnerId copyWith(void Function(OwnerId) updates) =>
super.copyWith((message) => updates(message as OwnerId)) as OwnerId;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static OwnerId create() => OwnerId._();
@$core.override
OwnerId createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static OwnerId getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<OwnerId>(create);
static OwnerId? _defaultInstance;
@$pb.TagNumber(1)
$core.String get uuid => $_getSZ(0);
@$pb.TagNumber(1)
set uuid($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasUuid() => $_has(0);
@$pb.TagNumber(1)
void clearUuid() => $_clearField(1);
}
class Token extends $pb.GeneratedMessage {
factory Token({
$core.String? token,
}) {
final result = create();
if (token != null) result.token = token;
return result;
}
Token._();
factory Token.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory Token.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'Token',
package: const $pb.PackageName(_omitMessageNames ? '' : 'applications'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'token')
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Token clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Token copyWith(void Function(Token) updates) =>
super.copyWith((message) => updates(message as Token)) as Token;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Token create() => Token._();
@$core.override
Token createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static Token getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Token>(create);
static Token? _defaultInstance;
@$pb.TagNumber(1)
$core.String get token => $_getSZ(0);
@$pb.TagNumber(1)
set token($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasToken() => $_has(0);
@$pb.TagNumber(1)
void clearToken() => $_clearField(1);
}
class CreateOptions extends $pb.GeneratedMessage {
factory CreateOptions({
ApplicationMetadata? metadata,
ApplicationSpec? spec,
OwnerId? ownerId,
Token? token,
}) {
final result = create();
if (metadata != null) result.metadata = metadata;
if (spec != null) result.spec = spec;
if (ownerId != null) result.ownerId = ownerId;
if (token != null) result.token = token;
return result;
}
CreateOptions._();
factory CreateOptions.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory CreateOptions.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'CreateOptions',
package: const $pb.PackageName(_omitMessageNames ? '' : 'applications'),
createEmptyInstance: create)
..aOM<ApplicationMetadata>(1, _omitFieldNames ? '' : 'metadata',
subBuilder: ApplicationMetadata.create)
..aOM<ApplicationSpec>(2, _omitFieldNames ? '' : 'spec',
subBuilder: ApplicationSpec.create)
..aOM<OwnerId>(3, _omitFieldNames ? '' : 'ownerId',
subBuilder: OwnerId.create)
..aOM<Token>(4, _omitFieldNames ? '' : 'token', subBuilder: Token.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
CreateOptions clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
CreateOptions copyWith(void Function(CreateOptions) updates) =>
super.copyWith((message) => updates(message as CreateOptions))
as CreateOptions;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static CreateOptions create() => CreateOptions._();
@$core.override
CreateOptions createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static CreateOptions getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<CreateOptions>(create);
static CreateOptions? _defaultInstance;
@$pb.TagNumber(1)
ApplicationMetadata get metadata => $_getN(0);
@$pb.TagNumber(1)
set metadata(ApplicationMetadata value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasMetadata() => $_has(0);
@$pb.TagNumber(1)
void clearMetadata() => $_clearField(1);
@$pb.TagNumber(1)
ApplicationMetadata ensureMetadata() => $_ensure(0);
@$pb.TagNumber(2)
ApplicationSpec get spec => $_getN(1);
@$pb.TagNumber(2)
set spec(ApplicationSpec value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasSpec() => $_has(1);
@$pb.TagNumber(2)
void clearSpec() => $_clearField(2);
@$pb.TagNumber(2)
ApplicationSpec ensureSpec() => $_ensure(1);
@$pb.TagNumber(3)
OwnerId get ownerId => $_getN(2);
@$pb.TagNumber(3)
set ownerId(OwnerId value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasOwnerId() => $_has(2);
@$pb.TagNumber(3)
void clearOwnerId() => $_clearField(3);
@$pb.TagNumber(3)
OwnerId ensureOwnerId() => $_ensure(2);
@$pb.TagNumber(4)
Token get token => $_getN(3);
@$pb.TagNumber(4)
set token(Token value) => $_setField(4, value);
@$pb.TagNumber(4)
$core.bool hasToken() => $_has(3);
@$pb.TagNumber(4)
void clearToken() => $_clearField(4);
@$pb.TagNumber(4)
Token ensureToken() => $_ensure(3);
}
class UpdateOptions extends $pb.GeneratedMessage {
factory UpdateOptions({
ApplicationId? id,
ApplicationMetadata? metadata,
ApplicationSpec? spec,
OwnerId? ownerId,
Token? token,
}) {
final result = create();
if (id != null) result.id = id;
if (metadata != null) result.metadata = metadata;
if (spec != null) result.spec = spec;
if (ownerId != null) result.ownerId = ownerId;
if (token != null) result.token = token;
return result;
}
UpdateOptions._();
factory UpdateOptions.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory UpdateOptions.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'UpdateOptions',
package: const $pb.PackageName(_omitMessageNames ? '' : 'applications'),
createEmptyInstance: create)
..aOM<ApplicationId>(1, _omitFieldNames ? '' : 'id',
subBuilder: ApplicationId.create)
..aOM<ApplicationMetadata>(2, _omitFieldNames ? '' : 'metadata',
subBuilder: ApplicationMetadata.create)
..aOM<ApplicationSpec>(3, _omitFieldNames ? '' : 'spec',
subBuilder: ApplicationSpec.create)
..aOM<OwnerId>(4, _omitFieldNames ? '' : 'ownerId',
subBuilder: OwnerId.create)
..aOM<Token>(5, _omitFieldNames ? '' : 'token', subBuilder: Token.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateOptions clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateOptions copyWith(void Function(UpdateOptions) updates) =>
super.copyWith((message) => updates(message as UpdateOptions))
as UpdateOptions;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static UpdateOptions create() => UpdateOptions._();
@$core.override
UpdateOptions createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static UpdateOptions getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<UpdateOptions>(create);
static UpdateOptions? _defaultInstance;
@$pb.TagNumber(1)
ApplicationId get id => $_getN(0);
@$pb.TagNumber(1)
set id(ApplicationId value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasId() => $_has(0);
@$pb.TagNumber(1)
void clearId() => $_clearField(1);
@$pb.TagNumber(1)
ApplicationId ensureId() => $_ensure(0);
@$pb.TagNumber(2)
ApplicationMetadata get metadata => $_getN(1);
@$pb.TagNumber(2)
set metadata(ApplicationMetadata value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasMetadata() => $_has(1);
@$pb.TagNumber(2)
void clearMetadata() => $_clearField(2);
@$pb.TagNumber(2)
ApplicationMetadata ensureMetadata() => $_ensure(1);
@$pb.TagNumber(3)
ApplicationSpec get spec => $_getN(2);
@$pb.TagNumber(3)
set spec(ApplicationSpec value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasSpec() => $_has(2);
@$pb.TagNumber(3)
void clearSpec() => $_clearField(3);
@$pb.TagNumber(3)
ApplicationSpec ensureSpec() => $_ensure(2);
@$pb.TagNumber(4)
OwnerId get ownerId => $_getN(3);
@$pb.TagNumber(4)
set ownerId(OwnerId value) => $_setField(4, value);
@$pb.TagNumber(4)
$core.bool hasOwnerId() => $_has(3);
@$pb.TagNumber(4)
void clearOwnerId() => $_clearField(4);
@$pb.TagNumber(4)
OwnerId ensureOwnerId() => $_ensure(3);
@$pb.TagNumber(5)
Token get token => $_getN(4);
@$pb.TagNumber(5)
set token(Token value) => $_setField(5, value);
@$pb.TagNumber(5)
$core.bool hasToken() => $_has(4);
@$pb.TagNumber(5)
void clearToken() => $_clearField(5);
@$pb.TagNumber(5)
Token ensureToken() => $_ensure(4);
}
class DeleteOptions extends $pb.GeneratedMessage {
factory DeleteOptions({
ApplicationId? id,
ApplicationMetadata? metadata,
OwnerId? ownerId,
Token? token,
}) {
final result = create();
if (id != null) result.id = id;
if (metadata != null) result.metadata = metadata;
if (ownerId != null) result.ownerId = ownerId;
if (token != null) result.token = token;
return result;
}
DeleteOptions._();
factory DeleteOptions.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory DeleteOptions.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'DeleteOptions',
package: const $pb.PackageName(_omitMessageNames ? '' : 'applications'),
createEmptyInstance: create)
..aOM<ApplicationId>(1, _omitFieldNames ? '' : 'id',
subBuilder: ApplicationId.create)
..aOM<ApplicationMetadata>(2, _omitFieldNames ? '' : 'metadata',
subBuilder: ApplicationMetadata.create)
..aOM<OwnerId>(3, _omitFieldNames ? '' : 'ownerId',
subBuilder: OwnerId.create)
..aOM<Token>(4, _omitFieldNames ? '' : 'token', subBuilder: Token.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
DeleteOptions clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
DeleteOptions copyWith(void Function(DeleteOptions) updates) =>
super.copyWith((message) => updates(message as DeleteOptions))
as DeleteOptions;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static DeleteOptions create() => DeleteOptions._();
@$core.override
DeleteOptions createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static DeleteOptions getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<DeleteOptions>(create);
static DeleteOptions? _defaultInstance;
@$pb.TagNumber(1)
ApplicationId get id => $_getN(0);
@$pb.TagNumber(1)
set id(ApplicationId value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasId() => $_has(0);
@$pb.TagNumber(1)
void clearId() => $_clearField(1);
@$pb.TagNumber(1)
ApplicationId ensureId() => $_ensure(0);
@$pb.TagNumber(2)
ApplicationMetadata get metadata => $_getN(1);
@$pb.TagNumber(2)
set metadata(ApplicationMetadata value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasMetadata() => $_has(1);
@$pb.TagNumber(2)
void clearMetadata() => $_clearField(2);
@$pb.TagNumber(2)
ApplicationMetadata ensureMetadata() => $_ensure(1);
@$pb.TagNumber(3)
OwnerId get ownerId => $_getN(2);
@$pb.TagNumber(3)
set ownerId(OwnerId value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasOwnerId() => $_has(2);
@$pb.TagNumber(3)
void clearOwnerId() => $_clearField(3);
@$pb.TagNumber(3)
OwnerId ensureOwnerId() => $_ensure(2);
@$pb.TagNumber(4)
Token get token => $_getN(3);
@$pb.TagNumber(4)
set token(Token value) => $_setField(4, value);
@$pb.TagNumber(4)
$core.bool hasToken() => $_has(3);
@$pb.TagNumber(4)
void clearToken() => $_clearField(4);
@$pb.TagNumber(4)
Token ensureToken() => $_ensure(3);
}
class GetOptions extends $pb.GeneratedMessage {
factory GetOptions({
ApplicationId? id,
ApplicationMetadata? metadata,
OwnerId? ownerId,
Token? token,
}) {
final result = create();
if (id != null) result.id = id;
if (metadata != null) result.metadata = metadata;
if (ownerId != null) result.ownerId = ownerId;
if (token != null) result.token = token;
return result;
}
GetOptions._();
factory GetOptions.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory GetOptions.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'GetOptions',
package: const $pb.PackageName(_omitMessageNames ? '' : 'applications'),
createEmptyInstance: create)
..aOM<ApplicationId>(1, _omitFieldNames ? '' : 'id',
subBuilder: ApplicationId.create)
..aOM<ApplicationMetadata>(2, _omitFieldNames ? '' : 'metadata',
subBuilder: ApplicationMetadata.create)
..aOM<OwnerId>(3, _omitFieldNames ? '' : 'ownerId',
subBuilder: OwnerId.create)
..aOM<Token>(4, _omitFieldNames ? '' : 'token', subBuilder: Token.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
GetOptions clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
GetOptions copyWith(void Function(GetOptions) updates) =>
super.copyWith((message) => updates(message as GetOptions)) as GetOptions;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static GetOptions create() => GetOptions._();
@$core.override
GetOptions createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static GetOptions getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<GetOptions>(create);
static GetOptions? _defaultInstance;
@$pb.TagNumber(1)
ApplicationId get id => $_getN(0);
@$pb.TagNumber(1)
set id(ApplicationId value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasId() => $_has(0);
@$pb.TagNumber(1)
void clearId() => $_clearField(1);
@$pb.TagNumber(1)
ApplicationId ensureId() => $_ensure(0);
@$pb.TagNumber(2)
ApplicationMetadata get metadata => $_getN(1);
@$pb.TagNumber(2)
set metadata(ApplicationMetadata value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasMetadata() => $_has(1);
@$pb.TagNumber(2)
void clearMetadata() => $_clearField(2);
@$pb.TagNumber(2)
ApplicationMetadata ensureMetadata() => $_ensure(1);
@$pb.TagNumber(3)
OwnerId get ownerId => $_getN(2);
@$pb.TagNumber(3)
set ownerId(OwnerId value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasOwnerId() => $_has(2);
@$pb.TagNumber(3)
void clearOwnerId() => $_clearField(3);
@$pb.TagNumber(3)
OwnerId ensureOwnerId() => $_ensure(2);
@$pb.TagNumber(4)
Token get token => $_getN(3);
@$pb.TagNumber(4)
set token(Token value) => $_setField(4, value);
@$pb.TagNumber(4)
$core.bool hasToken() => $_has(3);
@$pb.TagNumber(4)
void clearToken() => $_clearField(4);
@$pb.TagNumber(4)
Token ensureToken() => $_ensure(3);
}
class ListOptions extends $pb.GeneratedMessage {
factory ListOptions({
ApplicationMetadata? metadata,
OwnerId? ownerId,
Token? token,
}) {
final result = create();
if (metadata != null) result.metadata = metadata;
if (ownerId != null) result.ownerId = ownerId;
if (token != null) result.token = token;
return result;
}
ListOptions._();
factory ListOptions.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory ListOptions.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'ListOptions',
package: const $pb.PackageName(_omitMessageNames ? '' : 'applications'),
createEmptyInstance: create)
..aOM<ApplicationMetadata>(1, _omitFieldNames ? '' : 'metadata',
subBuilder: ApplicationMetadata.create)
..aOM<OwnerId>(2, _omitFieldNames ? '' : 'ownerId',
subBuilder: OwnerId.create)
..aOM<Token>(3, _omitFieldNames ? '' : 'token', subBuilder: Token.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ListOptions clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ListOptions copyWith(void Function(ListOptions) updates) =>
super.copyWith((message) => updates(message as ListOptions))
as ListOptions;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ListOptions create() => ListOptions._();
@$core.override
ListOptions createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static ListOptions getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<ListOptions>(create);
static ListOptions? _defaultInstance;
@$pb.TagNumber(1)
ApplicationMetadata get metadata => $_getN(0);
@$pb.TagNumber(1)
set metadata(ApplicationMetadata value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasMetadata() => $_has(0);
@$pb.TagNumber(1)
void clearMetadata() => $_clearField(1);
@$pb.TagNumber(1)
ApplicationMetadata ensureMetadata() => $_ensure(0);
@$pb.TagNumber(2)
OwnerId get ownerId => $_getN(1);
@$pb.TagNumber(2)
set ownerId(OwnerId value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasOwnerId() => $_has(1);
@$pb.TagNumber(2)
void clearOwnerId() => $_clearField(2);
@$pb.TagNumber(2)
OwnerId ensureOwnerId() => $_ensure(1);
@$pb.TagNumber(3)
Token get token => $_getN(2);
@$pb.TagNumber(3)
set token(Token value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasToken() => $_has(2);
@$pb.TagNumber(3)
void clearToken() => $_clearField(3);
@$pb.TagNumber(3)
Token ensureToken() => $_ensure(2);
}
class ApplicationId extends $pb.GeneratedMessage {
factory ApplicationId({
$core.String? uuid,
}) {
final result = create();
if (uuid != null) result.uuid = uuid;
return result;
}
ApplicationId._();
factory ApplicationId.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory ApplicationId.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'ApplicationId',
package: const $pb.PackageName(_omitMessageNames ? '' : 'applications'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'uuid')
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ApplicationId clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ApplicationId copyWith(void Function(ApplicationId) updates) =>
super.copyWith((message) => updates(message as ApplicationId))
as ApplicationId;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ApplicationId create() => ApplicationId._();
@$core.override
ApplicationId createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static ApplicationId getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<ApplicationId>(create);
static ApplicationId? _defaultInstance;
@$pb.TagNumber(1)
$core.String get uuid => $_getSZ(0);
@$pb.TagNumber(1)
set uuid($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasUuid() => $_has(0);
@$pb.TagNumber(1)
void clearUuid() => $_clearField(1);
}
class ApplicationMetadata extends $pb.GeneratedMessage {
factory ApplicationMetadata({
$core.String? name,
$core.String? description,
}) {
final result = create();
if (name != null) result.name = name;
if (description != null) result.description = description;
return result;
}
ApplicationMetadata._();
factory ApplicationMetadata.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory ApplicationMetadata.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'ApplicationMetadata',
package: const $pb.PackageName(_omitMessageNames ? '' : 'applications'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'name')
..aOS(2, _omitFieldNames ? '' : 'description')
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ApplicationMetadata clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ApplicationMetadata copyWith(void Function(ApplicationMetadata) updates) =>
super.copyWith((message) => updates(message as ApplicationMetadata))
as ApplicationMetadata;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ApplicationMetadata create() => ApplicationMetadata._();
@$core.override
ApplicationMetadata createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static ApplicationMetadata getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<ApplicationMetadata>(create);
static ApplicationMetadata? _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 description => $_getSZ(1);
@$pb.TagNumber(2)
set description($core.String value) => $_setString(1, value);
@$pb.TagNumber(2)
$core.bool hasDescription() => $_has(1);
@$pb.TagNumber(2)
void clearDescription() => $_clearField(2);
}
class ApplicationSpec extends $pb.GeneratedMessage {
factory ApplicationSpec({
$core.String? application,
$core.String? version,
$core.String? environemntId,
$core.Iterable<$core.MapEntry<$core.String, $core.String>>? config,
$core.String? rawConfig,
}) {
final result = create();
if (application != null) result.application = application;
if (version != null) result.version = version;
if (environemntId != null) result.environemntId = environemntId;
if (config != null) result.config.addEntries(config);
if (rawConfig != null) result.rawConfig = rawConfig;
return result;
}
ApplicationSpec._();
factory ApplicationSpec.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory ApplicationSpec.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'ApplicationSpec',
package: const $pb.PackageName(_omitMessageNames ? '' : 'applications'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'application')
..aOS(2, _omitFieldNames ? '' : 'version')
..aOS(3, _omitFieldNames ? '' : 'environemntId')
..m<$core.String, $core.String>(4, _omitFieldNames ? '' : 'config',
entryClassName: 'ApplicationSpec.ConfigEntry',
keyFieldType: $pb.PbFieldType.OS,
valueFieldType: $pb.PbFieldType.OS,
packageName: const $pb.PackageName('applications'))
..aOS(5, _omitFieldNames ? '' : 'rawConfig')
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ApplicationSpec clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ApplicationSpec copyWith(void Function(ApplicationSpec) updates) =>
super.copyWith((message) => updates(message as ApplicationSpec))
as ApplicationSpec;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ApplicationSpec create() => ApplicationSpec._();
@$core.override
ApplicationSpec createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static ApplicationSpec getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<ApplicationSpec>(create);
static ApplicationSpec? _defaultInstance;
@$pb.TagNumber(1)
$core.String get application => $_getSZ(0);
@$pb.TagNumber(1)
set application($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasApplication() => $_has(0);
@$pb.TagNumber(1)
void clearApplication() => $_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 environemntId => $_getSZ(2);
@$pb.TagNumber(3)
set environemntId($core.String value) => $_setString(2, value);
@$pb.TagNumber(3)
$core.bool hasEnvironemntId() => $_has(2);
@$pb.TagNumber(3)
void clearEnvironemntId() => $_clearField(3);
@$pb.TagNumber(4)
$pb.PbMap<$core.String, $core.String> get config => $_getMap(3);
@$pb.TagNumber(5)
$core.String get rawConfig => $_getSZ(4);
@$pb.TagNumber(5)
set rawConfig($core.String value) => $_setString(4, value);
@$pb.TagNumber(5)
$core.bool hasRawConfig() => $_has(4);
@$pb.TagNumber(5)
void clearRawConfig() => $_clearField(5);
}
class ApplicationFull extends $pb.GeneratedMessage {
factory ApplicationFull({
ApplicationMetadata? metadata,
ApplicationSpec? spec,
ApplicationId? id,
}) {
final result = create();
if (metadata != null) result.metadata = metadata;
if (spec != null) result.spec = spec;
if (id != null) result.id = id;
return result;
}
ApplicationFull._();
factory ApplicationFull.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory ApplicationFull.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'ApplicationFull',
package: const $pb.PackageName(_omitMessageNames ? '' : 'applications'),
createEmptyInstance: create)
..aOM<ApplicationMetadata>(1, _omitFieldNames ? '' : 'metadata',
subBuilder: ApplicationMetadata.create)
..aOM<ApplicationSpec>(2, _omitFieldNames ? '' : 'spec',
subBuilder: ApplicationSpec.create)
..aOM<ApplicationId>(3, _omitFieldNames ? '' : 'id',
subBuilder: ApplicationId.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ApplicationFull clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ApplicationFull copyWith(void Function(ApplicationFull) updates) =>
super.copyWith((message) => updates(message as ApplicationFull))
as ApplicationFull;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ApplicationFull create() => ApplicationFull._();
@$core.override
ApplicationFull createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static ApplicationFull getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<ApplicationFull>(create);
static ApplicationFull? _defaultInstance;
@$pb.TagNumber(1)
ApplicationMetadata get metadata => $_getN(0);
@$pb.TagNumber(1)
set metadata(ApplicationMetadata value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasMetadata() => $_has(0);
@$pb.TagNumber(1)
void clearMetadata() => $_clearField(1);
@$pb.TagNumber(1)
ApplicationMetadata ensureMetadata() => $_ensure(0);
@$pb.TagNumber(2)
ApplicationSpec get spec => $_getN(1);
@$pb.TagNumber(2)
set spec(ApplicationSpec value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasSpec() => $_has(1);
@$pb.TagNumber(2)
void clearSpec() => $_clearField(2);
@$pb.TagNumber(2)
ApplicationSpec ensureSpec() => $_ensure(1);
@$pb.TagNumber(3)
ApplicationId get id => $_getN(2);
@$pb.TagNumber(3)
set id(ApplicationId value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasId() => $_has(2);
@$pb.TagNumber(3)
void clearId() => $_clearField(3);
@$pb.TagNumber(3)
ApplicationId ensureId() => $_ensure(2);
}
const $core.bool _omitFieldNames =
$core.bool.fromEnvironment('protobuf.omit_field_names');
const $core.bool _omitMessageNames =
$core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -1,11 +0,0 @@
// This is a generated file - do not edit.
//
// Generated from applications/v1/applications_v1.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

View File

@@ -1,181 +0,0 @@
// This is a generated file - do not edit.
//
// Generated from applications/v1/applications_v1.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:async' as $async;
import 'dart:core' as $core;
import 'package:grpc/service_api.dart' as $grpc;
import 'package:protobuf/protobuf.dart' as $pb;
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart' as $1;
import 'applications_v1.pb.dart' as $0;
export 'applications_v1.pb.dart';
/// *
/// Service for handling applications
@$pb.GrpcServiceName('applications.Applications')
class ApplicationsClient extends $grpc.Client {
/// The hostname for this service.
static const $core.String defaultHost = '';
/// OAuth scopes needed for the client.
static const $core.List<$core.String> oauthScopes = [
'',
];
ApplicationsClient(super.channel, {super.options, super.interceptors});
$grpc.ResponseFuture<$0.ApplicationFull> create(
$0.CreateOptions request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$create, request, options: options);
}
$grpc.ResponseFuture<$0.ApplicationFull> update(
$0.UpdateOptions request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$update, request, options: options);
}
$grpc.ResponseFuture<$1.Empty> delete(
$0.DeleteOptions request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$delete, request, options: options);
}
$grpc.ResponseFuture<$0.ApplicationFull> get(
$0.GetOptions request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$get, request, options: options);
}
$grpc.ResponseStream<$0.ApplicationFull> list(
$0.ListOptions request, {
$grpc.CallOptions? options,
}) {
return $createStreamingCall(_$list, $async.Stream.fromIterable([request]),
options: options);
}
// method descriptors
static final _$create =
$grpc.ClientMethod<$0.CreateOptions, $0.ApplicationFull>(
'/applications.Applications/Create',
($0.CreateOptions value) => value.writeToBuffer(),
$0.ApplicationFull.fromBuffer);
static final _$update =
$grpc.ClientMethod<$0.UpdateOptions, $0.ApplicationFull>(
'/applications.Applications/Update',
($0.UpdateOptions value) => value.writeToBuffer(),
$0.ApplicationFull.fromBuffer);
static final _$delete = $grpc.ClientMethod<$0.DeleteOptions, $1.Empty>(
'/applications.Applications/Delete',
($0.DeleteOptions value) => value.writeToBuffer(),
$1.Empty.fromBuffer);
static final _$get = $grpc.ClientMethod<$0.GetOptions, $0.ApplicationFull>(
'/applications.Applications/Get',
($0.GetOptions value) => value.writeToBuffer(),
$0.ApplicationFull.fromBuffer);
static final _$list = $grpc.ClientMethod<$0.ListOptions, $0.ApplicationFull>(
'/applications.Applications/List',
($0.ListOptions value) => value.writeToBuffer(),
$0.ApplicationFull.fromBuffer);
}
@$pb.GrpcServiceName('applications.Applications')
abstract class ApplicationsServiceBase extends $grpc.Service {
$core.String get $name => 'applications.Applications';
ApplicationsServiceBase() {
$addMethod($grpc.ServiceMethod<$0.CreateOptions, $0.ApplicationFull>(
'Create',
create_Pre,
false,
false,
($core.List<$core.int> value) => $0.CreateOptions.fromBuffer(value),
($0.ApplicationFull value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.UpdateOptions, $0.ApplicationFull>(
'Update',
update_Pre,
false,
false,
($core.List<$core.int> value) => $0.UpdateOptions.fromBuffer(value),
($0.ApplicationFull value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DeleteOptions, $1.Empty>(
'Delete',
delete_Pre,
false,
false,
($core.List<$core.int> value) => $0.DeleteOptions.fromBuffer(value),
($1.Empty value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.GetOptions, $0.ApplicationFull>(
'Get',
get_Pre,
false,
false,
($core.List<$core.int> value) => $0.GetOptions.fromBuffer(value),
($0.ApplicationFull value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.ListOptions, $0.ApplicationFull>(
'List',
list_Pre,
false,
true,
($core.List<$core.int> value) => $0.ListOptions.fromBuffer(value),
($0.ApplicationFull value) => value.writeToBuffer()));
}
$async.Future<$0.ApplicationFull> create_Pre(
$grpc.ServiceCall $call, $async.Future<$0.CreateOptions> $request) async {
return create($call, await $request);
}
$async.Future<$0.ApplicationFull> create(
$grpc.ServiceCall call, $0.CreateOptions request);
$async.Future<$0.ApplicationFull> update_Pre(
$grpc.ServiceCall $call, $async.Future<$0.UpdateOptions> $request) async {
return update($call, await $request);
}
$async.Future<$0.ApplicationFull> update(
$grpc.ServiceCall call, $0.UpdateOptions request);
$async.Future<$1.Empty> delete_Pre(
$grpc.ServiceCall $call, $async.Future<$0.DeleteOptions> $request) async {
return delete($call, await $request);
}
$async.Future<$1.Empty> delete(
$grpc.ServiceCall call, $0.DeleteOptions request);
$async.Future<$0.ApplicationFull> get_Pre(
$grpc.ServiceCall $call, $async.Future<$0.GetOptions> $request) async {
return get($call, await $request);
}
$async.Future<$0.ApplicationFull> get(
$grpc.ServiceCall call, $0.GetOptions request);
$async.Stream<$0.ApplicationFull> list_Pre(
$grpc.ServiceCall $call, $async.Future<$0.ListOptions> $request) async* {
yield* list($call, await $request);
}
$async.Stream<$0.ApplicationFull> list(
$grpc.ServiceCall call, $0.ListOptions request);
}

View File

@@ -1,373 +0,0 @@
// This is a generated file - do not edit.
//
// Generated from applications/v1/applications_v1.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
// ignore_for_file: unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use ownerIdDescriptor instead')
const OwnerId$json = {
'1': 'OwnerId',
'2': [
{'1': 'uuid', '3': 1, '4': 1, '5': 9, '10': 'uuid'},
],
};
/// Descriptor for `OwnerId`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List ownerIdDescriptor =
$convert.base64Decode('CgdPd25lcklkEhIKBHV1aWQYASABKAlSBHV1aWQ=');
@$core.Deprecated('Use tokenDescriptor instead')
const Token$json = {
'1': 'Token',
'2': [
{'1': 'token', '3': 1, '4': 1, '5': 9, '10': 'token'},
],
};
/// Descriptor for `Token`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List tokenDescriptor =
$convert.base64Decode('CgVUb2tlbhIUCgV0b2tlbhgBIAEoCVIFdG9rZW4=');
@$core.Deprecated('Use createOptionsDescriptor instead')
const CreateOptions$json = {
'1': 'CreateOptions',
'2': [
{
'1': 'metadata',
'3': 1,
'4': 1,
'5': 11,
'6': '.applications.ApplicationMetadata',
'10': 'metadata'
},
{
'1': 'spec',
'3': 2,
'4': 1,
'5': 11,
'6': '.applications.ApplicationSpec',
'10': 'spec'
},
{
'1': 'owner_id',
'3': 3,
'4': 1,
'5': 11,
'6': '.applications.OwnerId',
'10': 'ownerId'
},
{
'1': 'token',
'3': 4,
'4': 1,
'5': 11,
'6': '.applications.Token',
'10': 'token'
},
],
};
/// Descriptor for `CreateOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List createOptionsDescriptor = $convert.base64Decode(
'Cg1DcmVhdGVPcHRpb25zEj0KCG1ldGFkYXRhGAEgASgLMiEuYXBwbGljYXRpb25zLkFwcGxpY2'
'F0aW9uTWV0YWRhdGFSCG1ldGFkYXRhEjEKBHNwZWMYAiABKAsyHS5hcHBsaWNhdGlvbnMuQXBw'
'bGljYXRpb25TcGVjUgRzcGVjEjAKCG93bmVyX2lkGAMgASgLMhUuYXBwbGljYXRpb25zLk93bm'
'VySWRSB293bmVySWQSKQoFdG9rZW4YBCABKAsyEy5hcHBsaWNhdGlvbnMuVG9rZW5SBXRva2Vu');
@$core.Deprecated('Use updateOptionsDescriptor instead')
const UpdateOptions$json = {
'1': 'UpdateOptions',
'2': [
{
'1': 'id',
'3': 1,
'4': 1,
'5': 11,
'6': '.applications.ApplicationId',
'10': 'id'
},
{
'1': 'metadata',
'3': 2,
'4': 1,
'5': 11,
'6': '.applications.ApplicationMetadata',
'10': 'metadata'
},
{
'1': 'spec',
'3': 3,
'4': 1,
'5': 11,
'6': '.applications.ApplicationSpec',
'10': 'spec'
},
{
'1': 'owner_id',
'3': 4,
'4': 1,
'5': 11,
'6': '.applications.OwnerId',
'10': 'ownerId'
},
{
'1': 'token',
'3': 5,
'4': 1,
'5': 11,
'6': '.applications.Token',
'10': 'token'
},
],
};
/// Descriptor for `UpdateOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List updateOptionsDescriptor = $convert.base64Decode(
'Cg1VcGRhdGVPcHRpb25zEisKAmlkGAEgASgLMhsuYXBwbGljYXRpb25zLkFwcGxpY2F0aW9uSW'
'RSAmlkEj0KCG1ldGFkYXRhGAIgASgLMiEuYXBwbGljYXRpb25zLkFwcGxpY2F0aW9uTWV0YWRh'
'dGFSCG1ldGFkYXRhEjEKBHNwZWMYAyABKAsyHS5hcHBsaWNhdGlvbnMuQXBwbGljYXRpb25TcG'
'VjUgRzcGVjEjAKCG93bmVyX2lkGAQgASgLMhUuYXBwbGljYXRpb25zLk93bmVySWRSB293bmVy'
'SWQSKQoFdG9rZW4YBSABKAsyEy5hcHBsaWNhdGlvbnMuVG9rZW5SBXRva2Vu');
@$core.Deprecated('Use deleteOptionsDescriptor instead')
const DeleteOptions$json = {
'1': 'DeleteOptions',
'2': [
{
'1': 'id',
'3': 1,
'4': 1,
'5': 11,
'6': '.applications.ApplicationId',
'10': 'id'
},
{
'1': 'metadata',
'3': 2,
'4': 1,
'5': 11,
'6': '.applications.ApplicationMetadata',
'10': 'metadata'
},
{
'1': 'owner_id',
'3': 3,
'4': 1,
'5': 11,
'6': '.applications.OwnerId',
'10': 'ownerId'
},
{
'1': 'token',
'3': 4,
'4': 1,
'5': 11,
'6': '.applications.Token',
'10': 'token'
},
],
};
/// Descriptor for `DeleteOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List deleteOptionsDescriptor = $convert.base64Decode(
'Cg1EZWxldGVPcHRpb25zEisKAmlkGAEgASgLMhsuYXBwbGljYXRpb25zLkFwcGxpY2F0aW9uSW'
'RSAmlkEj0KCG1ldGFkYXRhGAIgASgLMiEuYXBwbGljYXRpb25zLkFwcGxpY2F0aW9uTWV0YWRh'
'dGFSCG1ldGFkYXRhEjAKCG93bmVyX2lkGAMgASgLMhUuYXBwbGljYXRpb25zLk93bmVySWRSB2'
'93bmVySWQSKQoFdG9rZW4YBCABKAsyEy5hcHBsaWNhdGlvbnMuVG9rZW5SBXRva2Vu');
@$core.Deprecated('Use getOptionsDescriptor instead')
const GetOptions$json = {
'1': 'GetOptions',
'2': [
{
'1': 'id',
'3': 1,
'4': 1,
'5': 11,
'6': '.applications.ApplicationId',
'10': 'id'
},
{
'1': 'metadata',
'3': 2,
'4': 1,
'5': 11,
'6': '.applications.ApplicationMetadata',
'10': 'metadata'
},
{
'1': 'owner_id',
'3': 3,
'4': 1,
'5': 11,
'6': '.applications.OwnerId',
'10': 'ownerId'
},
{
'1': 'token',
'3': 4,
'4': 1,
'5': 11,
'6': '.applications.Token',
'10': 'token'
},
],
};
/// Descriptor for `GetOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List getOptionsDescriptor = $convert.base64Decode(
'CgpHZXRPcHRpb25zEisKAmlkGAEgASgLMhsuYXBwbGljYXRpb25zLkFwcGxpY2F0aW9uSWRSAm'
'lkEj0KCG1ldGFkYXRhGAIgASgLMiEuYXBwbGljYXRpb25zLkFwcGxpY2F0aW9uTWV0YWRhdGFS'
'CG1ldGFkYXRhEjAKCG93bmVyX2lkGAMgASgLMhUuYXBwbGljYXRpb25zLk93bmVySWRSB293bm'
'VySWQSKQoFdG9rZW4YBCABKAsyEy5hcHBsaWNhdGlvbnMuVG9rZW5SBXRva2Vu');
@$core.Deprecated('Use listOptionsDescriptor instead')
const ListOptions$json = {
'1': 'ListOptions',
'2': [
{
'1': 'metadata',
'3': 1,
'4': 1,
'5': 11,
'6': '.applications.ApplicationMetadata',
'10': 'metadata'
},
{
'1': 'owner_id',
'3': 2,
'4': 1,
'5': 11,
'6': '.applications.OwnerId',
'10': 'ownerId'
},
{
'1': 'token',
'3': 3,
'4': 1,
'5': 11,
'6': '.applications.Token',
'10': 'token'
},
],
};
/// Descriptor for `ListOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List listOptionsDescriptor = $convert.base64Decode(
'CgtMaXN0T3B0aW9ucxI9CghtZXRhZGF0YRgBIAEoCzIhLmFwcGxpY2F0aW9ucy5BcHBsaWNhdG'
'lvbk1ldGFkYXRhUghtZXRhZGF0YRIwCghvd25lcl9pZBgCIAEoCzIVLmFwcGxpY2F0aW9ucy5P'
'd25lcklkUgdvd25lcklkEikKBXRva2VuGAMgASgLMhMuYXBwbGljYXRpb25zLlRva2VuUgV0b2'
'tlbg==');
@$core.Deprecated('Use applicationIdDescriptor instead')
const ApplicationId$json = {
'1': 'ApplicationId',
'2': [
{'1': 'uuid', '3': 1, '4': 1, '5': 9, '10': 'uuid'},
],
};
/// Descriptor for `ApplicationId`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List applicationIdDescriptor =
$convert.base64Decode('Cg1BcHBsaWNhdGlvbklkEhIKBHV1aWQYASABKAlSBHV1aWQ=');
@$core.Deprecated('Use applicationMetadataDescriptor instead')
const ApplicationMetadata$json = {
'1': 'ApplicationMetadata',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'description', '3': 2, '4': 1, '5': 9, '10': 'description'},
],
};
/// Descriptor for `ApplicationMetadata`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List applicationMetadataDescriptor = $convert.base64Decode(
'ChNBcHBsaWNhdGlvbk1ldGFkYXRhEhIKBG5hbWUYASABKAlSBG5hbWUSIAoLZGVzY3JpcHRpb2'
'4YAiABKAlSC2Rlc2NyaXB0aW9u');
@$core.Deprecated('Use applicationSpecDescriptor instead')
const ApplicationSpec$json = {
'1': 'ApplicationSpec',
'2': [
{'1': 'application', '3': 1, '4': 1, '5': 9, '10': 'application'},
{'1': 'version', '3': 2, '4': 1, '5': 9, '10': 'version'},
{'1': 'environemnt_id', '3': 3, '4': 1, '5': 9, '10': 'environemntId'},
{
'1': 'config',
'3': 4,
'4': 3,
'5': 11,
'6': '.applications.ApplicationSpec.ConfigEntry',
'10': 'config'
},
{'1': 'raw_config', '3': 5, '4': 1, '5': 9, '10': 'rawConfig'},
],
'3': [ApplicationSpec_ConfigEntry$json],
};
@$core.Deprecated('Use applicationSpecDescriptor instead')
const ApplicationSpec_ConfigEntry$json = {
'1': 'ConfigEntry',
'2': [
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
{'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'},
],
'7': {'7': true},
};
/// Descriptor for `ApplicationSpec`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List applicationSpecDescriptor = $convert.base64Decode(
'Cg9BcHBsaWNhdGlvblNwZWMSIAoLYXBwbGljYXRpb24YASABKAlSC2FwcGxpY2F0aW9uEhgKB3'
'ZlcnNpb24YAiABKAlSB3ZlcnNpb24SJQoOZW52aXJvbmVtbnRfaWQYAyABKAlSDWVudmlyb25l'
'bW50SWQSQQoGY29uZmlnGAQgAygLMikuYXBwbGljYXRpb25zLkFwcGxpY2F0aW9uU3BlYy5Db2'
'5maWdFbnRyeVIGY29uZmlnEh0KCnJhd19jb25maWcYBSABKAlSCXJhd0NvbmZpZxo5CgtDb25m'
'aWdFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB');
@$core.Deprecated('Use applicationFullDescriptor instead')
const ApplicationFull$json = {
'1': 'ApplicationFull',
'2': [
{
'1': 'metadata',
'3': 1,
'4': 1,
'5': 11,
'6': '.applications.ApplicationMetadata',
'10': 'metadata'
},
{
'1': 'spec',
'3': 2,
'4': 1,
'5': 11,
'6': '.applications.ApplicationSpec',
'10': 'spec'
},
{
'1': 'id',
'3': 3,
'4': 1,
'5': 11,
'6': '.applications.ApplicationId',
'10': 'id'
},
],
};
/// Descriptor for `ApplicationFull`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List applicationFullDescriptor = $convert.base64Decode(
'Cg9BcHBsaWNhdGlvbkZ1bGwSPQoIbWV0YWRhdGEYASABKAsyIS5hcHBsaWNhdGlvbnMuQXBwbG'
'ljYXRpb25NZXRhZGF0YVIIbWV0YWRhdGESMQoEc3BlYxgCIAEoCzIdLmFwcGxpY2F0aW9ucy5B'
'cHBsaWNhdGlvblNwZWNSBHNwZWMSKwoCaWQYAyABKAsyGy5hcHBsaWNhdGlvbnMuQXBwbGljYX'
'Rpb25JZFICaWQ=');

View File

@@ -1,142 +0,0 @@
// This is a generated file - do not edit.
//
// Generated from email/v1/email_v1.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;
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
class RequestValidation extends $pb.GeneratedMessage {
factory RequestValidation({
$core.String? userId,
}) {
final result = create();
if (userId != null) result.userId = userId;
return result;
}
RequestValidation._();
factory RequestValidation.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory RequestValidation.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
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('See https://github.com/google/protobuf.dart/issues/998.')
RequestValidation clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
RequestValidation copyWith(void Function(RequestValidation) updates) =>
super.copyWith((message) => updates(message as RequestValidation))
as RequestValidation;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static RequestValidation create() => RequestValidation._();
@$core.override
RequestValidation createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static RequestValidation getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<RequestValidation>(create);
static RequestValidation? _defaultInstance;
@$pb.TagNumber(1)
$core.String get userId => $_getSZ(0);
@$pb.TagNumber(1)
set userId($core.String value) => $_setString(0, value);
@$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._();
factory ConfirmValidation.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory ConfirmValidation.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'ConfirmValidation',
package: const $pb.PackageName(_omitMessageNames ? '' : 'email'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'userId')
..aI(2, _omitFieldNames ? '' : 'code')
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ConfirmValidation clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ConfirmValidation copyWith(void Function(ConfirmValidation) updates) =>
super.copyWith((message) => updates(message as ConfirmValidation))
as ConfirmValidation;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ConfirmValidation create() => ConfirmValidation._();
@$core.override
ConfirmValidation createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static ConfirmValidation getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<ConfirmValidation>(create);
static ConfirmValidation? _defaultInstance;
@$pb.TagNumber(1)
$core.String get userId => $_getSZ(0);
@$pb.TagNumber(1)
set userId($core.String value) => $_setString(0, value);
@$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 value) => $_setSignedInt32(1, value);
@$pb.TagNumber(2)
$core.bool hasCode() => $_has(1);
@$pb.TagNumber(2)
void clearCode() => $_clearField(2);
}
const $core.bool _omitFieldNames =
$core.bool.fromEnvironment('protobuf.omit_field_names');
const $core.bool _omitMessageNames =
$core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -1,102 +0,0 @@
// This is a generated file - do not edit.
//
// Generated from email/v1/email_v1.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:async' as $async;
import 'dart:core' as $core;
import 'package:grpc/service_api.dart' as $grpc;
import 'package:protobuf/protobuf.dart' as $pb;
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart' as $1;
import 'email_v1.pb.dart' as $0;
export 'email_v1.pb.dart';
///
/// A service that should handle email validation
@$pb.GrpcServiceName('email.EmailValidation')
class EmailValidationClient extends $grpc.Client {
/// The hostname for this service.
static const $core.String defaultHost = '';
/// OAuth scopes needed for the client.
static const $core.List<$core.String> oauthScopes = [
'',
];
EmailValidationClient(super.channel, {super.options, super.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);
}
// method descriptors
static final _$sendRequest =
$grpc.ClientMethod<$0.RequestValidation, $1.Empty>(
'/email.EmailValidation/SendRequest',
($0.RequestValidation value) => value.writeToBuffer(),
$1.Empty.fromBuffer);
static final _$validateEmail =
$grpc.ClientMethod<$0.ConfirmValidation, $1.Empty>(
'/email.EmailValidation/ValidateEmail',
($0.ConfirmValidation value) => value.writeToBuffer(),
$1.Empty.fromBuffer);
}
@$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> sendRequest(
$grpc.ServiceCall call, $0.RequestValidation 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> validateEmail(
$grpc.ServiceCall call, $0.ConfirmValidation request);
}

View File

@@ -1,42 +0,0 @@
// This is a generated file - do not edit.
//
// Generated from email/v1/email_v1.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
// ignore_for_file: 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==');

View File

@@ -1,961 +0,0 @@
// This is a generated file - do not edit.
//
// Generated from environments/v1/environments_v1.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 'environments_v1.pbenum.dart';
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
export 'environments_v1.pbenum.dart';
class OwnerId extends $pb.GeneratedMessage {
factory OwnerId({
$core.String? uuid,
}) {
final result = create();
if (uuid != null) result.uuid = uuid;
return result;
}
OwnerId._();
factory OwnerId.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory OwnerId.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'OwnerId',
package: const $pb.PackageName(_omitMessageNames ? '' : 'environments'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'uuid')
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
OwnerId clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
OwnerId copyWith(void Function(OwnerId) updates) =>
super.copyWith((message) => updates(message as OwnerId)) as OwnerId;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static OwnerId create() => OwnerId._();
@$core.override
OwnerId createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static OwnerId getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<OwnerId>(create);
static OwnerId? _defaultInstance;
@$pb.TagNumber(1)
$core.String get uuid => $_getSZ(0);
@$pb.TagNumber(1)
set uuid($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasUuid() => $_has(0);
@$pb.TagNumber(1)
void clearUuid() => $_clearField(1);
}
class Token extends $pb.GeneratedMessage {
factory Token({
$core.String? token,
}) {
final result = create();
if (token != null) result.token = token;
return result;
}
Token._();
factory Token.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory Token.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'Token',
package: const $pb.PackageName(_omitMessageNames ? '' : 'environments'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'token')
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Token clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
Token copyWith(void Function(Token) updates) =>
super.copyWith((message) => updates(message as Token)) as Token;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static Token create() => Token._();
@$core.override
Token createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static Token getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Token>(create);
static Token? _defaultInstance;
@$pb.TagNumber(1)
$core.String get token => $_getSZ(0);
@$pb.TagNumber(1)
set token($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasToken() => $_has(0);
@$pb.TagNumber(1)
void clearToken() => $_clearField(1);
}
class CreateOptions extends $pb.GeneratedMessage {
factory CreateOptions({
EnvironmentMetadata? metadata,
EnvironmentSpec? spec,
OwnerId? ownerId,
Token? token,
}) {
final result = create();
if (metadata != null) result.metadata = metadata;
if (spec != null) result.spec = spec;
if (ownerId != null) result.ownerId = ownerId;
if (token != null) result.token = token;
return result;
}
CreateOptions._();
factory CreateOptions.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory CreateOptions.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'CreateOptions',
package: const $pb.PackageName(_omitMessageNames ? '' : 'environments'),
createEmptyInstance: create)
..aOM<EnvironmentMetadata>(1, _omitFieldNames ? '' : 'metadata',
subBuilder: EnvironmentMetadata.create)
..aOM<EnvironmentSpec>(2, _omitFieldNames ? '' : 'spec',
subBuilder: EnvironmentSpec.create)
..aOM<OwnerId>(3, _omitFieldNames ? '' : 'ownerId',
subBuilder: OwnerId.create)
..aOM<Token>(4, _omitFieldNames ? '' : 'token', subBuilder: Token.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
CreateOptions clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
CreateOptions copyWith(void Function(CreateOptions) updates) =>
super.copyWith((message) => updates(message as CreateOptions))
as CreateOptions;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static CreateOptions create() => CreateOptions._();
@$core.override
CreateOptions createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static CreateOptions getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<CreateOptions>(create);
static CreateOptions? _defaultInstance;
@$pb.TagNumber(1)
EnvironmentMetadata get metadata => $_getN(0);
@$pb.TagNumber(1)
set metadata(EnvironmentMetadata value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasMetadata() => $_has(0);
@$pb.TagNumber(1)
void clearMetadata() => $_clearField(1);
@$pb.TagNumber(1)
EnvironmentMetadata ensureMetadata() => $_ensure(0);
@$pb.TagNumber(2)
EnvironmentSpec get spec => $_getN(1);
@$pb.TagNumber(2)
set spec(EnvironmentSpec value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasSpec() => $_has(1);
@$pb.TagNumber(2)
void clearSpec() => $_clearField(2);
@$pb.TagNumber(2)
EnvironmentSpec ensureSpec() => $_ensure(1);
@$pb.TagNumber(3)
OwnerId get ownerId => $_getN(2);
@$pb.TagNumber(3)
set ownerId(OwnerId value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasOwnerId() => $_has(2);
@$pb.TagNumber(3)
void clearOwnerId() => $_clearField(3);
@$pb.TagNumber(3)
OwnerId ensureOwnerId() => $_ensure(2);
@$pb.TagNumber(4)
Token get token => $_getN(3);
@$pb.TagNumber(4)
set token(Token value) => $_setField(4, value);
@$pb.TagNumber(4)
$core.bool hasToken() => $_has(3);
@$pb.TagNumber(4)
void clearToken() => $_clearField(4);
@$pb.TagNumber(4)
Token ensureToken() => $_ensure(3);
}
class UpdateOptions extends $pb.GeneratedMessage {
factory UpdateOptions({
EnvironmentId? id,
EnvironmentMetadata? metadata,
EnvironmentSpec? spec,
OwnerId? ownerId,
Token? token,
}) {
final result = create();
if (id != null) result.id = id;
if (metadata != null) result.metadata = metadata;
if (spec != null) result.spec = spec;
if (ownerId != null) result.ownerId = ownerId;
if (token != null) result.token = token;
return result;
}
UpdateOptions._();
factory UpdateOptions.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory UpdateOptions.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'UpdateOptions',
package: const $pb.PackageName(_omitMessageNames ? '' : 'environments'),
createEmptyInstance: create)
..aOM<EnvironmentId>(1, _omitFieldNames ? '' : 'id',
subBuilder: EnvironmentId.create)
..aOM<EnvironmentMetadata>(2, _omitFieldNames ? '' : 'metadata',
subBuilder: EnvironmentMetadata.create)
..aOM<EnvironmentSpec>(3, _omitFieldNames ? '' : 'spec',
subBuilder: EnvironmentSpec.create)
..aOM<OwnerId>(4, _omitFieldNames ? '' : 'ownerId',
subBuilder: OwnerId.create)
..aOM<Token>(5, _omitFieldNames ? '' : 'token', subBuilder: Token.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateOptions clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateOptions copyWith(void Function(UpdateOptions) updates) =>
super.copyWith((message) => updates(message as UpdateOptions))
as UpdateOptions;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static UpdateOptions create() => UpdateOptions._();
@$core.override
UpdateOptions createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static UpdateOptions getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<UpdateOptions>(create);
static UpdateOptions? _defaultInstance;
@$pb.TagNumber(1)
EnvironmentId get id => $_getN(0);
@$pb.TagNumber(1)
set id(EnvironmentId value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasId() => $_has(0);
@$pb.TagNumber(1)
void clearId() => $_clearField(1);
@$pb.TagNumber(1)
EnvironmentId ensureId() => $_ensure(0);
@$pb.TagNumber(2)
EnvironmentMetadata get metadata => $_getN(1);
@$pb.TagNumber(2)
set metadata(EnvironmentMetadata value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasMetadata() => $_has(1);
@$pb.TagNumber(2)
void clearMetadata() => $_clearField(2);
@$pb.TagNumber(2)
EnvironmentMetadata ensureMetadata() => $_ensure(1);
@$pb.TagNumber(3)
EnvironmentSpec get spec => $_getN(2);
@$pb.TagNumber(3)
set spec(EnvironmentSpec value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasSpec() => $_has(2);
@$pb.TagNumber(3)
void clearSpec() => $_clearField(3);
@$pb.TagNumber(3)
EnvironmentSpec ensureSpec() => $_ensure(2);
@$pb.TagNumber(4)
OwnerId get ownerId => $_getN(3);
@$pb.TagNumber(4)
set ownerId(OwnerId value) => $_setField(4, value);
@$pb.TagNumber(4)
$core.bool hasOwnerId() => $_has(3);
@$pb.TagNumber(4)
void clearOwnerId() => $_clearField(4);
@$pb.TagNumber(4)
OwnerId ensureOwnerId() => $_ensure(3);
@$pb.TagNumber(5)
Token get token => $_getN(4);
@$pb.TagNumber(5)
set token(Token value) => $_setField(5, value);
@$pb.TagNumber(5)
$core.bool hasToken() => $_has(4);
@$pb.TagNumber(5)
void clearToken() => $_clearField(5);
@$pb.TagNumber(5)
Token ensureToken() => $_ensure(4);
}
class DeleteOptions extends $pb.GeneratedMessage {
factory DeleteOptions({
EnvironmentId? id,
EnvironmentMetadata? metadata,
OwnerId? ownerId,
Token? token,
}) {
final result = create();
if (id != null) result.id = id;
if (metadata != null) result.metadata = metadata;
if (ownerId != null) result.ownerId = ownerId;
if (token != null) result.token = token;
return result;
}
DeleteOptions._();
factory DeleteOptions.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory DeleteOptions.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'DeleteOptions',
package: const $pb.PackageName(_omitMessageNames ? '' : 'environments'),
createEmptyInstance: create)
..aOM<EnvironmentId>(1, _omitFieldNames ? '' : 'id',
subBuilder: EnvironmentId.create)
..aOM<EnvironmentMetadata>(2, _omitFieldNames ? '' : 'metadata',
subBuilder: EnvironmentMetadata.create)
..aOM<OwnerId>(3, _omitFieldNames ? '' : 'ownerId',
subBuilder: OwnerId.create)
..aOM<Token>(4, _omitFieldNames ? '' : 'token', subBuilder: Token.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
DeleteOptions clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
DeleteOptions copyWith(void Function(DeleteOptions) updates) =>
super.copyWith((message) => updates(message as DeleteOptions))
as DeleteOptions;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static DeleteOptions create() => DeleteOptions._();
@$core.override
DeleteOptions createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static DeleteOptions getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<DeleteOptions>(create);
static DeleteOptions? _defaultInstance;
@$pb.TagNumber(1)
EnvironmentId get id => $_getN(0);
@$pb.TagNumber(1)
set id(EnvironmentId value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasId() => $_has(0);
@$pb.TagNumber(1)
void clearId() => $_clearField(1);
@$pb.TagNumber(1)
EnvironmentId ensureId() => $_ensure(0);
@$pb.TagNumber(2)
EnvironmentMetadata get metadata => $_getN(1);
@$pb.TagNumber(2)
set metadata(EnvironmentMetadata value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasMetadata() => $_has(1);
@$pb.TagNumber(2)
void clearMetadata() => $_clearField(2);
@$pb.TagNumber(2)
EnvironmentMetadata ensureMetadata() => $_ensure(1);
@$pb.TagNumber(3)
OwnerId get ownerId => $_getN(2);
@$pb.TagNumber(3)
set ownerId(OwnerId value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasOwnerId() => $_has(2);
@$pb.TagNumber(3)
void clearOwnerId() => $_clearField(3);
@$pb.TagNumber(3)
OwnerId ensureOwnerId() => $_ensure(2);
@$pb.TagNumber(4)
Token get token => $_getN(3);
@$pb.TagNumber(4)
set token(Token value) => $_setField(4, value);
@$pb.TagNumber(4)
$core.bool hasToken() => $_has(3);
@$pb.TagNumber(4)
void clearToken() => $_clearField(4);
@$pb.TagNumber(4)
Token ensureToken() => $_ensure(3);
}
class GetOptions extends $pb.GeneratedMessage {
factory GetOptions({
EnvironmentId? id,
EnvironmentMetadata? metadata,
OwnerId? ownerId,
Token? token,
}) {
final result = create();
if (id != null) result.id = id;
if (metadata != null) result.metadata = metadata;
if (ownerId != null) result.ownerId = ownerId;
if (token != null) result.token = token;
return result;
}
GetOptions._();
factory GetOptions.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory GetOptions.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'GetOptions',
package: const $pb.PackageName(_omitMessageNames ? '' : 'environments'),
createEmptyInstance: create)
..aOM<EnvironmentId>(1, _omitFieldNames ? '' : 'id',
subBuilder: EnvironmentId.create)
..aOM<EnvironmentMetadata>(2, _omitFieldNames ? '' : 'metadata',
subBuilder: EnvironmentMetadata.create)
..aOM<OwnerId>(3, _omitFieldNames ? '' : 'ownerId',
subBuilder: OwnerId.create)
..aOM<Token>(4, _omitFieldNames ? '' : 'token', subBuilder: Token.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
GetOptions clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
GetOptions copyWith(void Function(GetOptions) updates) =>
super.copyWith((message) => updates(message as GetOptions)) as GetOptions;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static GetOptions create() => GetOptions._();
@$core.override
GetOptions createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static GetOptions getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<GetOptions>(create);
static GetOptions? _defaultInstance;
@$pb.TagNumber(1)
EnvironmentId get id => $_getN(0);
@$pb.TagNumber(1)
set id(EnvironmentId value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasId() => $_has(0);
@$pb.TagNumber(1)
void clearId() => $_clearField(1);
@$pb.TagNumber(1)
EnvironmentId ensureId() => $_ensure(0);
@$pb.TagNumber(2)
EnvironmentMetadata get metadata => $_getN(1);
@$pb.TagNumber(2)
set metadata(EnvironmentMetadata value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasMetadata() => $_has(1);
@$pb.TagNumber(2)
void clearMetadata() => $_clearField(2);
@$pb.TagNumber(2)
EnvironmentMetadata ensureMetadata() => $_ensure(1);
@$pb.TagNumber(3)
OwnerId get ownerId => $_getN(2);
@$pb.TagNumber(3)
set ownerId(OwnerId value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasOwnerId() => $_has(2);
@$pb.TagNumber(3)
void clearOwnerId() => $_clearField(3);
@$pb.TagNumber(3)
OwnerId ensureOwnerId() => $_ensure(2);
@$pb.TagNumber(4)
Token get token => $_getN(3);
@$pb.TagNumber(4)
set token(Token value) => $_setField(4, value);
@$pb.TagNumber(4)
$core.bool hasToken() => $_has(3);
@$pb.TagNumber(4)
void clearToken() => $_clearField(4);
@$pb.TagNumber(4)
Token ensureToken() => $_ensure(3);
}
class ListOptions extends $pb.GeneratedMessage {
factory ListOptions({
EnvironmentMetadata? metadata,
$core.String? searchString,
OwnerId? ownerId,
Token? token,
}) {
final result = create();
if (metadata != null) result.metadata = metadata;
if (searchString != null) result.searchString = searchString;
if (ownerId != null) result.ownerId = ownerId;
if (token != null) result.token = token;
return result;
}
ListOptions._();
factory ListOptions.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory ListOptions.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'ListOptions',
package: const $pb.PackageName(_omitMessageNames ? '' : 'environments'),
createEmptyInstance: create)
..aOM<EnvironmentMetadata>(1, _omitFieldNames ? '' : 'metadata',
subBuilder: EnvironmentMetadata.create)
..aOS(2, _omitFieldNames ? '' : 'searchString')
..aOM<OwnerId>(3, _omitFieldNames ? '' : 'ownerId',
subBuilder: OwnerId.create)
..aOM<Token>(4, _omitFieldNames ? '' : 'token', subBuilder: Token.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ListOptions clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ListOptions copyWith(void Function(ListOptions) updates) =>
super.copyWith((message) => updates(message as ListOptions))
as ListOptions;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ListOptions create() => ListOptions._();
@$core.override
ListOptions createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static ListOptions getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<ListOptions>(create);
static ListOptions? _defaultInstance;
@$pb.TagNumber(1)
EnvironmentMetadata get metadata => $_getN(0);
@$pb.TagNumber(1)
set metadata(EnvironmentMetadata value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasMetadata() => $_has(0);
@$pb.TagNumber(1)
void clearMetadata() => $_clearField(1);
@$pb.TagNumber(1)
EnvironmentMetadata ensureMetadata() => $_ensure(0);
@$pb.TagNumber(2)
$core.String get searchString => $_getSZ(1);
@$pb.TagNumber(2)
set searchString($core.String value) => $_setString(1, value);
@$pb.TagNumber(2)
$core.bool hasSearchString() => $_has(1);
@$pb.TagNumber(2)
void clearSearchString() => $_clearField(2);
@$pb.TagNumber(3)
OwnerId get ownerId => $_getN(2);
@$pb.TagNumber(3)
set ownerId(OwnerId value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasOwnerId() => $_has(2);
@$pb.TagNumber(3)
void clearOwnerId() => $_clearField(3);
@$pb.TagNumber(3)
OwnerId ensureOwnerId() => $_ensure(2);
@$pb.TagNumber(4)
Token get token => $_getN(3);
@$pb.TagNumber(4)
set token(Token value) => $_setField(4, value);
@$pb.TagNumber(4)
$core.bool hasToken() => $_has(3);
@$pb.TagNumber(4)
void clearToken() => $_clearField(4);
@$pb.TagNumber(4)
Token ensureToken() => $_ensure(3);
}
class EnvironmentId extends $pb.GeneratedMessage {
factory EnvironmentId({
$core.String? uuid,
}) {
final result = create();
if (uuid != null) result.uuid = uuid;
return result;
}
EnvironmentId._();
factory EnvironmentId.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory EnvironmentId.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'EnvironmentId',
package: const $pb.PackageName(_omitMessageNames ? '' : 'environments'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'uuid')
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
EnvironmentId clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
EnvironmentId copyWith(void Function(EnvironmentId) updates) =>
super.copyWith((message) => updates(message as EnvironmentId))
as EnvironmentId;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static EnvironmentId create() => EnvironmentId._();
@$core.override
EnvironmentId createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static EnvironmentId getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<EnvironmentId>(create);
static EnvironmentId? _defaultInstance;
@$pb.TagNumber(1)
$core.String get uuid => $_getSZ(0);
@$pb.TagNumber(1)
set uuid($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasUuid() => $_has(0);
@$pb.TagNumber(1)
void clearUuid() => $_clearField(1);
}
class EnvironmentMetadata extends $pb.GeneratedMessage {
factory EnvironmentMetadata({
$core.String? name,
$core.String? description,
}) {
final result = create();
if (name != null) result.name = name;
if (description != null) result.description = description;
return result;
}
EnvironmentMetadata._();
factory EnvironmentMetadata.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory EnvironmentMetadata.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'EnvironmentMetadata',
package: const $pb.PackageName(_omitMessageNames ? '' : 'environments'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'name')
..aOS(2, _omitFieldNames ? '' : 'description')
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
EnvironmentMetadata clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
EnvironmentMetadata copyWith(void Function(EnvironmentMetadata) updates) =>
super.copyWith((message) => updates(message as EnvironmentMetadata))
as EnvironmentMetadata;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static EnvironmentMetadata create() => EnvironmentMetadata._();
@$core.override
EnvironmentMetadata createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static EnvironmentMetadata getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<EnvironmentMetadata>(create);
static EnvironmentMetadata? _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 description => $_getSZ(1);
@$pb.TagNumber(2)
set description($core.String value) => $_setString(1, value);
@$pb.TagNumber(2)
$core.bool hasDescription() => $_has(1);
@$pb.TagNumber(2)
void clearDescription() => $_clearField(2);
}
class EnvironmentSpec extends $pb.GeneratedMessage {
factory EnvironmentSpec({
Provider? provider,
Kubernetes? kubernetes,
ServerType? serverType,
Location? serverLocation,
$core.int? diskSize,
}) {
final result = create();
if (provider != null) result.provider = provider;
if (kubernetes != null) result.kubernetes = kubernetes;
if (serverType != null) result.serverType = serverType;
if (serverLocation != null) result.serverLocation = serverLocation;
if (diskSize != null) result.diskSize = diskSize;
return result;
}
EnvironmentSpec._();
factory EnvironmentSpec.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory EnvironmentSpec.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'EnvironmentSpec',
package: const $pb.PackageName(_omitMessageNames ? '' : 'environments'),
createEmptyInstance: create)
..aE<Provider>(1, _omitFieldNames ? '' : 'provider',
enumValues: Provider.values)
..aE<Kubernetes>(2, _omitFieldNames ? '' : 'kubernetes',
enumValues: Kubernetes.values)
..aE<ServerType>(3, _omitFieldNames ? '' : 'serverType',
enumValues: ServerType.values)
..aE<Location>(4, _omitFieldNames ? '' : 'serverLocation',
enumValues: Location.values)
..aI(5, _omitFieldNames ? '' : 'diskSize')
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
EnvironmentSpec clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
EnvironmentSpec copyWith(void Function(EnvironmentSpec) updates) =>
super.copyWith((message) => updates(message as EnvironmentSpec))
as EnvironmentSpec;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static EnvironmentSpec create() => EnvironmentSpec._();
@$core.override
EnvironmentSpec createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static EnvironmentSpec getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<EnvironmentSpec>(create);
static EnvironmentSpec? _defaultInstance;
@$pb.TagNumber(1)
Provider get provider => $_getN(0);
@$pb.TagNumber(1)
set provider(Provider value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasProvider() => $_has(0);
@$pb.TagNumber(1)
void clearProvider() => $_clearField(1);
@$pb.TagNumber(2)
Kubernetes get kubernetes => $_getN(1);
@$pb.TagNumber(2)
set kubernetes(Kubernetes value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasKubernetes() => $_has(1);
@$pb.TagNumber(2)
void clearKubernetes() => $_clearField(2);
@$pb.TagNumber(3)
ServerType get serverType => $_getN(2);
@$pb.TagNumber(3)
set serverType(ServerType value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasServerType() => $_has(2);
@$pb.TagNumber(3)
void clearServerType() => $_clearField(3);
@$pb.TagNumber(4)
Location get serverLocation => $_getN(3);
@$pb.TagNumber(4)
set serverLocation(Location value) => $_setField(4, value);
@$pb.TagNumber(4)
$core.bool hasServerLocation() => $_has(3);
@$pb.TagNumber(4)
void clearServerLocation() => $_clearField(4);
@$pb.TagNumber(5)
$core.int get diskSize => $_getIZ(4);
@$pb.TagNumber(5)
set diskSize($core.int value) => $_setSignedInt32(4, value);
@$pb.TagNumber(5)
$core.bool hasDiskSize() => $_has(4);
@$pb.TagNumber(5)
void clearDiskSize() => $_clearField(5);
}
class EnvironmentFull extends $pb.GeneratedMessage {
factory EnvironmentFull({
EnvironmentMetadata? metadata,
EnvironmentSpec? spec,
EnvironmentId? id,
}) {
final result = create();
if (metadata != null) result.metadata = metadata;
if (spec != null) result.spec = spec;
if (id != null) result.id = id;
return result;
}
EnvironmentFull._();
factory EnvironmentFull.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory EnvironmentFull.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'EnvironmentFull',
package: const $pb.PackageName(_omitMessageNames ? '' : 'environments'),
createEmptyInstance: create)
..aOM<EnvironmentMetadata>(1, _omitFieldNames ? '' : 'metadata',
subBuilder: EnvironmentMetadata.create)
..aOM<EnvironmentSpec>(2, _omitFieldNames ? '' : 'spec',
subBuilder: EnvironmentSpec.create)
..aOM<EnvironmentId>(3, _omitFieldNames ? '' : 'id',
subBuilder: EnvironmentId.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
EnvironmentFull clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
EnvironmentFull copyWith(void Function(EnvironmentFull) updates) =>
super.copyWith((message) => updates(message as EnvironmentFull))
as EnvironmentFull;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static EnvironmentFull create() => EnvironmentFull._();
@$core.override
EnvironmentFull createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static EnvironmentFull getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<EnvironmentFull>(create);
static EnvironmentFull? _defaultInstance;
@$pb.TagNumber(1)
EnvironmentMetadata get metadata => $_getN(0);
@$pb.TagNumber(1)
set metadata(EnvironmentMetadata value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasMetadata() => $_has(0);
@$pb.TagNumber(1)
void clearMetadata() => $_clearField(1);
@$pb.TagNumber(1)
EnvironmentMetadata ensureMetadata() => $_ensure(0);
@$pb.TagNumber(2)
EnvironmentSpec get spec => $_getN(1);
@$pb.TagNumber(2)
set spec(EnvironmentSpec value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasSpec() => $_has(1);
@$pb.TagNumber(2)
void clearSpec() => $_clearField(2);
@$pb.TagNumber(2)
EnvironmentSpec ensureSpec() => $_ensure(1);
@$pb.TagNumber(3)
EnvironmentId get id => $_getN(2);
@$pb.TagNumber(3)
set id(EnvironmentId value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasId() => $_has(2);
@$pb.TagNumber(3)
void clearId() => $_clearField(3);
@$pb.TagNumber(3)
EnvironmentId ensureId() => $_ensure(2);
}
const $core.bool _omitFieldNames =
$core.bool.fromEnvironment('protobuf.omit_field_names');
const $core.bool _omitMessageNames =
$core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -1,120 +0,0 @@
// This is a generated file - do not edit.
//
// Generated from environments/v1/environments_v1.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;
/// *
/// Helpers and other messages
class Provider extends $pb.ProtobufEnum {
static const Provider PROVIDER_UNSPECIFIED =
Provider._(0, _omitEnumNames ? '' : 'PROVIDER_UNSPECIFIED');
static const Provider PROVIDER_HETZNER =
Provider._(1, _omitEnumNames ? '' : 'PROVIDER_HETZNER');
static const $core.List<Provider> values = <Provider>[
PROVIDER_UNSPECIFIED,
PROVIDER_HETZNER,
];
static final $core.List<Provider?> _byValue =
$pb.ProtobufEnum.$_initByValueList(values, 1);
static Provider? valueOf($core.int value) =>
value < 0 || value >= _byValue.length ? null : _byValue[value];
const Provider._(super.value, super.name);
}
class ServerType extends $pb.ProtobufEnum {
static const ServerType SERVER_TYPE_UNSPECIFIED =
ServerType._(0, _omitEnumNames ? '' : 'SERVER_TYPE_UNSPECIFIED');
static const ServerType SERVER_TYPE_STARTER =
ServerType._(1, _omitEnumNames ? '' : 'SERVER_TYPE_STARTER');
static const ServerType SERVER_TYPE_REGULAR =
ServerType._(2, _omitEnumNames ? '' : 'SERVER_TYPE_REGULAR');
static const ServerType SERVER_TYPE_PLUS =
ServerType._(3, _omitEnumNames ? '' : 'SERVER_TYPE_PLUS');
static const ServerType SERVER_TYPE_PRO =
ServerType._(4, _omitEnumNames ? '' : 'SERVER_TYPE_PRO');
static const ServerType SERVER_TYPE_CUSTOM =
ServerType._(5, _omitEnumNames ? '' : 'SERVER_TYPE_CUSTOM');
static const $core.List<ServerType> values = <ServerType>[
SERVER_TYPE_UNSPECIFIED,
SERVER_TYPE_STARTER,
SERVER_TYPE_REGULAR,
SERVER_TYPE_PLUS,
SERVER_TYPE_PRO,
SERVER_TYPE_CUSTOM,
];
static final $core.List<ServerType?> _byValue =
$pb.ProtobufEnum.$_initByValueList(values, 5);
static ServerType? valueOf($core.int value) =>
value < 0 || value >= _byValue.length ? null : _byValue[value];
const ServerType._(super.value, super.name);
}
class Location extends $pb.ProtobufEnum {
static const Location LOCATION_UNSPECIFIED =
Location._(0, _omitEnumNames ? '' : 'LOCATION_UNSPECIFIED');
static const Location LOCATION_HETZNER_NUREMBERG =
Location._(1, _omitEnumNames ? '' : 'LOCATION_HETZNER_NUREMBERG');
static const Location LOCATION_HETZNER_FALKENSTEIN =
Location._(2, _omitEnumNames ? '' : 'LOCATION_HETZNER_FALKENSTEIN');
static const Location LOCATION_HETZNER_HELSINKI =
Location._(3, _omitEnumNames ? '' : 'LOCATION_HETZNER_HELSINKI');
static const Location LOCATION_HETZNER_HILLSBORO =
Location._(4, _omitEnumNames ? '' : 'LOCATION_HETZNER_HILLSBORO');
static const Location LOCATION_HETZNER_ASHBURN =
Location._(5, _omitEnumNames ? '' : 'LOCATION_HETZNER_ASHBURN');
static const $core.List<Location> values = <Location>[
LOCATION_UNSPECIFIED,
LOCATION_HETZNER_NUREMBERG,
LOCATION_HETZNER_FALKENSTEIN,
LOCATION_HETZNER_HELSINKI,
LOCATION_HETZNER_HILLSBORO,
LOCATION_HETZNER_ASHBURN,
];
static final $core.List<Location?> _byValue =
$pb.ProtobufEnum.$_initByValueList(values, 5);
static Location? valueOf($core.int value) =>
value < 0 || value >= _byValue.length ? null : _byValue[value];
const Location._(super.value, super.name);
}
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<Kubernetes> values = <Kubernetes>[
KUBERNETES_UNSPECIFIED,
KUBERNETES_K3S,
];
static final $core.List<Kubernetes?> _byValue =
$pb.ProtobufEnum.$_initByValueList(values, 1);
static Kubernetes? valueOf($core.int value) =>
value < 0 || value >= _byValue.length ? null : _byValue[value];
const Kubernetes._(super.value, super.name);
}
const $core.bool _omitEnumNames =
$core.bool.fromEnvironment('protobuf.omit_enum_names');

View File

@@ -1,181 +0,0 @@
// This is a generated file - do not edit.
//
// Generated from environments/v1/environments_v1.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:async' as $async;
import 'dart:core' as $core;
import 'package:grpc/service_api.dart' as $grpc;
import 'package:protobuf/protobuf.dart' as $pb;
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart' as $1;
import 'environments_v1.pb.dart' as $0;
export 'environments_v1.pb.dart';
/// *
/// Service for handling environments
@$pb.GrpcServiceName('environments.Environments')
class EnvironmentsClient extends $grpc.Client {
/// The hostname for this service.
static const $core.String defaultHost = '';
/// OAuth scopes needed for the client.
static const $core.List<$core.String> oauthScopes = [
'',
];
EnvironmentsClient(super.channel, {super.options, super.interceptors});
$grpc.ResponseFuture<$0.EnvironmentFull> create(
$0.CreateOptions request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$create, request, options: options);
}
$grpc.ResponseFuture<$0.EnvironmentFull> update(
$0.UpdateOptions request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$update, request, options: options);
}
$grpc.ResponseFuture<$1.Empty> delete(
$0.DeleteOptions request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$delete, request, options: options);
}
$grpc.ResponseFuture<$0.EnvironmentFull> get(
$0.GetOptions request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$get, request, options: options);
}
$grpc.ResponseStream<$0.EnvironmentFull> list(
$0.ListOptions request, {
$grpc.CallOptions? options,
}) {
return $createStreamingCall(_$list, $async.Stream.fromIterable([request]),
options: options);
}
// method descriptors
static final _$create =
$grpc.ClientMethod<$0.CreateOptions, $0.EnvironmentFull>(
'/environments.Environments/Create',
($0.CreateOptions value) => value.writeToBuffer(),
$0.EnvironmentFull.fromBuffer);
static final _$update =
$grpc.ClientMethod<$0.UpdateOptions, $0.EnvironmentFull>(
'/environments.Environments/Update',
($0.UpdateOptions value) => value.writeToBuffer(),
$0.EnvironmentFull.fromBuffer);
static final _$delete = $grpc.ClientMethod<$0.DeleteOptions, $1.Empty>(
'/environments.Environments/Delete',
($0.DeleteOptions value) => value.writeToBuffer(),
$1.Empty.fromBuffer);
static final _$get = $grpc.ClientMethod<$0.GetOptions, $0.EnvironmentFull>(
'/environments.Environments/Get',
($0.GetOptions value) => value.writeToBuffer(),
$0.EnvironmentFull.fromBuffer);
static final _$list = $grpc.ClientMethod<$0.ListOptions, $0.EnvironmentFull>(
'/environments.Environments/List',
($0.ListOptions value) => value.writeToBuffer(),
$0.EnvironmentFull.fromBuffer);
}
@$pb.GrpcServiceName('environments.Environments')
abstract class EnvironmentsServiceBase extends $grpc.Service {
$core.String get $name => 'environments.Environments';
EnvironmentsServiceBase() {
$addMethod($grpc.ServiceMethod<$0.CreateOptions, $0.EnvironmentFull>(
'Create',
create_Pre,
false,
false,
($core.List<$core.int> value) => $0.CreateOptions.fromBuffer(value),
($0.EnvironmentFull value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.UpdateOptions, $0.EnvironmentFull>(
'Update',
update_Pre,
false,
false,
($core.List<$core.int> value) => $0.UpdateOptions.fromBuffer(value),
($0.EnvironmentFull value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DeleteOptions, $1.Empty>(
'Delete',
delete_Pre,
false,
false,
($core.List<$core.int> value) => $0.DeleteOptions.fromBuffer(value),
($1.Empty value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.GetOptions, $0.EnvironmentFull>(
'Get',
get_Pre,
false,
false,
($core.List<$core.int> value) => $0.GetOptions.fromBuffer(value),
($0.EnvironmentFull value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.ListOptions, $0.EnvironmentFull>(
'List',
list_Pre,
false,
true,
($core.List<$core.int> value) => $0.ListOptions.fromBuffer(value),
($0.EnvironmentFull value) => value.writeToBuffer()));
}
$async.Future<$0.EnvironmentFull> create_Pre(
$grpc.ServiceCall $call, $async.Future<$0.CreateOptions> $request) async {
return create($call, await $request);
}
$async.Future<$0.EnvironmentFull> create(
$grpc.ServiceCall call, $0.CreateOptions request);
$async.Future<$0.EnvironmentFull> update_Pre(
$grpc.ServiceCall $call, $async.Future<$0.UpdateOptions> $request) async {
return update($call, await $request);
}
$async.Future<$0.EnvironmentFull> update(
$grpc.ServiceCall call, $0.UpdateOptions request);
$async.Future<$1.Empty> delete_Pre(
$grpc.ServiceCall $call, $async.Future<$0.DeleteOptions> $request) async {
return delete($call, await $request);
}
$async.Future<$1.Empty> delete(
$grpc.ServiceCall call, $0.DeleteOptions request);
$async.Future<$0.EnvironmentFull> get_Pre(
$grpc.ServiceCall $call, $async.Future<$0.GetOptions> $request) async {
return get($call, await $request);
}
$async.Future<$0.EnvironmentFull> get(
$grpc.ServiceCall call, $0.GetOptions request);
$async.Stream<$0.EnvironmentFull> list_Pre(
$grpc.ServiceCall $call, $async.Future<$0.ListOptions> $request) async* {
yield* list($call, await $request);
}
$async.Stream<$0.EnvironmentFull> list(
$grpc.ServiceCall call, $0.ListOptions request);
}

View File

@@ -1,452 +0,0 @@
// This is a generated file - do not edit.
//
// Generated from environments/v1/environments_v1.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
// ignore_for_file: unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use providerDescriptor instead')
const Provider$json = {
'1': 'Provider',
'2': [
{'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(
'CghQcm92aWRlchIYChRQUk9WSURFUl9VTlNQRUNJRklFRBAAEhQKEFBST1ZJREVSX0hFVFpORV'
'IQAQ==');
@$core.Deprecated('Use serverTypeDescriptor instead')
const ServerType$json = {
'1': 'ServerType',
'2': [
{'1': 'SERVER_TYPE_UNSPECIFIED', '2': 0},
{'1': 'SERVER_TYPE_STARTER', '2': 1},
{'1': 'SERVER_TYPE_REGULAR', '2': 2},
{'1': 'SERVER_TYPE_PLUS', '2': 3},
{'1': 'SERVER_TYPE_PRO', '2': 4},
{'1': 'SERVER_TYPE_CUSTOM', '2': 5},
],
};
/// Descriptor for `ServerType`. Decode as a `google.protobuf.EnumDescriptorProto`.
final $typed_data.Uint8List serverTypeDescriptor = $convert.base64Decode(
'CgpTZXJ2ZXJUeXBlEhsKF1NFUlZFUl9UWVBFX1VOU1BFQ0lGSUVEEAASFwoTU0VSVkVSX1RZUE'
'VfU1RBUlRFUhABEhcKE1NFUlZFUl9UWVBFX1JFR1VMQVIQAhIUChBTRVJWRVJfVFlQRV9QTFVT'
'EAMSEwoPU0VSVkVSX1RZUEVfUFJPEAQSFgoSU0VSVkVSX1RZUEVfQ1VTVE9NEAU=');
@$core.Deprecated('Use locationDescriptor instead')
const Location$json = {
'1': 'Location',
'2': [
{'1': 'LOCATION_UNSPECIFIED', '2': 0},
{'1': 'LOCATION_HETZNER_NUREMBERG', '2': 1},
{'1': 'LOCATION_HETZNER_FALKENSTEIN', '2': 2},
{'1': 'LOCATION_HETZNER_HELSINKI', '2': 3},
{'1': 'LOCATION_HETZNER_HILLSBORO', '2': 4},
{'1': 'LOCATION_HETZNER_ASHBURN', '2': 5},
],
};
/// Descriptor for `Location`. Decode as a `google.protobuf.EnumDescriptorProto`.
final $typed_data.Uint8List locationDescriptor = $convert.base64Decode(
'CghMb2NhdGlvbhIYChRMT0NBVElPTl9VTlNQRUNJRklFRBAAEh4KGkxPQ0FUSU9OX0hFVFpORV'
'JfTlVSRU1CRVJHEAESIAocTE9DQVRJT05fSEVUWk5FUl9GQUxLRU5TVEVJThACEh0KGUxPQ0FU'
'SU9OX0hFVFpORVJfSEVMU0lOS0kQAxIeChpMT0NBVElPTl9IRVRaTkVSX0hJTExTQk9STxAEEh'
'wKGExPQ0FUSU9OX0hFVFpORVJfQVNIQlVSThAF');
@$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 ownerIdDescriptor instead')
const OwnerId$json = {
'1': 'OwnerId',
'2': [
{'1': 'uuid', '3': 1, '4': 1, '5': 9, '10': 'uuid'},
],
};
/// Descriptor for `OwnerId`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List ownerIdDescriptor =
$convert.base64Decode('CgdPd25lcklkEhIKBHV1aWQYASABKAlSBHV1aWQ=');
@$core.Deprecated('Use tokenDescriptor instead')
const Token$json = {
'1': 'Token',
'2': [
{'1': 'token', '3': 1, '4': 1, '5': 9, '10': 'token'},
],
};
/// Descriptor for `Token`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List tokenDescriptor =
$convert.base64Decode('CgVUb2tlbhIUCgV0b2tlbhgBIAEoCVIFdG9rZW4=');
@$core.Deprecated('Use createOptionsDescriptor instead')
const CreateOptions$json = {
'1': 'CreateOptions',
'2': [
{
'1': 'metadata',
'3': 1,
'4': 1,
'5': 11,
'6': '.environments.EnvironmentMetadata',
'10': 'metadata'
},
{
'1': 'spec',
'3': 2,
'4': 1,
'5': 11,
'6': '.environments.EnvironmentSpec',
'10': 'spec'
},
{
'1': 'owner_id',
'3': 3,
'4': 1,
'5': 11,
'6': '.environments.OwnerId',
'10': 'ownerId'
},
{
'1': 'token',
'3': 4,
'4': 1,
'5': 11,
'6': '.environments.Token',
'10': 'token'
},
],
};
/// Descriptor for `CreateOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List createOptionsDescriptor = $convert.base64Decode(
'Cg1DcmVhdGVPcHRpb25zEj0KCG1ldGFkYXRhGAEgASgLMiEuZW52aXJvbm1lbnRzLkVudmlyb2'
'5tZW50TWV0YWRhdGFSCG1ldGFkYXRhEjEKBHNwZWMYAiABKAsyHS5lbnZpcm9ubWVudHMuRW52'
'aXJvbm1lbnRTcGVjUgRzcGVjEjAKCG93bmVyX2lkGAMgASgLMhUuZW52aXJvbm1lbnRzLk93bm'
'VySWRSB293bmVySWQSKQoFdG9rZW4YBCABKAsyEy5lbnZpcm9ubWVudHMuVG9rZW5SBXRva2Vu');
@$core.Deprecated('Use updateOptionsDescriptor instead')
const UpdateOptions$json = {
'1': 'UpdateOptions',
'2': [
{
'1': 'id',
'3': 1,
'4': 1,
'5': 11,
'6': '.environments.EnvironmentId',
'10': 'id'
},
{
'1': 'metadata',
'3': 2,
'4': 1,
'5': 11,
'6': '.environments.EnvironmentMetadata',
'10': 'metadata'
},
{
'1': 'spec',
'3': 3,
'4': 1,
'5': 11,
'6': '.environments.EnvironmentSpec',
'10': 'spec'
},
{
'1': 'owner_id',
'3': 4,
'4': 1,
'5': 11,
'6': '.environments.OwnerId',
'10': 'ownerId'
},
{
'1': 'token',
'3': 5,
'4': 1,
'5': 11,
'6': '.environments.Token',
'10': 'token'
},
],
};
/// Descriptor for `UpdateOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List updateOptionsDescriptor = $convert.base64Decode(
'Cg1VcGRhdGVPcHRpb25zEisKAmlkGAEgASgLMhsuZW52aXJvbm1lbnRzLkVudmlyb25tZW50SW'
'RSAmlkEj0KCG1ldGFkYXRhGAIgASgLMiEuZW52aXJvbm1lbnRzLkVudmlyb25tZW50TWV0YWRh'
'dGFSCG1ldGFkYXRhEjEKBHNwZWMYAyABKAsyHS5lbnZpcm9ubWVudHMuRW52aXJvbm1lbnRTcG'
'VjUgRzcGVjEjAKCG93bmVyX2lkGAQgASgLMhUuZW52aXJvbm1lbnRzLk93bmVySWRSB293bmVy'
'SWQSKQoFdG9rZW4YBSABKAsyEy5lbnZpcm9ubWVudHMuVG9rZW5SBXRva2Vu');
@$core.Deprecated('Use deleteOptionsDescriptor instead')
const DeleteOptions$json = {
'1': 'DeleteOptions',
'2': [
{
'1': 'id',
'3': 1,
'4': 1,
'5': 11,
'6': '.environments.EnvironmentId',
'10': 'id'
},
{
'1': 'metadata',
'3': 2,
'4': 1,
'5': 11,
'6': '.environments.EnvironmentMetadata',
'10': 'metadata'
},
{
'1': 'owner_id',
'3': 3,
'4': 1,
'5': 11,
'6': '.environments.OwnerId',
'10': 'ownerId'
},
{
'1': 'token',
'3': 4,
'4': 1,
'5': 11,
'6': '.environments.Token',
'10': 'token'
},
],
};
/// Descriptor for `DeleteOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List deleteOptionsDescriptor = $convert.base64Decode(
'Cg1EZWxldGVPcHRpb25zEisKAmlkGAEgASgLMhsuZW52aXJvbm1lbnRzLkVudmlyb25tZW50SW'
'RSAmlkEj0KCG1ldGFkYXRhGAIgASgLMiEuZW52aXJvbm1lbnRzLkVudmlyb25tZW50TWV0YWRh'
'dGFSCG1ldGFkYXRhEjAKCG93bmVyX2lkGAMgASgLMhUuZW52aXJvbm1lbnRzLk93bmVySWRSB2'
'93bmVySWQSKQoFdG9rZW4YBCABKAsyEy5lbnZpcm9ubWVudHMuVG9rZW5SBXRva2Vu');
@$core.Deprecated('Use getOptionsDescriptor instead')
const GetOptions$json = {
'1': 'GetOptions',
'2': [
{
'1': 'id',
'3': 1,
'4': 1,
'5': 11,
'6': '.environments.EnvironmentId',
'10': 'id'
},
{
'1': 'metadata',
'3': 2,
'4': 1,
'5': 11,
'6': '.environments.EnvironmentMetadata',
'10': 'metadata'
},
{
'1': 'owner_id',
'3': 3,
'4': 1,
'5': 11,
'6': '.environments.OwnerId',
'10': 'ownerId'
},
{
'1': 'token',
'3': 4,
'4': 1,
'5': 11,
'6': '.environments.Token',
'10': 'token'
},
],
};
/// Descriptor for `GetOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List getOptionsDescriptor = $convert.base64Decode(
'CgpHZXRPcHRpb25zEisKAmlkGAEgASgLMhsuZW52aXJvbm1lbnRzLkVudmlyb25tZW50SWRSAm'
'lkEj0KCG1ldGFkYXRhGAIgASgLMiEuZW52aXJvbm1lbnRzLkVudmlyb25tZW50TWV0YWRhdGFS'
'CG1ldGFkYXRhEjAKCG93bmVyX2lkGAMgASgLMhUuZW52aXJvbm1lbnRzLk93bmVySWRSB293bm'
'VySWQSKQoFdG9rZW4YBCABKAsyEy5lbnZpcm9ubWVudHMuVG9rZW5SBXRva2Vu');
@$core.Deprecated('Use listOptionsDescriptor instead')
const ListOptions$json = {
'1': 'ListOptions',
'2': [
{
'1': 'metadata',
'3': 1,
'4': 1,
'5': 11,
'6': '.environments.EnvironmentMetadata',
'10': 'metadata'
},
{'1': 'search_string', '3': 2, '4': 1, '5': 9, '10': 'searchString'},
{
'1': 'owner_id',
'3': 3,
'4': 1,
'5': 11,
'6': '.environments.OwnerId',
'10': 'ownerId'
},
{
'1': 'token',
'3': 4,
'4': 1,
'5': 11,
'6': '.environments.Token',
'10': 'token'
},
],
};
/// Descriptor for `ListOptions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List listOptionsDescriptor = $convert.base64Decode(
'CgtMaXN0T3B0aW9ucxI9CghtZXRhZGF0YRgBIAEoCzIhLmVudmlyb25tZW50cy5FbnZpcm9ubW'
'VudE1ldGFkYXRhUghtZXRhZGF0YRIjCg1zZWFyY2hfc3RyaW5nGAIgASgJUgxzZWFyY2hTdHJp'
'bmcSMAoIb3duZXJfaWQYAyABKAsyFS5lbnZpcm9ubWVudHMuT3duZXJJZFIHb3duZXJJZBIpCg'
'V0b2tlbhgEIAEoCzITLmVudmlyb25tZW50cy5Ub2tlblIFdG9rZW4=');
@$core.Deprecated('Use environmentIdDescriptor instead')
const EnvironmentId$json = {
'1': 'EnvironmentId',
'2': [
{'1': 'uuid', '3': 1, '4': 1, '5': 9, '10': 'uuid'},
],
};
/// Descriptor for `EnvironmentId`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List environmentIdDescriptor =
$convert.base64Decode('Cg1FbnZpcm9ubWVudElkEhIKBHV1aWQYASABKAlSBHV1aWQ=');
@$core.Deprecated('Use environmentMetadataDescriptor instead')
const EnvironmentMetadata$json = {
'1': 'EnvironmentMetadata',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{'1': 'description', '3': 2, '4': 1, '5': 9, '10': 'description'},
],
};
/// Descriptor for `EnvironmentMetadata`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List environmentMetadataDescriptor = $convert.base64Decode(
'ChNFbnZpcm9ubWVudE1ldGFkYXRhEhIKBG5hbWUYASABKAlSBG5hbWUSIAoLZGVzY3JpcHRpb2'
'4YAiABKAlSC2Rlc2NyaXB0aW9u');
@$core.Deprecated('Use environmentSpecDescriptor instead')
const EnvironmentSpec$json = {
'1': 'EnvironmentSpec',
'2': [
{
'1': 'provider',
'3': 1,
'4': 1,
'5': 14,
'6': '.environments.Provider',
'10': 'provider'
},
{
'1': 'kubernetes',
'3': 2,
'4': 1,
'5': 14,
'6': '.environments.Kubernetes',
'10': 'kubernetes'
},
{
'1': 'server_type',
'3': 3,
'4': 1,
'5': 14,
'6': '.environments.ServerType',
'10': 'serverType'
},
{
'1': 'server_location',
'3': 4,
'4': 1,
'5': 14,
'6': '.environments.Location',
'10': 'serverLocation'
},
{'1': 'disk_size', '3': 5, '4': 1, '5': 5, '10': 'diskSize'},
],
};
/// Descriptor for `EnvironmentSpec`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List environmentSpecDescriptor = $convert.base64Decode(
'Cg9FbnZpcm9ubWVudFNwZWMSMgoIcHJvdmlkZXIYASABKA4yFi5lbnZpcm9ubWVudHMuUHJvdm'
'lkZXJSCHByb3ZpZGVyEjgKCmt1YmVybmV0ZXMYAiABKA4yGC5lbnZpcm9ubWVudHMuS3ViZXJu'
'ZXRlc1IKa3ViZXJuZXRlcxI5CgtzZXJ2ZXJfdHlwZRgDIAEoDjIYLmVudmlyb25tZW50cy5TZX'
'J2ZXJUeXBlUgpzZXJ2ZXJUeXBlEj8KD3NlcnZlcl9sb2NhdGlvbhgEIAEoDjIWLmVudmlyb25t'
'ZW50cy5Mb2NhdGlvblIOc2VydmVyTG9jYXRpb24SGwoJZGlza19zaXplGAUgASgFUghkaXNrU2'
'l6ZQ==');
@$core.Deprecated('Use environmentFullDescriptor instead')
const EnvironmentFull$json = {
'1': 'EnvironmentFull',
'2': [
{
'1': 'metadata',
'3': 1,
'4': 1,
'5': 11,
'6': '.environments.EnvironmentMetadata',
'10': 'metadata'
},
{
'1': 'spec',
'3': 2,
'4': 1,
'5': 11,
'6': '.environments.EnvironmentSpec',
'10': 'spec'
},
{
'1': 'id',
'3': 3,
'4': 1,
'5': 11,
'6': '.environments.EnvironmentId',
'10': 'id'
},
],
};
/// Descriptor for `EnvironmentFull`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List environmentFullDescriptor = $convert.base64Decode(
'Cg9FbnZpcm9ubWVudEZ1bGwSPQoIbWV0YWRhdGEYASABKAsyIS5lbnZpcm9ubWVudHMuRW52aX'
'Jvbm1lbnRNZXRhZGF0YVIIbWV0YWRhdGESMQoEc3BlYxgCIAEoCzIdLmVudmlyb25tZW50cy5F'
'bnZpcm9ubWVudFNwZWNSBHNwZWMSKwoCaWQYAyABKAsyGy5lbnZpcm9ubWVudHMuRW52aXJvbm'
'1lbnRJZFICaWQ=');

View File

@@ -0,0 +1,997 @@
// This is a generated file - do not edit.
//
// Generated from tokens/v1/tokens_v1.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 'package:protobuf/well_known_types/google/protobuf/timestamp.pb.dart'
as $2;
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
class TokenMetadata extends $pb.GeneratedMessage {
factory TokenMetadata({
$core.String? name,
$2.Timestamp? expiresAt,
}) {
final result = create();
if (name != null) result.name = name;
if (expiresAt != null) result.expiresAt = expiresAt;
return result;
}
TokenMetadata._();
factory TokenMetadata.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory TokenMetadata.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'TokenMetadata',
package: const $pb.PackageName(_omitMessageNames ? '' : 'tokens.v1'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'name')
..aOM<$2.Timestamp>(2, _omitFieldNames ? '' : 'expiresAt',
subBuilder: $2.Timestamp.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
TokenMetadata clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
TokenMetadata copyWith(void Function(TokenMetadata) updates) =>
super.copyWith((message) => updates(message as TokenMetadata))
as TokenMetadata;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static TokenMetadata create() => TokenMetadata._();
@$core.override
TokenMetadata createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static TokenMetadata getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<TokenMetadata>(create);
static TokenMetadata? _defaultInstance;
/// A token name
@$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);
/// Token expiration timestamp
@$pb.TagNumber(2)
$2.Timestamp get expiresAt => $_getN(1);
@$pb.TagNumber(2)
set expiresAt($2.Timestamp value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasExpiresAt() => $_has(1);
@$pb.TagNumber(2)
void clearExpiresAt() => $_clearField(2);
@$pb.TagNumber(2)
$2.Timestamp ensureExpiresAt() => $_ensure(1);
}
class TokenUUID extends $pb.GeneratedMessage {
factory TokenUUID({
$core.String? uuid,
}) {
final result = create();
if (uuid != null) result.uuid = uuid;
return result;
}
TokenUUID._();
factory TokenUUID.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory TokenUUID.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'TokenUUID',
package: const $pb.PackageName(_omitMessageNames ? '' : 'tokens.v1'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'uuid')
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
TokenUUID clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
TokenUUID copyWith(void Function(TokenUUID) updates) =>
super.copyWith((message) => updates(message as TokenUUID)) as TokenUUID;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static TokenUUID create() => TokenUUID._();
@$core.override
TokenUUID createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static TokenUUID getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TokenUUID>(create);
static TokenUUID? _defaultInstance;
/// An ID of a token
@$pb.TagNumber(1)
$core.String get uuid => $_getSZ(0);
@$pb.TagNumber(1)
set uuid($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasUuid() => $_has(0);
@$pb.TagNumber(1)
void clearUuid() => $_clearField(1);
}
class TokenValue extends $pb.GeneratedMessage {
factory TokenValue({
$core.String? token,
}) {
final result = create();
if (token != null) result.token = token;
return result;
}
TokenValue._();
factory TokenValue.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory TokenValue.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'TokenValue',
package: const $pb.PackageName(_omitMessageNames ? '' : 'tokens.v1'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'token')
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
TokenValue clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
TokenValue copyWith(void Function(TokenValue) updates) =>
super.copyWith((message) => updates(message as TokenValue)) as TokenValue;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static TokenValue create() => TokenValue._();
@$core.override
TokenValue createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static TokenValue getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<TokenValue>(create);
static TokenValue? _defaultInstance;
/// Token value
/// Can be only retrieved once after the generation
@$pb.TagNumber(1)
$core.String get token => $_getSZ(0);
@$pb.TagNumber(1)
set token($core.String value) => $_setString(0, value);
@$pb.TagNumber(1)
$core.bool hasToken() => $_has(0);
@$pb.TagNumber(1)
void clearToken() => $_clearField(1);
}
class TokenPermissions extends $pb.GeneratedMessage {
factory TokenPermissions() => create();
TokenPermissions._();
factory TokenPermissions.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory TokenPermissions.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'TokenPermissions',
package: const $pb.PackageName(_omitMessageNames ? '' : 'tokens.v1'),
createEmptyInstance: create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
TokenPermissions clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
TokenPermissions copyWith(void Function(TokenPermissions) updates) =>
super.copyWith((message) => updates(message as TokenPermissions))
as TokenPermissions;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static TokenPermissions create() => TokenPermissions._();
@$core.override
TokenPermissions createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static TokenPermissions getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<TokenPermissions>(create);
static TokenPermissions? _defaultInstance;
}
class CreateTokenRequest extends $pb.GeneratedMessage {
factory CreateTokenRequest({
TokenMetadata? tokenMetadata,
TokenPermissions? tokenPermissions,
}) {
final result = create();
if (tokenMetadata != null) result.tokenMetadata = tokenMetadata;
if (tokenPermissions != null) result.tokenPermissions = tokenPermissions;
return result;
}
CreateTokenRequest._();
factory CreateTokenRequest.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory CreateTokenRequest.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'CreateTokenRequest',
package: const $pb.PackageName(_omitMessageNames ? '' : 'tokens.v1'),
createEmptyInstance: create)
..aOM<TokenMetadata>(1, _omitFieldNames ? '' : 'tokenMetadata',
subBuilder: TokenMetadata.create)
..aOM<TokenPermissions>(2, _omitFieldNames ? '' : 'tokenPermissions',
subBuilder: TokenPermissions.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
CreateTokenRequest clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
CreateTokenRequest copyWith(void Function(CreateTokenRequest) updates) =>
super.copyWith((message) => updates(message as CreateTokenRequest))
as CreateTokenRequest;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static CreateTokenRequest create() => CreateTokenRequest._();
@$core.override
CreateTokenRequest createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static CreateTokenRequest getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<CreateTokenRequest>(create);
static CreateTokenRequest? _defaultInstance;
@$pb.TagNumber(1)
TokenMetadata get tokenMetadata => $_getN(0);
@$pb.TagNumber(1)
set tokenMetadata(TokenMetadata value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasTokenMetadata() => $_has(0);
@$pb.TagNumber(1)
void clearTokenMetadata() => $_clearField(1);
@$pb.TagNumber(1)
TokenMetadata ensureTokenMetadata() => $_ensure(0);
@$pb.TagNumber(2)
TokenPermissions get tokenPermissions => $_getN(1);
@$pb.TagNumber(2)
set tokenPermissions(TokenPermissions value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasTokenPermissions() => $_has(1);
@$pb.TagNumber(2)
void clearTokenPermissions() => $_clearField(2);
@$pb.TagNumber(2)
TokenPermissions ensureTokenPermissions() => $_ensure(1);
}
class CreateTokenResponse extends $pb.GeneratedMessage {
factory CreateTokenResponse({
TokenUUID? tokenUuid,
TokenMetadata? tokenMetadata,
TokenPermissions? tokenPermissions,
TokenValue? tokenValue,
}) {
final result = create();
if (tokenUuid != null) result.tokenUuid = tokenUuid;
if (tokenMetadata != null) result.tokenMetadata = tokenMetadata;
if (tokenPermissions != null) result.tokenPermissions = tokenPermissions;
if (tokenValue != null) result.tokenValue = tokenValue;
return result;
}
CreateTokenResponse._();
factory CreateTokenResponse.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory CreateTokenResponse.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'CreateTokenResponse',
package: const $pb.PackageName(_omitMessageNames ? '' : 'tokens.v1'),
createEmptyInstance: create)
..aOM<TokenUUID>(1, _omitFieldNames ? '' : 'tokenUuid',
subBuilder: TokenUUID.create)
..aOM<TokenMetadata>(2, _omitFieldNames ? '' : 'tokenMetadata',
subBuilder: TokenMetadata.create)
..aOM<TokenPermissions>(3, _omitFieldNames ? '' : 'tokenPermissions',
subBuilder: TokenPermissions.create)
..aOM<TokenValue>(4, _omitFieldNames ? '' : 'tokenValue',
subBuilder: TokenValue.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
CreateTokenResponse clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
CreateTokenResponse copyWith(void Function(CreateTokenResponse) updates) =>
super.copyWith((message) => updates(message as CreateTokenResponse))
as CreateTokenResponse;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static CreateTokenResponse create() => CreateTokenResponse._();
@$core.override
CreateTokenResponse createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static CreateTokenResponse getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<CreateTokenResponse>(create);
static CreateTokenResponse? _defaultInstance;
@$pb.TagNumber(1)
TokenUUID get tokenUuid => $_getN(0);
@$pb.TagNumber(1)
set tokenUuid(TokenUUID value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasTokenUuid() => $_has(0);
@$pb.TagNumber(1)
void clearTokenUuid() => $_clearField(1);
@$pb.TagNumber(1)
TokenUUID ensureTokenUuid() => $_ensure(0);
@$pb.TagNumber(2)
TokenMetadata get tokenMetadata => $_getN(1);
@$pb.TagNumber(2)
set tokenMetadata(TokenMetadata value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasTokenMetadata() => $_has(1);
@$pb.TagNumber(2)
void clearTokenMetadata() => $_clearField(2);
@$pb.TagNumber(2)
TokenMetadata ensureTokenMetadata() => $_ensure(1);
@$pb.TagNumber(3)
TokenPermissions get tokenPermissions => $_getN(2);
@$pb.TagNumber(3)
set tokenPermissions(TokenPermissions value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasTokenPermissions() => $_has(2);
@$pb.TagNumber(3)
void clearTokenPermissions() => $_clearField(3);
@$pb.TagNumber(3)
TokenPermissions ensureTokenPermissions() => $_ensure(2);
@$pb.TagNumber(4)
TokenValue get tokenValue => $_getN(3);
@$pb.TagNumber(4)
set tokenValue(TokenValue value) => $_setField(4, value);
@$pb.TagNumber(4)
$core.bool hasTokenValue() => $_has(3);
@$pb.TagNumber(4)
void clearTokenValue() => $_clearField(4);
@$pb.TagNumber(4)
TokenValue ensureTokenValue() => $_ensure(3);
}
class UpdateTokenRequest extends $pb.GeneratedMessage {
factory UpdateTokenRequest({
TokenUUID? tokenUuid,
TokenMetadata? tokenMetadata,
TokenPermissions? tokenPermissions,
}) {
final result = create();
if (tokenUuid != null) result.tokenUuid = tokenUuid;
if (tokenMetadata != null) result.tokenMetadata = tokenMetadata;
if (tokenPermissions != null) result.tokenPermissions = tokenPermissions;
return result;
}
UpdateTokenRequest._();
factory UpdateTokenRequest.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory UpdateTokenRequest.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'UpdateTokenRequest',
package: const $pb.PackageName(_omitMessageNames ? '' : 'tokens.v1'),
createEmptyInstance: create)
..aOM<TokenUUID>(1, _omitFieldNames ? '' : 'tokenUuid',
subBuilder: TokenUUID.create)
..aOM<TokenMetadata>(2, _omitFieldNames ? '' : 'tokenMetadata',
subBuilder: TokenMetadata.create)
..aOM<TokenPermissions>(3, _omitFieldNames ? '' : 'tokenPermissions',
subBuilder: TokenPermissions.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateTokenRequest clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateTokenRequest copyWith(void Function(UpdateTokenRequest) updates) =>
super.copyWith((message) => updates(message as UpdateTokenRequest))
as UpdateTokenRequest;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static UpdateTokenRequest create() => UpdateTokenRequest._();
@$core.override
UpdateTokenRequest createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static UpdateTokenRequest getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<UpdateTokenRequest>(create);
static UpdateTokenRequest? _defaultInstance;
@$pb.TagNumber(1)
TokenUUID get tokenUuid => $_getN(0);
@$pb.TagNumber(1)
set tokenUuid(TokenUUID value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasTokenUuid() => $_has(0);
@$pb.TagNumber(1)
void clearTokenUuid() => $_clearField(1);
@$pb.TagNumber(1)
TokenUUID ensureTokenUuid() => $_ensure(0);
@$pb.TagNumber(2)
TokenMetadata get tokenMetadata => $_getN(1);
@$pb.TagNumber(2)
set tokenMetadata(TokenMetadata value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasTokenMetadata() => $_has(1);
@$pb.TagNumber(2)
void clearTokenMetadata() => $_clearField(2);
@$pb.TagNumber(2)
TokenMetadata ensureTokenMetadata() => $_ensure(1);
@$pb.TagNumber(3)
TokenPermissions get tokenPermissions => $_getN(2);
@$pb.TagNumber(3)
set tokenPermissions(TokenPermissions value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasTokenPermissions() => $_has(2);
@$pb.TagNumber(3)
void clearTokenPermissions() => $_clearField(3);
@$pb.TagNumber(3)
TokenPermissions ensureTokenPermissions() => $_ensure(2);
}
class UpdateTokenResponse extends $pb.GeneratedMessage {
factory UpdateTokenResponse({
TokenUUID? tokenUuid,
TokenMetadata? tokenMetadata,
TokenPermissions? tokenPermissions,
}) {
final result = create();
if (tokenUuid != null) result.tokenUuid = tokenUuid;
if (tokenMetadata != null) result.tokenMetadata = tokenMetadata;
if (tokenPermissions != null) result.tokenPermissions = tokenPermissions;
return result;
}
UpdateTokenResponse._();
factory UpdateTokenResponse.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory UpdateTokenResponse.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'UpdateTokenResponse',
package: const $pb.PackageName(_omitMessageNames ? '' : 'tokens.v1'),
createEmptyInstance: create)
..aOM<TokenUUID>(1, _omitFieldNames ? '' : 'tokenUuid',
subBuilder: TokenUUID.create)
..aOM<TokenMetadata>(2, _omitFieldNames ? '' : 'tokenMetadata',
subBuilder: TokenMetadata.create)
..aOM<TokenPermissions>(3, _omitFieldNames ? '' : 'tokenPermissions',
subBuilder: TokenPermissions.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateTokenResponse clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
UpdateTokenResponse copyWith(void Function(UpdateTokenResponse) updates) =>
super.copyWith((message) => updates(message as UpdateTokenResponse))
as UpdateTokenResponse;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static UpdateTokenResponse create() => UpdateTokenResponse._();
@$core.override
UpdateTokenResponse createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static UpdateTokenResponse getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<UpdateTokenResponse>(create);
static UpdateTokenResponse? _defaultInstance;
@$pb.TagNumber(1)
TokenUUID get tokenUuid => $_getN(0);
@$pb.TagNumber(1)
set tokenUuid(TokenUUID value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasTokenUuid() => $_has(0);
@$pb.TagNumber(1)
void clearTokenUuid() => $_clearField(1);
@$pb.TagNumber(1)
TokenUUID ensureTokenUuid() => $_ensure(0);
@$pb.TagNumber(2)
TokenMetadata get tokenMetadata => $_getN(1);
@$pb.TagNumber(2)
set tokenMetadata(TokenMetadata value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasTokenMetadata() => $_has(1);
@$pb.TagNumber(2)
void clearTokenMetadata() => $_clearField(2);
@$pb.TagNumber(2)
TokenMetadata ensureTokenMetadata() => $_ensure(1);
@$pb.TagNumber(3)
TokenPermissions get tokenPermissions => $_getN(2);
@$pb.TagNumber(3)
set tokenPermissions(TokenPermissions value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasTokenPermissions() => $_has(2);
@$pb.TagNumber(3)
void clearTokenPermissions() => $_clearField(3);
@$pb.TagNumber(3)
TokenPermissions ensureTokenPermissions() => $_ensure(2);
}
class ForceTokenExpirationRequest extends $pb.GeneratedMessage {
factory ForceTokenExpirationRequest({
TokenUUID? tokenUuid,
}) {
final result = create();
if (tokenUuid != null) result.tokenUuid = tokenUuid;
return result;
}
ForceTokenExpirationRequest._();
factory ForceTokenExpirationRequest.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory ForceTokenExpirationRequest.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'ForceTokenExpirationRequest',
package: const $pb.PackageName(_omitMessageNames ? '' : 'tokens.v1'),
createEmptyInstance: create)
..aOM<TokenUUID>(1, _omitFieldNames ? '' : 'tokenUuid',
subBuilder: TokenUUID.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ForceTokenExpirationRequest clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ForceTokenExpirationRequest copyWith(
void Function(ForceTokenExpirationRequest) updates) =>
super.copyWith(
(message) => updates(message as ForceTokenExpirationRequest))
as ForceTokenExpirationRequest;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ForceTokenExpirationRequest create() =>
ForceTokenExpirationRequest._();
@$core.override
ForceTokenExpirationRequest createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static ForceTokenExpirationRequest getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<ForceTokenExpirationRequest>(create);
static ForceTokenExpirationRequest? _defaultInstance;
@$pb.TagNumber(1)
TokenUUID get tokenUuid => $_getN(0);
@$pb.TagNumber(1)
set tokenUuid(TokenUUID value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasTokenUuid() => $_has(0);
@$pb.TagNumber(1)
void clearTokenUuid() => $_clearField(1);
@$pb.TagNumber(1)
TokenUUID ensureTokenUuid() => $_ensure(0);
}
class RegenerateTokenRequest extends $pb.GeneratedMessage {
factory RegenerateTokenRequest({
TokenUUID? tokenUuid,
}) {
final result = create();
if (tokenUuid != null) result.tokenUuid = tokenUuid;
return result;
}
RegenerateTokenRequest._();
factory RegenerateTokenRequest.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory RegenerateTokenRequest.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'RegenerateTokenRequest',
package: const $pb.PackageName(_omitMessageNames ? '' : 'tokens.v1'),
createEmptyInstance: create)
..aOM<TokenUUID>(1, _omitFieldNames ? '' : 'tokenUuid',
subBuilder: TokenUUID.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
RegenerateTokenRequest clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
RegenerateTokenRequest copyWith(
void Function(RegenerateTokenRequest) updates) =>
super.copyWith((message) => updates(message as RegenerateTokenRequest))
as RegenerateTokenRequest;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static RegenerateTokenRequest create() => RegenerateTokenRequest._();
@$core.override
RegenerateTokenRequest createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static RegenerateTokenRequest getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<RegenerateTokenRequest>(create);
static RegenerateTokenRequest? _defaultInstance;
@$pb.TagNumber(1)
TokenUUID get tokenUuid => $_getN(0);
@$pb.TagNumber(1)
set tokenUuid(TokenUUID value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasTokenUuid() => $_has(0);
@$pb.TagNumber(1)
void clearTokenUuid() => $_clearField(1);
@$pb.TagNumber(1)
TokenUUID ensureTokenUuid() => $_ensure(0);
}
class RegenerateTokenResponse extends $pb.GeneratedMessage {
factory RegenerateTokenResponse({
TokenValue? tokenValue,
}) {
final result = create();
if (tokenValue != null) result.tokenValue = tokenValue;
return result;
}
RegenerateTokenResponse._();
factory RegenerateTokenResponse.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory RegenerateTokenResponse.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'RegenerateTokenResponse',
package: const $pb.PackageName(_omitMessageNames ? '' : 'tokens.v1'),
createEmptyInstance: create)
..aOM<TokenValue>(1, _omitFieldNames ? '' : 'tokenValue',
subBuilder: TokenValue.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
RegenerateTokenResponse clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
RegenerateTokenResponse copyWith(
void Function(RegenerateTokenResponse) updates) =>
super.copyWith((message) => updates(message as RegenerateTokenResponse))
as RegenerateTokenResponse;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static RegenerateTokenResponse create() => RegenerateTokenResponse._();
@$core.override
RegenerateTokenResponse createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static RegenerateTokenResponse getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<RegenerateTokenResponse>(create);
static RegenerateTokenResponse? _defaultInstance;
@$pb.TagNumber(1)
TokenValue get tokenValue => $_getN(0);
@$pb.TagNumber(1)
set tokenValue(TokenValue value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasTokenValue() => $_has(0);
@$pb.TagNumber(1)
void clearTokenValue() => $_clearField(1);
@$pb.TagNumber(1)
TokenValue ensureTokenValue() => $_ensure(0);
}
class GetTokenRequest extends $pb.GeneratedMessage {
factory GetTokenRequest({
TokenUUID? tokenUuid,
}) {
final result = create();
if (tokenUuid != null) result.tokenUuid = tokenUuid;
return result;
}
GetTokenRequest._();
factory GetTokenRequest.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory GetTokenRequest.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'GetTokenRequest',
package: const $pb.PackageName(_omitMessageNames ? '' : 'tokens.v1'),
createEmptyInstance: create)
..aOM<TokenUUID>(1, _omitFieldNames ? '' : 'tokenUuid',
subBuilder: TokenUUID.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
GetTokenRequest clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
GetTokenRequest copyWith(void Function(GetTokenRequest) updates) =>
super.copyWith((message) => updates(message as GetTokenRequest))
as GetTokenRequest;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static GetTokenRequest create() => GetTokenRequest._();
@$core.override
GetTokenRequest createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static GetTokenRequest getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<GetTokenRequest>(create);
static GetTokenRequest? _defaultInstance;
@$pb.TagNumber(1)
TokenUUID get tokenUuid => $_getN(0);
@$pb.TagNumber(1)
set tokenUuid(TokenUUID value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasTokenUuid() => $_has(0);
@$pb.TagNumber(1)
void clearTokenUuid() => $_clearField(1);
@$pb.TagNumber(1)
TokenUUID ensureTokenUuid() => $_ensure(0);
}
class GetTokenResponse extends $pb.GeneratedMessage {
factory GetTokenResponse({
TokenUUID? tokenUuid,
TokenMetadata? tokenMetadata,
TokenPermissions? tokenPermissions,
}) {
final result = create();
if (tokenUuid != null) result.tokenUuid = tokenUuid;
if (tokenMetadata != null) result.tokenMetadata = tokenMetadata;
if (tokenPermissions != null) result.tokenPermissions = tokenPermissions;
return result;
}
GetTokenResponse._();
factory GetTokenResponse.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory GetTokenResponse.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'GetTokenResponse',
package: const $pb.PackageName(_omitMessageNames ? '' : 'tokens.v1'),
createEmptyInstance: create)
..aOM<TokenUUID>(1, _omitFieldNames ? '' : 'tokenUuid',
subBuilder: TokenUUID.create)
..aOM<TokenMetadata>(2, _omitFieldNames ? '' : 'tokenMetadata',
subBuilder: TokenMetadata.create)
..aOM<TokenPermissions>(3, _omitFieldNames ? '' : 'tokenPermissions',
subBuilder: TokenPermissions.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
GetTokenResponse clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
GetTokenResponse copyWith(void Function(GetTokenResponse) updates) =>
super.copyWith((message) => updates(message as GetTokenResponse))
as GetTokenResponse;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static GetTokenResponse create() => GetTokenResponse._();
@$core.override
GetTokenResponse createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static GetTokenResponse getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<GetTokenResponse>(create);
static GetTokenResponse? _defaultInstance;
@$pb.TagNumber(1)
TokenUUID get tokenUuid => $_getN(0);
@$pb.TagNumber(1)
set tokenUuid(TokenUUID value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasTokenUuid() => $_has(0);
@$pb.TagNumber(1)
void clearTokenUuid() => $_clearField(1);
@$pb.TagNumber(1)
TokenUUID ensureTokenUuid() => $_ensure(0);
@$pb.TagNumber(2)
TokenMetadata get tokenMetadata => $_getN(1);
@$pb.TagNumber(2)
set tokenMetadata(TokenMetadata value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasTokenMetadata() => $_has(1);
@$pb.TagNumber(2)
void clearTokenMetadata() => $_clearField(2);
@$pb.TagNumber(2)
TokenMetadata ensureTokenMetadata() => $_ensure(1);
@$pb.TagNumber(3)
TokenPermissions get tokenPermissions => $_getN(2);
@$pb.TagNumber(3)
set tokenPermissions(TokenPermissions value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasTokenPermissions() => $_has(2);
@$pb.TagNumber(3)
void clearTokenPermissions() => $_clearField(3);
@$pb.TagNumber(3)
TokenPermissions ensureTokenPermissions() => $_ensure(2);
}
class ListTokensResponse extends $pb.GeneratedMessage {
factory ListTokensResponse({
TokenUUID? tokenUuid,
TokenMetadata? tokenMetadata,
TokenPermissions? tokenPermissions,
}) {
final result = create();
if (tokenUuid != null) result.tokenUuid = tokenUuid;
if (tokenMetadata != null) result.tokenMetadata = tokenMetadata;
if (tokenPermissions != null) result.tokenPermissions = tokenPermissions;
return result;
}
ListTokensResponse._();
factory ListTokensResponse.fromBuffer($core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory ListTokensResponse.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'ListTokensResponse',
package: const $pb.PackageName(_omitMessageNames ? '' : 'tokens.v1'),
createEmptyInstance: create)
..aOM<TokenUUID>(1, _omitFieldNames ? '' : 'tokenUuid',
subBuilder: TokenUUID.create)
..aOM<TokenMetadata>(2, _omitFieldNames ? '' : 'tokenMetadata',
subBuilder: TokenMetadata.create)
..aOM<TokenPermissions>(3, _omitFieldNames ? '' : 'tokenPermissions',
subBuilder: TokenPermissions.create)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ListTokensResponse clone() => deepCopy();
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
ListTokensResponse copyWith(void Function(ListTokensResponse) updates) =>
super.copyWith((message) => updates(message as ListTokensResponse))
as ListTokensResponse;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static ListTokensResponse create() => ListTokensResponse._();
@$core.override
ListTokensResponse createEmptyInstance() => create();
@$core.pragma('dart2js:noInline')
static ListTokensResponse getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<ListTokensResponse>(create);
static ListTokensResponse? _defaultInstance;
@$pb.TagNumber(1)
TokenUUID get tokenUuid => $_getN(0);
@$pb.TagNumber(1)
set tokenUuid(TokenUUID value) => $_setField(1, value);
@$pb.TagNumber(1)
$core.bool hasTokenUuid() => $_has(0);
@$pb.TagNumber(1)
void clearTokenUuid() => $_clearField(1);
@$pb.TagNumber(1)
TokenUUID ensureTokenUuid() => $_ensure(0);
@$pb.TagNumber(2)
TokenMetadata get tokenMetadata => $_getN(1);
@$pb.TagNumber(2)
set tokenMetadata(TokenMetadata value) => $_setField(2, value);
@$pb.TagNumber(2)
$core.bool hasTokenMetadata() => $_has(1);
@$pb.TagNumber(2)
void clearTokenMetadata() => $_clearField(2);
@$pb.TagNumber(2)
TokenMetadata ensureTokenMetadata() => $_ensure(1);
@$pb.TagNumber(3)
TokenPermissions get tokenPermissions => $_getN(2);
@$pb.TagNumber(3)
set tokenPermissions(TokenPermissions value) => $_setField(3, value);
@$pb.TagNumber(3)
$core.bool hasTokenPermissions() => $_has(2);
@$pb.TagNumber(3)
void clearTokenPermissions() => $_clearField(3);
@$pb.TagNumber(3)
TokenPermissions ensureTokenPermissions() => $_ensure(2);
}
const $core.bool _omitFieldNames =
$core.bool.fromEnvironment('protobuf.omit_field_names');
const $core.bool _omitMessageNames =
$core.bool.fromEnvironment('protobuf.omit_message_names');

View File

@@ -1,6 +1,6 @@
// This is a generated file - do not edit.
//
// Generated from email/v1/email_v1.proto.
// Generated from tokens/v1/tokens_v1.proto.
// @dart = 3.3

View File

@@ -0,0 +1,226 @@
// This is a generated file - do not edit.
//
// Generated from tokens/v1/tokens_v1.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:async' as $async;
import 'dart:core' as $core;
import 'package:grpc/service_api.dart' as $grpc;
import 'package:protobuf/protobuf.dart' as $pb;
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart' as $1;
import 'tokens_v1.pb.dart' as $0;
export 'tokens_v1.pb.dart';
/// Tokens should be used for programmatic access
/// For example CLI or terraform modules
@$pb.GrpcServiceName('tokens.v1.TokensService')
class TokensServiceClient extends $grpc.Client {
/// The hostname for this service.
static const $core.String defaultHost = '';
/// OAuth scopes needed for the client.
static const $core.List<$core.String> oauthScopes = [
'',
];
TokensServiceClient(super.channel, {super.options, super.interceptors});
/// Create a new token
$grpc.ResponseFuture<$0.CreateTokenResponse> createToken(
$0.CreateTokenRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$createToken, request, options: options);
}
/// Update an existing token
$grpc.ResponseFuture<$0.UpdateTokenResponse> updateToken(
$0.UpdateTokenRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$updateToken, request, options: options);
}
/// Expire an existing token
$grpc.ResponseFuture<$1.Empty> forceTokenExpiration(
$0.ForceTokenExpirationRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$forceTokenExpiration, request, options: options);
}
/// Create a new token with the same UUID
$grpc.ResponseFuture<$0.RegenerateTokenResponse> regenerateToken(
$0.RegenerateTokenRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$regenerateToken, request, options: options);
}
/// Get an existing token
$grpc.ResponseFuture<$0.GetTokenResponse> getToken(
$0.GetTokenRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$getToken, request, options: options);
}
/// List all existing tokens
$grpc.ResponseStream<$0.ListTokensResponse> listTokens(
$1.Empty request, {
$grpc.CallOptions? options,
}) {
return $createStreamingCall(
_$listTokens, $async.Stream.fromIterable([request]),
options: options);
}
// method descriptors
static final _$createToken =
$grpc.ClientMethod<$0.CreateTokenRequest, $0.CreateTokenResponse>(
'/tokens.v1.TokensService/CreateToken',
($0.CreateTokenRequest value) => value.writeToBuffer(),
$0.CreateTokenResponse.fromBuffer);
static final _$updateToken =
$grpc.ClientMethod<$0.UpdateTokenRequest, $0.UpdateTokenResponse>(
'/tokens.v1.TokensService/UpdateToken',
($0.UpdateTokenRequest value) => value.writeToBuffer(),
$0.UpdateTokenResponse.fromBuffer);
static final _$forceTokenExpiration =
$grpc.ClientMethod<$0.ForceTokenExpirationRequest, $1.Empty>(
'/tokens.v1.TokensService/ForceTokenExpiration',
($0.ForceTokenExpirationRequest value) => value.writeToBuffer(),
$1.Empty.fromBuffer);
static final _$regenerateToken =
$grpc.ClientMethod<$0.RegenerateTokenRequest, $0.RegenerateTokenResponse>(
'/tokens.v1.TokensService/RegenerateToken',
($0.RegenerateTokenRequest value) => value.writeToBuffer(),
$0.RegenerateTokenResponse.fromBuffer);
static final _$getToken =
$grpc.ClientMethod<$0.GetTokenRequest, $0.GetTokenResponse>(
'/tokens.v1.TokensService/GetToken',
($0.GetTokenRequest value) => value.writeToBuffer(),
$0.GetTokenResponse.fromBuffer);
static final _$listTokens =
$grpc.ClientMethod<$1.Empty, $0.ListTokensResponse>(
'/tokens.v1.TokensService/ListTokens',
($1.Empty value) => value.writeToBuffer(),
$0.ListTokensResponse.fromBuffer);
}
@$pb.GrpcServiceName('tokens.v1.TokensService')
abstract class TokensServiceBase extends $grpc.Service {
$core.String get $name => 'tokens.v1.TokensService';
TokensServiceBase() {
$addMethod(
$grpc.ServiceMethod<$0.CreateTokenRequest, $0.CreateTokenResponse>(
'CreateToken',
createToken_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.CreateTokenRequest.fromBuffer(value),
($0.CreateTokenResponse value) => value.writeToBuffer()));
$addMethod(
$grpc.ServiceMethod<$0.UpdateTokenRequest, $0.UpdateTokenResponse>(
'UpdateToken',
updateToken_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.UpdateTokenRequest.fromBuffer(value),
($0.UpdateTokenResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.ForceTokenExpirationRequest, $1.Empty>(
'ForceTokenExpiration',
forceTokenExpiration_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.ForceTokenExpirationRequest.fromBuffer(value),
($1.Empty value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.RegenerateTokenRequest,
$0.RegenerateTokenResponse>(
'RegenerateToken',
regenerateToken_Pre,
false,
false,
($core.List<$core.int> value) =>
$0.RegenerateTokenRequest.fromBuffer(value),
($0.RegenerateTokenResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.GetTokenRequest, $0.GetTokenResponse>(
'GetToken',
getToken_Pre,
false,
false,
($core.List<$core.int> value) => $0.GetTokenRequest.fromBuffer(value),
($0.GetTokenResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.Empty, $0.ListTokensResponse>(
'ListTokens',
listTokens_Pre,
false,
true,
($core.List<$core.int> value) => $1.Empty.fromBuffer(value),
($0.ListTokensResponse value) => value.writeToBuffer()));
}
$async.Future<$0.CreateTokenResponse> createToken_Pre($grpc.ServiceCall $call,
$async.Future<$0.CreateTokenRequest> $request) async {
return createToken($call, await $request);
}
$async.Future<$0.CreateTokenResponse> createToken(
$grpc.ServiceCall call, $0.CreateTokenRequest request);
$async.Future<$0.UpdateTokenResponse> updateToken_Pre($grpc.ServiceCall $call,
$async.Future<$0.UpdateTokenRequest> $request) async {
return updateToken($call, await $request);
}
$async.Future<$0.UpdateTokenResponse> updateToken(
$grpc.ServiceCall call, $0.UpdateTokenRequest request);
$async.Future<$1.Empty> forceTokenExpiration_Pre($grpc.ServiceCall $call,
$async.Future<$0.ForceTokenExpirationRequest> $request) async {
return forceTokenExpiration($call, await $request);
}
$async.Future<$1.Empty> forceTokenExpiration(
$grpc.ServiceCall call, $0.ForceTokenExpirationRequest request);
$async.Future<$0.RegenerateTokenResponse> regenerateToken_Pre(
$grpc.ServiceCall $call,
$async.Future<$0.RegenerateTokenRequest> $request) async {
return regenerateToken($call, await $request);
}
$async.Future<$0.RegenerateTokenResponse> regenerateToken(
$grpc.ServiceCall call, $0.RegenerateTokenRequest request);
$async.Future<$0.GetTokenResponse> getToken_Pre($grpc.ServiceCall $call,
$async.Future<$0.GetTokenRequest> $request) async {
return getToken($call, await $request);
}
$async.Future<$0.GetTokenResponse> getToken(
$grpc.ServiceCall call, $0.GetTokenRequest request);
$async.Stream<$0.ListTokensResponse> listTokens_Pre(
$grpc.ServiceCall $call, $async.Future<$1.Empty> $request) async* {
yield* listTokens($call, await $request);
}
$async.Stream<$0.ListTokensResponse> listTokens(
$grpc.ServiceCall call, $1.Empty request);
}

View File

@@ -0,0 +1,381 @@
// This is a generated file - do not edit.
//
// Generated from tokens/v1/tokens_v1.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
// ignore_for_file: unused_import
import 'dart:convert' as $convert;
import 'dart:core' as $core;
import 'dart:typed_data' as $typed_data;
@$core.Deprecated('Use tokenMetadataDescriptor instead')
const TokenMetadata$json = {
'1': 'TokenMetadata',
'2': [
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
{
'1': 'expires_at',
'3': 2,
'4': 1,
'5': 11,
'6': '.google.protobuf.Timestamp',
'10': 'expiresAt'
},
],
};
/// Descriptor for `TokenMetadata`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List tokenMetadataDescriptor = $convert.base64Decode(
'Cg1Ub2tlbk1ldGFkYXRhEhIKBG5hbWUYASABKAlSBG5hbWUSOQoKZXhwaXJlc19hdBgCIAEoCz'
'IaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSCWV4cGlyZXNBdA==');
@$core.Deprecated('Use tokenUUIDDescriptor instead')
const TokenUUID$json = {
'1': 'TokenUUID',
'2': [
{'1': 'uuid', '3': 1, '4': 1, '5': 9, '10': 'uuid'},
],
};
/// Descriptor for `TokenUUID`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List tokenUUIDDescriptor =
$convert.base64Decode('CglUb2tlblVVSUQSEgoEdXVpZBgBIAEoCVIEdXVpZA==');
@$core.Deprecated('Use tokenValueDescriptor instead')
const TokenValue$json = {
'1': 'TokenValue',
'2': [
{'1': 'token', '3': 1, '4': 1, '5': 9, '10': 'token'},
],
};
/// Descriptor for `TokenValue`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List tokenValueDescriptor =
$convert.base64Decode('CgpUb2tlblZhbHVlEhQKBXRva2VuGAEgASgJUgV0b2tlbg==');
@$core.Deprecated('Use tokenPermissionsDescriptor instead')
const TokenPermissions$json = {
'1': 'TokenPermissions',
};
/// Descriptor for `TokenPermissions`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List tokenPermissionsDescriptor =
$convert.base64Decode('ChBUb2tlblBlcm1pc3Npb25z');
@$core.Deprecated('Use createTokenRequestDescriptor instead')
const CreateTokenRequest$json = {
'1': 'CreateTokenRequest',
'2': [
{
'1': 'token_metadata',
'3': 1,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenMetadata',
'10': 'tokenMetadata'
},
{
'1': 'token_permissions',
'3': 2,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenPermissions',
'10': 'tokenPermissions'
},
],
};
/// Descriptor for `CreateTokenRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List createTokenRequestDescriptor = $convert.base64Decode(
'ChJDcmVhdGVUb2tlblJlcXVlc3QSPwoOdG9rZW5fbWV0YWRhdGEYASABKAsyGC50b2tlbnMudj'
'EuVG9rZW5NZXRhZGF0YVINdG9rZW5NZXRhZGF0YRJIChF0b2tlbl9wZXJtaXNzaW9ucxgCIAEo'
'CzIbLnRva2Vucy52MS5Ub2tlblBlcm1pc3Npb25zUhB0b2tlblBlcm1pc3Npb25z');
@$core.Deprecated('Use createTokenResponseDescriptor instead')
const CreateTokenResponse$json = {
'1': 'CreateTokenResponse',
'2': [
{
'1': 'token_uuid',
'3': 1,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenUUID',
'10': 'tokenUuid'
},
{
'1': 'token_metadata',
'3': 2,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenMetadata',
'10': 'tokenMetadata'
},
{
'1': 'token_permissions',
'3': 3,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenPermissions',
'10': 'tokenPermissions'
},
{
'1': 'token_value',
'3': 4,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenValue',
'10': 'tokenValue'
},
],
};
/// Descriptor for `CreateTokenResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List createTokenResponseDescriptor = $convert.base64Decode(
'ChNDcmVhdGVUb2tlblJlc3BvbnNlEjMKCnRva2VuX3V1aWQYASABKAsyFC50b2tlbnMudjEuVG'
'9rZW5VVUlEUgl0b2tlblV1aWQSPwoOdG9rZW5fbWV0YWRhdGEYAiABKAsyGC50b2tlbnMudjEu'
'VG9rZW5NZXRhZGF0YVINdG9rZW5NZXRhZGF0YRJIChF0b2tlbl9wZXJtaXNzaW9ucxgDIAEoCz'
'IbLnRva2Vucy52MS5Ub2tlblBlcm1pc3Npb25zUhB0b2tlblBlcm1pc3Npb25zEjYKC3Rva2Vu'
'X3ZhbHVlGAQgASgLMhUudG9rZW5zLnYxLlRva2VuVmFsdWVSCnRva2VuVmFsdWU=');
@$core.Deprecated('Use updateTokenRequestDescriptor instead')
const UpdateTokenRequest$json = {
'1': 'UpdateTokenRequest',
'2': [
{
'1': 'token_uuid',
'3': 1,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenUUID',
'10': 'tokenUuid'
},
{
'1': 'token_metadata',
'3': 2,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenMetadata',
'10': 'tokenMetadata'
},
{
'1': 'token_permissions',
'3': 3,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenPermissions',
'10': 'tokenPermissions'
},
],
};
/// Descriptor for `UpdateTokenRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List updateTokenRequestDescriptor = $convert.base64Decode(
'ChJVcGRhdGVUb2tlblJlcXVlc3QSMwoKdG9rZW5fdXVpZBgBIAEoCzIULnRva2Vucy52MS5Ub2'
'tlblVVSURSCXRva2VuVXVpZBI/Cg50b2tlbl9tZXRhZGF0YRgCIAEoCzIYLnRva2Vucy52MS5U'
'b2tlbk1ldGFkYXRhUg10b2tlbk1ldGFkYXRhEkgKEXRva2VuX3Blcm1pc3Npb25zGAMgASgLMh'
'sudG9rZW5zLnYxLlRva2VuUGVybWlzc2lvbnNSEHRva2VuUGVybWlzc2lvbnM=');
@$core.Deprecated('Use updateTokenResponseDescriptor instead')
const UpdateTokenResponse$json = {
'1': 'UpdateTokenResponse',
'2': [
{
'1': 'token_uuid',
'3': 1,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenUUID',
'10': 'tokenUuid'
},
{
'1': 'token_metadata',
'3': 2,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenMetadata',
'10': 'tokenMetadata'
},
{
'1': 'token_permissions',
'3': 3,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenPermissions',
'10': 'tokenPermissions'
},
],
};
/// Descriptor for `UpdateTokenResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List updateTokenResponseDescriptor = $convert.base64Decode(
'ChNVcGRhdGVUb2tlblJlc3BvbnNlEjMKCnRva2VuX3V1aWQYASABKAsyFC50b2tlbnMudjEuVG'
'9rZW5VVUlEUgl0b2tlblV1aWQSPwoOdG9rZW5fbWV0YWRhdGEYAiABKAsyGC50b2tlbnMudjEu'
'VG9rZW5NZXRhZGF0YVINdG9rZW5NZXRhZGF0YRJIChF0b2tlbl9wZXJtaXNzaW9ucxgDIAEoCz'
'IbLnRva2Vucy52MS5Ub2tlblBlcm1pc3Npb25zUhB0b2tlblBlcm1pc3Npb25z');
@$core.Deprecated('Use forceTokenExpirationRequestDescriptor instead')
const ForceTokenExpirationRequest$json = {
'1': 'ForceTokenExpirationRequest',
'2': [
{
'1': 'token_uuid',
'3': 1,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenUUID',
'10': 'tokenUuid'
},
],
};
/// Descriptor for `ForceTokenExpirationRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List forceTokenExpirationRequestDescriptor =
$convert.base64Decode(
'ChtGb3JjZVRva2VuRXhwaXJhdGlvblJlcXVlc3QSMwoKdG9rZW5fdXVpZBgBIAEoCzIULnRva2'
'Vucy52MS5Ub2tlblVVSURSCXRva2VuVXVpZA==');
@$core.Deprecated('Use regenerateTokenRequestDescriptor instead')
const RegenerateTokenRequest$json = {
'1': 'RegenerateTokenRequest',
'2': [
{
'1': 'token_uuid',
'3': 1,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenUUID',
'10': 'tokenUuid'
},
],
};
/// Descriptor for `RegenerateTokenRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List regenerateTokenRequestDescriptor =
$convert.base64Decode(
'ChZSZWdlbmVyYXRlVG9rZW5SZXF1ZXN0EjMKCnRva2VuX3V1aWQYASABKAsyFC50b2tlbnMudj'
'EuVG9rZW5VVUlEUgl0b2tlblV1aWQ=');
@$core.Deprecated('Use regenerateTokenResponseDescriptor instead')
const RegenerateTokenResponse$json = {
'1': 'RegenerateTokenResponse',
'2': [
{
'1': 'token_value',
'3': 1,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenValue',
'10': 'tokenValue'
},
],
};
/// Descriptor for `RegenerateTokenResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List regenerateTokenResponseDescriptor =
$convert.base64Decode(
'ChdSZWdlbmVyYXRlVG9rZW5SZXNwb25zZRI2Cgt0b2tlbl92YWx1ZRgBIAEoCzIVLnRva2Vucy'
'52MS5Ub2tlblZhbHVlUgp0b2tlblZhbHVl');
@$core.Deprecated('Use getTokenRequestDescriptor instead')
const GetTokenRequest$json = {
'1': 'GetTokenRequest',
'2': [
{
'1': 'token_uuid',
'3': 1,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenUUID',
'10': 'tokenUuid'
},
],
};
/// Descriptor for `GetTokenRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List getTokenRequestDescriptor = $convert.base64Decode(
'Cg9HZXRUb2tlblJlcXVlc3QSMwoKdG9rZW5fdXVpZBgBIAEoCzIULnRva2Vucy52MS5Ub2tlbl'
'VVSURSCXRva2VuVXVpZA==');
@$core.Deprecated('Use getTokenResponseDescriptor instead')
const GetTokenResponse$json = {
'1': 'GetTokenResponse',
'2': [
{
'1': 'token_uuid',
'3': 1,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenUUID',
'10': 'tokenUuid'
},
{
'1': 'token_metadata',
'3': 2,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenMetadata',
'10': 'tokenMetadata'
},
{
'1': 'token_permissions',
'3': 3,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenPermissions',
'10': 'tokenPermissions'
},
],
};
/// Descriptor for `GetTokenResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List getTokenResponseDescriptor = $convert.base64Decode(
'ChBHZXRUb2tlblJlc3BvbnNlEjMKCnRva2VuX3V1aWQYASABKAsyFC50b2tlbnMudjEuVG9rZW'
'5VVUlEUgl0b2tlblV1aWQSPwoOdG9rZW5fbWV0YWRhdGEYAiABKAsyGC50b2tlbnMudjEuVG9r'
'ZW5NZXRhZGF0YVINdG9rZW5NZXRhZGF0YRJIChF0b2tlbl9wZXJtaXNzaW9ucxgDIAEoCzIbLn'
'Rva2Vucy52MS5Ub2tlblBlcm1pc3Npb25zUhB0b2tlblBlcm1pc3Npb25z');
@$core.Deprecated('Use listTokensResponseDescriptor instead')
const ListTokensResponse$json = {
'1': 'ListTokensResponse',
'2': [
{
'1': 'token_uuid',
'3': 1,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenUUID',
'10': 'tokenUuid'
},
{
'1': 'token_metadata',
'3': 2,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenMetadata',
'10': 'tokenMetadata'
},
{
'1': 'token_permissions',
'3': 3,
'4': 1,
'5': 11,
'6': '.tokens.v1.TokenPermissions',
'10': 'tokenPermissions'
},
],
};
/// Descriptor for `ListTokensResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List listTokensResponseDescriptor = $convert.base64Decode(
'ChJMaXN0VG9rZW5zUmVzcG9uc2USMwoKdG9rZW5fdXVpZBgBIAEoCzIULnRva2Vucy52MS5Ub2'
'tlblVVSURSCXRva2VuVXVpZBI/Cg50b2tlbl9tZXRhZGF0YRgCIAEoCzIYLnRva2Vucy52MS5U'
'b2tlbk1ldGFkYXRhUg10b2tlbk1ldGFkYXRhEkgKEXRva2VuX3Blcm1pc3Npb25zGAMgASgLMh'
'sudG9rZW5zLnYxLlRva2VuUGVybWlzc2lvbnNSEHRva2VuUGVybWlzc2lvbnM=');