OLD | NEW |
(Empty) | |
| 1 /// |
| 2 // Generated code. Do not modify. |
| 3 /// |
| 4 library remote_api; |
| 5 |
| 6 import 'package:protobuf/protobuf.dart'; |
| 7 |
| 8 class Request extends GeneratedMessage { |
| 9 static final BuilderInfo _i = new BuilderInfo('Request') |
| 10 ..a(2, 'serviceName', GeneratedMessage.QS) |
| 11 ..a(3, 'method', GeneratedMessage.QS) |
| 12 ..a(4, 'request', GeneratedMessage.QY) |
| 13 ..a(5, 'requestId', GeneratedMessage.OS) |
| 14 ; |
| 15 |
| 16 Request() : super(); |
| 17 Request.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMPTY
]) : super.fromBuffer(i, r); |
| 18 Request.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) :
super.fromJson(i, r); |
| 19 Request clone() => new Request()..mergeFromMessage(this); |
| 20 BuilderInfo get info_ => _i; |
| 21 |
| 22 String get serviceName => getField(2); |
| 23 void set serviceName(String v) { setField(2, v); } |
| 24 bool hasServiceName() => hasField(2); |
| 25 void clearServiceName() => clearField(2); |
| 26 |
| 27 String get method => getField(3); |
| 28 void set method(String v) { setField(3, v); } |
| 29 bool hasMethod() => hasField(3); |
| 30 void clearMethod() => clearField(3); |
| 31 |
| 32 List<int> get request => getField(4); |
| 33 void set request(List<int> v) { setField(4, v); } |
| 34 bool hasRequest() => hasField(4); |
| 35 void clearRequest() => clearField(4); |
| 36 |
| 37 String get requestId => getField(5); |
| 38 void set requestId(String v) { setField(5, v); } |
| 39 bool hasRequestId() => hasField(5); |
| 40 void clearRequestId() => clearField(5); |
| 41 } |
| 42 |
| 43 class ApplicationError extends GeneratedMessage { |
| 44 static final BuilderInfo _i = new BuilderInfo('ApplicationError') |
| 45 ..a(1, 'code', GeneratedMessage.Q3) |
| 46 ..a(2, 'detail', GeneratedMessage.QS) |
| 47 ; |
| 48 |
| 49 ApplicationError() : super(); |
| 50 ApplicationError.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegis
try.EMPTY]) : super.fromBuffer(i, r); |
| 51 ApplicationError.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.E
MPTY]) : super.fromJson(i, r); |
| 52 ApplicationError clone() => new ApplicationError()..mergeFromMessage(this); |
| 53 BuilderInfo get info_ => _i; |
| 54 |
| 55 int get code => getField(1); |
| 56 void set code(int v) { setField(1, v); } |
| 57 bool hasCode() => hasField(1); |
| 58 void clearCode() => clearField(1); |
| 59 |
| 60 String get detail => getField(2); |
| 61 void set detail(String v) { setField(2, v); } |
| 62 bool hasDetail() => hasField(2); |
| 63 void clearDetail() => clearField(2); |
| 64 } |
| 65 |
| 66 class RpcError_ErrorCode extends ProtobufEnum { |
| 67 static const RpcError_ErrorCode UNKNOWN = const RpcError_ErrorCode._(0, 'UNKNO
WN'); |
| 68 static const RpcError_ErrorCode CALL_NOT_FOUND = const RpcError_ErrorCode._(1,
'CALL_NOT_FOUND'); |
| 69 static const RpcError_ErrorCode PARSE_ERROR = const RpcError_ErrorCode._(2, 'P
ARSE_ERROR'); |
| 70 static const RpcError_ErrorCode SECURITY_VIOLATION = const RpcError_ErrorCode.
_(3, 'SECURITY_VIOLATION'); |
| 71 static const RpcError_ErrorCode OVER_QUOTA = const RpcError_ErrorCode._(4, 'OV
ER_QUOTA'); |
| 72 static const RpcError_ErrorCode REQUEST_TOO_LARGE = const RpcError_ErrorCode._
(5, 'REQUEST_TOO_LARGE'); |
| 73 static const RpcError_ErrorCode CAPABILITY_DISABLED = const RpcError_ErrorCode
._(6, 'CAPABILITY_DISABLED'); |
| 74 static const RpcError_ErrorCode FEATURE_DISABLED = const RpcError_ErrorCode._(
7, 'FEATURE_DISABLED'); |
| 75 static const RpcError_ErrorCode BAD_REQUEST = const RpcError_ErrorCode._(8, 'B
AD_REQUEST'); |
| 76 static const RpcError_ErrorCode RESPONSE_TOO_LARGE = const RpcError_ErrorCode.
_(9, 'RESPONSE_TOO_LARGE'); |
| 77 static const RpcError_ErrorCode CANCELLED = const RpcError_ErrorCode._(10, 'CA
NCELLED'); |
| 78 static const RpcError_ErrorCode REPLAY_ERROR = const RpcError_ErrorCode._(11,
'REPLAY_ERROR'); |
| 79 static const RpcError_ErrorCode DEADLINE_EXCEEDED = const RpcError_ErrorCode._
(12, 'DEADLINE_EXCEEDED'); |
| 80 |
| 81 static const List<RpcError_ErrorCode> values = const <RpcError_ErrorCode> [ |
| 82 UNKNOWN, |
| 83 CALL_NOT_FOUND, |
| 84 PARSE_ERROR, |
| 85 SECURITY_VIOLATION, |
| 86 OVER_QUOTA, |
| 87 REQUEST_TOO_LARGE, |
| 88 CAPABILITY_DISABLED, |
| 89 FEATURE_DISABLED, |
| 90 BAD_REQUEST, |
| 91 RESPONSE_TOO_LARGE, |
| 92 CANCELLED, |
| 93 REPLAY_ERROR, |
| 94 DEADLINE_EXCEEDED, |
| 95 ]; |
| 96 |
| 97 static final Map<int, RpcError_ErrorCode> _byValue = ProtobufEnum.initByValue(
values); |
| 98 static RpcError_ErrorCode valueOf(int value) => _byValue[value]; |
| 99 |
| 100 const RpcError_ErrorCode._(int v, String n) : super(v, n); |
| 101 } |
| 102 |
| 103 class RpcError extends GeneratedMessage { |
| 104 static final BuilderInfo _i = new BuilderInfo('RpcError') |
| 105 ..a(1, 'code', GeneratedMessage.Q3) |
| 106 ..a(2, 'detail', GeneratedMessage.OS) |
| 107 ; |
| 108 |
| 109 RpcError() : super(); |
| 110 RpcError.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMPT
Y]) : super.fromBuffer(i, r); |
| 111 RpcError.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) :
super.fromJson(i, r); |
| 112 RpcError clone() => new RpcError()..mergeFromMessage(this); |
| 113 BuilderInfo get info_ => _i; |
| 114 |
| 115 int get code => getField(1); |
| 116 void set code(int v) { setField(1, v); } |
| 117 bool hasCode() => hasField(1); |
| 118 void clearCode() => clearField(1); |
| 119 |
| 120 String get detail => getField(2); |
| 121 void set detail(String v) { setField(2, v); } |
| 122 bool hasDetail() => hasField(2); |
| 123 void clearDetail() => clearField(2); |
| 124 } |
| 125 |
| 126 class Response extends GeneratedMessage { |
| 127 static final BuilderInfo _i = new BuilderInfo('Response') |
| 128 ..a(1, 'response', GeneratedMessage.OY) |
| 129 ..a(2, 'exception', GeneratedMessage.OY) |
| 130 ..a(3, 'applicationError', GeneratedMessage.OM, () => new ApplicationError()
, () => new ApplicationError()) |
| 131 ..a(4, 'javaException', GeneratedMessage.OY) |
| 132 ..a(5, 'rpcError', GeneratedMessage.OM, () => new RpcError(), () => new RpcE
rror()) |
| 133 ; |
| 134 |
| 135 Response() : super(); |
| 136 Response.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMPT
Y]) : super.fromBuffer(i, r); |
| 137 Response.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) :
super.fromJson(i, r); |
| 138 Response clone() => new Response()..mergeFromMessage(this); |
| 139 BuilderInfo get info_ => _i; |
| 140 |
| 141 List<int> get response => getField(1); |
| 142 void set response(List<int> v) { setField(1, v); } |
| 143 bool hasResponse() => hasField(1); |
| 144 void clearResponse() => clearField(1); |
| 145 |
| 146 List<int> get exception => getField(2); |
| 147 void set exception(List<int> v) { setField(2, v); } |
| 148 bool hasException() => hasField(2); |
| 149 void clearException() => clearField(2); |
| 150 |
| 151 ApplicationError get applicationError => getField(3); |
| 152 void set applicationError(ApplicationError v) { setField(3, v); } |
| 153 bool hasApplicationError() => hasField(3); |
| 154 void clearApplicationError() => clearField(3); |
| 155 |
| 156 List<int> get javaException => getField(4); |
| 157 void set javaException(List<int> v) { setField(4, v); } |
| 158 bool hasJavaException() => hasField(4); |
| 159 void clearJavaException() => clearField(4); |
| 160 |
| 161 RpcError get rpcError => getField(5); |
| 162 void set rpcError(RpcError v) { setField(5, v); } |
| 163 bool hasRpcError() => hasField(5); |
| 164 void clearRpcError() => clearField(5); |
| 165 } |
| 166 |
OLD | NEW |