Skip to content

Commit

Permalink
Run go generate on every module
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Oct 2, 2023
1 parent 9340c1a commit 9123e6b
Show file tree
Hide file tree
Showing 10 changed files with 187 additions and 265 deletions.
174 changes: 76 additions & 98 deletions agentapi/dart/lib/src/agentapi.pb.dart

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions agentapi/dart/lib/src/agentapi.pbenum.dart
Original file line number Diff line number Diff line change
@@ -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

83 changes: 45 additions & 38 deletions agentapi/dart/lib/src/agentapi.pbgrpc.dart
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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';

Expand Down Expand Up @@ -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',
Expand All @@ -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';

Expand All @@ -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);
}
89 changes: 33 additions & 56 deletions agentapi/dart/lib/src/agentapi.pbjson.dart
Original file line number Diff line number Diff line change
@@ -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=');
4 changes: 2 additions & 2 deletions agentapi/go/agentapi.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9123e6b

Please sign in to comment.