Skip to content

Commit bd4ce83

Browse files
[WORKFLOW] Updating protos from viamrobotics/api, commit: 8b9c6d6d1fe68d68bf7221db1b793c1e7e6acc95 (#248)
Co-authored-by: viambot <[email protected]>
1 parent a52b09f commit bd4ce83

File tree

4 files changed

+118
-14
lines changed

4 files changed

+118
-14
lines changed

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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4646,11 +4646,19 @@ class TailRobotPartLogsResponse extends $pb.GeneratedMessage {
46464646
class GetRobotPartHistoryRequest extends $pb.GeneratedMessage {
46474647
factory GetRobotPartHistoryRequest({
46484648
$core.String? id,
4649+
$core.String? pageToken,
4650+
$fixnum.Int64? pageLimit,
46494651
}) {
46504652
final $result = create();
46514653
if (id != null) {
46524654
$result.id = id;
46534655
}
4656+
if (pageToken != null) {
4657+
$result.pageToken = pageToken;
4658+
}
4659+
if (pageLimit != null) {
4660+
$result.pageLimit = pageLimit;
4661+
}
46544662
return $result;
46554663
}
46564664
GetRobotPartHistoryRequest._() : super();
@@ -4659,6 +4667,8 @@ class GetRobotPartHistoryRequest extends $pb.GeneratedMessage {
46594667

46604668
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetRobotPartHistoryRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
46614669
..aOS(1, _omitFieldNames ? '' : 'id')
4670+
..aOS(2, _omitFieldNames ? '' : 'pageToken')
4671+
..aInt64(3, _omitFieldNames ? '' : 'pageLimit')
46624672
..hasRequiredFields = false
46634673
;
46644674

@@ -4691,16 +4701,38 @@ class GetRobotPartHistoryRequest extends $pb.GeneratedMessage {
46914701
$core.bool hasId() => $_has(0);
46924702
@$pb.TagNumber(1)
46934703
void clearId() => clearField(1);
4704+
4705+
@$pb.TagNumber(2)
4706+
$core.String get pageToken => $_getSZ(1);
4707+
@$pb.TagNumber(2)
4708+
set pageToken($core.String v) { $_setString(1, v); }
4709+
@$pb.TagNumber(2)
4710+
$core.bool hasPageToken() => $_has(1);
4711+
@$pb.TagNumber(2)
4712+
void clearPageToken() => clearField(2);
4713+
4714+
@$pb.TagNumber(3)
4715+
$fixnum.Int64 get pageLimit => $_getI64(2);
4716+
@$pb.TagNumber(3)
4717+
set pageLimit($fixnum.Int64 v) { $_setInt64(2, v); }
4718+
@$pb.TagNumber(3)
4719+
$core.bool hasPageLimit() => $_has(2);
4720+
@$pb.TagNumber(3)
4721+
void clearPageLimit() => clearField(3);
46944722
}
46954723

46964724
class GetRobotPartHistoryResponse extends $pb.GeneratedMessage {
46974725
factory GetRobotPartHistoryResponse({
46984726
$core.Iterable<RobotPartHistoryEntry>? history,
4727+
$core.String? nextPageToken,
46994728
}) {
47004729
final $result = create();
47014730
if (history != null) {
47024731
$result.history.addAll(history);
47034732
}
4733+
if (nextPageToken != null) {
4734+
$result.nextPageToken = nextPageToken;
4735+
}
47044736
return $result;
47054737
}
47064738
GetRobotPartHistoryResponse._() : super();
@@ -4709,6 +4741,7 @@ class GetRobotPartHistoryResponse extends $pb.GeneratedMessage {
47094741

47104742
static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetRobotPartHistoryResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
47114743
..pc<RobotPartHistoryEntry>(1, _omitFieldNames ? '' : 'history', $pb.PbFieldType.PM, subBuilder: RobotPartHistoryEntry.create)
4744+
..aOS(2, _omitFieldNames ? '' : 'nextPageToken')
47124745
..hasRequiredFields = false
47134746
;
47144747

@@ -4735,6 +4768,15 @@ class GetRobotPartHistoryResponse extends $pb.GeneratedMessage {
47354768

47364769
@$pb.TagNumber(1)
47374770
$core.List<RobotPartHistoryEntry> get history => $_getList(0);
4771+
4772+
@$pb.TagNumber(2)
4773+
$core.String get nextPageToken => $_getSZ(1);
4774+
@$pb.TagNumber(2)
4775+
set nextPageToken($core.String v) { $_setString(1, v); }
4776+
@$pb.TagNumber(2)
4777+
$core.bool hasNextPageToken() => $_has(1);
4778+
@$pb.TagNumber(2)
4779+
void clearNextPageToken() => clearField(2);
47384780
}
47394781

47404782
class UpdateRobotPartRequest extends $pb.GeneratedMessage {

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,25 +1182,35 @@ const GetRobotPartHistoryRequest$json = {
11821182
'1': 'GetRobotPartHistoryRequest',
11831183
'2': [
11841184
{'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},
1185+
{'1': 'page_token', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'pageToken', '17': true},
1186+
{'1': 'page_limit', '3': 3, '4': 1, '5': 3, '9': 1, '10': 'pageLimit', '17': true},
1187+
],
1188+
'8': [
1189+
{'1': '_page_token'},
1190+
{'1': '_page_limit'},
11851191
],
11861192
};
11871193

11881194
/// Descriptor for `GetRobotPartHistoryRequest`. Decode as a `google.protobuf.DescriptorProto`.
11891195
final $typed_data.Uint8List getRobotPartHistoryRequestDescriptor = $convert.base64Decode(
1190-
'ChpHZXRSb2JvdFBhcnRIaXN0b3J5UmVxdWVzdBIOCgJpZBgBIAEoCVICaWQ=');
1196+
'ChpHZXRSb2JvdFBhcnRIaXN0b3J5UmVxdWVzdBIOCgJpZBgBIAEoCVICaWQSIgoKcGFnZV90b2'
1197+
'tlbhgCIAEoCUgAUglwYWdlVG9rZW6IAQESIgoKcGFnZV9saW1pdBgDIAEoA0gBUglwYWdlTGlt'
1198+
'aXSIAQFCDQoLX3BhZ2VfdG9rZW5CDQoLX3BhZ2VfbGltaXQ=');
11911199

11921200
@$core.Deprecated('Use getRobotPartHistoryResponseDescriptor instead')
11931201
const GetRobotPartHistoryResponse$json = {
11941202
'1': 'GetRobotPartHistoryResponse',
11951203
'2': [
11961204
{'1': 'history', '3': 1, '4': 3, '5': 11, '6': '.viam.app.v1.RobotPartHistoryEntry', '10': 'history'},
1205+
{'1': 'next_page_token', '3': 2, '4': 1, '5': 9, '10': 'nextPageToken'},
11971206
],
11981207
};
11991208

12001209
/// Descriptor for `GetRobotPartHistoryResponse`. Decode as a `google.protobuf.DescriptorProto`.
12011210
final $typed_data.Uint8List getRobotPartHistoryResponseDescriptor = $convert.base64Decode(
12021211
'ChtHZXRSb2JvdFBhcnRIaXN0b3J5UmVzcG9uc2USPAoHaGlzdG9yeRgBIAMoCzIiLnZpYW0uYX'
1203-
'BwLnYxLlJvYm90UGFydEhpc3RvcnlFbnRyeVIHaGlzdG9yeQ==');
1212+
'BwLnYxLlJvYm90UGFydEhpc3RvcnlFbnRyeVIHaGlzdG9yeRImCg9uZXh0X3BhZ2VfdG9rZW4Y'
1213+
'AiABKAlSDW5leHRQYWdlVG9rZW4=');
12041214

12051215
@$core.Deprecated('Use updateRobotPartRequestDescriptor instead')
12061216
const UpdateRobotPartRequest$json = {

lib/src/gen/google/api/expr/v1alpha1/syntax.pb.dart

Lines changed: 54 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,36 @@ class Expr_CreateStruct extends $pb.GeneratedMessage {
613613
/// messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the
614614
/// macro tests whether the property is set to its default. For map and struct
615615
/// types, the macro tests whether the property `x` is defined on `m`.
616+
///
617+
/// Comprehensions for the standard environment macros evaluation can be best
618+
/// visualized as the following pseudocode:
619+
///
620+
/// ```
621+
/// let `accu_var` = `accu_init`
622+
/// for (let `iter_var` in `iter_range`) {
623+
/// if (!`loop_condition`) {
624+
/// break
625+
/// }
626+
/// `accu_var` = `loop_step`
627+
/// }
628+
/// return `result`
629+
/// ```
630+
///
631+
/// Comprehensions for the optional V2 macros which support map-to-map
632+
/// translation differ slightly from the standard environment macros in that
633+
/// they expose both the key or index in addition to the value for each list
634+
/// or map entry:
635+
///
636+
/// ```
637+
/// let `accu_var` = `accu_init`
638+
/// for (let `iter_var`, `iter_var2` in `iter_range`) {
639+
/// if (!`loop_condition`) {
640+
/// break
641+
/// }
642+
/// `accu_var` = `loop_step`
643+
/// }
644+
/// return `result`
645+
/// ```
616646
class Expr_Comprehension extends $pb.GeneratedMessage {
617647
factory Expr_Comprehension({
618648
$core.String? iterVar,
@@ -622,6 +652,7 @@ class Expr_Comprehension extends $pb.GeneratedMessage {
622652
Expr? loopCondition,
623653
Expr? loopStep,
624654
Expr? result,
655+
$core.String? iterVar2,
625656
}) {
626657
final $result = create();
627658
if (iterVar != null) {
@@ -645,6 +676,9 @@ class Expr_Comprehension extends $pb.GeneratedMessage {
645676
if (result != null) {
646677
$result.result = result;
647678
}
679+
if (iterVar2 != null) {
680+
$result.iterVar2 = iterVar2;
681+
}
648682
return $result;
649683
}
650684
Expr_Comprehension._() : super();
@@ -659,6 +693,7 @@ class Expr_Comprehension extends $pb.GeneratedMessage {
659693
..aOM<Expr>(5, _omitFieldNames ? '' : 'loopCondition', subBuilder: Expr.create)
660694
..aOM<Expr>(6, _omitFieldNames ? '' : 'loopStep', subBuilder: Expr.create)
661695
..aOM<Expr>(7, _omitFieldNames ? '' : 'result', subBuilder: Expr.create)
696+
..aOS(8, _omitFieldNames ? '' : 'iterVar2')
662697
..hasRequiredFields = false
663698
;
664699

@@ -683,7 +718,9 @@ class Expr_Comprehension extends $pb.GeneratedMessage {
683718
static Expr_Comprehension getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Expr_Comprehension>(create);
684719
static Expr_Comprehension? _defaultInstance;
685720

686-
/// The name of the iteration variable.
721+
/// The name of the first iteration variable.
722+
/// When the iter_range is a list, this variable is the list element.
723+
/// When the iter_range is a map, this variable is the map entry key.
687724
@$pb.TagNumber(1)
688725
$core.String get iterVar => $_getSZ(0);
689726
@$pb.TagNumber(1)
@@ -693,7 +730,7 @@ class Expr_Comprehension extends $pb.GeneratedMessage {
693730
@$pb.TagNumber(1)
694731
void clearIterVar() => clearField(1);
695732

696-
/// The range over which var iterates.
733+
/// The range over which the comprehension iterates.
697734
@$pb.TagNumber(2)
698735
Expr get iterRange => $_getN(1);
699736
@$pb.TagNumber(2)
@@ -727,7 +764,7 @@ class Expr_Comprehension extends $pb.GeneratedMessage {
727764
@$pb.TagNumber(4)
728765
Expr ensureAccuInit() => $_ensure(3);
729766

730-
/// An expression which can contain iter_var and accu_var.
767+
/// An expression which can contain iter_var, iter_var2, and accu_var.
731768
///
732769
/// Returns false when the result has been computed and may be used as
733770
/// a hint to short-circuit the remainder of the comprehension.
@@ -742,7 +779,7 @@ class Expr_Comprehension extends $pb.GeneratedMessage {
742779
@$pb.TagNumber(5)
743780
Expr ensureLoopCondition() => $_ensure(4);
744781

745-
/// An expression which can contain iter_var and accu_var.
782+
/// An expression which can contain iter_var, iter_var2, and accu_var.
746783
///
747784
/// Computes the next value of accu_var.
748785
@$pb.TagNumber(6)
@@ -769,6 +806,19 @@ class Expr_Comprehension extends $pb.GeneratedMessage {
769806
void clearResult() => clearField(7);
770807
@$pb.TagNumber(7)
771808
Expr ensureResult() => $_ensure(6);
809+
810+
/// The name of the second iteration variable, empty if not set.
811+
/// When the iter_range is a list, this variable is the integer index.
812+
/// When the iter_range is a map, this variable is the map entry value.
813+
/// This field is only set for comprehension v2 macros.
814+
@$pb.TagNumber(8)
815+
$core.String get iterVar2 => $_getSZ(7);
816+
@$pb.TagNumber(8)
817+
set iterVar2($core.String v) { $_setString(7, v); }
818+
@$pb.TagNumber(8)
819+
$core.bool hasIterVar2() => $_has(7);
820+
@$pb.TagNumber(8)
821+
void clearIterVar2() => clearField(8);
772822
}
773823

774824
enum Expr_ExprKind {

lib/src/gen/google/api/expr/v1alpha1/syntax.pbjson.dart

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ const Expr_Comprehension$json = {
114114
'1': 'Comprehension',
115115
'2': [
116116
{'1': 'iter_var', '3': 1, '4': 1, '5': 9, '10': 'iterVar'},
117+
{'1': 'iter_var2', '3': 8, '4': 1, '5': 9, '10': 'iterVar2'},
117118
{'1': 'iter_range', '3': 2, '4': 1, '5': 11, '6': '.google.api.expr.v1alpha1.Expr', '10': 'iterRange'},
118119
{'1': 'accu_var', '3': 3, '4': 1, '5': 9, '10': 'accuVar'},
119120
{'1': 'accu_init', '3': 4, '4': 1, '5': 11, '6': '.google.api.expr.v1alpha1.Expr', '10': 'accuInit'},
@@ -148,14 +149,15 @@ final $typed_data.Uint8List exprDescriptor = $convert.base64Decode(
148149
'IAEoA1ICaWQSHQoJZmllbGRfa2V5GAIgASgJSABSCGZpZWxkS2V5EjkKB21hcF9rZXkYAyABKA'
149150
'syHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwckgAUgZtYXBLZXkSNAoFdmFsdWUYBCAB'
150151
'KAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclIFdmFsdWUSJQoOb3B0aW9uYWxfZW'
151-
'50cnkYBSABKAhSDW9wdGlvbmFsRW50cnlCCgoIa2V5X2tpbmQa/QIKDUNvbXByZWhlbnNpb24S'
152-
'GQoIaXRlcl92YXIYASABKAlSB2l0ZXJWYXISPQoKaXRlcl9yYW5nZRgCIAEoCzIeLmdvb2dsZS'
153-
'5hcGkuZXhwci52MWFscGhhMS5FeHByUglpdGVyUmFuZ2USGQoIYWNjdV92YXIYAyABKAlSB2Fj'
154-
'Y3VWYXISOwoJYWNjdV9pbml0GAQgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cH'
155-
'JSCGFjY3VJbml0EkUKDmxvb3BfY29uZGl0aW9uGAUgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYx'
156-
'YWxwaGExLkV4cHJSDWxvb3BDb25kaXRpb24SOwoJbG9vcF9zdGVwGAYgASgLMh4uZ29vZ2xlLm'
157-
'FwaS5leHByLnYxYWxwaGExLkV4cHJSCGxvb3BTdGVwEjYKBnJlc3VsdBgHIAEoCzIeLmdvb2ds'
158-
'ZS5hcGkuZXhwci52MWFscGhhMS5FeHByUgZyZXN1bHRCCwoJZXhwcl9raW5k');
152+
'50cnkYBSABKAhSDW9wdGlvbmFsRW50cnlCCgoIa2V5X2tpbmQamgMKDUNvbXByZWhlbnNpb24S'
153+
'GQoIaXRlcl92YXIYASABKAlSB2l0ZXJWYXISGwoJaXRlcl92YXIyGAggASgJUghpdGVyVmFyMh'
154+
'I9CgppdGVyX3JhbmdlGAIgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHJSCWl0'
155+
'ZXJSYW5nZRIZCghhY2N1X3ZhchgDIAEoCVIHYWNjdVZhchI7CglhY2N1X2luaXQYBCABKAsyHi'
156+
'5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclIIYWNjdUluaXQSRQoObG9vcF9jb25kaXRp'
157+
'b24YBSABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclINbG9vcENvbmRpdGlvbh'
158+
'I7Cglsb29wX3N0ZXAYBiABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclIIbG9v'
159+
'cFN0ZXASNgoGcmVzdWx0GAcgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHJSBn'
160+
'Jlc3VsdEILCglleHByX2tpbmQ=');
159161

160162
@$core.Deprecated('Use constantDescriptor instead')
161163
const Constant$json = {

0 commit comments

Comments
 (0)