Skip to content

Commit

Permalink
[WORKFLOW] Updating protos from viamrobotics/api, commit: 4f9d14d067b…
Browse files Browse the repository at this point in the history
…9b7965fcb4e89d6185e9dc348c3cd (#221)

Co-authored-by: viambot <[email protected]>
  • Loading branch information
github-actions[bot] and viambot authored Jun 5, 2024
1 parent fa9f206 commit bee27a9
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
64 changes: 64 additions & 0 deletions lib/src/gen/robot/v1/robot.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2406,6 +2406,70 @@ class RestartModuleResponse extends $pb.GeneratedMessage {
static RestartModuleResponse? _defaultInstance;
}

class ShutdownRequest extends $pb.GeneratedMessage {
factory ShutdownRequest() => create();
ShutdownRequest._() : super();
factory ShutdownRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory ShutdownRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ShutdownRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.robot.v1'), createEmptyInstance: 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')
ShutdownRequest clone() => ShutdownRequest()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
ShutdownRequest copyWith(void Function(ShutdownRequest) updates) => super.copyWith((message) => updates(message as ShutdownRequest)) as ShutdownRequest;

$pb.BuilderInfo get info_ => _i;

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

class ShutdownResponse extends $pb.GeneratedMessage {
factory ShutdownResponse() => create();
ShutdownResponse._() : super();
factory ShutdownResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory ShutdownResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ShutdownResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.robot.v1'), createEmptyInstance: 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')
ShutdownResponse clone() => ShutdownResponse()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
ShutdownResponse copyWith(void Function(ShutdownResponse) updates) => super.copyWith((message) => updates(message as ShutdownResponse)) as ShutdownResponse;

$pb.BuilderInfo get info_ => _i;

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


const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
20 changes: 20 additions & 0 deletions lib/src/gen/robot/v1/robot.pbgrpc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ class RobotServiceClient extends $grpc.Client {
'/viam.robot.v1.RobotService/RestartModule',
($0.RestartModuleRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.RestartModuleResponse.fromBuffer(value));
static final _$shutdown = $grpc.ClientMethod<$0.ShutdownRequest, $0.ShutdownResponse>(
'/viam.robot.v1.RobotService/Shutdown',
($0.ShutdownRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $0.ShutdownResponse.fromBuffer(value));

RobotServiceClient($grpc.ClientChannel channel,
{$grpc.CallOptions? options,
Expand Down Expand Up @@ -171,6 +175,10 @@ class RobotServiceClient extends $grpc.Client {
$grpc.ResponseFuture<$0.RestartModuleResponse> restartModule($0.RestartModuleRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$restartModule, request, options: options);
}

$grpc.ResponseFuture<$0.ShutdownResponse> shutdown($0.ShutdownRequest request, {$grpc.CallOptions? options}) {
return $createUnaryCall(_$shutdown, request, options: options);
}
}

@$pb.GrpcServiceName('viam.robot.v1.RobotService')
Expand Down Expand Up @@ -304,6 +312,13 @@ abstract class RobotServiceBase extends $grpc.Service {
false,
($core.List<$core.int> value) => $0.RestartModuleRequest.fromBuffer(value),
($0.RestartModuleResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.ShutdownRequest, $0.ShutdownResponse>(
'Shutdown',
shutdown_Pre,
false,
false,
($core.List<$core.int> value) => $0.ShutdownRequest.fromBuffer(value),
($0.ShutdownResponse value) => value.writeToBuffer()));
}

$async.Future<$0.GetOperationsResponse> getOperations_Pre($grpc.ServiceCall call, $async.Future<$0.GetOperationsRequest> request) async {
Expand Down Expand Up @@ -378,6 +393,10 @@ abstract class RobotServiceBase extends $grpc.Service {
return restartModule(call, await request);
}

$async.Future<$0.ShutdownResponse> shutdown_Pre($grpc.ServiceCall call, $async.Future<$0.ShutdownRequest> request) async {
return shutdown(call, await request);
}

$async.Future<$0.GetOperationsResponse> getOperations($grpc.ServiceCall call, $0.GetOperationsRequest request);
$async.Future<$0.GetSessionsResponse> getSessions($grpc.ServiceCall call, $0.GetSessionsRequest request);
$async.Future<$0.ResourceNamesResponse> resourceNames($grpc.ServiceCall call, $0.ResourceNamesRequest request);
Expand All @@ -396,4 +415,5 @@ abstract class RobotServiceBase extends $grpc.Service {
$async.Future<$0.LogResponse> log($grpc.ServiceCall call, $0.LogRequest request);
$async.Future<$0.GetCloudMetadataResponse> getCloudMetadata($grpc.ServiceCall call, $0.GetCloudMetadataRequest request);
$async.Future<$0.RestartModuleResponse> restartModule($grpc.ServiceCall call, $0.RestartModuleRequest request);
$async.Future<$0.ShutdownResponse> shutdown($grpc.ServiceCall call, $0.ShutdownRequest request);
}
18 changes: 18 additions & 0 deletions lib/src/gen/robot/v1/robot.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -629,3 +629,21 @@ const RestartModuleResponse$json = {
final $typed_data.Uint8List restartModuleResponseDescriptor = $convert.base64Decode(
'ChVSZXN0YXJ0TW9kdWxlUmVzcG9uc2U=');

@$core.Deprecated('Use shutdownRequestDescriptor instead')
const ShutdownRequest$json = {
'1': 'ShutdownRequest',
};

/// Descriptor for `ShutdownRequest`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List shutdownRequestDescriptor = $convert.base64Decode(
'Cg9TaHV0ZG93blJlcXVlc3Q=');

@$core.Deprecated('Use shutdownResponseDescriptor instead')
const ShutdownResponse$json = {
'1': 'ShutdownResponse',
};

/// Descriptor for `ShutdownResponse`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List shutdownResponseDescriptor = $convert.base64Decode(
'ChBTaHV0ZG93blJlc3BvbnNl');

0 comments on commit bee27a9

Please sign in to comment.