From b23293df8514a23467491378538ff1f92f4ead56 Mon Sep 17 00:00:00 2001 From: Jakob Andersen Date: Tue, 16 Jan 2018 15:57:13 +0100 Subject: [PATCH] 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. --- CHANGELOG.md | 4 ++++ lib/src/worker_protocol.pb.dart | 35 +++++++++++++++++---------------- pubspec.yaml | 4 ++-- 3 files changed, 24 insertions(+), 19 deletions(-) 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 @@ 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(1, 'path', PbFieldType.OS) + ..aOS(1, 'path') ..a>(2, 'digest', PbFieldType.OY) ..hasRequiredFields = false; @@ -37,20 +38,20 @@ class Input extends GeneratedMessage { 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 get digest => $_get(1, 2, null); + List get digest => $_getN(1); set digest(List 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 _ReadonlyInput extends Input with ReadonlyMessageMixin {} class WorkRequest extends GeneratedMessage { static final BuilderInfo _i = new BuilderInfo('WorkRequest') - ..p(1, 'arguments', PbFieldType.PS) + ..pPS(1, 'arguments') ..pp(2, 'inputs', PbFieldType.PM, Input.$checkItem, Input.create) ..hasRequiredFields = false; @@ -83,9 +84,9 @@ class WorkRequest extends GeneratedMessage { if (v is! WorkRequest) checkItemFailed(v, 'WorkRequest'); } - List get arguments => $_get(0, 1, null); + List get arguments => $_getN(0); - List get inputs => $_get(1, 2, null); + List get inputs => $_getN(1); } class _ReadonlyWorkRequest extends WorkRequest with ReadonlyMessageMixin {} @@ -93,7 +94,7 @@ class _ReadonlyWorkRequest extends WorkRequest with ReadonlyMessageMixin {} class WorkResponse extends GeneratedMessage { static final BuilderInfo _i = new BuilderInfo('WorkResponse') ..a(1, 'exitCode', PbFieldType.O3) - ..a(2, 'output', PbFieldType.OS) + ..aOS(2, 'output') ..hasRequiredFields = false; WorkResponse() : super(); @@ -118,20 +119,20 @@ class WorkResponse extends GeneratedMessage { 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 homepage: https://github.com/dart-lang/bazel_worker @@ -9,7 +9,7 @@ environment: 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