Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Update generated proto, declare support for latest async/protobuf (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemac53 authored Nov 3, 2017
1 parent 1e73c04 commit 352ec46
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 37 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.1.6

* Update the worker_protocol.pb.dart file with the latest proto generator.
* Add support for package:async 2.x and package:protobuf 6.x.

## 0.1.5

* Change TestStdinAsync.controller to StreamController<List<int>> (instead of
Expand Down
47 changes: 13 additions & 34 deletions lib/src/worker_protocol.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
///
// Generated code. Do not modify.
///
// ignore_for_file: non_constant_identifier_names,library_prefixes
library blaze.worker_worker_protocol;

// ignore: UNUSED_SHOWN_NAME
import 'dart:core' show int, bool, double, String, List, override;
import 'package:protobuf/protobuf.dart';

class Input extends GeneratedMessage {
static final BuilderInfo _i = new BuilderInfo('Input')
..a/*<String>*/(1, 'path', PbFieldType.OS)
..a/*<List<int>>*/(2, 'digest', PbFieldType.OY)
..a<String>(1, 'path', PbFieldType.OS)
..a<List<int>>(2, 'digest', PbFieldType.OY)
..hasRequiredFields = false;

Input() : super();
Expand All @@ -35,15 +38,15 @@ class Input extends GeneratedMessage {
}

String get path => $_get(0, 1, '');
void set path(String v) {
set path(String v) {
$_setString(0, 1, v);
}

bool hasPath() => $_has(0, 1);
void clearPath() => clearField(1);

List<int> get digest => $_get(1, 2, null);
void set digest(List<int> v) {
set digest(List<int> v) {
$_setBytes(1, 2, v);
}

Expand All @@ -55,8 +58,8 @@ class _ReadonlyInput extends Input with ReadonlyMessageMixin {}

class WorkRequest extends GeneratedMessage {
static final BuilderInfo _i = new BuilderInfo('WorkRequest')
..p/*<String>*/(1, 'arguments', PbFieldType.PS)
..pp/*<Input>*/(2, 'inputs', PbFieldType.PM, Input.$checkItem, Input.create)
..p<String>(1, 'arguments', PbFieldType.PS)
..pp<Input>(2, 'inputs', PbFieldType.PM, Input.$checkItem, Input.create)
..hasRequiredFields = false;

WorkRequest() : super();
Expand Down Expand Up @@ -89,8 +92,8 @@ class _ReadonlyWorkRequest extends WorkRequest with ReadonlyMessageMixin {}

class WorkResponse extends GeneratedMessage {
static final BuilderInfo _i = new BuilderInfo('WorkResponse')
..a/*<int>*/(1, 'exitCode', PbFieldType.O3)
..a/*<String>*/(2, 'output', PbFieldType.OS)
..a<int>(1, 'exitCode', PbFieldType.O3)
..a<String>(2, 'output', PbFieldType.OS)
..hasRequiredFields = false;

WorkResponse() : super();
Expand All @@ -116,15 +119,15 @@ class WorkResponse extends GeneratedMessage {
}

int get exitCode => $_get(0, 1, 0);
void set exitCode(int v) {
set exitCode(int v) {
$_setUnsignedInt32(0, 1, v);
}

bool hasExitCode() => $_has(0, 1);
void clearExitCode() => clearField(1);

String get output => $_get(1, 2, '');
void set output(String v) {
set output(String v) {
$_setString(1, 2, v);
}

Expand All @@ -133,27 +136,3 @@ class WorkResponse extends GeneratedMessage {
}

class _ReadonlyWorkResponse extends WorkResponse with ReadonlyMessageMixin {}

const Input$json = const {
'1': 'Input',
'2': const [
const {'1': 'path', '3': 1, '4': 1, '5': 9},
const {'1': 'digest', '3': 2, '4': 1, '5': 12},
],
};

const WorkRequest$json = const {
'1': 'WorkRequest',
'2': const [
const {'1': 'arguments', '3': 1, '4': 3, '5': 9},
const {'1': 'inputs', '3': 2, '4': 3, '5': 11, '6': '.blaze.worker.Input'},
],
};

const WorkResponse$json = const {
'1': 'WorkResponse',
'2': const [
const {'1': 'exit_code', '3': 1, '4': 1, '5': 5},
const {'1': 'output', '3': 2, '4': 1, '5': 9},
],
};
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: bazel_worker
version: 0.1.5
version: 0.1.6
description: Tools for creating a bazel persistent worker.
author: Dart Team <[email protected]>
homepage: https://github.com/dart-lang/bazel_worker
Expand All @@ -8,8 +8,8 @@ environment:
sdk: '>=1.22.1 <2.0.0'

dependencies:
async: ^1.9.0
protobuf: ^0.5.0
async: ">1.9.0 <3.0.0"
protobuf: ">=0.5.0 <0.7.0"

dev_dependencies:
test: ^0.12.0

0 comments on commit 352ec46

Please sign in to comment.