From 9123e6bbb013cc6028fbd9b21124f464fdc296d4 Mon Sep 17 00:00:00 2001 From: EduardGomezEscandell Date: Mon, 2 Oct 2023 13:40:09 +0200 Subject: [PATCH] Run go generate on every module --- agentapi/dart/lib/src/agentapi.pb.dart | 174 ++++++++---------- agentapi/dart/lib/src/agentapi.pbenum.dart | 8 +- agentapi/dart/lib/src/agentapi.pbgrpc.dart | 83 +++++---- agentapi/dart/lib/src/agentapi.pbjson.dart | 89 ++++----- agentapi/go/agentapi.pb.go | 4 +- agentapi/go/agentapi_grpc.pb.go | 52 ++---- .../grpc/logstreamer/test/log_test.pb.go | 4 +- .../grpc/logstreamer/test/log_test.pb.go | 4 +- wslserviceapi/wslserviceapi.pb.go | 2 +- wslserviceapi/wslserviceapi_grpc.pb.go | 32 +--- 10 files changed, 187 insertions(+), 265 deletions(-) diff --git a/agentapi/dart/lib/src/agentapi.pb.dart b/agentapi/dart/lib/src/agentapi.pb.dart index 85f60845c..c39af554d 100644 --- a/agentapi/dart/lib/src/agentapi.pb.dart +++ b/agentapi/dart/lib/src/agentapi.pb.dart @@ -1,28 +1,23 @@ -// +/// // Generated code. Do not modify. // source: agentapi.proto // // @dart = 2.12 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; class Empty extends $pb.GeneratedMessage { - factory Empty() => create(); - Empty._() : super(); - factory Empty.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Empty.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Empty', package: const $pb.PackageName(_omitMessageNames ? '' : 'agentapi'), createEmptyInstance: create) + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Empty', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agentapi'), createEmptyInstance: create) ..hasRequiredFields = false ; + Empty._() : super(); + factory Empty() => create(); + factory Empty.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory Empty.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -32,10 +27,8 @@ class Empty extends $pb.GeneratedMessage { 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - Empty copyWith(void Function(Empty) updates) => super.copyWith((message) => updates(message as Empty)) as Empty; - + Empty copyWith(void Function(Empty) updates) => super.copyWith((message) => updates(message as Empty)) as Empty; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; - @$core.pragma('dart2js:noInline') static Empty create() => Empty._(); Empty createEmptyInstance() => create(); @@ -46,24 +39,23 @@ class Empty extends $pb.GeneratedMessage { } class ProAttachInfo extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ProAttachInfo', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agentapi'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'token') + ..hasRequiredFields = false + ; + + ProAttachInfo._() : super(); factory ProAttachInfo({ $core.String? token, }) { - final $result = create(); + final _result = create(); if (token != null) { - $result.token = token; + _result.token = token; } - return $result; + return _result; } - ProAttachInfo._() : super(); factory ProAttachInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ProAttachInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ProAttachInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'agentapi'), createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'token') - ..hasRequiredFields = false - ; - @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -73,10 +65,8 @@ class ProAttachInfo extends $pb.GeneratedMessage { 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - ProAttachInfo copyWith(void Function(ProAttachInfo) updates) => super.copyWith((message) => updates(message as ProAttachInfo)) as ProAttachInfo; - + ProAttachInfo copyWith(void Function(ProAttachInfo) updates) => super.copyWith((message) => updates(message as ProAttachInfo)) as ProAttachInfo; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; - @$core.pragma('dart2js:noInline') static ProAttachInfo create() => ProAttachInfo._(); ProAttachInfo createEmptyInstance() => create(); @@ -104,6 +94,25 @@ enum SubscriptionInfo_SubscriptionType { } class SubscriptionInfo extends $pb.GeneratedMessage { + static const $core.Map<$core.int, SubscriptionInfo_SubscriptionType> _SubscriptionInfo_SubscriptionTypeByTag = { + 3 : SubscriptionInfo_SubscriptionType.none, + 4 : SubscriptionInfo_SubscriptionType.user, + 5 : SubscriptionInfo_SubscriptionType.organization, + 6 : SubscriptionInfo_SubscriptionType.microsoftStore, + 0 : SubscriptionInfo_SubscriptionType.notSet + }; + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SubscriptionInfo', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agentapi'), createEmptyInstance: create) + ..oo(0, [3, 4, 5, 6]) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'productId', protoName: 'productId') + ..aOB(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'immutable') + ..aOM(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'none', subBuilder: Empty.create) + ..aOM(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'user', subBuilder: Empty.create) + ..aOM(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'organization', subBuilder: Empty.create) + ..aOM(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'microsoftStore', protoName: 'microsoftStore', subBuilder: Empty.create) + ..hasRequiredFields = false + ; + + SubscriptionInfo._() : super(); factory SubscriptionInfo({ $core.String? productId, $core.bool? immutable, @@ -112,49 +121,29 @@ class SubscriptionInfo extends $pb.GeneratedMessage { Empty? organization, Empty? microsoftStore, }) { - final $result = create(); + final _result = create(); if (productId != null) { - $result.productId = productId; + _result.productId = productId; } if (immutable != null) { - $result.immutable = immutable; + _result.immutable = immutable; } if (none != null) { - $result.none = none; + _result.none = none; } if (user != null) { - $result.user = user; + _result.user = user; } if (organization != null) { - $result.organization = organization; + _result.organization = organization; } if (microsoftStore != null) { - $result.microsoftStore = microsoftStore; + _result.microsoftStore = microsoftStore; } - return $result; + return _result; } - SubscriptionInfo._() : super(); factory SubscriptionInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory SubscriptionInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static const $core.Map<$core.int, SubscriptionInfo_SubscriptionType> _SubscriptionInfo_SubscriptionTypeByTag = { - 3 : SubscriptionInfo_SubscriptionType.none, - 4 : SubscriptionInfo_SubscriptionType.user, - 5 : SubscriptionInfo_SubscriptionType.organization, - 6 : SubscriptionInfo_SubscriptionType.microsoftStore, - 0 : SubscriptionInfo_SubscriptionType.notSet - }; - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscriptionInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'agentapi'), createEmptyInstance: create) - ..oo(0, [3, 4, 5, 6]) - ..aOS(1, _omitFieldNames ? '' : 'productId', protoName: 'productId') - ..aOB(2, _omitFieldNames ? '' : 'immutable') - ..aOM(3, _omitFieldNames ? '' : 'none', subBuilder: Empty.create) - ..aOM(4, _omitFieldNames ? '' : 'user', subBuilder: Empty.create) - ..aOM(5, _omitFieldNames ? '' : 'organization', subBuilder: Empty.create) - ..aOM(6, _omitFieldNames ? '' : 'microsoftStore', protoName: 'microsoftStore', subBuilder: Empty.create) - ..hasRequiredFields = false - ; - @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -164,10 +153,8 @@ class SubscriptionInfo extends $pb.GeneratedMessage { 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - SubscriptionInfo copyWith(void Function(SubscriptionInfo) updates) => super.copyWith((message) => updates(message as SubscriptionInfo)) as SubscriptionInfo; - + SubscriptionInfo copyWith(void Function(SubscriptionInfo) updates) => super.copyWith((message) => updates(message as SubscriptionInfo)) as SubscriptionInfo; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; - @$core.pragma('dart2js:noInline') static SubscriptionInfo create() => SubscriptionInfo._(); SubscriptionInfo createEmptyInstance() => create(); @@ -243,6 +230,17 @@ class SubscriptionInfo extends $pb.GeneratedMessage { } class DistroInfo extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'DistroInfo', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agentapi'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'wslName') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'id') + ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'versionId') + ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'prettyName') + ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'proAttached') + ..aOS(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'hostname') + ..hasRequiredFields = false + ; + + DistroInfo._() : super(); factory DistroInfo({ $core.String? wslName, $core.String? id, @@ -251,41 +249,29 @@ class DistroInfo extends $pb.GeneratedMessage { $core.bool? proAttached, $core.String? hostname, }) { - final $result = create(); + final _result = create(); if (wslName != null) { - $result.wslName = wslName; + _result.wslName = wslName; } if (id != null) { - $result.id = id; + _result.id = id; } if (versionId != null) { - $result.versionId = versionId; + _result.versionId = versionId; } if (prettyName != null) { - $result.prettyName = prettyName; + _result.prettyName = prettyName; } if (proAttached != null) { - $result.proAttached = proAttached; + _result.proAttached = proAttached; } if (hostname != null) { - $result.hostname = hostname; + _result.hostname = hostname; } - return $result; + return _result; } - DistroInfo._() : super(); factory DistroInfo.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory DistroInfo.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DistroInfo', package: const $pb.PackageName(_omitMessageNames ? '' : 'agentapi'), createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'wslName') - ..aOS(2, _omitFieldNames ? '' : 'id') - ..aOS(3, _omitFieldNames ? '' : 'versionId') - ..aOS(4, _omitFieldNames ? '' : 'prettyName') - ..aOB(5, _omitFieldNames ? '' : 'proAttached') - ..aOS(6, _omitFieldNames ? '' : 'hostname') - ..hasRequiredFields = false - ; - @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -295,10 +281,8 @@ class DistroInfo extends $pb.GeneratedMessage { 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - DistroInfo copyWith(void Function(DistroInfo) updates) => super.copyWith((message) => updates(message as DistroInfo)) as DistroInfo; - + DistroInfo copyWith(void Function(DistroInfo) updates) => super.copyWith((message) => updates(message as DistroInfo)) as DistroInfo; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; - @$core.pragma('dart2js:noInline') static DistroInfo create() => DistroInfo._(); DistroInfo createEmptyInstance() => create(); @@ -363,24 +347,23 @@ class DistroInfo extends $pb.GeneratedMessage { } class Port extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Port', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agentapi'), createEmptyInstance: create) + ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'port', $pb.PbFieldType.OU3) + ..hasRequiredFields = false + ; + + Port._() : super(); factory Port({ $core.int? port, }) { - final $result = create(); + final _result = create(); if (port != null) { - $result.port = port; + _result.port = port; } - return $result; + return _result; } - Port._() : super(); factory Port.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Port.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Port', package: const $pb.PackageName(_omitMessageNames ? '' : 'agentapi'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'port', $pb.PbFieldType.OU3) - ..hasRequiredFields = false - ; - @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -390,10 +373,8 @@ class Port extends $pb.GeneratedMessage { 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - Port copyWith(void Function(Port) updates) => super.copyWith((message) => updates(message as Port)) as Port; - + Port copyWith(void Function(Port) updates) => super.copyWith((message) => updates(message as Port)) as Port; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; - @$core.pragma('dart2js:noInline') static Port create() => Port._(); Port createEmptyInstance() => create(); @@ -412,6 +393,3 @@ class Port extends $pb.GeneratedMessage { void clearPort() => clearField(1); } - -const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); -const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/agentapi/dart/lib/src/agentapi.pbenum.dart b/agentapi/dart/lib/src/agentapi.pbenum.dart index bf1eab30b..cb26cfeda 100644 --- a/agentapi/dart/lib/src/agentapi.pbenum.dart +++ b/agentapi/dart/lib/src/agentapi.pbenum.dart @@ -1,11 +1,7 @@ -// +/// // Generated code. Do not modify. // source: agentapi.proto // // @dart = 2.12 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name diff --git a/agentapi/dart/lib/src/agentapi.pbgrpc.dart b/agentapi/dart/lib/src/agentapi.pbgrpc.dart index fdf88f890..91c1326c9 100644 --- a/agentapi/dart/lib/src/agentapi.pbgrpc.dart +++ b/agentapi/dart/lib/src/agentapi.pbgrpc.dart @@ -1,25 +1,18 @@ -// +/// // Generated code. Do not modify. // source: agentapi.proto // // @dart = 2.12 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import +// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name 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 'agentapi.pb.dart' as $0; - export 'agentapi.pb.dart'; -@$pb.GrpcServiceName('agentapi.UI') class UIClient extends $grpc.Client { static final _$applyProToken = $grpc.ClientMethod<$0.ProAttachInfo, $0.Empty>( '/agentapi.UI/ApplyProToken', @@ -29,39 +22,46 @@ class UIClient extends $grpc.Client { '/agentapi.UI/Ping', ($0.Empty value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.Empty.fromBuffer(value)); - static final _$getSubscriptionInfo = $grpc.ClientMethod<$0.Empty, $0.SubscriptionInfo>( - '/agentapi.UI/GetSubscriptionInfo', - ($0.Empty value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.SubscriptionInfo.fromBuffer(value)); - static final _$notifyPurchase = $grpc.ClientMethod<$0.Empty, $0.SubscriptionInfo>( - '/agentapi.UI/NotifyPurchase', - ($0.Empty value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.SubscriptionInfo.fromBuffer(value)); + static final _$getSubscriptionInfo = + $grpc.ClientMethod<$0.Empty, $0.SubscriptionInfo>( + '/agentapi.UI/GetSubscriptionInfo', + ($0.Empty value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.SubscriptionInfo.fromBuffer(value)); + static final _$notifyPurchase = + $grpc.ClientMethod<$0.Empty, $0.SubscriptionInfo>( + '/agentapi.UI/NotifyPurchase', + ($0.Empty value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.SubscriptionInfo.fromBuffer(value)); UIClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) - : super(channel, options: options, - interceptors: interceptors); + : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$0.Empty> applyProToken($0.ProAttachInfo request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.Empty> applyProToken($0.ProAttachInfo request, + {$grpc.CallOptions? options}) { return $createUnaryCall(_$applyProToken, request, options: options); } - $grpc.ResponseFuture<$0.Empty> ping($0.Empty request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.Empty> ping($0.Empty request, + {$grpc.CallOptions? options}) { return $createUnaryCall(_$ping, request, options: options); } - $grpc.ResponseFuture<$0.SubscriptionInfo> getSubscriptionInfo($0.Empty request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.SubscriptionInfo> getSubscriptionInfo( + $0.Empty request, + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getSubscriptionInfo, request, options: options); } - $grpc.ResponseFuture<$0.SubscriptionInfo> notifyPurchase($0.Empty request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$0.SubscriptionInfo> notifyPurchase($0.Empty request, + {$grpc.CallOptions? options}) { return $createUnaryCall(_$notifyPurchase, request, options: options); } } -@$pb.GrpcServiceName('agentapi.UI') abstract class UIServiceBase extends $grpc.Service { $core.String get $name => 'agentapi.UI'; @@ -96,28 +96,35 @@ abstract class UIServiceBase extends $grpc.Service { ($0.SubscriptionInfo value) => value.writeToBuffer())); } - $async.Future<$0.Empty> applyProToken_Pre($grpc.ServiceCall call, $async.Future<$0.ProAttachInfo> request) async { + $async.Future<$0.Empty> applyProToken_Pre( + $grpc.ServiceCall call, $async.Future<$0.ProAttachInfo> request) async { return applyProToken(call, await request); } - $async.Future<$0.Empty> ping_Pre($grpc.ServiceCall call, $async.Future<$0.Empty> request) async { + $async.Future<$0.Empty> ping_Pre( + $grpc.ServiceCall call, $async.Future<$0.Empty> request) async { return ping(call, await request); } - $async.Future<$0.SubscriptionInfo> getSubscriptionInfo_Pre($grpc.ServiceCall call, $async.Future<$0.Empty> request) async { + $async.Future<$0.SubscriptionInfo> getSubscriptionInfo_Pre( + $grpc.ServiceCall call, $async.Future<$0.Empty> request) async { return getSubscriptionInfo(call, await request); } - $async.Future<$0.SubscriptionInfo> notifyPurchase_Pre($grpc.ServiceCall call, $async.Future<$0.Empty> request) async { + $async.Future<$0.SubscriptionInfo> notifyPurchase_Pre( + $grpc.ServiceCall call, $async.Future<$0.Empty> request) async { return notifyPurchase(call, await request); } - $async.Future<$0.Empty> applyProToken($grpc.ServiceCall call, $0.ProAttachInfo request); + $async.Future<$0.Empty> applyProToken( + $grpc.ServiceCall call, $0.ProAttachInfo request); $async.Future<$0.Empty> ping($grpc.ServiceCall call, $0.Empty request); - $async.Future<$0.SubscriptionInfo> getSubscriptionInfo($grpc.ServiceCall call, $0.Empty request); - $async.Future<$0.SubscriptionInfo> notifyPurchase($grpc.ServiceCall call, $0.Empty request); + $async.Future<$0.SubscriptionInfo> getSubscriptionInfo( + $grpc.ServiceCall call, $0.Empty request); + $async.Future<$0.SubscriptionInfo> notifyPurchase( + $grpc.ServiceCall call, $0.Empty request); } -@$pb.GrpcServiceName('agentapi.WSLInstance') + class WSLInstanceClient extends $grpc.Client { static final _$connected = $grpc.ClientMethod<$0.DistroInfo, $0.Port>( '/agentapi.WSLInstance/Connected', @@ -127,15 +134,14 @@ class WSLInstanceClient extends $grpc.Client { WSLInstanceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) - : super(channel, options: options, - interceptors: interceptors); + : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseStream<$0.Port> connected($async.Stream<$0.DistroInfo> request, {$grpc.CallOptions? options}) { + $grpc.ResponseStream<$0.Port> connected($async.Stream<$0.DistroInfo> request, + {$grpc.CallOptions? options}) { return $createStreamingCall(_$connected, request, options: options); } } -@$pb.GrpcServiceName('agentapi.WSLInstance') abstract class WSLInstanceServiceBase extends $grpc.Service { $core.String get $name => 'agentapi.WSLInstance'; @@ -149,5 +155,6 @@ abstract class WSLInstanceServiceBase extends $grpc.Service { ($0.Port value) => value.writeToBuffer())); } - $async.Stream<$0.Port> connected($grpc.ServiceCall call, $async.Stream<$0.DistroInfo> request); + $async.Stream<$0.Port> connected( + $grpc.ServiceCall call, $async.Stream<$0.DistroInfo> request); } diff --git a/agentapi/dart/lib/src/agentapi.pbjson.dart b/agentapi/dart/lib/src/agentapi.pbjson.dart index 4e3711a00..025d1e9f9 100644 --- a/agentapi/dart/lib/src/agentapi.pbjson.dart +++ b/agentapi/dart/lib/src/agentapi.pbjson.dart @@ -1,93 +1,70 @@ -// +/// // Generated code. Do not modify. // source: agentapi.proto // // @dart = 2.12 +// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,deprecated_member_use_from_same_package,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import - -import 'dart:convert' as $convert; import 'dart:core' as $core; +import 'dart:convert' as $convert; import 'dart:typed_data' as $typed_data; - @$core.Deprecated('Use emptyDescriptor instead') -const Empty$json = { +const Empty$json = const { '1': 'Empty', }; /// Descriptor for `Empty`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List emptyDescriptor = $convert.base64Decode( - 'CgVFbXB0eQ=='); - +final $typed_data.Uint8List emptyDescriptor = $convert.base64Decode('CgVFbXB0eQ=='); @$core.Deprecated('Use proAttachInfoDescriptor instead') -const ProAttachInfo$json = { +const ProAttachInfo$json = const { '1': 'ProAttachInfo', - '2': [ - {'1': 'token', '3': 1, '4': 1, '5': 9, '10': 'token'}, + '2': const [ + const {'1': 'token', '3': 1, '4': 1, '5': 9, '10': 'token'}, ], }; /// Descriptor for `ProAttachInfo`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List proAttachInfoDescriptor = $convert.base64Decode( - 'Cg1Qcm9BdHRhY2hJbmZvEhQKBXRva2VuGAEgASgJUgV0b2tlbg=='); - +final $typed_data.Uint8List proAttachInfoDescriptor = $convert.base64Decode('Cg1Qcm9BdHRhY2hJbmZvEhQKBXRva2VuGAEgASgJUgV0b2tlbg=='); @$core.Deprecated('Use subscriptionInfoDescriptor instead') -const SubscriptionInfo$json = { +const SubscriptionInfo$json = const { '1': 'SubscriptionInfo', - '2': [ - {'1': 'productId', '3': 1, '4': 1, '5': 9, '10': 'productId'}, - {'1': 'immutable', '3': 2, '4': 1, '5': 8, '10': 'immutable'}, - {'1': 'none', '3': 3, '4': 1, '5': 11, '6': '.agentapi.Empty', '9': 0, '10': 'none'}, - {'1': 'user', '3': 4, '4': 1, '5': 11, '6': '.agentapi.Empty', '9': 0, '10': 'user'}, - {'1': 'organization', '3': 5, '4': 1, '5': 11, '6': '.agentapi.Empty', '9': 0, '10': 'organization'}, - {'1': 'microsoftStore', '3': 6, '4': 1, '5': 11, '6': '.agentapi.Empty', '9': 0, '10': 'microsoftStore'}, + '2': const [ + const {'1': 'productId', '3': 1, '4': 1, '5': 9, '10': 'productId'}, + const {'1': 'immutable', '3': 2, '4': 1, '5': 8, '10': 'immutable'}, + const {'1': 'none', '3': 3, '4': 1, '5': 11, '6': '.agentapi.Empty', '9': 0, '10': 'none'}, + const {'1': 'user', '3': 4, '4': 1, '5': 11, '6': '.agentapi.Empty', '9': 0, '10': 'user'}, + const {'1': 'organization', '3': 5, '4': 1, '5': 11, '6': '.agentapi.Empty', '9': 0, '10': 'organization'}, + const {'1': 'microsoftStore', '3': 6, '4': 1, '5': 11, '6': '.agentapi.Empty', '9': 0, '10': 'microsoftStore'}, ], - '8': [ - {'1': 'subscriptionType'}, + '8': const [ + const {'1': 'subscriptionType'}, ], }; /// Descriptor for `SubscriptionInfo`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List subscriptionInfoDescriptor = $convert.base64Decode( - 'ChBTdWJzY3JpcHRpb25JbmZvEhwKCXByb2R1Y3RJZBgBIAEoCVIJcHJvZHVjdElkEhwKCWltbX' - 'V0YWJsZRgCIAEoCFIJaW1tdXRhYmxlEiUKBG5vbmUYAyABKAsyDy5hZ2VudGFwaS5FbXB0eUgA' - 'UgRub25lEiUKBHVzZXIYBCABKAsyDy5hZ2VudGFwaS5FbXB0eUgAUgR1c2VyEjUKDG9yZ2FuaX' - 'phdGlvbhgFIAEoCzIPLmFnZW50YXBpLkVtcHR5SABSDG9yZ2FuaXphdGlvbhI5Cg5taWNyb3Nv' - 'ZnRTdG9yZRgGIAEoCzIPLmFnZW50YXBpLkVtcHR5SABSDm1pY3Jvc29mdFN0b3JlQhIKEHN1Yn' - 'NjcmlwdGlvblR5cGU='); - +final $typed_data.Uint8List subscriptionInfoDescriptor = $convert.base64Decode('ChBTdWJzY3JpcHRpb25JbmZvEhwKCXByb2R1Y3RJZBgBIAEoCVIJcHJvZHVjdElkEhwKCWltbXV0YWJsZRgCIAEoCFIJaW1tdXRhYmxlEiUKBG5vbmUYAyABKAsyDy5hZ2VudGFwaS5FbXB0eUgAUgRub25lEiUKBHVzZXIYBCABKAsyDy5hZ2VudGFwaS5FbXB0eUgAUgR1c2VyEjUKDG9yZ2FuaXphdGlvbhgFIAEoCzIPLmFnZW50YXBpLkVtcHR5SABSDG9yZ2FuaXphdGlvbhI5Cg5taWNyb3NvZnRTdG9yZRgGIAEoCzIPLmFnZW50YXBpLkVtcHR5SABSDm1pY3Jvc29mdFN0b3JlQhIKEHN1YnNjcmlwdGlvblR5cGU='); @$core.Deprecated('Use distroInfoDescriptor instead') -const DistroInfo$json = { +const DistroInfo$json = const { '1': 'DistroInfo', - '2': [ - {'1': 'wsl_name', '3': 1, '4': 1, '5': 9, '10': 'wslName'}, - {'1': 'id', '3': 2, '4': 1, '5': 9, '10': 'id'}, - {'1': 'version_id', '3': 3, '4': 1, '5': 9, '10': 'versionId'}, - {'1': 'pretty_name', '3': 4, '4': 1, '5': 9, '10': 'prettyName'}, - {'1': 'pro_attached', '3': 5, '4': 1, '5': 8, '10': 'proAttached'}, - {'1': 'hostname', '3': 6, '4': 1, '5': 9, '10': 'hostname'}, + '2': const [ + const {'1': 'wsl_name', '3': 1, '4': 1, '5': 9, '10': 'wslName'}, + const {'1': 'id', '3': 2, '4': 1, '5': 9, '10': 'id'}, + const {'1': 'version_id', '3': 3, '4': 1, '5': 9, '10': 'versionId'}, + const {'1': 'pretty_name', '3': 4, '4': 1, '5': 9, '10': 'prettyName'}, + const {'1': 'pro_attached', '3': 5, '4': 1, '5': 8, '10': 'proAttached'}, + const {'1': 'hostname', '3': 6, '4': 1, '5': 9, '10': 'hostname'}, ], }; /// Descriptor for `DistroInfo`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List distroInfoDescriptor = $convert.base64Decode( - 'CgpEaXN0cm9JbmZvEhkKCHdzbF9uYW1lGAEgASgJUgd3c2xOYW1lEg4KAmlkGAIgASgJUgJpZB' - 'IdCgp2ZXJzaW9uX2lkGAMgASgJUgl2ZXJzaW9uSWQSHwoLcHJldHR5X25hbWUYBCABKAlSCnBy' - 'ZXR0eU5hbWUSIQoMcHJvX2F0dGFjaGVkGAUgASgIUgtwcm9BdHRhY2hlZBIaCghob3N0bmFtZR' - 'gGIAEoCVIIaG9zdG5hbWU='); - +final $typed_data.Uint8List distroInfoDescriptor = $convert.base64Decode('CgpEaXN0cm9JbmZvEhkKCHdzbF9uYW1lGAEgASgJUgd3c2xOYW1lEg4KAmlkGAIgASgJUgJpZBIdCgp2ZXJzaW9uX2lkGAMgASgJUgl2ZXJzaW9uSWQSHwoLcHJldHR5X25hbWUYBCABKAlSCnByZXR0eU5hbWUSIQoMcHJvX2F0dGFjaGVkGAUgASgIUgtwcm9BdHRhY2hlZBIaCghob3N0bmFtZRgGIAEoCVIIaG9zdG5hbWU='); @$core.Deprecated('Use portDescriptor instead') -const Port$json = { +const Port$json = const { '1': 'Port', - '2': [ - {'1': 'port', '3': 1, '4': 1, '5': 13, '10': 'port'}, + '2': const [ + const {'1': 'port', '3': 1, '4': 1, '5': 13, '10': 'port'}, ], }; /// Descriptor for `Port`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List portDescriptor = $convert.base64Decode( - 'CgRQb3J0EhIKBHBvcnQYASABKA1SBHBvcnQ='); - +final $typed_data.Uint8List portDescriptor = $convert.base64Decode('CgRQb3J0EhIKBHBvcnQYASABKA1SBHBvcnQ='); diff --git a/agentapi/go/agentapi.pb.go b/agentapi/go/agentapi.pb.go index 60a5bccb5..3c9b9d744 100644 --- a/agentapi/go/agentapi.pb.go +++ b/agentapi/go/agentapi.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v3.12.4 +// protoc-gen-go v1.28.1 +// protoc v3.21.12 // source: agentapi.proto package agentapi diff --git a/agentapi/go/agentapi_grpc.pb.go b/agentapi/go/agentapi_grpc.pb.go index 478ed20a6..50a4fb6f4 100644 --- a/agentapi/go/agentapi_grpc.pb.go +++ b/agentapi/go/agentapi_grpc.pb.go @@ -1,8 +1,4 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v3.12.4 -// source: agentapi.proto package agentapi @@ -15,16 +11,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 -const ( - UI_ApplyProToken_FullMethodName = "/agentapi.UI/ApplyProToken" - UI_Ping_FullMethodName = "/agentapi.UI/Ping" - UI_GetSubscriptionInfo_FullMethodName = "/agentapi.UI/GetSubscriptionInfo" - UI_NotifyPurchase_FullMethodName = "/agentapi.UI/NotifyPurchase" -) - // UIClient is the client API for UI service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -45,7 +33,7 @@ func NewUIClient(cc grpc.ClientConnInterface) UIClient { func (c *uIClient) ApplyProToken(ctx context.Context, in *ProAttachInfo, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) - err := c.cc.Invoke(ctx, UI_ApplyProToken_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/agentapi.UI/ApplyProToken", in, out, opts...) if err != nil { return nil, err } @@ -54,7 +42,7 @@ func (c *uIClient) ApplyProToken(ctx context.Context, in *ProAttachInfo, opts .. func (c *uIClient) Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) - err := c.cc.Invoke(ctx, UI_Ping_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/agentapi.UI/Ping", in, out, opts...) if err != nil { return nil, err } @@ -63,7 +51,7 @@ func (c *uIClient) Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) func (c *uIClient) GetSubscriptionInfo(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SubscriptionInfo, error) { out := new(SubscriptionInfo) - err := c.cc.Invoke(ctx, UI_GetSubscriptionInfo_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/agentapi.UI/GetSubscriptionInfo", in, out, opts...) if err != nil { return nil, err } @@ -72,7 +60,7 @@ func (c *uIClient) GetSubscriptionInfo(ctx context.Context, in *Empty, opts ...g func (c *uIClient) NotifyPurchase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SubscriptionInfo, error) { out := new(SubscriptionInfo) - err := c.cc.Invoke(ctx, UI_NotifyPurchase_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/agentapi.UI/NotifyPurchase", in, out, opts...) if err != nil { return nil, err } @@ -115,8 +103,8 @@ type UnsafeUIServer interface { mustEmbedUnimplementedUIServer() } -func RegisterUIServer(s grpc.ServiceRegistrar, srv UIServer) { - s.RegisterService(&UI_ServiceDesc, srv) +func RegisterUIServer(s *grpc.Server, srv UIServer) { + s.RegisterService(&_UI_serviceDesc, srv) } func _UI_ApplyProToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { @@ -129,7 +117,7 @@ func _UI_ApplyProToken_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UI_ApplyProToken_FullMethodName, + FullMethod: "/agentapi.UI/ApplyProToken", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UIServer).ApplyProToken(ctx, req.(*ProAttachInfo)) @@ -147,7 +135,7 @@ func _UI_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{} } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UI_Ping_FullMethodName, + FullMethod: "/agentapi.UI/Ping", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UIServer).Ping(ctx, req.(*Empty)) @@ -165,7 +153,7 @@ func _UI_GetSubscriptionInfo_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UI_GetSubscriptionInfo_FullMethodName, + FullMethod: "/agentapi.UI/GetSubscriptionInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UIServer).GetSubscriptionInfo(ctx, req.(*Empty)) @@ -183,7 +171,7 @@ func _UI_NotifyPurchase_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: UI_NotifyPurchase_FullMethodName, + FullMethod: "/agentapi.UI/NotifyPurchase", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UIServer).NotifyPurchase(ctx, req.(*Empty)) @@ -191,10 +179,7 @@ func _UI_NotifyPurchase_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } -// UI_ServiceDesc is the grpc.ServiceDesc for UI service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var UI_ServiceDesc = grpc.ServiceDesc{ +var _UI_serviceDesc = grpc.ServiceDesc{ ServiceName: "agentapi.UI", HandlerType: (*UIServer)(nil), Methods: []grpc.MethodDesc{ @@ -219,10 +204,6 @@ var UI_ServiceDesc = grpc.ServiceDesc{ Metadata: "agentapi.proto", } -const ( - WSLInstance_Connected_FullMethodName = "/agentapi.WSLInstance/Connected" -) - // WSLInstanceClient is the client API for WSLInstance service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -239,7 +220,7 @@ func NewWSLInstanceClient(cc grpc.ClientConnInterface) WSLInstanceClient { } func (c *wSLInstanceClient) Connected(ctx context.Context, opts ...grpc.CallOption) (WSLInstance_ConnectedClient, error) { - stream, err := c.cc.NewStream(ctx, &WSLInstance_ServiceDesc.Streams[0], WSLInstance_Connected_FullMethodName, opts...) + stream, err := c.cc.NewStream(ctx, &_WSLInstance_serviceDesc.Streams[0], "/agentapi.WSLInstance/Connected", opts...) if err != nil { return nil, err } @@ -293,8 +274,8 @@ type UnsafeWSLInstanceServer interface { mustEmbedUnimplementedWSLInstanceServer() } -func RegisterWSLInstanceServer(s grpc.ServiceRegistrar, srv WSLInstanceServer) { - s.RegisterService(&WSLInstance_ServiceDesc, srv) +func RegisterWSLInstanceServer(s *grpc.Server, srv WSLInstanceServer) { + s.RegisterService(&_WSLInstance_serviceDesc, srv) } func _WSLInstance_Connected_Handler(srv interface{}, stream grpc.ServerStream) error { @@ -323,10 +304,7 @@ func (x *wSLInstanceConnectedServer) Recv() (*DistroInfo, error) { return m, nil } -// WSLInstance_ServiceDesc is the grpc.ServiceDesc for WSLInstance service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var WSLInstance_ServiceDesc = grpc.ServiceDesc{ +var _WSLInstance_serviceDesc = grpc.ServiceDesc{ ServiceName: "agentapi.WSLInstance", HandlerType: (*WSLInstanceServer)(nil), Methods: []grpc.MethodDesc{}, diff --git a/windows-agent/internal/grpc/logstreamer/test/log_test.pb.go b/windows-agent/internal/grpc/logstreamer/test/log_test.pb.go index 803a53fd7..411401fd4 100644 --- a/windows-agent/internal/grpc/logstreamer/test/log_test.pb.go +++ b/windows-agent/internal/grpc/logstreamer/test/log_test.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v3.12.4 +// protoc-gen-go v1.28.1 +// protoc v3.21.12 // source: log_test.proto package test diff --git a/wsl-pro-service/internal/grpc/logstreamer/test/log_test.pb.go b/wsl-pro-service/internal/grpc/logstreamer/test/log_test.pb.go index 0f6220e92..3cfb0daa9 100644 --- a/wsl-pro-service/internal/grpc/logstreamer/test/log_test.pb.go +++ b/wsl-pro-service/internal/grpc/logstreamer/test/log_test.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.30.0 -// protoc v3.12.4 +// protoc-gen-go v1.28.1 +// protoc v3.21.12 // source: log_test.proto package test diff --git a/wslserviceapi/wslserviceapi.pb.go b/wslserviceapi/wslserviceapi.pb.go index a1bd7401e..c8b8be6e4 100644 --- a/wslserviceapi/wslserviceapi.pb.go +++ b/wslserviceapi/wslserviceapi.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 +// protoc-gen-go v1.28.1 // protoc v3.21.12 // source: wslserviceapi.proto diff --git a/wslserviceapi/wslserviceapi_grpc.pb.go b/wslserviceapi/wslserviceapi_grpc.pb.go index 5f948f7ab..2d0adbc7b 100644 --- a/wslserviceapi/wslserviceapi_grpc.pb.go +++ b/wslserviceapi/wslserviceapi_grpc.pb.go @@ -1,8 +1,4 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v3.21.12 -// source: wslserviceapi.proto package wslserviceapi @@ -15,15 +11,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 -const ( - WSL_ApplyProToken_FullMethodName = "/wslserviceapi.WSL/ApplyProToken" - WSL_Ping_FullMethodName = "/wslserviceapi.WSL/Ping" - WSL_ApplyLandscapeConfig_FullMethodName = "/wslserviceapi.WSL/ApplyLandscapeConfig" -) - // WSLClient is the client API for WSL service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -43,7 +32,7 @@ func NewWSLClient(cc grpc.ClientConnInterface) WSLClient { func (c *wSLClient) ApplyProToken(ctx context.Context, in *ProAttachInfo, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) - err := c.cc.Invoke(ctx, WSL_ApplyProToken_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/wslserviceapi.WSL/ApplyProToken", in, out, opts...) if err != nil { return nil, err } @@ -52,7 +41,7 @@ func (c *wSLClient) ApplyProToken(ctx context.Context, in *ProAttachInfo, opts . func (c *wSLClient) Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) - err := c.cc.Invoke(ctx, WSL_Ping_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/wslserviceapi.WSL/Ping", in, out, opts...) if err != nil { return nil, err } @@ -61,7 +50,7 @@ func (c *wSLClient) Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption func (c *wSLClient) ApplyLandscapeConfig(ctx context.Context, in *LandscapeConfig, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) - err := c.cc.Invoke(ctx, WSL_ApplyLandscapeConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/wslserviceapi.WSL/ApplyLandscapeConfig", in, out, opts...) if err != nil { return nil, err } @@ -100,8 +89,8 @@ type UnsafeWSLServer interface { mustEmbedUnimplementedWSLServer() } -func RegisterWSLServer(s grpc.ServiceRegistrar, srv WSLServer) { - s.RegisterService(&WSL_ServiceDesc, srv) +func RegisterWSLServer(s *grpc.Server, srv WSLServer) { + s.RegisterService(&_WSL_serviceDesc, srv) } func _WSL_ApplyProToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { @@ -114,7 +103,7 @@ func _WSL_ApplyProToken_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: WSL_ApplyProToken_FullMethodName, + FullMethod: "/wslserviceapi.WSL/ApplyProToken", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WSLServer).ApplyProToken(ctx, req.(*ProAttachInfo)) @@ -132,7 +121,7 @@ func _WSL_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{ } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: WSL_Ping_FullMethodName, + FullMethod: "/wslserviceapi.WSL/Ping", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WSLServer).Ping(ctx, req.(*Empty)) @@ -150,7 +139,7 @@ func _WSL_ApplyLandscapeConfig_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: WSL_ApplyLandscapeConfig_FullMethodName, + FullMethod: "/wslserviceapi.WSL/ApplyLandscapeConfig", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(WSLServer).ApplyLandscapeConfig(ctx, req.(*LandscapeConfig)) @@ -158,10 +147,7 @@ func _WSL_ApplyLandscapeConfig_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -// WSL_ServiceDesc is the grpc.ServiceDesc for WSL service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var WSL_ServiceDesc = grpc.ServiceDesc{ +var _WSL_serviceDesc = grpc.ServiceDesc{ ServiceName: "wslserviceapi.WSL", HandlerType: (*WSLServer)(nil), Methods: []grpc.MethodDesc{