OLD | NEW |
(Empty) | |
| 1 /// |
| 2 // Generated code. Do not modify. |
| 3 /// |
| 4 library api.services.datastore; |
| 5 |
| 6 import 'package:fixnum/fixnum.dart'; |
| 7 import 'package:protobuf/protobuf.dart'; |
| 8 |
| 9 class PartitionId extends GeneratedMessage { |
| 10 static final BuilderInfo _i = new BuilderInfo('PartitionId') |
| 11 ..a(3, 'datasetId', GeneratedMessage.OS) |
| 12 ..a(4, 'namespace', GeneratedMessage.OS) |
| 13 ..hasRequiredFields = false |
| 14 ; |
| 15 |
| 16 PartitionId() : super(); |
| 17 PartitionId.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.E
MPTY]) : super.fromBuffer(i, r); |
| 18 PartitionId.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]
) : super.fromJson(i, r); |
| 19 PartitionId clone() => new PartitionId()..mergeFromMessage(this); |
| 20 BuilderInfo get info_ => _i; |
| 21 |
| 22 String get datasetId => getField(3); |
| 23 void set datasetId(String v) { setField(3, v); } |
| 24 bool hasDatasetId() => hasField(3); |
| 25 void clearDatasetId() => clearField(3); |
| 26 |
| 27 String get namespace => getField(4); |
| 28 void set namespace(String v) { setField(4, v); } |
| 29 bool hasNamespace() => hasField(4); |
| 30 void clearNamespace() => clearField(4); |
| 31 } |
| 32 |
| 33 class Key_PathElement extends GeneratedMessage { |
| 34 static final BuilderInfo _i = new BuilderInfo('Key_PathElement') |
| 35 ..a(1, 'kind', GeneratedMessage.QS) |
| 36 ..a(2, 'id', GeneratedMessage.O6, () => makeLongInt(0)) |
| 37 ..a(3, 'name', GeneratedMessage.OS) |
| 38 ; |
| 39 |
| 40 Key_PathElement() : super(); |
| 41 Key_PathElement.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegist
ry.EMPTY]) : super.fromBuffer(i, r); |
| 42 Key_PathElement.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EM
PTY]) : super.fromJson(i, r); |
| 43 Key_PathElement clone() => new Key_PathElement()..mergeFromMessage(this); |
| 44 BuilderInfo get info_ => _i; |
| 45 |
| 46 String get kind => getField(1); |
| 47 void set kind(String v) { setField(1, v); } |
| 48 bool hasKind() => hasField(1); |
| 49 void clearKind() => clearField(1); |
| 50 |
| 51 Int64 get id => getField(2); |
| 52 void set id(Int64 v) { setField(2, v); } |
| 53 bool hasId() => hasField(2); |
| 54 void clearId() => clearField(2); |
| 55 |
| 56 String get name => getField(3); |
| 57 void set name(String v) { setField(3, v); } |
| 58 bool hasName() => hasField(3); |
| 59 void clearName() => clearField(3); |
| 60 } |
| 61 |
| 62 class Key extends GeneratedMessage { |
| 63 static final BuilderInfo _i = new BuilderInfo('Key') |
| 64 ..a(1, 'partitionId', GeneratedMessage.OM, () => new PartitionId(), () => ne
w PartitionId()) |
| 65 ..m(2, 'pathElement', () => new Key_PathElement(), () => new PbList<Key_Path
Element>()) |
| 66 ; |
| 67 |
| 68 Key() : super(); |
| 69 Key.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) :
super.fromBuffer(i, r); |
| 70 Key.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) : supe
r.fromJson(i, r); |
| 71 Key clone() => new Key()..mergeFromMessage(this); |
| 72 BuilderInfo get info_ => _i; |
| 73 |
| 74 PartitionId get partitionId => getField(1); |
| 75 void set partitionId(PartitionId v) { setField(1, v); } |
| 76 bool hasPartitionId() => hasField(1); |
| 77 void clearPartitionId() => clearField(1); |
| 78 |
| 79 List<Key_PathElement> get pathElement => getField(2); |
| 80 } |
| 81 |
| 82 class Value extends GeneratedMessage { |
| 83 static final BuilderInfo _i = new BuilderInfo('Value') |
| 84 ..a(1, 'booleanValue', GeneratedMessage.OB) |
| 85 ..a(2, 'integerValue', GeneratedMessage.O6, () => makeLongInt(0)) |
| 86 ..a(3, 'doubleValue', GeneratedMessage.OD) |
| 87 ..a(4, 'timestampMicrosecondsValue', GeneratedMessage.O6, () => makeLongInt(
0)) |
| 88 ..a(5, 'keyValue', GeneratedMessage.OM, () => new Key(), () => new Key()) |
| 89 ..a(16, 'blobKeyValue', GeneratedMessage.OS) |
| 90 ..a(17, 'stringValue', GeneratedMessage.OS) |
| 91 ..a(18, 'blobValue', GeneratedMessage.OY) |
| 92 ..a(6, 'entityValue', GeneratedMessage.OM, () => new Entity(), () => new Ent
ity()) |
| 93 ..m(7, 'listValue', () => new Value(), () => new PbList<Value>()) |
| 94 ..a(14, 'meaning', GeneratedMessage.O3) |
| 95 ..a(15, 'indexed', GeneratedMessage.OB, () => true) |
| 96 ; |
| 97 |
| 98 Value() : super(); |
| 99 Value.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMPTY])
: super.fromBuffer(i, r); |
| 100 Value.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) : su
per.fromJson(i, r); |
| 101 Value clone() => new Value()..mergeFromMessage(this); |
| 102 BuilderInfo get info_ => _i; |
| 103 |
| 104 bool get booleanValue => getField(1); |
| 105 void set booleanValue(bool v) { setField(1, v); } |
| 106 bool hasBooleanValue() => hasField(1); |
| 107 void clearBooleanValue() => clearField(1); |
| 108 |
| 109 Int64 get integerValue => getField(2); |
| 110 void set integerValue(Int64 v) { setField(2, v); } |
| 111 bool hasIntegerValue() => hasField(2); |
| 112 void clearIntegerValue() => clearField(2); |
| 113 |
| 114 double get doubleValue => getField(3); |
| 115 void set doubleValue(double v) { setField(3, v); } |
| 116 bool hasDoubleValue() => hasField(3); |
| 117 void clearDoubleValue() => clearField(3); |
| 118 |
| 119 Int64 get timestampMicrosecondsValue => getField(4); |
| 120 void set timestampMicrosecondsValue(Int64 v) { setField(4, v); } |
| 121 bool hasTimestampMicrosecondsValue() => hasField(4); |
| 122 void clearTimestampMicrosecondsValue() => clearField(4); |
| 123 |
| 124 Key get keyValue => getField(5); |
| 125 void set keyValue(Key v) { setField(5, v); } |
| 126 bool hasKeyValue() => hasField(5); |
| 127 void clearKeyValue() => clearField(5); |
| 128 |
| 129 String get blobKeyValue => getField(16); |
| 130 void set blobKeyValue(String v) { setField(16, v); } |
| 131 bool hasBlobKeyValue() => hasField(16); |
| 132 void clearBlobKeyValue() => clearField(16); |
| 133 |
| 134 String get stringValue => getField(17); |
| 135 void set stringValue(String v) { setField(17, v); } |
| 136 bool hasStringValue() => hasField(17); |
| 137 void clearStringValue() => clearField(17); |
| 138 |
| 139 List<int> get blobValue => getField(18); |
| 140 void set blobValue(List<int> v) { setField(18, v); } |
| 141 bool hasBlobValue() => hasField(18); |
| 142 void clearBlobValue() => clearField(18); |
| 143 |
| 144 Entity get entityValue => getField(6); |
| 145 void set entityValue(Entity v) { setField(6, v); } |
| 146 bool hasEntityValue() => hasField(6); |
| 147 void clearEntityValue() => clearField(6); |
| 148 |
| 149 List<Value> get listValue => getField(7); |
| 150 |
| 151 int get meaning => getField(14); |
| 152 void set meaning(int v) { setField(14, v); } |
| 153 bool hasMeaning() => hasField(14); |
| 154 void clearMeaning() => clearField(14); |
| 155 |
| 156 bool get indexed => getField(15); |
| 157 void set indexed(bool v) { setField(15, v); } |
| 158 bool hasIndexed() => hasField(15); |
| 159 void clearIndexed() => clearField(15); |
| 160 } |
| 161 |
| 162 class Property extends GeneratedMessage { |
| 163 static final BuilderInfo _i = new BuilderInfo('Property') |
| 164 ..a(1, 'name', GeneratedMessage.QS) |
| 165 ..a(4, 'value', GeneratedMessage.QM, () => new Value(), () => new Value()) |
| 166 ; |
| 167 |
| 168 Property() : super(); |
| 169 Property.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMPT
Y]) : super.fromBuffer(i, r); |
| 170 Property.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) :
super.fromJson(i, r); |
| 171 Property clone() => new Property()..mergeFromMessage(this); |
| 172 BuilderInfo get info_ => _i; |
| 173 |
| 174 String get name => getField(1); |
| 175 void set name(String v) { setField(1, v); } |
| 176 bool hasName() => hasField(1); |
| 177 void clearName() => clearField(1); |
| 178 |
| 179 Value get value => getField(4); |
| 180 void set value(Value v) { setField(4, v); } |
| 181 bool hasValue() => hasField(4); |
| 182 void clearValue() => clearField(4); |
| 183 } |
| 184 |
| 185 class Entity extends GeneratedMessage { |
| 186 static final BuilderInfo _i = new BuilderInfo('Entity') |
| 187 ..a(1, 'key', GeneratedMessage.OM, () => new Key(), () => new Key()) |
| 188 ..m(2, 'property', () => new Property(), () => new PbList<Property>()) |
| 189 ; |
| 190 |
| 191 Entity() : super(); |
| 192 Entity.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]
) : super.fromBuffer(i, r); |
| 193 Entity.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) : s
uper.fromJson(i, r); |
| 194 Entity clone() => new Entity()..mergeFromMessage(this); |
| 195 BuilderInfo get info_ => _i; |
| 196 |
| 197 Key get key => getField(1); |
| 198 void set key(Key v) { setField(1, v); } |
| 199 bool hasKey() => hasField(1); |
| 200 void clearKey() => clearField(1); |
| 201 |
| 202 List<Property> get property => getField(2); |
| 203 } |
| 204 |
| 205 class EntityResult_ResultType extends ProtobufEnum { |
| 206 static const EntityResult_ResultType FULL = const EntityResult_ResultType._(1,
'FULL'); |
| 207 static const EntityResult_ResultType PROJECTION = const EntityResult_ResultTyp
e._(2, 'PROJECTION'); |
| 208 static const EntityResult_ResultType KEY_ONLY = const EntityResult_ResultType.
_(3, 'KEY_ONLY'); |
| 209 |
| 210 static const List<EntityResult_ResultType> values = const <EntityResult_Result
Type> [ |
| 211 FULL, |
| 212 PROJECTION, |
| 213 KEY_ONLY, |
| 214 ]; |
| 215 |
| 216 static final Map<int, EntityResult_ResultType> _byValue = ProtobufEnum.initByV
alue(values); |
| 217 static EntityResult_ResultType valueOf(int value) => _byValue[value]; |
| 218 |
| 219 const EntityResult_ResultType._(int v, String n) : super(v, n); |
| 220 } |
| 221 |
| 222 class EntityResult extends GeneratedMessage { |
| 223 static final BuilderInfo _i = new BuilderInfo('EntityResult') |
| 224 ..a(1, 'entity', GeneratedMessage.QM, () => new Entity(), () => new Entity()
) |
| 225 ; |
| 226 |
| 227 EntityResult() : super(); |
| 228 EntityResult.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.
EMPTY]) : super.fromBuffer(i, r); |
| 229 EntityResult.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY
]) : super.fromJson(i, r); |
| 230 EntityResult clone() => new EntityResult()..mergeFromMessage(this); |
| 231 BuilderInfo get info_ => _i; |
| 232 |
| 233 Entity get entity => getField(1); |
| 234 void set entity(Entity v) { setField(1, v); } |
| 235 bool hasEntity() => hasField(1); |
| 236 void clearEntity() => clearField(1); |
| 237 } |
| 238 |
| 239 class Query extends GeneratedMessage { |
| 240 static final BuilderInfo _i = new BuilderInfo('Query') |
| 241 ..m(2, 'projection', () => new PropertyExpression(), () => new PbList<Proper
tyExpression>()) |
| 242 ..m(3, 'kind', () => new KindExpression(), () => new PbList<KindExpression>(
)) |
| 243 ..a(4, 'filter', GeneratedMessage.OM, () => new Filter(), () => new Filter()
) |
| 244 ..m(5, 'order', () => new PropertyOrder(), () => new PbList<PropertyOrder>()
) |
| 245 ..m(6, 'groupBy', () => new PropertyReference(), () => new PbList<PropertyRe
ference>()) |
| 246 ..a(7, 'startCursor', GeneratedMessage.OY) |
| 247 ..a(8, 'endCursor', GeneratedMessage.OY) |
| 248 ..a(10, 'offset', GeneratedMessage.O3) |
| 249 ..a(11, 'limit', GeneratedMessage.O3) |
| 250 ; |
| 251 |
| 252 Query() : super(); |
| 253 Query.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMPTY])
: super.fromBuffer(i, r); |
| 254 Query.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) : su
per.fromJson(i, r); |
| 255 Query clone() => new Query()..mergeFromMessage(this); |
| 256 BuilderInfo get info_ => _i; |
| 257 |
| 258 List<PropertyExpression> get projection => getField(2); |
| 259 |
| 260 List<KindExpression> get kind => getField(3); |
| 261 |
| 262 Filter get filter => getField(4); |
| 263 void set filter(Filter v) { setField(4, v); } |
| 264 bool hasFilter() => hasField(4); |
| 265 void clearFilter() => clearField(4); |
| 266 |
| 267 List<PropertyOrder> get order => getField(5); |
| 268 |
| 269 List<PropertyReference> get groupBy => getField(6); |
| 270 |
| 271 List<int> get startCursor => getField(7); |
| 272 void set startCursor(List<int> v) { setField(7, v); } |
| 273 bool hasStartCursor() => hasField(7); |
| 274 void clearStartCursor() => clearField(7); |
| 275 |
| 276 List<int> get endCursor => getField(8); |
| 277 void set endCursor(List<int> v) { setField(8, v); } |
| 278 bool hasEndCursor() => hasField(8); |
| 279 void clearEndCursor() => clearField(8); |
| 280 |
| 281 int get offset => getField(10); |
| 282 void set offset(int v) { setField(10, v); } |
| 283 bool hasOffset() => hasField(10); |
| 284 void clearOffset() => clearField(10); |
| 285 |
| 286 int get limit => getField(11); |
| 287 void set limit(int v) { setField(11, v); } |
| 288 bool hasLimit() => hasField(11); |
| 289 void clearLimit() => clearField(11); |
| 290 } |
| 291 |
| 292 class KindExpression extends GeneratedMessage { |
| 293 static final BuilderInfo _i = new BuilderInfo('KindExpression') |
| 294 ..a(1, 'name', GeneratedMessage.QS) |
| 295 ; |
| 296 |
| 297 KindExpression() : super(); |
| 298 KindExpression.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistr
y.EMPTY]) : super.fromBuffer(i, r); |
| 299 KindExpression.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMP
TY]) : super.fromJson(i, r); |
| 300 KindExpression clone() => new KindExpression()..mergeFromMessage(this); |
| 301 BuilderInfo get info_ => _i; |
| 302 |
| 303 String get name => getField(1); |
| 304 void set name(String v) { setField(1, v); } |
| 305 bool hasName() => hasField(1); |
| 306 void clearName() => clearField(1); |
| 307 } |
| 308 |
| 309 class PropertyReference extends GeneratedMessage { |
| 310 static final BuilderInfo _i = new BuilderInfo('PropertyReference') |
| 311 ..a(2, 'name', GeneratedMessage.QS) |
| 312 ; |
| 313 |
| 314 PropertyReference() : super(); |
| 315 PropertyReference.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegi
stry.EMPTY]) : super.fromBuffer(i, r); |
| 316 PropertyReference.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.
EMPTY]) : super.fromJson(i, r); |
| 317 PropertyReference clone() => new PropertyReference()..mergeFromMessage(this); |
| 318 BuilderInfo get info_ => _i; |
| 319 |
| 320 String get name => getField(2); |
| 321 void set name(String v) { setField(2, v); } |
| 322 bool hasName() => hasField(2); |
| 323 void clearName() => clearField(2); |
| 324 } |
| 325 |
| 326 class PropertyExpression_AggregationFunction extends ProtobufEnum { |
| 327 static const PropertyExpression_AggregationFunction FIRST = const PropertyExpr
ession_AggregationFunction._(1, 'FIRST'); |
| 328 |
| 329 static const List<PropertyExpression_AggregationFunction> values = const <Prop
ertyExpression_AggregationFunction> [ |
| 330 FIRST, |
| 331 ]; |
| 332 |
| 333 static final Map<int, PropertyExpression_AggregationFunction> _byValue = Proto
bufEnum.initByValue(values); |
| 334 static PropertyExpression_AggregationFunction valueOf(int value) => _byValue[v
alue]; |
| 335 |
| 336 const PropertyExpression_AggregationFunction._(int v, String n) : super(v, n); |
| 337 } |
| 338 |
| 339 class PropertyExpression extends GeneratedMessage { |
| 340 static final BuilderInfo _i = new BuilderInfo('PropertyExpression') |
| 341 ..a(1, 'property', GeneratedMessage.QM, () => new PropertyReference(), () =>
new PropertyReference()) |
| 342 ..e(2, 'aggregationFunction', GeneratedMessage.OE, () => PropertyExpression_
AggregationFunction.FIRST, (var v) => PropertyExpression_AggregationFunction.val
ueOf(v)) |
| 343 ; |
| 344 |
| 345 PropertyExpression() : super(); |
| 346 PropertyExpression.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionReg
istry.EMPTY]) : super.fromBuffer(i, r); |
| 347 PropertyExpression.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry
.EMPTY]) : super.fromJson(i, r); |
| 348 PropertyExpression clone() => new PropertyExpression()..mergeFromMessage(this)
; |
| 349 BuilderInfo get info_ => _i; |
| 350 |
| 351 PropertyReference get property => getField(1); |
| 352 void set property(PropertyReference v) { setField(1, v); } |
| 353 bool hasProperty() => hasField(1); |
| 354 void clearProperty() => clearField(1); |
| 355 |
| 356 PropertyExpression_AggregationFunction get aggregationFunction => getField(2); |
| 357 void set aggregationFunction(PropertyExpression_AggregationFunction v) { setFi
eld(2, v); } |
| 358 bool hasAggregationFunction() => hasField(2); |
| 359 void clearAggregationFunction() => clearField(2); |
| 360 } |
| 361 |
| 362 class PropertyOrder_Direction extends ProtobufEnum { |
| 363 static const PropertyOrder_Direction ASCENDING = const PropertyOrder_Direction
._(1, 'ASCENDING'); |
| 364 static const PropertyOrder_Direction DESCENDING = const PropertyOrder_Directio
n._(2, 'DESCENDING'); |
| 365 |
| 366 static const List<PropertyOrder_Direction> values = const <PropertyOrder_Direc
tion> [ |
| 367 ASCENDING, |
| 368 DESCENDING, |
| 369 ]; |
| 370 |
| 371 static final Map<int, PropertyOrder_Direction> _byValue = ProtobufEnum.initByV
alue(values); |
| 372 static PropertyOrder_Direction valueOf(int value) => _byValue[value]; |
| 373 |
| 374 const PropertyOrder_Direction._(int v, String n) : super(v, n); |
| 375 } |
| 376 |
| 377 class PropertyOrder extends GeneratedMessage { |
| 378 static final BuilderInfo _i = new BuilderInfo('PropertyOrder') |
| 379 ..a(1, 'property', GeneratedMessage.QM, () => new PropertyReference(), () =>
new PropertyReference()) |
| 380 ..e(2, 'direction', GeneratedMessage.OE, () => PropertyOrder_Direction.ASCEN
DING, (var v) => PropertyOrder_Direction.valueOf(v)) |
| 381 ; |
| 382 |
| 383 PropertyOrder() : super(); |
| 384 PropertyOrder.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry
.EMPTY]) : super.fromBuffer(i, r); |
| 385 PropertyOrder.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPT
Y]) : super.fromJson(i, r); |
| 386 PropertyOrder clone() => new PropertyOrder()..mergeFromMessage(this); |
| 387 BuilderInfo get info_ => _i; |
| 388 |
| 389 PropertyReference get property => getField(1); |
| 390 void set property(PropertyReference v) { setField(1, v); } |
| 391 bool hasProperty() => hasField(1); |
| 392 void clearProperty() => clearField(1); |
| 393 |
| 394 PropertyOrder_Direction get direction => getField(2); |
| 395 void set direction(PropertyOrder_Direction v) { setField(2, v); } |
| 396 bool hasDirection() => hasField(2); |
| 397 void clearDirection() => clearField(2); |
| 398 } |
| 399 |
| 400 class Filter extends GeneratedMessage { |
| 401 static final BuilderInfo _i = new BuilderInfo('Filter') |
| 402 ..a(1, 'compositeFilter', GeneratedMessage.OM, () => new CompositeFilter(),
() => new CompositeFilter()) |
| 403 ..a(2, 'propertyFilter', GeneratedMessage.OM, () => new PropertyFilter(), ()
=> new PropertyFilter()) |
| 404 ; |
| 405 |
| 406 Filter() : super(); |
| 407 Filter.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]
) : super.fromBuffer(i, r); |
| 408 Filter.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) : s
uper.fromJson(i, r); |
| 409 Filter clone() => new Filter()..mergeFromMessage(this); |
| 410 BuilderInfo get info_ => _i; |
| 411 |
| 412 CompositeFilter get compositeFilter => getField(1); |
| 413 void set compositeFilter(CompositeFilter v) { setField(1, v); } |
| 414 bool hasCompositeFilter() => hasField(1); |
| 415 void clearCompositeFilter() => clearField(1); |
| 416 |
| 417 PropertyFilter get propertyFilter => getField(2); |
| 418 void set propertyFilter(PropertyFilter v) { setField(2, v); } |
| 419 bool hasPropertyFilter() => hasField(2); |
| 420 void clearPropertyFilter() => clearField(2); |
| 421 } |
| 422 |
| 423 class CompositeFilter_Operator extends ProtobufEnum { |
| 424 static const CompositeFilter_Operator AND = const CompositeFilter_Operator._(1
, 'AND'); |
| 425 |
| 426 static const List<CompositeFilter_Operator> values = const <CompositeFilter_Op
erator> [ |
| 427 AND, |
| 428 ]; |
| 429 |
| 430 static final Map<int, CompositeFilter_Operator> _byValue = ProtobufEnum.initBy
Value(values); |
| 431 static CompositeFilter_Operator valueOf(int value) => _byValue[value]; |
| 432 |
| 433 const CompositeFilter_Operator._(int v, String n) : super(v, n); |
| 434 } |
| 435 |
| 436 class CompositeFilter extends GeneratedMessage { |
| 437 static final BuilderInfo _i = new BuilderInfo('CompositeFilter') |
| 438 ..e(1, 'operator', GeneratedMessage.QE, () => CompositeFilter_Operator.AND,
(var v) => CompositeFilter_Operator.valueOf(v)) |
| 439 ..m(2, 'filter', () => new Filter(), () => new PbList<Filter>()) |
| 440 ; |
| 441 |
| 442 CompositeFilter() : super(); |
| 443 CompositeFilter.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegist
ry.EMPTY]) : super.fromBuffer(i, r); |
| 444 CompositeFilter.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EM
PTY]) : super.fromJson(i, r); |
| 445 CompositeFilter clone() => new CompositeFilter()..mergeFromMessage(this); |
| 446 BuilderInfo get info_ => _i; |
| 447 |
| 448 CompositeFilter_Operator get operator => getField(1); |
| 449 void set operator(CompositeFilter_Operator v) { setField(1, v); } |
| 450 bool hasOperator() => hasField(1); |
| 451 void clearOperator() => clearField(1); |
| 452 |
| 453 List<Filter> get filter => getField(2); |
| 454 } |
| 455 |
| 456 class PropertyFilter_Operator extends ProtobufEnum { |
| 457 static const PropertyFilter_Operator LESS_THAN = const PropertyFilter_Operator
._(1, 'LESS_THAN'); |
| 458 static const PropertyFilter_Operator LESS_THAN_OR_EQUAL = const PropertyFilter
_Operator._(2, 'LESS_THAN_OR_EQUAL'); |
| 459 static const PropertyFilter_Operator GREATER_THAN = const PropertyFilter_Opera
tor._(3, 'GREATER_THAN'); |
| 460 static const PropertyFilter_Operator GREATER_THAN_OR_EQUAL = const PropertyFil
ter_Operator._(4, 'GREATER_THAN_OR_EQUAL'); |
| 461 static const PropertyFilter_Operator EQUAL = const PropertyFilter_Operator._(5
, 'EQUAL'); |
| 462 static const PropertyFilter_Operator HAS_ANCESTOR = const PropertyFilter_Opera
tor._(11, 'HAS_ANCESTOR'); |
| 463 |
| 464 static const List<PropertyFilter_Operator> values = const <PropertyFilter_Oper
ator> [ |
| 465 LESS_THAN, |
| 466 LESS_THAN_OR_EQUAL, |
| 467 GREATER_THAN, |
| 468 GREATER_THAN_OR_EQUAL, |
| 469 EQUAL, |
| 470 HAS_ANCESTOR, |
| 471 ]; |
| 472 |
| 473 static final Map<int, PropertyFilter_Operator> _byValue = ProtobufEnum.initByV
alue(values); |
| 474 static PropertyFilter_Operator valueOf(int value) => _byValue[value]; |
| 475 |
| 476 const PropertyFilter_Operator._(int v, String n) : super(v, n); |
| 477 } |
| 478 |
| 479 class PropertyFilter extends GeneratedMessage { |
| 480 static final BuilderInfo _i = new BuilderInfo('PropertyFilter') |
| 481 ..a(1, 'property', GeneratedMessage.QM, () => new PropertyReference(), () =>
new PropertyReference()) |
| 482 ..e(2, 'operator', GeneratedMessage.QE, () => PropertyFilter_Operator.LESS_T
HAN, (var v) => PropertyFilter_Operator.valueOf(v)) |
| 483 ..a(3, 'value', GeneratedMessage.QM, () => new Value(), () => new Value()) |
| 484 ; |
| 485 |
| 486 PropertyFilter() : super(); |
| 487 PropertyFilter.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistr
y.EMPTY]) : super.fromBuffer(i, r); |
| 488 PropertyFilter.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMP
TY]) : super.fromJson(i, r); |
| 489 PropertyFilter clone() => new PropertyFilter()..mergeFromMessage(this); |
| 490 BuilderInfo get info_ => _i; |
| 491 |
| 492 PropertyReference get property => getField(1); |
| 493 void set property(PropertyReference v) { setField(1, v); } |
| 494 bool hasProperty() => hasField(1); |
| 495 void clearProperty() => clearField(1); |
| 496 |
| 497 PropertyFilter_Operator get operator => getField(2); |
| 498 void set operator(PropertyFilter_Operator v) { setField(2, v); } |
| 499 bool hasOperator() => hasField(2); |
| 500 void clearOperator() => clearField(2); |
| 501 |
| 502 Value get value => getField(3); |
| 503 void set value(Value v) { setField(3, v); } |
| 504 bool hasValue() => hasField(3); |
| 505 void clearValue() => clearField(3); |
| 506 } |
| 507 |
| 508 class GqlQuery extends GeneratedMessage { |
| 509 static final BuilderInfo _i = new BuilderInfo('GqlQuery') |
| 510 ..a(1, 'queryString', GeneratedMessage.QS) |
| 511 ..a(2, 'allowLiteral', GeneratedMessage.OB) |
| 512 ..m(3, 'nameArg', () => new GqlQueryArg(), () => new PbList<GqlQueryArg>()) |
| 513 ..m(4, 'numberArg', () => new GqlQueryArg(), () => new PbList<GqlQueryArg>()
) |
| 514 ; |
| 515 |
| 516 GqlQuery() : super(); |
| 517 GqlQuery.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMPT
Y]) : super.fromBuffer(i, r); |
| 518 GqlQuery.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) :
super.fromJson(i, r); |
| 519 GqlQuery clone() => new GqlQuery()..mergeFromMessage(this); |
| 520 BuilderInfo get info_ => _i; |
| 521 |
| 522 String get queryString => getField(1); |
| 523 void set queryString(String v) { setField(1, v); } |
| 524 bool hasQueryString() => hasField(1); |
| 525 void clearQueryString() => clearField(1); |
| 526 |
| 527 bool get allowLiteral => getField(2); |
| 528 void set allowLiteral(bool v) { setField(2, v); } |
| 529 bool hasAllowLiteral() => hasField(2); |
| 530 void clearAllowLiteral() => clearField(2); |
| 531 |
| 532 List<GqlQueryArg> get nameArg => getField(3); |
| 533 |
| 534 List<GqlQueryArg> get numberArg => getField(4); |
| 535 } |
| 536 |
| 537 class GqlQueryArg extends GeneratedMessage { |
| 538 static final BuilderInfo _i = new BuilderInfo('GqlQueryArg') |
| 539 ..a(1, 'name', GeneratedMessage.OS) |
| 540 ..a(2, 'value', GeneratedMessage.OM, () => new Value(), () => new Value()) |
| 541 ..a(3, 'cursor', GeneratedMessage.OY) |
| 542 ; |
| 543 |
| 544 GqlQueryArg() : super(); |
| 545 GqlQueryArg.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.E
MPTY]) : super.fromBuffer(i, r); |
| 546 GqlQueryArg.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]
) : super.fromJson(i, r); |
| 547 GqlQueryArg clone() => new GqlQueryArg()..mergeFromMessage(this); |
| 548 BuilderInfo get info_ => _i; |
| 549 |
| 550 String get name => getField(1); |
| 551 void set name(String v) { setField(1, v); } |
| 552 bool hasName() => hasField(1); |
| 553 void clearName() => clearField(1); |
| 554 |
| 555 Value get value => getField(2); |
| 556 void set value(Value v) { setField(2, v); } |
| 557 bool hasValue() => hasField(2); |
| 558 void clearValue() => clearField(2); |
| 559 |
| 560 List<int> get cursor => getField(3); |
| 561 void set cursor(List<int> v) { setField(3, v); } |
| 562 bool hasCursor() => hasField(3); |
| 563 void clearCursor() => clearField(3); |
| 564 } |
| 565 |
| 566 class QueryResultBatch_MoreResultsType extends ProtobufEnum { |
| 567 static const QueryResultBatch_MoreResultsType NOT_FINISHED = const QueryResult
Batch_MoreResultsType._(1, 'NOT_FINISHED'); |
| 568 static const QueryResultBatch_MoreResultsType MORE_RESULTS_AFTER_LIMIT = const
QueryResultBatch_MoreResultsType._(2, 'MORE_RESULTS_AFTER_LIMIT'); |
| 569 static const QueryResultBatch_MoreResultsType NO_MORE_RESULTS = const QueryRes
ultBatch_MoreResultsType._(3, 'NO_MORE_RESULTS'); |
| 570 |
| 571 static const List<QueryResultBatch_MoreResultsType> values = const <QueryResul
tBatch_MoreResultsType> [ |
| 572 NOT_FINISHED, |
| 573 MORE_RESULTS_AFTER_LIMIT, |
| 574 NO_MORE_RESULTS, |
| 575 ]; |
| 576 |
| 577 static final Map<int, QueryResultBatch_MoreResultsType> _byValue = ProtobufEnu
m.initByValue(values); |
| 578 static QueryResultBatch_MoreResultsType valueOf(int value) => _byValue[value]; |
| 579 |
| 580 const QueryResultBatch_MoreResultsType._(int v, String n) : super(v, n); |
| 581 } |
| 582 |
| 583 class QueryResultBatch extends GeneratedMessage { |
| 584 static final BuilderInfo _i = new BuilderInfo('QueryResultBatch') |
| 585 ..e(1, 'entityResultType', GeneratedMessage.QE, () => EntityResult_ResultTyp
e.FULL, (var v) => EntityResult_ResultType.valueOf(v)) |
| 586 ..m(2, 'entityResult', () => new EntityResult(), () => new PbList<EntityResu
lt>()) |
| 587 ..a(4, 'endCursor', GeneratedMessage.OY) |
| 588 ..e(5, 'moreResults', GeneratedMessage.QE, () => QueryResultBatch_MoreResult
sType.NOT_FINISHED, (var v) => QueryResultBatch_MoreResultsType.valueOf(v)) |
| 589 ..a(6, 'skippedResults', GeneratedMessage.O3) |
| 590 ; |
| 591 |
| 592 QueryResultBatch() : super(); |
| 593 QueryResultBatch.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegis
try.EMPTY]) : super.fromBuffer(i, r); |
| 594 QueryResultBatch.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.E
MPTY]) : super.fromJson(i, r); |
| 595 QueryResultBatch clone() => new QueryResultBatch()..mergeFromMessage(this); |
| 596 BuilderInfo get info_ => _i; |
| 597 |
| 598 EntityResult_ResultType get entityResultType => getField(1); |
| 599 void set entityResultType(EntityResult_ResultType v) { setField(1, v); } |
| 600 bool hasEntityResultType() => hasField(1); |
| 601 void clearEntityResultType() => clearField(1); |
| 602 |
| 603 List<EntityResult> get entityResult => getField(2); |
| 604 |
| 605 List<int> get endCursor => getField(4); |
| 606 void set endCursor(List<int> v) { setField(4, v); } |
| 607 bool hasEndCursor() => hasField(4); |
| 608 void clearEndCursor() => clearField(4); |
| 609 |
| 610 QueryResultBatch_MoreResultsType get moreResults => getField(5); |
| 611 void set moreResults(QueryResultBatch_MoreResultsType v) { setField(5, v); } |
| 612 bool hasMoreResults() => hasField(5); |
| 613 void clearMoreResults() => clearField(5); |
| 614 |
| 615 int get skippedResults => getField(6); |
| 616 void set skippedResults(int v) { setField(6, v); } |
| 617 bool hasSkippedResults() => hasField(6); |
| 618 void clearSkippedResults() => clearField(6); |
| 619 } |
| 620 |
| 621 class Mutation extends GeneratedMessage { |
| 622 static final BuilderInfo _i = new BuilderInfo('Mutation') |
| 623 ..m(1, 'upsert', () => new Entity(), () => new PbList<Entity>()) |
| 624 ..m(2, 'update', () => new Entity(), () => new PbList<Entity>()) |
| 625 ..m(3, 'insert', () => new Entity(), () => new PbList<Entity>()) |
| 626 ..m(4, 'insertAutoId', () => new Entity(), () => new PbList<Entity>()) |
| 627 ..m(5, 'delete', () => new Key(), () => new PbList<Key>()) |
| 628 ..a(6, 'force', GeneratedMessage.OB) |
| 629 ; |
| 630 |
| 631 Mutation() : super(); |
| 632 Mutation.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.EMPT
Y]) : super.fromBuffer(i, r); |
| 633 Mutation.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]) :
super.fromJson(i, r); |
| 634 Mutation clone() => new Mutation()..mergeFromMessage(this); |
| 635 BuilderInfo get info_ => _i; |
| 636 |
| 637 List<Entity> get upsert => getField(1); |
| 638 |
| 639 List<Entity> get update => getField(2); |
| 640 |
| 641 List<Entity> get insert => getField(3); |
| 642 |
| 643 List<Entity> get insertAutoId => getField(4); |
| 644 |
| 645 List<Key> get delete => getField(5); |
| 646 |
| 647 bool get force => getField(6); |
| 648 void set force(bool v) { setField(6, v); } |
| 649 bool hasForce() => hasField(6); |
| 650 void clearForce() => clearField(6); |
| 651 } |
| 652 |
| 653 class MutationResult extends GeneratedMessage { |
| 654 static final BuilderInfo _i = new BuilderInfo('MutationResult') |
| 655 ..a(1, 'indexUpdates', GeneratedMessage.Q3) |
| 656 ..m(2, 'insertAutoIdKey', () => new Key(), () => new PbList<Key>()) |
| 657 ; |
| 658 |
| 659 MutationResult() : super(); |
| 660 MutationResult.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistr
y.EMPTY]) : super.fromBuffer(i, r); |
| 661 MutationResult.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMP
TY]) : super.fromJson(i, r); |
| 662 MutationResult clone() => new MutationResult()..mergeFromMessage(this); |
| 663 BuilderInfo get info_ => _i; |
| 664 |
| 665 int get indexUpdates => getField(1); |
| 666 void set indexUpdates(int v) { setField(1, v); } |
| 667 bool hasIndexUpdates() => hasField(1); |
| 668 void clearIndexUpdates() => clearField(1); |
| 669 |
| 670 List<Key> get insertAutoIdKey => getField(2); |
| 671 } |
| 672 |
| 673 class ReadOptions_ReadConsistency extends ProtobufEnum { |
| 674 static const ReadOptions_ReadConsistency DEFAULT = const ReadOptions_ReadConsi
stency._(0, 'DEFAULT'); |
| 675 static const ReadOptions_ReadConsistency STRONG = const ReadOptions_ReadConsis
tency._(1, 'STRONG'); |
| 676 static const ReadOptions_ReadConsistency EVENTUAL = const ReadOptions_ReadCons
istency._(2, 'EVENTUAL'); |
| 677 |
| 678 static const List<ReadOptions_ReadConsistency> values = const <ReadOptions_Rea
dConsistency> [ |
| 679 DEFAULT, |
| 680 STRONG, |
| 681 EVENTUAL, |
| 682 ]; |
| 683 |
| 684 static final Map<int, ReadOptions_ReadConsistency> _byValue = ProtobufEnum.ini
tByValue(values); |
| 685 static ReadOptions_ReadConsistency valueOf(int value) => _byValue[value]; |
| 686 |
| 687 const ReadOptions_ReadConsistency._(int v, String n) : super(v, n); |
| 688 } |
| 689 |
| 690 class ReadOptions extends GeneratedMessage { |
| 691 static final BuilderInfo _i = new BuilderInfo('ReadOptions') |
| 692 ..e(1, 'readConsistency', GeneratedMessage.OE, () => ReadOptions_ReadConsist
ency.DEFAULT, (var v) => ReadOptions_ReadConsistency.valueOf(v)) |
| 693 ..a(2, 'transaction', GeneratedMessage.OY) |
| 694 ..hasRequiredFields = false |
| 695 ; |
| 696 |
| 697 ReadOptions() : super(); |
| 698 ReadOptions.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry.E
MPTY]) : super.fromBuffer(i, r); |
| 699 ReadOptions.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPTY]
) : super.fromJson(i, r); |
| 700 ReadOptions clone() => new ReadOptions()..mergeFromMessage(this); |
| 701 BuilderInfo get info_ => _i; |
| 702 |
| 703 ReadOptions_ReadConsistency get readConsistency => getField(1); |
| 704 void set readConsistency(ReadOptions_ReadConsistency v) { setField(1, v); } |
| 705 bool hasReadConsistency() => hasField(1); |
| 706 void clearReadConsistency() => clearField(1); |
| 707 |
| 708 List<int> get transaction => getField(2); |
| 709 void set transaction(List<int> v) { setField(2, v); } |
| 710 bool hasTransaction() => hasField(2); |
| 711 void clearTransaction() => clearField(2); |
| 712 } |
| 713 |
| 714 class LookupRequest extends GeneratedMessage { |
| 715 static final BuilderInfo _i = new BuilderInfo('LookupRequest') |
| 716 ..a(1, 'readOptions', GeneratedMessage.OM, () => new ReadOptions(), () => ne
w ReadOptions()) |
| 717 ..m(3, 'key', () => new Key(), () => new PbList<Key>()) |
| 718 ; |
| 719 |
| 720 LookupRequest() : super(); |
| 721 LookupRequest.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry
.EMPTY]) : super.fromBuffer(i, r); |
| 722 LookupRequest.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPT
Y]) : super.fromJson(i, r); |
| 723 LookupRequest clone() => new LookupRequest()..mergeFromMessage(this); |
| 724 BuilderInfo get info_ => _i; |
| 725 |
| 726 ReadOptions get readOptions => getField(1); |
| 727 void set readOptions(ReadOptions v) { setField(1, v); } |
| 728 bool hasReadOptions() => hasField(1); |
| 729 void clearReadOptions() => clearField(1); |
| 730 |
| 731 List<Key> get key => getField(3); |
| 732 } |
| 733 |
| 734 class LookupResponse extends GeneratedMessage { |
| 735 static final BuilderInfo _i = new BuilderInfo('LookupResponse') |
| 736 ..m(1, 'found', () => new EntityResult(), () => new PbList<EntityResult>()) |
| 737 ..m(2, 'missing', () => new EntityResult(), () => new PbList<EntityResult>()
) |
| 738 ..m(3, 'deferred', () => new Key(), () => new PbList<Key>()) |
| 739 ; |
| 740 |
| 741 LookupResponse() : super(); |
| 742 LookupResponse.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistr
y.EMPTY]) : super.fromBuffer(i, r); |
| 743 LookupResponse.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMP
TY]) : super.fromJson(i, r); |
| 744 LookupResponse clone() => new LookupResponse()..mergeFromMessage(this); |
| 745 BuilderInfo get info_ => _i; |
| 746 |
| 747 List<EntityResult> get found => getField(1); |
| 748 |
| 749 List<EntityResult> get missing => getField(2); |
| 750 |
| 751 List<Key> get deferred => getField(3); |
| 752 } |
| 753 |
| 754 class RunQueryRequest extends GeneratedMessage { |
| 755 static final BuilderInfo _i = new BuilderInfo('RunQueryRequest') |
| 756 ..a(1, 'readOptions', GeneratedMessage.OM, () => new ReadOptions(), () => ne
w ReadOptions()) |
| 757 ..a(2, 'partitionId', GeneratedMessage.OM, () => new PartitionId(), () => ne
w PartitionId()) |
| 758 ..a(3, 'query', GeneratedMessage.OM, () => new Query(), () => new Query()) |
| 759 ..a(7, 'gqlQuery', GeneratedMessage.OM, () => new GqlQuery(), () => new GqlQ
uery()) |
| 760 ; |
| 761 |
| 762 RunQueryRequest() : super(); |
| 763 RunQueryRequest.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegist
ry.EMPTY]) : super.fromBuffer(i, r); |
| 764 RunQueryRequest.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EM
PTY]) : super.fromJson(i, r); |
| 765 RunQueryRequest clone() => new RunQueryRequest()..mergeFromMessage(this); |
| 766 BuilderInfo get info_ => _i; |
| 767 |
| 768 ReadOptions get readOptions => getField(1); |
| 769 void set readOptions(ReadOptions v) { setField(1, v); } |
| 770 bool hasReadOptions() => hasField(1); |
| 771 void clearReadOptions() => clearField(1); |
| 772 |
| 773 PartitionId get partitionId => getField(2); |
| 774 void set partitionId(PartitionId v) { setField(2, v); } |
| 775 bool hasPartitionId() => hasField(2); |
| 776 void clearPartitionId() => clearField(2); |
| 777 |
| 778 Query get query => getField(3); |
| 779 void set query(Query v) { setField(3, v); } |
| 780 bool hasQuery() => hasField(3); |
| 781 void clearQuery() => clearField(3); |
| 782 |
| 783 GqlQuery get gqlQuery => getField(7); |
| 784 void set gqlQuery(GqlQuery v) { setField(7, v); } |
| 785 bool hasGqlQuery() => hasField(7); |
| 786 void clearGqlQuery() => clearField(7); |
| 787 } |
| 788 |
| 789 class RunQueryResponse extends GeneratedMessage { |
| 790 static final BuilderInfo _i = new BuilderInfo('RunQueryResponse') |
| 791 ..a(1, 'batch', GeneratedMessage.OM, () => new QueryResultBatch(), () => new
QueryResultBatch()) |
| 792 ; |
| 793 |
| 794 RunQueryResponse() : super(); |
| 795 RunQueryResponse.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegis
try.EMPTY]) : super.fromBuffer(i, r); |
| 796 RunQueryResponse.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.E
MPTY]) : super.fromJson(i, r); |
| 797 RunQueryResponse clone() => new RunQueryResponse()..mergeFromMessage(this); |
| 798 BuilderInfo get info_ => _i; |
| 799 |
| 800 QueryResultBatch get batch => getField(1); |
| 801 void set batch(QueryResultBatch v) { setField(1, v); } |
| 802 bool hasBatch() => hasField(1); |
| 803 void clearBatch() => clearField(1); |
| 804 } |
| 805 |
| 806 class BeginTransactionRequest_IsolationLevel extends ProtobufEnum { |
| 807 static const BeginTransactionRequest_IsolationLevel SNAPSHOT = const BeginTran
sactionRequest_IsolationLevel._(0, 'SNAPSHOT'); |
| 808 static const BeginTransactionRequest_IsolationLevel SERIALIZABLE = const Begin
TransactionRequest_IsolationLevel._(1, 'SERIALIZABLE'); |
| 809 |
| 810 static const List<BeginTransactionRequest_IsolationLevel> values = const <Begi
nTransactionRequest_IsolationLevel> [ |
| 811 SNAPSHOT, |
| 812 SERIALIZABLE, |
| 813 ]; |
| 814 |
| 815 static final Map<int, BeginTransactionRequest_IsolationLevel> _byValue = Proto
bufEnum.initByValue(values); |
| 816 static BeginTransactionRequest_IsolationLevel valueOf(int value) => _byValue[v
alue]; |
| 817 |
| 818 const BeginTransactionRequest_IsolationLevel._(int v, String n) : super(v, n); |
| 819 } |
| 820 |
| 821 class BeginTransactionRequest extends GeneratedMessage { |
| 822 static final BuilderInfo _i = new BuilderInfo('BeginTransactionRequest') |
| 823 ..e(1, 'isolationLevel', GeneratedMessage.OE, () => BeginTransactionRequest_
IsolationLevel.SNAPSHOT, (var v) => BeginTransactionRequest_IsolationLevel.value
Of(v)) |
| 824 ..hasRequiredFields = false |
| 825 ; |
| 826 |
| 827 BeginTransactionRequest() : super(); |
| 828 BeginTransactionRequest.fromBuffer(List<int> i, [ExtensionRegistry r = Extensi
onRegistry.EMPTY]) : super.fromBuffer(i, r); |
| 829 BeginTransactionRequest.fromJson(String i, [ExtensionRegistry r = ExtensionReg
istry.EMPTY]) : super.fromJson(i, r); |
| 830 BeginTransactionRequest clone() => new BeginTransactionRequest()..mergeFromMes
sage(this); |
| 831 BuilderInfo get info_ => _i; |
| 832 |
| 833 BeginTransactionRequest_IsolationLevel get isolationLevel => getField(1); |
| 834 void set isolationLevel(BeginTransactionRequest_IsolationLevel v) { setField(1
, v); } |
| 835 bool hasIsolationLevel() => hasField(1); |
| 836 void clearIsolationLevel() => clearField(1); |
| 837 } |
| 838 |
| 839 class BeginTransactionResponse extends GeneratedMessage { |
| 840 static final BuilderInfo _i = new BuilderInfo('BeginTransactionResponse') |
| 841 ..a(1, 'transaction', GeneratedMessage.OY) |
| 842 ..hasRequiredFields = false |
| 843 ; |
| 844 |
| 845 BeginTransactionResponse() : super(); |
| 846 BeginTransactionResponse.fromBuffer(List<int> i, [ExtensionRegistry r = Extens
ionRegistry.EMPTY]) : super.fromBuffer(i, r); |
| 847 BeginTransactionResponse.fromJson(String i, [ExtensionRegistry r = ExtensionRe
gistry.EMPTY]) : super.fromJson(i, r); |
| 848 BeginTransactionResponse clone() => new BeginTransactionResponse()..mergeFromM
essage(this); |
| 849 BuilderInfo get info_ => _i; |
| 850 |
| 851 List<int> get transaction => getField(1); |
| 852 void set transaction(List<int> v) { setField(1, v); } |
| 853 bool hasTransaction() => hasField(1); |
| 854 void clearTransaction() => clearField(1); |
| 855 } |
| 856 |
| 857 class RollbackRequest extends GeneratedMessage { |
| 858 static final BuilderInfo _i = new BuilderInfo('RollbackRequest') |
| 859 ..a(1, 'transaction', GeneratedMessage.QY) |
| 860 ; |
| 861 |
| 862 RollbackRequest() : super(); |
| 863 RollbackRequest.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegist
ry.EMPTY]) : super.fromBuffer(i, r); |
| 864 RollbackRequest.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EM
PTY]) : super.fromJson(i, r); |
| 865 RollbackRequest clone() => new RollbackRequest()..mergeFromMessage(this); |
| 866 BuilderInfo get info_ => _i; |
| 867 |
| 868 List<int> get transaction => getField(1); |
| 869 void set transaction(List<int> v) { setField(1, v); } |
| 870 bool hasTransaction() => hasField(1); |
| 871 void clearTransaction() => clearField(1); |
| 872 } |
| 873 |
| 874 class RollbackResponse extends GeneratedMessage { |
| 875 static final BuilderInfo _i = new BuilderInfo('RollbackResponse') |
| 876 ..hasRequiredFields = false |
| 877 ; |
| 878 |
| 879 RollbackResponse() : super(); |
| 880 RollbackResponse.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegis
try.EMPTY]) : super.fromBuffer(i, r); |
| 881 RollbackResponse.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.E
MPTY]) : super.fromJson(i, r); |
| 882 RollbackResponse clone() => new RollbackResponse()..mergeFromMessage(this); |
| 883 BuilderInfo get info_ => _i; |
| 884 } |
| 885 |
| 886 class CommitRequest_Mode extends ProtobufEnum { |
| 887 static const CommitRequest_Mode TRANSACTIONAL = const CommitRequest_Mode._(1,
'TRANSACTIONAL'); |
| 888 static const CommitRequest_Mode NON_TRANSACTIONAL = const CommitRequest_Mode._
(2, 'NON_TRANSACTIONAL'); |
| 889 |
| 890 static const List<CommitRequest_Mode> values = const <CommitRequest_Mode> [ |
| 891 TRANSACTIONAL, |
| 892 NON_TRANSACTIONAL, |
| 893 ]; |
| 894 |
| 895 static final Map<int, CommitRequest_Mode> _byValue = ProtobufEnum.initByValue(
values); |
| 896 static CommitRequest_Mode valueOf(int value) => _byValue[value]; |
| 897 |
| 898 const CommitRequest_Mode._(int v, String n) : super(v, n); |
| 899 } |
| 900 |
| 901 class CommitRequest extends GeneratedMessage { |
| 902 static final BuilderInfo _i = new BuilderInfo('CommitRequest') |
| 903 ..a(1, 'transaction', GeneratedMessage.OY) |
| 904 ..a(2, 'mutation', GeneratedMessage.OM, () => new Mutation(), () => new Muta
tion()) |
| 905 ..e(5, 'mode', GeneratedMessage.OE, () => CommitRequest_Mode.TRANSACTIONAL,
(var v) => CommitRequest_Mode.valueOf(v)) |
| 906 ; |
| 907 |
| 908 CommitRequest() : super(); |
| 909 CommitRequest.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistry
.EMPTY]) : super.fromBuffer(i, r); |
| 910 CommitRequest.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMPT
Y]) : super.fromJson(i, r); |
| 911 CommitRequest clone() => new CommitRequest()..mergeFromMessage(this); |
| 912 BuilderInfo get info_ => _i; |
| 913 |
| 914 List<int> get transaction => getField(1); |
| 915 void set transaction(List<int> v) { setField(1, v); } |
| 916 bool hasTransaction() => hasField(1); |
| 917 void clearTransaction() => clearField(1); |
| 918 |
| 919 Mutation get mutation => getField(2); |
| 920 void set mutation(Mutation v) { setField(2, v); } |
| 921 bool hasMutation() => hasField(2); |
| 922 void clearMutation() => clearField(2); |
| 923 |
| 924 CommitRequest_Mode get mode => getField(5); |
| 925 void set mode(CommitRequest_Mode v) { setField(5, v); } |
| 926 bool hasMode() => hasField(5); |
| 927 void clearMode() => clearField(5); |
| 928 } |
| 929 |
| 930 class CommitResponse extends GeneratedMessage { |
| 931 static final BuilderInfo _i = new BuilderInfo('CommitResponse') |
| 932 ..a(1, 'mutationResult', GeneratedMessage.OM, () => new MutationResult(), ()
=> new MutationResult()) |
| 933 ; |
| 934 |
| 935 CommitResponse() : super(); |
| 936 CommitResponse.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRegistr
y.EMPTY]) : super.fromBuffer(i, r); |
| 937 CommitResponse.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry.EMP
TY]) : super.fromJson(i, r); |
| 938 CommitResponse clone() => new CommitResponse()..mergeFromMessage(this); |
| 939 BuilderInfo get info_ => _i; |
| 940 |
| 941 MutationResult get mutationResult => getField(1); |
| 942 void set mutationResult(MutationResult v) { setField(1, v); } |
| 943 bool hasMutationResult() => hasField(1); |
| 944 void clearMutationResult() => clearField(1); |
| 945 } |
| 946 |
| 947 class AllocateIdsRequest extends GeneratedMessage { |
| 948 static final BuilderInfo _i = new BuilderInfo('AllocateIdsRequest') |
| 949 ..m(1, 'key', () => new Key(), () => new PbList<Key>()) |
| 950 ; |
| 951 |
| 952 AllocateIdsRequest() : super(); |
| 953 AllocateIdsRequest.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionReg
istry.EMPTY]) : super.fromBuffer(i, r); |
| 954 AllocateIdsRequest.fromJson(String i, [ExtensionRegistry r = ExtensionRegistry
.EMPTY]) : super.fromJson(i, r); |
| 955 AllocateIdsRequest clone() => new AllocateIdsRequest()..mergeFromMessage(this)
; |
| 956 BuilderInfo get info_ => _i; |
| 957 |
| 958 List<Key> get key => getField(1); |
| 959 } |
| 960 |
| 961 class AllocateIdsResponse extends GeneratedMessage { |
| 962 static final BuilderInfo _i = new BuilderInfo('AllocateIdsResponse') |
| 963 ..m(1, 'key', () => new Key(), () => new PbList<Key>()) |
| 964 ; |
| 965 |
| 966 AllocateIdsResponse() : super(); |
| 967 AllocateIdsResponse.fromBuffer(List<int> i, [ExtensionRegistry r = ExtensionRe
gistry.EMPTY]) : super.fromBuffer(i, r); |
| 968 AllocateIdsResponse.fromJson(String i, [ExtensionRegistry r = ExtensionRegistr
y.EMPTY]) : super.fromJson(i, r); |
| 969 AllocateIdsResponse clone() => new AllocateIdsResponse()..mergeFromMessage(thi
s); |
| 970 BuilderInfo get info_ => _i; |
| 971 |
| 972 List<Key> get key => getField(1); |
| 973 } |
| 974 |
OLD | NEW |