Skip to content

Commit

Permalink
[WORKFLOW] Updating protos from viamrobotics/api, commit: 8b9c6d6d1fe…
Browse files Browse the repository at this point in the history
…68d68bf7221db1b793c1e7e6acc95 (#248)

Co-authored-by: viambot <[email protected]>
  • Loading branch information
github-actions[bot] and viambot authored Jul 30, 2024
1 parent a52b09f commit bd4ce83
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 14 deletions.
42 changes: 42 additions & 0 deletions lib/src/gen/app/v1/app.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4646,11 +4646,19 @@ class TailRobotPartLogsResponse extends $pb.GeneratedMessage {
class GetRobotPartHistoryRequest extends $pb.GeneratedMessage {
factory GetRobotPartHistoryRequest({
$core.String? id,
$core.String? pageToken,
$fixnum.Int64? pageLimit,
}) {
final $result = create();
if (id != null) {
$result.id = id;
}
if (pageToken != null) {
$result.pageToken = pageToken;
}
if (pageLimit != null) {
$result.pageLimit = pageLimit;
}
return $result;
}
GetRobotPartHistoryRequest._() : super();
Expand All @@ -4659,6 +4667,8 @@ class GetRobotPartHistoryRequest extends $pb.GeneratedMessage {

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

Expand Down Expand Up @@ -4691,16 +4701,38 @@ class GetRobotPartHistoryRequest extends $pb.GeneratedMessage {
$core.bool hasId() => $_has(0);
@$pb.TagNumber(1)
void clearId() => clearField(1);

@$pb.TagNumber(2)
$core.String get pageToken => $_getSZ(1);
@$pb.TagNumber(2)
set pageToken($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasPageToken() => $_has(1);
@$pb.TagNumber(2)
void clearPageToken() => clearField(2);

@$pb.TagNumber(3)
$fixnum.Int64 get pageLimit => $_getI64(2);
@$pb.TagNumber(3)
set pageLimit($fixnum.Int64 v) { $_setInt64(2, v); }
@$pb.TagNumber(3)
$core.bool hasPageLimit() => $_has(2);
@$pb.TagNumber(3)
void clearPageLimit() => clearField(3);
}

class GetRobotPartHistoryResponse extends $pb.GeneratedMessage {
factory GetRobotPartHistoryResponse({
$core.Iterable<RobotPartHistoryEntry>? history,
$core.String? nextPageToken,
}) {
final $result = create();
if (history != null) {
$result.history.addAll(history);
}
if (nextPageToken != null) {
$result.nextPageToken = nextPageToken;
}
return $result;
}
GetRobotPartHistoryResponse._() : super();
Expand All @@ -4709,6 +4741,7 @@ class GetRobotPartHistoryResponse extends $pb.GeneratedMessage {

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

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

@$pb.TagNumber(1)
$core.List<RobotPartHistoryEntry> get history => $_getList(0);

@$pb.TagNumber(2)
$core.String get nextPageToken => $_getSZ(1);
@$pb.TagNumber(2)
set nextPageToken($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasNextPageToken() => $_has(1);
@$pb.TagNumber(2)
void clearNextPageToken() => clearField(2);
}

class UpdateRobotPartRequest extends $pb.GeneratedMessage {
Expand Down
14 changes: 12 additions & 2 deletions lib/src/gen/app/v1/app.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1182,25 +1182,35 @@ const GetRobotPartHistoryRequest$json = {
'1': 'GetRobotPartHistoryRequest',
'2': [
{'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'},
{'1': 'page_token', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'pageToken', '17': true},
{'1': 'page_limit', '3': 3, '4': 1, '5': 3, '9': 1, '10': 'pageLimit', '17': true},
],
'8': [
{'1': '_page_token'},
{'1': '_page_limit'},
],
};

/// Descriptor for `GetRobotPartHistoryRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List getRobotPartHistoryRequestDescriptor = $convert.base64Decode(
'ChpHZXRSb2JvdFBhcnRIaXN0b3J5UmVxdWVzdBIOCgJpZBgBIAEoCVICaWQ=');
'ChpHZXRSb2JvdFBhcnRIaXN0b3J5UmVxdWVzdBIOCgJpZBgBIAEoCVICaWQSIgoKcGFnZV90b2'
'tlbhgCIAEoCUgAUglwYWdlVG9rZW6IAQESIgoKcGFnZV9saW1pdBgDIAEoA0gBUglwYWdlTGlt'
'aXSIAQFCDQoLX3BhZ2VfdG9rZW5CDQoLX3BhZ2VfbGltaXQ=');

@$core.Deprecated('Use getRobotPartHistoryResponseDescriptor instead')
const GetRobotPartHistoryResponse$json = {
'1': 'GetRobotPartHistoryResponse',
'2': [
{'1': 'history', '3': 1, '4': 3, '5': 11, '6': '.viam.app.v1.RobotPartHistoryEntry', '10': 'history'},
{'1': 'next_page_token', '3': 2, '4': 1, '5': 9, '10': 'nextPageToken'},
],
};

/// Descriptor for `GetRobotPartHistoryResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List getRobotPartHistoryResponseDescriptor = $convert.base64Decode(
'ChtHZXRSb2JvdFBhcnRIaXN0b3J5UmVzcG9uc2USPAoHaGlzdG9yeRgBIAMoCzIiLnZpYW0uYX'
'BwLnYxLlJvYm90UGFydEhpc3RvcnlFbnRyeVIHaGlzdG9yeQ==');
'BwLnYxLlJvYm90UGFydEhpc3RvcnlFbnRyeVIHaGlzdG9yeRImCg9uZXh0X3BhZ2VfdG9rZW4Y'
'AiABKAlSDW5leHRQYWdlVG9rZW4=');

@$core.Deprecated('Use updateRobotPartRequestDescriptor instead')
const UpdateRobotPartRequest$json = {
Expand Down
58 changes: 54 additions & 4 deletions lib/src/gen/google/api/expr/v1alpha1/syntax.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,36 @@ class Expr_CreateStruct extends $pb.GeneratedMessage {
/// messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the
/// macro tests whether the property is set to its default. For map and struct
/// types, the macro tests whether the property `x` is defined on `m`.
///
/// Comprehensions for the standard environment macros evaluation can be best
/// visualized as the following pseudocode:
///
/// ```
/// let `accu_var` = `accu_init`
/// for (let `iter_var` in `iter_range`) {
/// if (!`loop_condition`) {
/// break
/// }
/// `accu_var` = `loop_step`
/// }
/// return `result`
/// ```
///
/// Comprehensions for the optional V2 macros which support map-to-map
/// translation differ slightly from the standard environment macros in that
/// they expose both the key or index in addition to the value for each list
/// or map entry:
///
/// ```
/// let `accu_var` = `accu_init`
/// for (let `iter_var`, `iter_var2` in `iter_range`) {
/// if (!`loop_condition`) {
/// break
/// }
/// `accu_var` = `loop_step`
/// }
/// return `result`
/// ```
class Expr_Comprehension extends $pb.GeneratedMessage {
factory Expr_Comprehension({
$core.String? iterVar,
Expand All @@ -622,6 +652,7 @@ class Expr_Comprehension extends $pb.GeneratedMessage {
Expr? loopCondition,
Expr? loopStep,
Expr? result,
$core.String? iterVar2,
}) {
final $result = create();
if (iterVar != null) {
Expand All @@ -645,6 +676,9 @@ class Expr_Comprehension extends $pb.GeneratedMessage {
if (result != null) {
$result.result = result;
}
if (iterVar2 != null) {
$result.iterVar2 = iterVar2;
}
return $result;
}
Expr_Comprehension._() : super();
Expand All @@ -659,6 +693,7 @@ class Expr_Comprehension extends $pb.GeneratedMessage {
..aOM<Expr>(5, _omitFieldNames ? '' : 'loopCondition', subBuilder: Expr.create)
..aOM<Expr>(6, _omitFieldNames ? '' : 'loopStep', subBuilder: Expr.create)
..aOM<Expr>(7, _omitFieldNames ? '' : 'result', subBuilder: Expr.create)
..aOS(8, _omitFieldNames ? '' : 'iterVar2')
..hasRequiredFields = false
;

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

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

/// The range over which var iterates.
/// The range over which the comprehension iterates.
@$pb.TagNumber(2)
Expr get iterRange => $_getN(1);
@$pb.TagNumber(2)
Expand Down Expand Up @@ -727,7 +764,7 @@ class Expr_Comprehension extends $pb.GeneratedMessage {
@$pb.TagNumber(4)
Expr ensureAccuInit() => $_ensure(3);

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

/// An expression which can contain iter_var and accu_var.
/// An expression which can contain iter_var, iter_var2, and accu_var.
///
/// Computes the next value of accu_var.
@$pb.TagNumber(6)
Expand All @@ -769,6 +806,19 @@ class Expr_Comprehension extends $pb.GeneratedMessage {
void clearResult() => clearField(7);
@$pb.TagNumber(7)
Expr ensureResult() => $_ensure(6);

/// The name of the second iteration variable, empty if not set.
/// When the iter_range is a list, this variable is the integer index.
/// When the iter_range is a map, this variable is the map entry value.
/// This field is only set for comprehension v2 macros.
@$pb.TagNumber(8)
$core.String get iterVar2 => $_getSZ(7);
@$pb.TagNumber(8)
set iterVar2($core.String v) { $_setString(7, v); }
@$pb.TagNumber(8)
$core.bool hasIterVar2() => $_has(7);
@$pb.TagNumber(8)
void clearIterVar2() => clearField(8);
}

enum Expr_ExprKind {
Expand Down
18 changes: 10 additions & 8 deletions lib/src/gen/google/api/expr/v1alpha1/syntax.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ const Expr_Comprehension$json = {
'1': 'Comprehension',
'2': [
{'1': 'iter_var', '3': 1, '4': 1, '5': 9, '10': 'iterVar'},
{'1': 'iter_var2', '3': 8, '4': 1, '5': 9, '10': 'iterVar2'},
{'1': 'iter_range', '3': 2, '4': 1, '5': 11, '6': '.google.api.expr.v1alpha1.Expr', '10': 'iterRange'},
{'1': 'accu_var', '3': 3, '4': 1, '5': 9, '10': 'accuVar'},
{'1': 'accu_init', '3': 4, '4': 1, '5': 11, '6': '.google.api.expr.v1alpha1.Expr', '10': 'accuInit'},
Expand Down Expand Up @@ -148,14 +149,15 @@ final $typed_data.Uint8List exprDescriptor = $convert.base64Decode(
'IAEoA1ICaWQSHQoJZmllbGRfa2V5GAIgASgJSABSCGZpZWxkS2V5EjkKB21hcF9rZXkYAyABKA'
'syHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwckgAUgZtYXBLZXkSNAoFdmFsdWUYBCAB'
'KAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclIFdmFsdWUSJQoOb3B0aW9uYWxfZW'
'50cnkYBSABKAhSDW9wdGlvbmFsRW50cnlCCgoIa2V5X2tpbmQa/QIKDUNvbXByZWhlbnNpb24S'
'GQoIaXRlcl92YXIYASABKAlSB2l0ZXJWYXISPQoKaXRlcl9yYW5nZRgCIAEoCzIeLmdvb2dsZS'
'5hcGkuZXhwci52MWFscGhhMS5FeHByUglpdGVyUmFuZ2USGQoIYWNjdV92YXIYAyABKAlSB2Fj'
'Y3VWYXISOwoJYWNjdV9pbml0GAQgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cH'
'JSCGFjY3VJbml0EkUKDmxvb3BfY29uZGl0aW9uGAUgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYx'
'YWxwaGExLkV4cHJSDWxvb3BDb25kaXRpb24SOwoJbG9vcF9zdGVwGAYgASgLMh4uZ29vZ2xlLm'
'FwaS5leHByLnYxYWxwaGExLkV4cHJSCGxvb3BTdGVwEjYKBnJlc3VsdBgHIAEoCzIeLmdvb2ds'
'ZS5hcGkuZXhwci52MWFscGhhMS5FeHByUgZyZXN1bHRCCwoJZXhwcl9raW5k');
'50cnkYBSABKAhSDW9wdGlvbmFsRW50cnlCCgoIa2V5X2tpbmQamgMKDUNvbXByZWhlbnNpb24S'
'GQoIaXRlcl92YXIYASABKAlSB2l0ZXJWYXISGwoJaXRlcl92YXIyGAggASgJUghpdGVyVmFyMh'
'I9CgppdGVyX3JhbmdlGAIgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHJSCWl0'
'ZXJSYW5nZRIZCghhY2N1X3ZhchgDIAEoCVIHYWNjdVZhchI7CglhY2N1X2luaXQYBCABKAsyHi'
'5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclIIYWNjdUluaXQSRQoObG9vcF9jb25kaXRp'
'b24YBSABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclINbG9vcENvbmRpdGlvbh'
'I7Cglsb29wX3N0ZXAYBiABKAsyHi5nb29nbGUuYXBpLmV4cHIudjFhbHBoYTEuRXhwclIIbG9v'
'cFN0ZXASNgoGcmVzdWx0GAcgASgLMh4uZ29vZ2xlLmFwaS5leHByLnYxYWxwaGExLkV4cHJSBn'
'Jlc3VsdEILCglleHByX2tpbmQ=');

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

0 comments on commit bd4ce83

Please sign in to comment.