Update worker_protocol.pb.dart using latest protoc compiler plugin. (#17)
Recompile worker_protocol.pb.dart using protoc_plugin 0.7.9 to support
package:protobuf version 0.7.0.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b8b0031..b3cd92a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.1.9
+
+* Update the worker_protocol.pb.dart file with the latest proto generator.
+
## 0.1.8
* Add `Future cancel()` method to `DriverConnection`, which in the case of a
diff --git a/lib/src/worker_protocol.pb.dart b/lib/src/worker_protocol.pb.dart
index 6bff2f2..bb31b04 100644
--- a/lib/src/worker_protocol.pb.dart
+++ b/lib/src/worker_protocol.pb.dart
@@ -10,11 +10,12 @@
// 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)
+ ..aOS(1, 'path')
..a<List<int>>(2, 'digest', PbFieldType.OY)
..hasRequiredFields = false;
@@ -37,20 +38,20 @@
if (v is! Input) checkItemFailed(v, 'Input');
}
- String get path => $_get(0, 1, '');
+ String get path => $_getS(0, '');
set path(String v) {
- $_setString(0, 1, v);
+ $_setString(0, v);
}
- bool hasPath() => $_has(0, 1);
+ bool hasPath() => $_has(0);
void clearPath() => clearField(1);
- List<int> get digest => $_get(1, 2, null);
+ List<int> get digest => $_getN(1);
set digest(List<int> v) {
- $_setBytes(1, 2, v);
+ $_setBytes(1, v);
}
- bool hasDigest() => $_has(1, 2);
+ bool hasDigest() => $_has(1);
void clearDigest() => clearField(2);
}
@@ -58,7 +59,7 @@
class WorkRequest extends GeneratedMessage {
static final BuilderInfo _i = new BuilderInfo('WorkRequest')
- ..p<String>(1, 'arguments', PbFieldType.PS)
+ ..pPS(1, 'arguments')
..pp<Input>(2, 'inputs', PbFieldType.PM, Input.$checkItem, Input.create)
..hasRequiredFields = false;
@@ -83,9 +84,9 @@
if (v is! WorkRequest) checkItemFailed(v, 'WorkRequest');
}
- List<String> get arguments => $_get(0, 1, null);
+ List<String> get arguments => $_getN(0);
- List<Input> get inputs => $_get(1, 2, null);
+ List<Input> get inputs => $_getN(1);
}
class _ReadonlyWorkRequest extends WorkRequest with ReadonlyMessageMixin {}
@@ -93,7 +94,7 @@
class WorkResponse extends GeneratedMessage {
static final BuilderInfo _i = new BuilderInfo('WorkResponse')
..a<int>(1, 'exitCode', PbFieldType.O3)
- ..a<String>(2, 'output', PbFieldType.OS)
+ ..aOS(2, 'output')
..hasRequiredFields = false;
WorkResponse() : super();
@@ -118,20 +119,20 @@
if (v is! WorkResponse) checkItemFailed(v, 'WorkResponse');
}
- int get exitCode => $_get(0, 1, 0);
+ int get exitCode => $_get(0, 0);
set exitCode(int v) {
- $_setUnsignedInt32(0, 1, v);
+ $_setUnsignedInt32(0, v);
}
- bool hasExitCode() => $_has(0, 1);
+ bool hasExitCode() => $_has(0);
void clearExitCode() => clearField(1);
- String get output => $_get(1, 2, '');
+ String get output => $_getS(1, '');
set output(String v) {
- $_setString(1, 2, v);
+ $_setString(1, v);
}
- bool hasOutput() => $_has(1, 2);
+ bool hasOutput() => $_has(1);
void clearOutput() => clearField(2);
}
diff --git a/pubspec.yaml b/pubspec.yaml
index d2007e5..686ee6d 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: bazel_worker
-version: 0.1.8
+version: 0.1.9
description: Tools for creating a bazel persistent worker.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/bazel_worker
@@ -9,7 +9,7 @@
dependencies:
async: ">1.9.0 <3.0.0"
- protobuf: ">=0.5.0 <0.7.0"
+ protobuf: ">=0.7.0 <0.8.0"
dev_dependencies:
test: ^0.12.0