Update protobuf output to be compatible with protobuf 0.11.0 (#32)
* Update protobuf output to be compatible with protobuf 0.11.0
* Allow compatibility back to protobuf 0.10.4
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 07c303a..8f36e60 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+## 0.1.16
+
+* Update the worker_protocol.pb.dart file with the latest proto generator.
+* Require protobuf 0.11.0.
+
## 0.1.15
* Update the worker_protocol.pb.dart file with the latest proto generator.
diff --git a/lib/src/worker_protocol.pb.dart b/lib/src/worker_protocol.pb.dart
index 634c0ed..7e50966 100644
--- a/lib/src/worker_protocol.pb.dart
+++ b/lib/src/worker_protocol.pb.dart
@@ -3,7 +3,7 @@
// source: third_party/bazel/src/main/protobuf/worker_protocol.proto
// ignore: UNUSED_SHOWN_NAME
-import 'dart:core' show int, bool, double, String, List, override;
+import 'dart:core' show int, bool, double, String, List, Map, override;
import 'package:protobuf/protobuf.dart' as $pb;
@@ -21,6 +21,7 @@
Input copyWith(void Function(Input) updates) => super.copyWith((message) => updates(message as Input));
$pb.BuilderInfo get info_ => _i;
static Input create() => new Input();
+ Input createEmptyInstance() => create();
static $pb.PbList<Input> createRepeated() => new $pb.PbList<Input>();
static Input getDefault() => _defaultInstance ??= create()..freeze();
static Input _defaultInstance;
@@ -53,6 +54,7 @@
WorkRequest copyWith(void Function(WorkRequest) updates) => super.copyWith((message) => updates(message as WorkRequest));
$pb.BuilderInfo get info_ => _i;
static WorkRequest create() => new WorkRequest();
+ WorkRequest createEmptyInstance() => create();
static $pb.PbList<WorkRequest> createRepeated() => new $pb.PbList<WorkRequest>();
static WorkRequest getDefault() => _defaultInstance ??= create()..freeze();
static WorkRequest _defaultInstance;
@@ -79,6 +81,7 @@
WorkResponse copyWith(void Function(WorkResponse) updates) => super.copyWith((message) => updates(message as WorkResponse));
$pb.BuilderInfo get info_ => _i;
static WorkResponse create() => new WorkResponse();
+ WorkResponse createEmptyInstance() => create();
static $pb.PbList<WorkResponse> createRepeated() => new $pb.PbList<WorkResponse>();
static WorkResponse getDefault() => _defaultInstance ??= create()..freeze();
static WorkResponse _defaultInstance;
diff --git a/pubspec.yaml b/pubspec.yaml
index e543356..7bb313b 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: bazel_worker
-version: 0.1.15
+version: 0.1.16
description: Tools for creating a bazel persistent worker.
author: Dart Team <misc@dartlang.org>
@@ -10,7 +10,7 @@
dependencies:
async: '>1.9.0 <3.0.0'
- protobuf: '>=0.10.4 <0.11.0'
+ protobuf: '>=0.10.4 <0.12.0'
dev_dependencies:
test: ^1.2.0