From 5a001cb2754e6f634f4f28d456fc77bd8626dbcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Sat, 11 Nov 2023 18:33:56 +0200 Subject: [PATCH] fixup: Re-generate GRPC bindings --- agentapi/dart/lib/src/agentapi.pb.dart | 68 +++++++++++----------- agentapi/dart/lib/src/agentapi.pbjson.dart | 14 ++--- agentapi/go/agentapi.pb.go | 18 +++--- 3 files changed, 50 insertions(+), 50 deletions(-) diff --git a/agentapi/dart/lib/src/agentapi.pb.dart b/agentapi/dart/lib/src/agentapi.pb.dart index 019a3917d..539bac118 100644 --- a/agentapi/dart/lib/src/agentapi.pb.dart +++ b/agentapi/dart/lib/src/agentapi.pb.dart @@ -134,19 +134,19 @@ class SubscriptionInfo extends $pb.GeneratedMessage { 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, + 2 : SubscriptionInfo_SubscriptionType.none, + 3 : SubscriptionInfo_SubscriptionType.user, + 4 : SubscriptionInfo_SubscriptionType.organization, + 5 : 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]) + ..oo(0, [2, 3, 4, 5]) ..aOS(1, _omitFieldNames ? '' : 'productId', protoName: 'productId') - ..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) + ..aOM(2, _omitFieldNames ? '' : 'none', subBuilder: Empty.create) + ..aOM(3, _omitFieldNames ? '' : 'user', subBuilder: Empty.create) + ..aOM(4, _omitFieldNames ? '' : 'organization', subBuilder: Empty.create) + ..aOM(5, _omitFieldNames ? '' : 'microsoftStore', protoName: 'microsoftStore', subBuilder: Empty.create) ..hasRequiredFields = false ; @@ -183,48 +183,48 @@ class SubscriptionInfo extends $pb.GeneratedMessage { @$pb.TagNumber(1) void clearProductId() => clearField(1); - @$pb.TagNumber(3) + @$pb.TagNumber(2) Empty get none => $_getN(1); + @$pb.TagNumber(2) + set none(Empty v) { setField(2, v); } + @$pb.TagNumber(2) + $core.bool hasNone() => $_has(1); + @$pb.TagNumber(2) + void clearNone() => clearField(2); + @$pb.TagNumber(2) + Empty ensureNone() => $_ensure(1); + @$pb.TagNumber(3) - set none(Empty v) { setField(3, v); } + Empty get user => $_getN(2); @$pb.TagNumber(3) - $core.bool hasNone() => $_has(1); + set user(Empty v) { setField(3, v); } @$pb.TagNumber(3) - void clearNone() => clearField(3); + $core.bool hasUser() => $_has(2); @$pb.TagNumber(3) - Empty ensureNone() => $_ensure(1); + void clearUser() => clearField(3); + @$pb.TagNumber(3) + Empty ensureUser() => $_ensure(2); @$pb.TagNumber(4) - Empty get user => $_getN(2); + Empty get organization => $_getN(3); @$pb.TagNumber(4) - set user(Empty v) { setField(4, v); } + set organization(Empty v) { setField(4, v); } @$pb.TagNumber(4) - $core.bool hasUser() => $_has(2); + $core.bool hasOrganization() => $_has(3); @$pb.TagNumber(4) - void clearUser() => clearField(4); + void clearOrganization() => clearField(4); @$pb.TagNumber(4) - Empty ensureUser() => $_ensure(2); + Empty ensureOrganization() => $_ensure(3); @$pb.TagNumber(5) - Empty get organization => $_getN(3); + Empty get microsoftStore => $_getN(4); @$pb.TagNumber(5) - set organization(Empty v) { setField(5, v); } + set microsoftStore(Empty v) { setField(5, v); } @$pb.TagNumber(5) - $core.bool hasOrganization() => $_has(3); + $core.bool hasMicrosoftStore() => $_has(4); @$pb.TagNumber(5) - void clearOrganization() => clearField(5); + void clearMicrosoftStore() => clearField(5); @$pb.TagNumber(5) - Empty ensureOrganization() => $_ensure(3); - - @$pb.TagNumber(6) - Empty get microsoftStore => $_getN(4); - @$pb.TagNumber(6) - set microsoftStore(Empty v) { setField(6, v); } - @$pb.TagNumber(6) - $core.bool hasMicrosoftStore() => $_has(4); - @$pb.TagNumber(6) - void clearMicrosoftStore() => clearField(6); - @$pb.TagNumber(6) Empty ensureMicrosoftStore() => $_ensure(4); } diff --git a/agentapi/dart/lib/src/agentapi.pbjson.dart b/agentapi/dart/lib/src/agentapi.pbjson.dart index ca5f74e0e..8da45fd21 100644 --- a/agentapi/dart/lib/src/agentapi.pbjson.dart +++ b/agentapi/dart/lib/src/agentapi.pbjson.dart @@ -39,10 +39,10 @@ const SubscriptionInfo$json = { '1': 'SubscriptionInfo', '2': [ {'1': 'productId', '3': 1, '4': 1, '5': 9, '10': 'productId'}, - {'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'}, + {'1': 'none', '3': 2, '4': 1, '5': 11, '6': '.agentapi.Empty', '9': 0, '10': 'none'}, + {'1': 'user', '3': 3, '4': 1, '5': 11, '6': '.agentapi.Empty', '9': 0, '10': 'user'}, + {'1': 'organization', '3': 4, '4': 1, '5': 11, '6': '.agentapi.Empty', '9': 0, '10': 'organization'}, + {'1': 'microsoftStore', '3': 5, '4': 1, '5': 11, '6': '.agentapi.Empty', '9': 0, '10': 'microsoftStore'}, ], '8': [ {'1': 'subscriptionType'}, @@ -52,9 +52,9 @@ const SubscriptionInfo$json = { /// Descriptor for `SubscriptionInfo`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List subscriptionInfoDescriptor = $convert.base64Decode( 'ChBTdWJzY3JpcHRpb25JbmZvEhwKCXByb2R1Y3RJZBgBIAEoCVIJcHJvZHVjdElkEiUKBG5vbm' - 'UYAyABKAsyDy5hZ2VudGFwaS5FbXB0eUgAUgRub25lEiUKBHVzZXIYBCABKAsyDy5hZ2VudGFw' - 'aS5FbXB0eUgAUgR1c2VyEjUKDG9yZ2FuaXphdGlvbhgFIAEoCzIPLmFnZW50YXBpLkVtcHR5SA' - 'BSDG9yZ2FuaXphdGlvbhI5Cg5taWNyb3NvZnRTdG9yZRgGIAEoCzIPLmFnZW50YXBpLkVtcHR5' + 'UYAiABKAsyDy5hZ2VudGFwaS5FbXB0eUgAUgRub25lEiUKBHVzZXIYAyABKAsyDy5hZ2VudGFw' + 'aS5FbXB0eUgAUgR1c2VyEjUKDG9yZ2FuaXphdGlvbhgEIAEoCzIPLmFnZW50YXBpLkVtcHR5SA' + 'BSDG9yZ2FuaXphdGlvbhI5Cg5taWNyb3NvZnRTdG9yZRgFIAEoCzIPLmFnZW50YXBpLkVtcHR5' 'SABSDm1pY3Jvc29mdFN0b3JlQhIKEHN1YnNjcmlwdGlvblR5cGU='); @$core.Deprecated('Use distroInfoDescriptor instead') diff --git a/agentapi/go/agentapi.pb.go b/agentapi/go/agentapi.pb.go index 722cc41f4..4934c1e8e 100644 --- a/agentapi/go/agentapi.pb.go +++ b/agentapi/go/agentapi.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc v4.24.3 // source: agentapi.proto @@ -199,19 +199,19 @@ type isSubscriptionInfo_SubscriptionType interface { } type SubscriptionInfo_None struct { - None *Empty `protobuf:"bytes,3,opt,name=none,proto3,oneof"` // There is no active subscription. + None *Empty `protobuf:"bytes,2,opt,name=none,proto3,oneof"` // There is no active subscription. } type SubscriptionInfo_User struct { - User *Empty `protobuf:"bytes,4,opt,name=user,proto3,oneof"` // The subscription is managed by the user with a pro token from the GUI or the registry. + User *Empty `protobuf:"bytes,3,opt,name=user,proto3,oneof"` // The subscription is managed by the user with a pro token from the GUI or the registry. } type SubscriptionInfo_Organization struct { - Organization *Empty `protobuf:"bytes,5,opt,name=organization,proto3,oneof"` // The subscription is managed by the sysadmin with a pro token from the registry. + Organization *Empty `protobuf:"bytes,4,opt,name=organization,proto3,oneof"` // The subscription is managed by the sysadmin with a pro token from the registry. } type SubscriptionInfo_MicrosoftStore struct { - MicrosoftStore *Empty `protobuf:"bytes,6,opt,name=microsoftStore,proto3,oneof"` // The subscription is managed via the Microsoft store. + MicrosoftStore *Empty `protobuf:"bytes,5,opt,name=microsoftStore,proto3,oneof"` // The subscription is managed via the Microsoft store. } func (*SubscriptionInfo_None) isSubscriptionInfo_SubscriptionType() {} @@ -367,16 +367,16 @@ var file_agentapi_proto_rawDesc = []byte{ 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x49, 0x64, 0x12, 0x25, 0x0a, - 0x04, 0x6e, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x67, + 0x04, 0x6e, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x48, 0x00, 0x52, 0x04, - 0x6e, 0x6f, 0x6e, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, + 0x6e, 0x6f, 0x6e, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x48, 0x00, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x0c, 0x6f, - 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x48, 0x00, 0x52, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x53, - 0x74, 0x6f, 0x72, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x67, 0x65, + 0x74, 0x6f, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x48, 0x00, 0x52, 0x0e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x6f, 0x66, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x42, 0x12, 0x0a, 0x10, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70,