Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated Protos Update #310

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 28 additions & 20 deletions lib/src/gen/app/data/v1/data.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1269,28 +1269,28 @@ class ExportTabularDataRequest extends $pb.GeneratedMessage {
class ExportTabularDataResponse extends $pb.GeneratedMessage {
factory ExportTabularDataResponse({
$core.String? partId,
$core.String? componentName,
$core.String? componentType,
$core.String? resourceName,
$core.String? resourceSubtype,
$core.String? methodName,
$44.Timestamp? timeCaptured,
$core.String? organizationId,
$core.String? locationId,
$core.String? robotName,
$core.String? robotId,
$core.String? partName,
$core.Map<$core.String, $45.Any>? methodParameters,
$43.Struct? methodParameters,
$core.Iterable<$core.String>? tags,
$43.Struct? payload,
}) {
final $result = create();
if (partId != null) {
$result.partId = partId;
}
if (componentName != null) {
$result.componentName = componentName;
if (resourceName != null) {
$result.resourceName = resourceName;
}
if (componentType != null) {
$result.componentType = componentType;
if (resourceSubtype != null) {
$result.resourceSubtype = resourceSubtype;
}
if (methodName != null) {
$result.methodName = methodName;
Expand All @@ -1314,7 +1314,7 @@ class ExportTabularDataResponse extends $pb.GeneratedMessage {
$result.partName = partName;
}
if (methodParameters != null) {
$result.methodParameters.addAll(methodParameters);
$result.methodParameters = methodParameters;
}
if (tags != null) {
$result.tags.addAll(tags);
Expand All @@ -1330,16 +1330,16 @@ class ExportTabularDataResponse extends $pb.GeneratedMessage {

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ExportTabularDataResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.data.v1'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'partId')
..aOS(2, _omitFieldNames ? '' : 'componentName')
..aOS(3, _omitFieldNames ? '' : 'componentType')
..aOS(2, _omitFieldNames ? '' : 'resourceName')
..aOS(3, _omitFieldNames ? '' : 'resourceSubtype')
..aOS(4, _omitFieldNames ? '' : 'methodName')
..aOM<$44.Timestamp>(5, _omitFieldNames ? '' : 'timeCaptured', subBuilder: $44.Timestamp.create)
..aOS(6, _omitFieldNames ? '' : 'organizationId')
..aOS(7, _omitFieldNames ? '' : 'locationId')
..aOS(8, _omitFieldNames ? '' : 'robotName')
..aOS(9, _omitFieldNames ? '' : 'robotId')
..aOS(10, _omitFieldNames ? '' : 'partName')
..m<$core.String, $45.Any>(11, _omitFieldNames ? '' : 'methodParameters', entryClassName: 'ExportTabularDataResponse.MethodParametersEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: $45.Any.create, valueDefaultOrMaker: $45.Any.getDefault, packageName: const $pb.PackageName('viam.app.data.v1'))
..aOM<$43.Struct>(11, _omitFieldNames ? '' : 'methodParameters', subBuilder: $43.Struct.create)
..pPS(12, _omitFieldNames ? '' : 'tags')
..aOM<$43.Struct>(13, _omitFieldNames ? '' : 'payload', subBuilder: $43.Struct.create)
..hasRequiredFields = false
Expand Down Expand Up @@ -1376,22 +1376,22 @@ class ExportTabularDataResponse extends $pb.GeneratedMessage {
void clearPartId() => clearField(1);

@$pb.TagNumber(2)
$core.String get componentName => $_getSZ(1);
$core.String get resourceName => $_getSZ(1);
@$pb.TagNumber(2)
set componentName($core.String v) { $_setString(1, v); }
set resourceName($core.String v) { $_setString(1, v); }
@$pb.TagNumber(2)
$core.bool hasComponentName() => $_has(1);
$core.bool hasResourceName() => $_has(1);
@$pb.TagNumber(2)
void clearComponentName() => clearField(2);
void clearResourceName() => clearField(2);

@$pb.TagNumber(3)
$core.String get componentType => $_getSZ(2);
$core.String get resourceSubtype => $_getSZ(2);
@$pb.TagNumber(3)
set componentType($core.String v) { $_setString(2, v); }
set resourceSubtype($core.String v) { $_setString(2, v); }
@$pb.TagNumber(3)
$core.bool hasComponentType() => $_has(2);
$core.bool hasResourceSubtype() => $_has(2);
@$pb.TagNumber(3)
void clearComponentType() => clearField(3);
void clearResourceSubtype() => clearField(3);

@$pb.TagNumber(4)
$core.String get methodName => $_getSZ(3);
Expand Down Expand Up @@ -1459,7 +1459,15 @@ class ExportTabularDataResponse extends $pb.GeneratedMessage {
void clearPartName() => clearField(10);

@$pb.TagNumber(11)
$core.Map<$core.String, $45.Any> get methodParameters => $_getMap(10);
$43.Struct get methodParameters => $_getN(10);
@$pb.TagNumber(11)
set methodParameters($43.Struct v) { setField(11, v); }
@$pb.TagNumber(11)
$core.bool hasMethodParameters() => $_has(10);
@$pb.TagNumber(11)
void clearMethodParameters() => clearField(11);
@$pb.TagNumber(11)
$43.Struct ensureMethodParameters() => $_ensure(10);

@$pb.TagNumber(12)
$core.List<$core.String> get tags => $_getList(11);
Expand Down
39 changes: 13 additions & 26 deletions lib/src/gen/app/data/v1/data.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -329,46 +329,33 @@ const ExportTabularDataResponse$json = {
'1': 'ExportTabularDataResponse',
'2': [
{'1': 'part_id', '3': 1, '4': 1, '5': 9, '10': 'partId'},
{'1': 'component_name', '3': 2, '4': 1, '5': 9, '10': 'componentName'},
{'1': 'component_type', '3': 3, '4': 1, '5': 9, '10': 'componentType'},
{'1': 'resource_name', '3': 2, '4': 1, '5': 9, '10': 'resourceName'},
{'1': 'resource_subtype', '3': 3, '4': 1, '5': 9, '10': 'resourceSubtype'},
{'1': 'method_name', '3': 4, '4': 1, '5': 9, '10': 'methodName'},
{'1': 'time_captured', '3': 5, '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', '10': 'timeCaptured'},
{'1': 'organization_id', '3': 6, '4': 1, '5': 9, '10': 'organizationId'},
{'1': 'location_id', '3': 7, '4': 1, '5': 9, '10': 'locationId'},
{'1': 'robot_name', '3': 8, '4': 1, '5': 9, '10': 'robotName'},
{'1': 'robot_id', '3': 9, '4': 1, '5': 9, '10': 'robotId'},
{'1': 'part_name', '3': 10, '4': 1, '5': 9, '10': 'partName'},
{'1': 'method_parameters', '3': 11, '4': 3, '5': 11, '6': '.viam.app.data.v1.ExportTabularDataResponse.MethodParametersEntry', '10': 'methodParameters'},
{'1': 'method_parameters', '3': 11, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '10': 'methodParameters'},
{'1': 'tags', '3': 12, '4': 3, '5': 9, '10': 'tags'},
{'1': 'payload', '3': 13, '4': 1, '5': 11, '6': '.google.protobuf.Struct', '10': 'payload'},
],
'3': [ExportTabularDataResponse_MethodParametersEntry$json],
};

@$core.Deprecated('Use exportTabularDataResponseDescriptor instead')
const ExportTabularDataResponse_MethodParametersEntry$json = {
'1': 'MethodParametersEntry',
'2': [
{'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'},
{'1': 'value', '3': 2, '4': 1, '5': 11, '6': '.google.protobuf.Any', '10': 'value'},
],
'7': {'7': true},
};

/// Descriptor for `ExportTabularDataResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List exportTabularDataResponseDescriptor = $convert.base64Decode(
'ChlFeHBvcnRUYWJ1bGFyRGF0YVJlc3BvbnNlEhcKB3BhcnRfaWQYASABKAlSBnBhcnRJZBIlCg'
'5jb21wb25lbnRfbmFtZRgCIAEoCVINY29tcG9uZW50TmFtZRIlCg5jb21wb25lbnRfdHlwZRgD'
'IAEoCVINY29tcG9uZW50VHlwZRIfCgttZXRob2RfbmFtZRgEIAEoCVIKbWV0aG9kTmFtZRI/Cg'
'10aW1lX2NhcHR1cmVkGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcFIMdGltZUNh'
'cHR1cmVkEicKD29yZ2FuaXphdGlvbl9pZBgGIAEoCVIOb3JnYW5pemF0aW9uSWQSHwoLbG9jYX'
'Rp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UghwYXJ0Tm'
'FtZRJEChFtZXRob2RfcGFyYW1ldGVycxgLIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RS'
'EG1ldGhvZFBhcmFtZXRlcnMSEgoEdGFncxgMIAMoCVIEdGFncxIxCgdwYXlsb2FkGA0gASgLMh'
'cuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdFIHcGF5bG9hZA==');

@$core.Deprecated('Use getLatestTabularDataRequestDescriptor instead')
const GetLatestTabularDataRequest$json = {
Expand Down
130 changes: 130 additions & 0 deletions lib/src/gen/app/v1/app.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6445,6 +6445,98 @@ class FragmentError extends $pb.GeneratedMessage {
void clearDetail() => clearField(3);
}

class FragmentUsage extends $pb.GeneratedMessage {
factory FragmentUsage({
$core.int? fragmentId,
$fixnum.Int64? organizations,
$fixnum.Int64? machines,
$fixnum.Int64? machinesInCurrentOrg,
}) {
final $result = create();
if (fragmentId != null) {
$result.fragmentId = fragmentId;
}
if (organizations != null) {
$result.organizations = organizations;
}
if (machines != null) {
$result.machines = machines;
}
if (machinesInCurrentOrg != null) {
$result.machinesInCurrentOrg = machinesInCurrentOrg;
}
return $result;
}
FragmentUsage._() : super();
factory FragmentUsage.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory FragmentUsage.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'FragmentUsage', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
..a<$core.int>(1, _omitFieldNames ? '' : 'fragmentId', $pb.PbFieldType.O3)
..aInt64(2, _omitFieldNames ? '' : 'organizations')
..aInt64(3, _omitFieldNames ? '' : 'machines')
..aInt64(4, _omitFieldNames ? '' : 'machinesInCurrentOrg')
..hasRequiredFields = false
;

@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
FragmentUsage clone() => FragmentUsage()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
FragmentUsage copyWith(void Function(FragmentUsage) updates) => super.copyWith((message) => updates(message as FragmentUsage)) as FragmentUsage;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static FragmentUsage create() => FragmentUsage._();
FragmentUsage createEmptyInstance() => create();
static $pb.PbList<FragmentUsage> createRepeated() => $pb.PbList<FragmentUsage>();
@$core.pragma('dart2js:noInline')
static FragmentUsage getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FragmentUsage>(create);
static FragmentUsage? _defaultInstance;

@$pb.TagNumber(1)
$core.int get fragmentId => $_getIZ(0);
@$pb.TagNumber(1)
set fragmentId($core.int v) { $_setSignedInt32(0, v); }
@$pb.TagNumber(1)
$core.bool hasFragmentId() => $_has(0);
@$pb.TagNumber(1)
void clearFragmentId() => clearField(1);

@$pb.TagNumber(2)
$fixnum.Int64 get organizations => $_getI64(1);
@$pb.TagNumber(2)
set organizations($fixnum.Int64 v) { $_setInt64(1, v); }
@$pb.TagNumber(2)
$core.bool hasOrganizations() => $_has(1);
@$pb.TagNumber(2)
void clearOrganizations() => clearField(2);

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

@$pb.TagNumber(4)
$fixnum.Int64 get machinesInCurrentOrg => $_getI64(3);
@$pb.TagNumber(4)
set machinesInCurrentOrg($fixnum.Int64 v) { $_setInt64(3, v); }
@$pb.TagNumber(4)
$core.bool hasMachinesInCurrentOrg() => $_has(3);
@$pb.TagNumber(4)
void clearMachinesInCurrentOrg() => clearField(4);
}

class ResolvedFragment extends $pb.GeneratedMessage {
factory ResolvedFragment({
$core.String? fragmentId,
Expand Down Expand Up @@ -6602,11 +6694,15 @@ class ListFragmentsRequest extends $pb.GeneratedMessage {
class ListFragmentsResponse extends $pb.GeneratedMessage {
factory ListFragmentsResponse({
$core.Iterable<Fragment>? fragments,
$core.Iterable<FragmentUsage>? fragmentUsages,
}) {
final $result = create();
if (fragments != null) {
$result.fragments.addAll(fragments);
}
if (fragmentUsages != null) {
$result.fragmentUsages.addAll(fragmentUsages);
}
return $result;
}
ListFragmentsResponse._() : super();
Expand All @@ -6615,6 +6711,7 @@ class ListFragmentsResponse extends $pb.GeneratedMessage {

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListFragmentsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
..pc<Fragment>(1, _omitFieldNames ? '' : 'fragments', $pb.PbFieldType.PM, subBuilder: Fragment.create)
..pc<FragmentUsage>(2, _omitFieldNames ? '' : 'fragmentUsages', $pb.PbFieldType.PM, subBuilder: FragmentUsage.create)
..hasRequiredFields = false
;

Expand All @@ -6641,16 +6738,23 @@ class ListFragmentsResponse extends $pb.GeneratedMessage {

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

@$pb.TagNumber(2)
$core.List<FragmentUsage> get fragmentUsages => $_getList(1);
}

class GetFragmentRequest extends $pb.GeneratedMessage {
factory GetFragmentRequest({
$core.String? id,
$core.String? currentOrganizationId,
}) {
final $result = create();
if (id != null) {
$result.id = id;
}
if (currentOrganizationId != null) {
$result.currentOrganizationId = currentOrganizationId;
}
return $result;
}
GetFragmentRequest._() : super();
Expand All @@ -6659,6 +6763,7 @@ class GetFragmentRequest extends $pb.GeneratedMessage {

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

Expand Down Expand Up @@ -6691,16 +6796,29 @@ class GetFragmentRequest extends $pb.GeneratedMessage {
$core.bool hasId() => $_has(0);
@$pb.TagNumber(1)
void clearId() => clearField(1);

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

class GetFragmentResponse extends $pb.GeneratedMessage {
factory GetFragmentResponse({
Fragment? fragment,
FragmentUsage? fragmentUsage,
}) {
final $result = create();
if (fragment != null) {
$result.fragment = fragment;
}
if (fragmentUsage != null) {
$result.fragmentUsage = fragmentUsage;
}
return $result;
}
GetFragmentResponse._() : super();
Expand All @@ -6709,6 +6827,7 @@ class GetFragmentResponse extends $pb.GeneratedMessage {

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetFragmentResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
..aOM<Fragment>(1, _omitFieldNames ? '' : 'fragment', subBuilder: Fragment.create)
..aOM<FragmentUsage>(2, _omitFieldNames ? '' : 'fragmentUsage', subBuilder: FragmentUsage.create)
..hasRequiredFields = false
;

Expand Down Expand Up @@ -6743,6 +6862,17 @@ class GetFragmentResponse extends $pb.GeneratedMessage {
void clearFragment() => clearField(1);
@$pb.TagNumber(1)
Fragment ensureFragment() => $_ensure(0);

@$pb.TagNumber(2)
FragmentUsage get fragmentUsage => $_getN(1);
@$pb.TagNumber(2)
set fragmentUsage(FragmentUsage v) { setField(2, v); }
@$pb.TagNumber(2)
$core.bool hasFragmentUsage() => $_has(1);
@$pb.TagNumber(2)
void clearFragmentUsage() => clearField(2);
@$pb.TagNumber(2)
FragmentUsage ensureFragmentUsage() => $_ensure(1);
}

class CreateFragmentRequest extends $pb.GeneratedMessage {
Expand Down
Loading