OLD | NEW |
(Empty) | |
| 1 /// |
| 2 // Generated code. Do not modify. |
| 3 /// |
| 4 library blaze.worker_worker_protocol; |
| 5 |
| 6 import 'package:protobuf/protobuf.dart'; |
| 7 |
| 8 class Input extends GeneratedMessage { |
| 9 static final BuilderInfo _i = new BuilderInfo('Input') |
| 10 ..a(1, 'path', PbFieldType.OS) |
| 11 ..a(2, 'digest', PbFieldType.OY) |
| 12 ..hasRequiredFields = false |
| 13 ; |
| 14 |
| 15 Input() : super(); |
| 16 Input.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMPTY])
: super.fromBuffer(i, r); |
| 17 Input.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) : su
per.fromJson(i, r); |
| 18 Input clone() => new Input()..mergeFromMessage(this); |
| 19 BuilderInfo get info_ => _i; |
| 20 static Input create() => new Input(); |
| 21 static PbList<Input> createRepeated() => new PbList<Input>(); |
| 22 static Input getDefault() { |
| 23 if (_defaultInstance == null) _defaultInstance = new _ReadonlyInput(); |
| 24 return _defaultInstance; |
| 25 } |
| 26 static Input _defaultInstance; |
| 27 static void $checkItem(Input v) { |
| 28 if (v is !Input) checkItemFailed(v, 'Input'); |
| 29 } |
| 30 |
| 31 String get path => $_get(0, 1, ''); |
| 32 void set path(String v) { $_setString(0, 1, v); } |
| 33 bool hasPath() => $_has(0, 1); |
| 34 void clearPath() => clearField(1); |
| 35 |
| 36 List<int> get digest => $_get(1, 2, null); |
| 37 void set digest(List<int> v) { $_setBytes(1, 2, v); } |
| 38 bool hasDigest() => $_has(1, 2); |
| 39 void clearDigest() => clearField(2); |
| 40 } |
| 41 |
| 42 class _ReadonlyInput extends Input with ReadonlyMessageMixin {} |
| 43 |
| 44 class WorkRequest extends GeneratedMessage { |
| 45 static final BuilderInfo _i = new BuilderInfo('WorkRequest') |
| 46 ..p(1, 'arguments', PbFieldType.PS) |
| 47 ..pp(2, 'inputs', PbFieldType.PM, Input.$checkItem, Input.create) |
| 48 ..hasRequiredFields = false |
| 49 ; |
| 50 |
| 51 WorkRequest() : super(); |
| 52 WorkRequest.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.E
MPTY]) : super.fromBuffer(i, r); |
| 53 WorkRequest.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]
) : super.fromJson(i, r); |
| 54 WorkRequest clone() => new WorkRequest()..mergeFromMessage(this); |
| 55 BuilderInfo get info_ => _i; |
| 56 static WorkRequest create() => new WorkRequest(); |
| 57 static PbList<WorkRequest> createRepeated() => new PbList<WorkRequest>(); |
| 58 static WorkRequest getDefault() { |
| 59 if (_defaultInstance == null) _defaultInstance = new _ReadonlyWorkRequest(); |
| 60 return _defaultInstance; |
| 61 } |
| 62 static WorkRequest _defaultInstance; |
| 63 static void $checkItem(WorkRequest v) { |
| 64 if (v is !WorkRequest) checkItemFailed(v, 'WorkRequest'); |
| 65 } |
| 66 |
| 67 List<String> get arguments => $_get(0, 1, null); |
| 68 |
| 69 List<Input> get inputs => $_get(1, 2, null); |
| 70 } |
| 71 |
| 72 class _ReadonlyWorkRequest extends WorkRequest with ReadonlyMessageMixin {} |
| 73 |
| 74 class WorkResponse extends GeneratedMessage { |
| 75 static final BuilderInfo _i = new BuilderInfo('WorkResponse') |
| 76 ..a(1, 'exitCode', PbFieldType.O3) |
| 77 ..a(2, 'output', PbFieldType.OS) |
| 78 ..hasRequiredFields = false |
| 79 ; |
| 80 |
| 81 WorkResponse() : super(); |
| 82 WorkResponse.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.
EMPTY]) : super.fromBuffer(i, r); |
| 83 WorkResponse.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY
]) : super.fromJson(i, r); |
| 84 WorkResponse clone() => new WorkResponse()..mergeFromMessage(this); |
| 85 BuilderInfo get info_ => _i; |
| 86 static WorkResponse create() => new WorkResponse(); |
| 87 static PbList<WorkResponse> createRepeated() => new PbList<WorkResponse>(); |
| 88 static WorkResponse getDefault() { |
| 89 if (_defaultInstance == null) _defaultInstance = new _ReadonlyWorkResponse()
; |
| 90 return _defaultInstance; |
| 91 } |
| 92 static WorkResponse _defaultInstance; |
| 93 static void $checkItem(WorkResponse v) { |
| 94 if (v is !WorkResponse) checkItemFailed(v, 'WorkResponse'); |
| 95 } |
| 96 |
| 97 int get exitCode => $_get(0, 1, 0); |
| 98 void set exitCode(int v) { $_setUnsignedInt32(0, 1, v); } |
| 99 bool hasExitCode() => $_has(0, 1); |
| 100 void clearExitCode() => clearField(1); |
| 101 |
| 102 String get output => $_get(1, 2, ''); |
| 103 void set output(String v) { $_setString(1, 2, v); } |
| 104 bool hasOutput() => $_has(1, 2); |
| 105 void clearOutput() => clearField(2); |
| 106 } |
| 107 |
| 108 class _ReadonlyWorkResponse extends WorkResponse with ReadonlyMessageMixin {} |
| 109 |
| 110 const Input$json = const { |
| 111 '1': 'Input', |
| 112 '2': const [ |
| 113 const {'1': 'path', '3': 1, '4': 1, '5': 9}, |
| 114 const {'1': 'digest', '3': 2, '4': 1, '5': 12}, |
| 115 ], |
| 116 }; |
| 117 |
| 118 const WorkRequest$json = const { |
| 119 '1': 'WorkRequest', |
| 120 '2': const [ |
| 121 const {'1': 'arguments', '3': 1, '4': 3, '5': 9}, |
| 122 const {'1': 'inputs', '3': 2, '4': 3, '5': 11, '6': '.blaze.worker.Input'}, |
| 123 ], |
| 124 }; |
| 125 |
| 126 const WorkResponse$json = const { |
| 127 '1': 'WorkResponse', |
| 128 '2': const [ |
| 129 const {'1': 'exit_code', '3': 1, '4': 1, '5': 5}, |
| 130 const {'1': 'output', '3': 2, '4': 1, '5': 9}, |
| 131 ], |
| 132 }; |
| 133 |
OLD | NEW |