Skip to content

Commit 070d7bb

Browse files
authored
[WORKFLOW] Updating protos from viamrobotics/api, commit: 33b13b4a3e4762e20c3d9caf6db4efdd1652869b
1 parent 2861f45 commit 070d7bb

File tree

6 files changed

+232
-2
lines changed

6 files changed

+232
-2
lines changed

lib/src/gen/app/v1/app.pb.dart

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14640,6 +14640,120 @@ class CreateKeyFromExistingKeyAuthorizationsResponse extends $pb.GeneratedMessag
1464014640
void clearKey() => clearField(2);
1464114641
}
1464214642

14643+
class GetAppContentRequest extends $pb.GeneratedMessage {
14644+
factory GetAppContentRequest({
14645+
$core.String? publicNamespace,
14646+
$core.String? name,
14647+
}) {
14648+
final $result = create();
14649+
if (publicNamespace != null) {
14650+
$result.publicNamespace = publicNamespace;
14651+
}
14652+
if (name != null) {
14653+
$result.name = name;
14654+
}
14655+
return $result;
14656+
}
14657+
GetAppContentRequest._() : super();
14658+
factory GetAppContentRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
14659+
factory GetAppContentRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
14660+
14661+
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetAppContentRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
14662+
..aOS(1, _omitFieldNames ? '' : 'publicNamespace')
14663+
..aOS(2, _omitFieldNames ? '' : 'name')
14664+
..hasRequiredFields = false
14665+
;
14666+
14667+
@$core.Deprecated(
14668+
'Using this can add significant overhead to your binary. '
14669+
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
14670+
'Will be removed in next major version')
14671+
GetAppContentRequest clone() => GetAppContentRequest()..mergeFromMessage(this);
14672+
@$core.Deprecated(
14673+
'Using this can add significant overhead to your binary. '
14674+
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
14675+
'Will be removed in next major version')
14676+
GetAppContentRequest copyWith(void Function(GetAppContentRequest) updates) => super.copyWith((message) => updates(message as GetAppContentRequest)) as GetAppContentRequest;
14677+
14678+
$pb.BuilderInfo get info_ => _i;
14679+
14680+
@$core.pragma('dart2js:noInline')
14681+
static GetAppContentRequest create() => GetAppContentRequest._();
14682+
GetAppContentRequest createEmptyInstance() => create();
14683+
static $pb.PbList<GetAppContentRequest> createRepeated() => $pb.PbList<GetAppContentRequest>();
14684+
@$core.pragma('dart2js:noInline')
14685+
static GetAppContentRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GetAppContentRequest>(create);
14686+
static GetAppContentRequest? _defaultInstance;
14687+
14688+
@$pb.TagNumber(1)
14689+
$core.String get publicNamespace => $_getSZ(0);
14690+
@$pb.TagNumber(1)
14691+
set publicNamespace($core.String v) { $_setString(0, v); }
14692+
@$pb.TagNumber(1)
14693+
$core.bool hasPublicNamespace() => $_has(0);
14694+
@$pb.TagNumber(1)
14695+
void clearPublicNamespace() => clearField(1);
14696+
14697+
@$pb.TagNumber(2)
14698+
$core.String get name => $_getSZ(1);
14699+
@$pb.TagNumber(2)
14700+
set name($core.String v) { $_setString(1, v); }
14701+
@$pb.TagNumber(2)
14702+
$core.bool hasName() => $_has(1);
14703+
@$pb.TagNumber(2)
14704+
void clearName() => clearField(2);
14705+
}
14706+
14707+
class GetAppContentResponse extends $pb.GeneratedMessage {
14708+
factory GetAppContentResponse({
14709+
$core.String? url,
14710+
}) {
14711+
final $result = create();
14712+
if (url != null) {
14713+
$result.url = url;
14714+
}
14715+
return $result;
14716+
}
14717+
GetAppContentResponse._() : super();
14718+
factory GetAppContentResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
14719+
factory GetAppContentResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
14720+
14721+
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetAppContentResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
14722+
..aOS(1, _omitFieldNames ? '' : 'url')
14723+
..hasRequiredFields = false
14724+
;
14725+
14726+
@$core.Deprecated(
14727+
'Using this can add significant overhead to your binary. '
14728+
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
14729+
'Will be removed in next major version')
14730+
GetAppContentResponse clone() => GetAppContentResponse()..mergeFromMessage(this);
14731+
@$core.Deprecated(
14732+
'Using this can add significant overhead to your binary. '
14733+
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
14734+
'Will be removed in next major version')
14735+
GetAppContentResponse copyWith(void Function(GetAppContentResponse) updates) => super.copyWith((message) => updates(message as GetAppContentResponse)) as GetAppContentResponse;
14736+
14737+
$pb.BuilderInfo get info_ => _i;
14738+
14739+
@$core.pragma('dart2js:noInline')
14740+
static GetAppContentResponse create() => GetAppContentResponse._();
14741+
GetAppContentResponse createEmptyInstance() => create();
14742+
static $pb.PbList<GetAppContentResponse> createRepeated() => $pb.PbList<GetAppContentResponse>();
14743+
@$core.pragma('dart2js:noInline')
14744+
static GetAppContentResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GetAppContentResponse>(create);
14745+
static GetAppContentResponse? _defaultInstance;
14746+
14747+
@$pb.TagNumber(1)
14748+
$core.String get url => $_getSZ(0);
14749+
@$pb.TagNumber(1)
14750+
set url($core.String v) { $_setString(0, v); }
14751+
@$pb.TagNumber(1)
14752+
$core.bool hasUrl() => $_has(0);
14753+
@$pb.TagNumber(1)
14754+
void clearUrl() => clearField(1);
14755+
}
14756+
1464314757
class OrganizationSetLogoRequest extends $pb.GeneratedMessage {
1464414758
factory OrganizationSetLogoRequest({
1464514759
$core.String? orgId,

lib/src/gen/app/v1/app.pbgrpc.dart

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,10 @@ class AppServiceClient extends $grpc.Client {
421421
'/viam.app.v1.AppService/CreateKeyFromExistingKeyAuthorizations',
422422
($10.CreateKeyFromExistingKeyAuthorizationsRequest value) => value.writeToBuffer(),
423423
($core.List<$core.int> value) => $10.CreateKeyFromExistingKeyAuthorizationsResponse.fromBuffer(value));
424+
static final _$getAppContent = $grpc.ClientMethod<$10.GetAppContentRequest, $10.GetAppContentResponse>(
425+
'/viam.app.v1.AppService/GetAppContent',
426+
($10.GetAppContentRequest value) => value.writeToBuffer(),
427+
($core.List<$core.int> value) => $10.GetAppContentResponse.fromBuffer(value));
424428

425429
AppServiceClient($grpc.ClientChannel channel,
426430
{$grpc.CallOptions? options,
@@ -827,6 +831,10 @@ class AppServiceClient extends $grpc.Client {
827831
$grpc.ResponseFuture<$10.CreateKeyFromExistingKeyAuthorizationsResponse> createKeyFromExistingKeyAuthorizations($10.CreateKeyFromExistingKeyAuthorizationsRequest request, {$grpc.CallOptions? options}) {
828832
return $createUnaryCall(_$createKeyFromExistingKeyAuthorizations, request, options: options);
829833
}
834+
835+
$grpc.ResponseFuture<$10.GetAppContentResponse> getAppContent($10.GetAppContentRequest request, {$grpc.CallOptions? options}) {
836+
return $createUnaryCall(_$getAppContent, request, options: options);
837+
}
830838
}
831839

832840
@$pb.GrpcServiceName('viam.app.v1.AppService')
@@ -1534,6 +1542,13 @@ abstract class AppServiceBase extends $grpc.Service {
15341542
false,
15351543
($core.List<$core.int> value) => $10.CreateKeyFromExistingKeyAuthorizationsRequest.fromBuffer(value),
15361544
($10.CreateKeyFromExistingKeyAuthorizationsResponse value) => value.writeToBuffer()));
1545+
$addMethod($grpc.ServiceMethod<$10.GetAppContentRequest, $10.GetAppContentResponse>(
1546+
'GetAppContent',
1547+
getAppContent_Pre,
1548+
false,
1549+
false,
1550+
($core.List<$core.int> value) => $10.GetAppContentRequest.fromBuffer(value),
1551+
($10.GetAppContentResponse value) => value.writeToBuffer()));
15371552
}
15381553

15391554
$async.Future<$10.GetUserIDByEmailResponse> getUserIDByEmail_Pre($grpc.ServiceCall call, $async.Future<$10.GetUserIDByEmailRequest> request) async {
@@ -1932,6 +1947,10 @@ abstract class AppServiceBase extends $grpc.Service {
19321947
return createKeyFromExistingKeyAuthorizations(call, await request);
19331948
}
19341949

1950+
$async.Future<$10.GetAppContentResponse> getAppContent_Pre($grpc.ServiceCall call, $async.Future<$10.GetAppContentRequest> request) async {
1951+
return getAppContent(call, await request);
1952+
}
1953+
19351954
$async.Future<$10.GetUserIDByEmailResponse> getUserIDByEmail($grpc.ServiceCall call, $10.GetUserIDByEmailRequest request);
19361955
$async.Future<$10.CreateOrganizationResponse> createOrganization($grpc.ServiceCall call, $10.CreateOrganizationRequest request);
19371956
$async.Future<$10.ListOrganizationsResponse> listOrganizations($grpc.ServiceCall call, $10.ListOrganizationsRequest request);
@@ -2032,4 +2051,5 @@ abstract class AppServiceBase extends $grpc.Service {
20322051
$async.Future<$10.RenameKeyResponse> renameKey($grpc.ServiceCall call, $10.RenameKeyRequest request);
20332052
$async.Future<$10.RotateKeyResponse> rotateKey($grpc.ServiceCall call, $10.RotateKeyRequest request);
20342053
$async.Future<$10.CreateKeyFromExistingKeyAuthorizationsResponse> createKeyFromExistingKeyAuthorizations($grpc.ServiceCall call, $10.CreateKeyFromExistingKeyAuthorizationsRequest request);
2054+
$async.Future<$10.GetAppContentResponse> getAppContent($grpc.ServiceCall call, $10.GetAppContentRequest request);
20352055
}

lib/src/gen/app/v1/app.pbjson.dart

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3573,6 +3573,32 @@ final $typed_data.Uint8List createKeyFromExistingKeyAuthorizationsResponseDescri
35733573
'Ci5DcmVhdGVLZXlGcm9tRXhpc3RpbmdLZXlBdXRob3JpemF0aW9uc1Jlc3BvbnNlEg4KAmlkGA'
35743574
'EgASgJUgJpZBIQCgNrZXkYAiABKAlSA2tleQ==');
35753575

3576+
@$core.Deprecated('Use getAppContentRequestDescriptor instead')
3577+
const GetAppContentRequest$json = {
3578+
'1': 'GetAppContentRequest',
3579+
'2': [
3580+
{'1': 'public_namespace', '3': 1, '4': 1, '5': 9, '10': 'publicNamespace'},
3581+
{'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'},
3582+
],
3583+
};
3584+
3585+
/// Descriptor for `GetAppContentRequest`. Decode as a `google.protobuf.DescriptorProto`.
3586+
final $typed_data.Uint8List getAppContentRequestDescriptor = $convert.base64Decode(
3587+
'ChRHZXRBcHBDb250ZW50UmVxdWVzdBIpChBwdWJsaWNfbmFtZXNwYWNlGAEgASgJUg9wdWJsaW'
3588+
'NOYW1lc3BhY2USEgoEbmFtZRgCIAEoCVIEbmFtZQ==');
3589+
3590+
@$core.Deprecated('Use getAppContentResponseDescriptor instead')
3591+
const GetAppContentResponse$json = {
3592+
'1': 'GetAppContentResponse',
3593+
'2': [
3594+
{'1': 'url', '3': 1, '4': 1, '5': 9, '10': 'url'},
3595+
],
3596+
};
3597+
3598+
/// Descriptor for `GetAppContentResponse`. Decode as a `google.protobuf.DescriptorProto`.
3599+
final $typed_data.Uint8List getAppContentResponseDescriptor = $convert.base64Decode(
3600+
'ChVHZXRBcHBDb250ZW50UmVzcG9uc2USEAoDdXJsGAEgASgJUgN1cmw=');
3601+
35763602
@$core.Deprecated('Use organizationSetLogoRequestDescriptor instead')
35773603
const OrganizationSetLogoRequest$json = {
35783604
'1': 'OrganizationSetLogoRequest',

lib/src/gen/service/vision/v1/vision.pb.dart

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@ class Detection extends $pb.GeneratedMessage {
326326
$fixnum.Int64? yMax,
327327
$core.double? confidence,
328328
$core.String? className,
329+
$core.double? xMinNormalized,
330+
$core.double? yMinNormalized,
331+
$core.double? xMaxNormalized,
332+
$core.double? yMaxNormalized,
329333
}) {
330334
final $result = create();
331335
if (xMin != null) {
@@ -346,6 +350,18 @@ class Detection extends $pb.GeneratedMessage {
346350
if (className != null) {
347351
$result.className = className;
348352
}
353+
if (xMinNormalized != null) {
354+
$result.xMinNormalized = xMinNormalized;
355+
}
356+
if (yMinNormalized != null) {
357+
$result.yMinNormalized = yMinNormalized;
358+
}
359+
if (xMaxNormalized != null) {
360+
$result.xMaxNormalized = xMaxNormalized;
361+
}
362+
if (yMaxNormalized != null) {
363+
$result.yMaxNormalized = yMaxNormalized;
364+
}
349365
return $result;
350366
}
351367
Detection._() : super();
@@ -359,6 +375,10 @@ class Detection extends $pb.GeneratedMessage {
359375
..aInt64(4, _omitFieldNames ? '' : 'yMax')
360376
..a<$core.double>(5, _omitFieldNames ? '' : 'confidence', $pb.PbFieldType.OD)
361377
..aOS(6, _omitFieldNames ? '' : 'className')
378+
..a<$core.double>(7, _omitFieldNames ? '' : 'xMinNormalized', $pb.PbFieldType.OD)
379+
..a<$core.double>(8, _omitFieldNames ? '' : 'yMinNormalized', $pb.PbFieldType.OD)
380+
..a<$core.double>(9, _omitFieldNames ? '' : 'xMaxNormalized', $pb.PbFieldType.OD)
381+
..a<$core.double>(10, _omitFieldNames ? '' : 'yMaxNormalized', $pb.PbFieldType.OD)
362382
..hasRequiredFields = false
363383
;
364384

@@ -439,6 +459,43 @@ class Detection extends $pb.GeneratedMessage {
439459
$core.bool hasClassName() => $_has(5);
440460
@$pb.TagNumber(6)
441461
void clearClassName() => clearField(6);
462+
463+
/// the four corners of the box, in proportion to the respective image dimension
464+
@$pb.TagNumber(7)
465+
$core.double get xMinNormalized => $_getN(6);
466+
@$pb.TagNumber(7)
467+
set xMinNormalized($core.double v) { $_setDouble(6, v); }
468+
@$pb.TagNumber(7)
469+
$core.bool hasXMinNormalized() => $_has(6);
470+
@$pb.TagNumber(7)
471+
void clearXMinNormalized() => clearField(7);
472+
473+
@$pb.TagNumber(8)
474+
$core.double get yMinNormalized => $_getN(7);
475+
@$pb.TagNumber(8)
476+
set yMinNormalized($core.double v) { $_setDouble(7, v); }
477+
@$pb.TagNumber(8)
478+
$core.bool hasYMinNormalized() => $_has(7);
479+
@$pb.TagNumber(8)
480+
void clearYMinNormalized() => clearField(8);
481+
482+
@$pb.TagNumber(9)
483+
$core.double get xMaxNormalized => $_getN(8);
484+
@$pb.TagNumber(9)
485+
set xMaxNormalized($core.double v) { $_setDouble(8, v); }
486+
@$pb.TagNumber(9)
487+
$core.bool hasXMaxNormalized() => $_has(8);
488+
@$pb.TagNumber(9)
489+
void clearXMaxNormalized() => clearField(9);
490+
491+
@$pb.TagNumber(10)
492+
$core.double get yMaxNormalized => $_getN(9);
493+
@$pb.TagNumber(10)
494+
set yMaxNormalized($core.double v) { $_setDouble(9, v); }
495+
@$pb.TagNumber(10)
496+
$core.bool hasYMaxNormalized() => $_has(9);
497+
@$pb.TagNumber(10)
498+
void clearYMaxNormalized() => clearField(10);
442499
}
443500

444501
class GetClassificationsRequest extends $pb.GeneratedMessage {

lib/src/gen/service/vision/v1/vision.pbjson.dart

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,20 @@ const Detection$json = {
8585
{'1': 'y_max', '3': 4, '4': 1, '5': 3, '9': 3, '10': 'yMax', '17': true},
8686
{'1': 'confidence', '3': 5, '4': 1, '5': 1, '10': 'confidence'},
8787
{'1': 'class_name', '3': 6, '4': 1, '5': 9, '10': 'className'},
88+
{'1': 'x_min_normalized', '3': 7, '4': 1, '5': 1, '9': 4, '10': 'xMinNormalized', '17': true},
89+
{'1': 'y_min_normalized', '3': 8, '4': 1, '5': 1, '9': 5, '10': 'yMinNormalized', '17': true},
90+
{'1': 'x_max_normalized', '3': 9, '4': 1, '5': 1, '9': 6, '10': 'xMaxNormalized', '17': true},
91+
{'1': 'y_max_normalized', '3': 10, '4': 1, '5': 1, '9': 7, '10': 'yMaxNormalized', '17': true},
8892
],
8993
'8': [
9094
{'1': '_x_min'},
9195
{'1': '_y_min'},
9296
{'1': '_x_max'},
9397
{'1': '_y_max'},
98+
{'1': '_x_min_normalized'},
99+
{'1': '_y_min_normalized'},
100+
{'1': '_x_max_normalized'},
101+
{'1': '_y_max_normalized'},
94102
],
95103
};
96104

@@ -99,7 +107,12 @@ final $typed_data.Uint8List detectionDescriptor = $convert.base64Decode(
99107
'CglEZXRlY3Rpb24SGAoFeF9taW4YASABKANIAFIEeE1pbogBARIYCgV5X21pbhgCIAEoA0gBUg'
100108
'R5TWluiAEBEhgKBXhfbWF4GAMgASgDSAJSBHhNYXiIAQESGAoFeV9tYXgYBCABKANIA1IEeU1h'
101109
'eIgBARIeCgpjb25maWRlbmNlGAUgASgBUgpjb25maWRlbmNlEh0KCmNsYXNzX25hbWUYBiABKA'
102-
'lSCWNsYXNzTmFtZUIICgZfeF9taW5CCAoGX3lfbWluQggKBl94X21heEIICgZfeV9tYXg=');
110+
'lSCWNsYXNzTmFtZRItChB4X21pbl9ub3JtYWxpemVkGAcgASgBSARSDnhNaW5Ob3JtYWxpemVk'
111+
'iAEBEi0KEHlfbWluX25vcm1hbGl6ZWQYCCABKAFIBVIOeU1pbk5vcm1hbGl6ZWSIAQESLQoQeF'
112+
'9tYXhfbm9ybWFsaXplZBgJIAEoAUgGUg54TWF4Tm9ybWFsaXplZIgBARItChB5X21heF9ub3Jt'
113+
'YWxpemVkGAogASgBSAdSDnlNYXhOb3JtYWxpemVkiAEBQggKBl94X21pbkIICgZfeV9taW5CCA'
114+
'oGX3hfbWF4QggKBl95X21heEITChFfeF9taW5fbm9ybWFsaXplZEITChFfeV9taW5fbm9ybWFs'
115+
'aXplZEITChFfeF9tYXhfbm9ybWFsaXplZEITChFfeV9tYXhfbm9ybWFsaXplZA==');
103116

104117
@$core.Deprecated('Use getClassificationsRequestDescriptor instead')
105118
const GetClassificationsRequest$json = {

lib/src/utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ extension GetReadingsResponseUtils on GetReadingsResponse {
117117

118118
String getVersionMetadata() {
119119
const String sdkVersion = 'v0.2.2';
120-
const String apiTag = 'v0.1.400';
120+
const String apiTag = 'v0.1.402';
121121

122122
return 'flutter;$sdkVersion;$apiTag';
123123
}

0 commit comments

Comments
 (0)