kv.pb.dart 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. ///
  2. // Generated code. Do not modify.
  3. // source: kv.proto
  4. //
  5. // @dart = 2.12
  6. // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
  7. import 'dart:core' as $core;
  8. import 'package:fixnum/fixnum.dart' as $fixnum;
  9. import 'package:protobuf/protobuf.dart' as $pb;
  10. enum KeyValue_OneOfStrValue {
  11. strValue,
  12. notSet
  13. }
  14. enum KeyValue_OneOfIntValue {
  15. intValue,
  16. notSet
  17. }
  18. enum KeyValue_OneOfFloatValue {
  19. floatValue,
  20. notSet
  21. }
  22. enum KeyValue_OneOfBoolValue {
  23. boolValue,
  24. notSet
  25. }
  26. class KeyValue extends $pb.GeneratedMessage {
  27. static const $core.Map<$core.int, KeyValue_OneOfStrValue> _KeyValue_OneOfStrValueByTag = {
  28. 2 : KeyValue_OneOfStrValue.strValue,
  29. 0 : KeyValue_OneOfStrValue.notSet
  30. };
  31. static const $core.Map<$core.int, KeyValue_OneOfIntValue> _KeyValue_OneOfIntValueByTag = {
  32. 3 : KeyValue_OneOfIntValue.intValue,
  33. 0 : KeyValue_OneOfIntValue.notSet
  34. };
  35. static const $core.Map<$core.int, KeyValue_OneOfFloatValue> _KeyValue_OneOfFloatValueByTag = {
  36. 4 : KeyValue_OneOfFloatValue.floatValue,
  37. 0 : KeyValue_OneOfFloatValue.notSet
  38. };
  39. static const $core.Map<$core.int, KeyValue_OneOfBoolValue> _KeyValue_OneOfBoolValueByTag = {
  40. 5 : KeyValue_OneOfBoolValue.boolValue,
  41. 0 : KeyValue_OneOfBoolValue.notSet
  42. };
  43. static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'KeyValue', createEmptyInstance: create)
  44. ..oo(0, [2])
  45. ..oo(1, [3])
  46. ..oo(2, [4])
  47. ..oo(3, [5])
  48. ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'key')
  49. ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'strValue')
  50. ..aInt64(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'intValue')
  51. ..a<$core.double>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'floatValue', $pb.PbFieldType.OD)
  52. ..aOB(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'boolValue')
  53. ..hasRequiredFields = false
  54. ;
  55. KeyValue._() : super();
  56. factory KeyValue({
  57. $core.String? key,
  58. $core.String? strValue,
  59. $fixnum.Int64? intValue,
  60. $core.double? floatValue,
  61. $core.bool? boolValue,
  62. }) {
  63. final _result = create();
  64. if (key != null) {
  65. _result.key = key;
  66. }
  67. if (strValue != null) {
  68. _result.strValue = strValue;
  69. }
  70. if (intValue != null) {
  71. _result.intValue = intValue;
  72. }
  73. if (floatValue != null) {
  74. _result.floatValue = floatValue;
  75. }
  76. if (boolValue != null) {
  77. _result.boolValue = boolValue;
  78. }
  79. return _result;
  80. }
  81. factory KeyValue.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  82. factory KeyValue.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
  83. @$core.Deprecated(
  84. 'Using this can add significant overhead to your binary. '
  85. 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  86. 'Will be removed in next major version')
  87. KeyValue clone() => KeyValue()..mergeFromMessage(this);
  88. @$core.Deprecated(
  89. 'Using this can add significant overhead to your binary. '
  90. 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  91. 'Will be removed in next major version')
  92. KeyValue copyWith(void Function(KeyValue) updates) => super.copyWith((message) => updates(message as KeyValue)) as KeyValue; // ignore: deprecated_member_use
  93. $pb.BuilderInfo get info_ => _i;
  94. @$core.pragma('dart2js:noInline')
  95. static KeyValue create() => KeyValue._();
  96. KeyValue createEmptyInstance() => create();
  97. static $pb.PbList<KeyValue> createRepeated() => $pb.PbList<KeyValue>();
  98. @$core.pragma('dart2js:noInline')
  99. static KeyValue getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<KeyValue>(create);
  100. static KeyValue? _defaultInstance;
  101. KeyValue_OneOfStrValue whichOneOfStrValue() => _KeyValue_OneOfStrValueByTag[$_whichOneof(0)]!;
  102. void clearOneOfStrValue() => clearField($_whichOneof(0));
  103. KeyValue_OneOfIntValue whichOneOfIntValue() => _KeyValue_OneOfIntValueByTag[$_whichOneof(1)]!;
  104. void clearOneOfIntValue() => clearField($_whichOneof(1));
  105. KeyValue_OneOfFloatValue whichOneOfFloatValue() => _KeyValue_OneOfFloatValueByTag[$_whichOneof(2)]!;
  106. void clearOneOfFloatValue() => clearField($_whichOneof(2));
  107. KeyValue_OneOfBoolValue whichOneOfBoolValue() => _KeyValue_OneOfBoolValueByTag[$_whichOneof(3)]!;
  108. void clearOneOfBoolValue() => clearField($_whichOneof(3));
  109. @$pb.TagNumber(1)
  110. $core.String get key => $_getSZ(0);
  111. @$pb.TagNumber(1)
  112. set key($core.String v) { $_setString(0, v); }
  113. @$pb.TagNumber(1)
  114. $core.bool hasKey() => $_has(0);
  115. @$pb.TagNumber(1)
  116. void clearKey() => clearField(1);
  117. @$pb.TagNumber(2)
  118. $core.String get strValue => $_getSZ(1);
  119. @$pb.TagNumber(2)
  120. set strValue($core.String v) { $_setString(1, v); }
  121. @$pb.TagNumber(2)
  122. $core.bool hasStrValue() => $_has(1);
  123. @$pb.TagNumber(2)
  124. void clearStrValue() => clearField(2);
  125. @$pb.TagNumber(3)
  126. $fixnum.Int64 get intValue => $_getI64(2);
  127. @$pb.TagNumber(3)
  128. set intValue($fixnum.Int64 v) { $_setInt64(2, v); }
  129. @$pb.TagNumber(3)
  130. $core.bool hasIntValue() => $_has(2);
  131. @$pb.TagNumber(3)
  132. void clearIntValue() => clearField(3);
  133. @$pb.TagNumber(4)
  134. $core.double get floatValue => $_getN(3);
  135. @$pb.TagNumber(4)
  136. set floatValue($core.double v) { $_setDouble(3, v); }
  137. @$pb.TagNumber(4)
  138. $core.bool hasFloatValue() => $_has(3);
  139. @$pb.TagNumber(4)
  140. void clearFloatValue() => clearField(4);
  141. @$pb.TagNumber(5)
  142. $core.bool get boolValue => $_getBF(4);
  143. @$pb.TagNumber(5)
  144. set boolValue($core.bool v) { $_setBool(4, v); }
  145. @$pb.TagNumber(5)
  146. $core.bool hasBoolValue() => $_has(4);
  147. @$pb.TagNumber(5)
  148. void clearBoolValue() => clearField(5);
  149. }