Skip to content

Automated Protos Update #403

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

Merged
merged 1 commit into from
Jul 9, 2025
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
182 changes: 182 additions & 0 deletions lib/src/gen/app/v1/app.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8947,6 +8947,100 @@ class ListRobotsRequest extends $pb.GeneratedMessage {
void clearLocationId() => clearField(1);
}

class ListRobotsForLocationsRequest extends $pb.GeneratedMessage {
factory ListRobotsForLocationsRequest({
$core.Iterable<$core.String>? locationIds,
}) {
final $result = create();
if (locationIds != null) {
$result.locationIds.addAll(locationIds);
}
return $result;
}
ListRobotsForLocationsRequest._() : super();
factory ListRobotsForLocationsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory ListRobotsForLocationsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListRobotsForLocationsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
..pPS(1, _omitFieldNames ? '' : 'locationIds')
..hasRequiredFields = false
;

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

$pb.BuilderInfo get info_ => _i;

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

@$pb.TagNumber(1)
$core.List<$core.String> get locationIds => $_getList(0);
}

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

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

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

$pb.BuilderInfo get info_ => _i;

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

@$pb.TagNumber(1)
$core.String get orgId => $_getSZ(0);
@$pb.TagNumber(1)
set orgId($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasOrgId() => $_has(0);
@$pb.TagNumber(1)
void clearOrgId() => clearField(1);
}

class AdditionalFragment extends $pb.GeneratedMessage {
factory AdditionalFragment({
$core.String? fragmentId,
Expand Down Expand Up @@ -9943,6 +10037,94 @@ class ListRobotsResponse extends $pb.GeneratedMessage {
$core.List<Robot> get robots => $_getList(0);
}

class ListRobotsForLocationsResponse extends $pb.GeneratedMessage {
factory ListRobotsForLocationsResponse({
$core.Iterable<Robot>? robots,
}) {
final $result = create();
if (robots != null) {
$result.robots.addAll(robots);
}
return $result;
}
ListRobotsForLocationsResponse._() : super();
factory ListRobotsForLocationsResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory ListRobotsForLocationsResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListRobotsForLocationsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
..pc<Robot>(1, _omitFieldNames ? '' : 'robots', $pb.PbFieldType.PM, subBuilder: Robot.create)
..hasRequiredFields = false
;

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

$pb.BuilderInfo get info_ => _i;

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

@$pb.TagNumber(1)
$core.List<Robot> get robots => $_getList(0);
}

class ListRobotsForOrgResponse extends $pb.GeneratedMessage {
factory ListRobotsForOrgResponse({
$core.Iterable<Robot>? robots,
}) {
final $result = create();
if (robots != null) {
$result.robots.addAll(robots);
}
return $result;
}
ListRobotsForOrgResponse._() : super();
factory ListRobotsForOrgResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory ListRobotsForOrgResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListRobotsForOrgResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create)
..pc<Robot>(1, _omitFieldNames ? '' : 'robots', $pb.PbFieldType.PM, subBuilder: Robot.create)
..hasRequiredFields = false
;

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

$pb.BuilderInfo get info_ => _i;

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

@$pb.TagNumber(1)
$core.List<Robot> get robots => $_getList(0);
}

class NewRobotRequest extends $pb.GeneratedMessage {
factory NewRobotRequest({
$core.String? name,
Expand Down
40 changes: 40 additions & 0 deletions lib/src/gen/app/v1/app.pbgrpc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,14 @@ class AppServiceClient extends $grpc.Client {
'/viam.app.v1.AppService/ListRobots',
($11.ListRobotsRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $11.ListRobotsResponse.fromBuffer(value));
static final _$listRobotsForLocations = $grpc.ClientMethod<$11.ListRobotsForLocationsRequest, $11.ListRobotsForLocationsResponse>(
'/viam.app.v1.AppService/ListRobotsForLocations',
($11.ListRobotsForLocationsRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $11.ListRobotsForLocationsResponse.fromBuffer(value));
static final _$listRobotsForOrg = $grpc.ClientMethod<$11.ListRobotsForOrgRequest, $11.ListRobotsForOrgResponse>(
'/viam.app.v1.AppService/ListRobotsForOrg',
($11.ListRobotsForOrgRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $11.ListRobotsForOrgResponse.fromBuffer(value));
static final _$newRobot = $grpc.ClientMethod<$11.NewRobotRequest, $11.NewRobotResponse>(
'/viam.app.v1.AppService/NewRobot',
($11.NewRobotRequest value) => value.writeToBuffer(),
Expand Down Expand Up @@ -724,6 +732,14 @@ class AppServiceClient extends $grpc.Client {
return $createUnaryCall(_$listRobots, request, options: options);
}

$grpc.ResponseFuture<$11.ListRobotsForLocationsResponse> listRobotsForLocations($11.ListRobotsForLocationsRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$listRobotsForLocations, request, options: options);
}

$grpc.ResponseFuture<$11.ListRobotsForOrgResponse> listRobotsForOrg($11.ListRobotsForOrgRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$listRobotsForOrg, request, options: options);
}

$grpc.ResponseFuture<$11.NewRobotResponse> newRobot($11.NewRobotRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$newRobot, request, options: options);
}
Expand Down Expand Up @@ -1359,6 +1375,20 @@ abstract class AppServiceBase extends $grpc.Service {
false,
($core.List<$core.int> value) => $11.ListRobotsRequest.fromBuffer(value),
($11.ListRobotsResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$11.ListRobotsForLocationsRequest, $11.ListRobotsForLocationsResponse>(
'ListRobotsForLocations',
listRobotsForLocations_Pre,
false,
false,
($core.List<$core.int> value) => $11.ListRobotsForLocationsRequest.fromBuffer(value),
($11.ListRobotsForLocationsResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$11.ListRobotsForOrgRequest, $11.ListRobotsForOrgResponse>(
'ListRobotsForOrg',
listRobotsForOrg_Pre,
false,
false,
($core.List<$core.int> value) => $11.ListRobotsForOrgRequest.fromBuffer(value),
($11.ListRobotsForOrgResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$11.NewRobotRequest, $11.NewRobotResponse>(
'NewRobot',
newRobot_Pre,
Expand Down Expand Up @@ -1909,6 +1939,14 @@ abstract class AppServiceBase extends $grpc.Service {
return listRobots(call, await request);
}

$async.Future<$11.ListRobotsForLocationsResponse> listRobotsForLocations_Pre($grpc.ServiceCall call, $async.Future<$11.ListRobotsForLocationsRequest> request) async {
return listRobotsForLocations(call, await request);
}

$async.Future<$11.ListRobotsForOrgResponse> listRobotsForOrg_Pre($grpc.ServiceCall call, $async.Future<$11.ListRobotsForOrgRequest> request) async {
return listRobotsForOrg(call, await request);
}

$async.Future<$11.NewRobotResponse> newRobot_Pre($grpc.ServiceCall call, $async.Future<$11.NewRobotRequest> request) async {
return newRobot(call, await request);
}
Expand Down Expand Up @@ -2132,6 +2170,8 @@ abstract class AppServiceBase extends $grpc.Service {
$async.Future<$11.CreateRobotPartSecretResponse> createRobotPartSecret($grpc.ServiceCall call, $11.CreateRobotPartSecretRequest request);
$async.Future<$11.DeleteRobotPartSecretResponse> deleteRobotPartSecret($grpc.ServiceCall call, $11.DeleteRobotPartSecretRequest request);
$async.Future<$11.ListRobotsResponse> listRobots($grpc.ServiceCall call, $11.ListRobotsRequest request);
$async.Future<$11.ListRobotsForLocationsResponse> listRobotsForLocations($grpc.ServiceCall call, $11.ListRobotsForLocationsRequest request);
$async.Future<$11.ListRobotsForOrgResponse> listRobotsForOrg($grpc.ServiceCall call, $11.ListRobotsForOrgRequest request);
$async.Future<$11.NewRobotResponse> newRobot($grpc.ServiceCall call, $11.NewRobotRequest request);
$async.Future<$11.UpdateRobotResponse> updateRobot($grpc.ServiceCall call, $11.UpdateRobotRequest request);
$async.Future<$11.DeleteRobotResponse> deleteRobot($grpc.ServiceCall call, $11.DeleteRobotRequest request);
Expand Down
51 changes: 51 additions & 0 deletions lib/src/gen/app/v1/app.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2265,6 +2265,31 @@ const ListRobotsRequest$json = {
final $typed_data.Uint8List listRobotsRequestDescriptor = $convert.base64Decode(
'ChFMaXN0Um9ib3RzUmVxdWVzdBIfCgtsb2NhdGlvbl9pZBgBIAEoCVIKbG9jYXRpb25JZA==');

@$core.Deprecated('Use listRobotsForLocationsRequestDescriptor instead')
const ListRobotsForLocationsRequest$json = {
'1': 'ListRobotsForLocationsRequest',
'2': [
{'1': 'location_ids', '3': 1, '4': 3, '5': 9, '10': 'locationIds'},
],
};

/// Descriptor for `ListRobotsForLocationsRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List listRobotsForLocationsRequestDescriptor = $convert.base64Decode(
'Ch1MaXN0Um9ib3RzRm9yTG9jYXRpb25zUmVxdWVzdBIhCgxsb2NhdGlvbl9pZHMYASADKAlSC2'
'xvY2F0aW9uSWRz');

@$core.Deprecated('Use listRobotsForOrgRequestDescriptor instead')
const ListRobotsForOrgRequest$json = {
'1': 'ListRobotsForOrgRequest',
'2': [
{'1': 'org_id', '3': 1, '4': 1, '5': 9, '10': 'orgId'},
],
};

/// Descriptor for `ListRobotsForOrgRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List listRobotsForOrgRequestDescriptor = $convert.base64Decode(
'ChdMaXN0Um9ib3RzRm9yT3JnUmVxdWVzdBIVCgZvcmdfaWQYASABKAlSBW9yZ0lk');

@$core.Deprecated('Use additionalFragmentDescriptor instead')
const AdditionalFragment$json = {
'1': 'AdditionalFragment',
Expand Down Expand Up @@ -2516,6 +2541,32 @@ final $typed_data.Uint8List listRobotsResponseDescriptor = $convert.base64Decode
'ChJMaXN0Um9ib3RzUmVzcG9uc2USKgoGcm9ib3RzGAEgAygLMhIudmlhbS5hcHAudjEuUm9ib3'
'RSBnJvYm90cw==');

@$core.Deprecated('Use listRobotsForLocationsResponseDescriptor instead')
const ListRobotsForLocationsResponse$json = {
'1': 'ListRobotsForLocationsResponse',
'2': [
{'1': 'robots', '3': 1, '4': 3, '5': 11, '6': '.viam.app.v1.Robot', '10': 'robots'},
],
};

/// Descriptor for `ListRobotsForLocationsResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List listRobotsForLocationsResponseDescriptor = $convert.base64Decode(
'Ch5MaXN0Um9ib3RzRm9yTG9jYXRpb25zUmVzcG9uc2USKgoGcm9ib3RzGAEgAygLMhIudmlhbS'
'5hcHAudjEuUm9ib3RSBnJvYm90cw==');

@$core.Deprecated('Use listRobotsForOrgResponseDescriptor instead')
const ListRobotsForOrgResponse$json = {
'1': 'ListRobotsForOrgResponse',
'2': [
{'1': 'robots', '3': 1, '4': 3, '5': 11, '6': '.viam.app.v1.Robot', '10': 'robots'},
],
};

/// Descriptor for `ListRobotsForOrgResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List listRobotsForOrgResponseDescriptor = $convert.base64Decode(
'ChhMaXN0Um9ib3RzRm9yT3JnUmVzcG9uc2USKgoGcm9ib3RzGAEgAygLMhIudmlhbS5hcHAudj'
'EuUm9ib3RSBnJvYm90cw==');

@$core.Deprecated('Use newRobotRequestDescriptor instead')
const NewRobotRequest$json = {
'1': 'NewRobotRequest',
Expand Down
Loading