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

Commit

Permalink
Update worker_protocol.pb.dart using latest protoc compiler plugin. (#17
Browse files Browse the repository at this point in the history
)

Recompile worker_protocol.pb.dart using protoc_plugin 0.7.9 to support
package:protobuf version 0.7.0.
  • Loading branch information
jakobr-google authored and jakemac53 committed Jan 16, 2018
1 parent 60186c5 commit b23293d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
35 changes: 18 additions & 17 deletions lib/src/worker_protocol.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>(1, 'path', PbFieldType.OS)
..aOS(1, 'path')
..a<List<int>>(2, 'digest', PbFieldType.OY)
..hasRequiredFields = false;

Expand All @@ -37,28 +38,28 @@ 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<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);
}

class _ReadonlyInput extends Input with ReadonlyMessageMixin {}

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;

Expand All @@ -83,17 +84,17 @@ class WorkRequest extends GeneratedMessage {
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 {}

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();
Expand All @@ -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);
}

Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
homepage: https://github.com/dart-lang/bazel_worker
Expand All @@ -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

0 comments on commit b23293d

Please sign in to comment.