@kenji71089/evaluation 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/.release-please-manifest.json +3 -0
  2. package/README.md +9 -0
  3. package/eslint.config.mjs +27 -0
  4. package/lib/clauseEvaluator.d.ts +22 -0
  5. package/lib/clauseEvaluator.js +299 -0
  6. package/lib/clauseEvaluator.mjs +214 -0
  7. package/lib/dependencyEvaluator.d.ts +6 -0
  8. package/lib/dependencyEvaluator.js +46 -0
  9. package/lib/dependencyEvaluator.mjs +19 -0
  10. package/lib/errors.d.ts +9 -0
  11. package/lib/errors.js +15 -0
  12. package/lib/errors.mjs +12 -0
  13. package/lib/evaluation.d.ts +25 -0
  14. package/lib/evaluation.js +503 -0
  15. package/lib/evaluation.mjs +328 -0
  16. package/lib/google/api/annotations_pb.d.ts +8 -0
  17. package/lib/google/api/annotations_pb.js +40 -0
  18. package/lib/google/api/annotations_pb.mjs +54 -0
  19. package/lib/google/api/annotations_pb_service.d.ts +3 -0
  20. package/lib/google/api/annotations_pb_service.js +3 -0
  21. package/lib/google/api/annotations_pb_service.mjs +3 -0
  22. package/lib/google/api/http_pb.d.ts +132 -0
  23. package/lib/google/api/http_pb.js +860 -0
  24. package/lib/google/api/http_pb.mjs +982 -0
  25. package/lib/google/api/http_pb_service.d.ts +3 -0
  26. package/lib/google/api/http_pb_service.js +3 -0
  27. package/lib/google/api/http_pb_service.mjs +3 -0
  28. package/lib/google/rpc/code_pb.d.ts +26 -0
  29. package/lib/google/rpc/code_pb.js +44 -0
  30. package/lib/google/rpc/code_pb.mjs +48 -0
  31. package/lib/google/rpc/code_pb_service.d.ts +3 -0
  32. package/lib/google/rpc/code_pb_service.js +3 -0
  33. package/lib/google/rpc/code_pb_service.mjs +3 -0
  34. package/lib/google/rpc/error_details_pb.d.ts +322 -0
  35. package/lib/google/rpc/error_details_pb.js +2220 -0
  36. package/lib/google/rpc/error_details_pb.mjs +2499 -0
  37. package/lib/google/rpc/error_details_pb_service.d.ts +3 -0
  38. package/lib/google/rpc/error_details_pb_service.js +3 -0
  39. package/lib/google/rpc/error_details_pb_service.mjs +3 -0
  40. package/lib/google/rpc/status_pb.d.ts +36 -0
  41. package/lib/google/rpc/status_pb.js +235 -0
  42. package/lib/google/rpc/status_pb.mjs +268 -0
  43. package/lib/google/rpc/status_pb_service.d.ts +3 -0
  44. package/lib/google/rpc/status_pb_service.js +3 -0
  45. package/lib/google/rpc/status_pb_service.mjs +3 -0
  46. package/lib/index.d.ts +20 -0
  47. package/lib/index.js +199 -0
  48. package/lib/index.mjs +46 -0
  49. package/lib/modelFactory.d.ts +64 -0
  50. package/lib/modelFactory.js +206 -0
  51. package/lib/modelFactory.mjs +176 -0
  52. package/lib/proto/event/client/event_pb.d.ts +761 -0
  53. package/lib/proto/event/client/event_pb.js +5195 -0
  54. package/lib/proto/event/client/event_pb.mjs +5865 -0
  55. package/lib/proto/event/client/event_pb_service.d.ts +3 -0
  56. package/lib/proto/event/client/event_pb_service.js +3 -0
  57. package/lib/proto/event/client/event_pb_service.mjs +3 -0
  58. package/lib/proto/event/domain/event_pb.d.ts +4518 -0
  59. package/lib/proto/event/domain/event_pb.js +10834 -0
  60. package/lib/proto/event/domain/event_pb.mjs +33315 -0
  61. package/lib/proto/event/domain/event_pb_service.d.ts +3 -0
  62. package/lib/proto/event/domain/event_pb_service.js +3 -0
  63. package/lib/proto/event/domain/event_pb_service.mjs +3 -0
  64. package/lib/proto/event/domain/localized_message_pb.d.ts +29 -0
  65. package/lib/proto/event/domain/localized_message_pb.js +183 -0
  66. package/lib/proto/event/domain/localized_message_pb.mjs +206 -0
  67. package/lib/proto/event/domain/localized_message_pb_service.d.ts +3 -0
  68. package/lib/proto/event/domain/localized_message_pb_service.js +3 -0
  69. package/lib/proto/event/domain/localized_message_pb_service.mjs +3 -0
  70. package/lib/proto/event/service/feature_pb.d.ts +44 -0
  71. package/lib/proto/event/service/feature_pb.js +277 -0
  72. package/lib/proto/event/service/feature_pb.mjs +319 -0
  73. package/lib/proto/event/service/feature_pb_service.d.ts +3 -0
  74. package/lib/proto/event/service/feature_pb_service.js +3 -0
  75. package/lib/proto/event/service/feature_pb_service.mjs +3 -0
  76. package/lib/proto/event/service/segment_pb.d.ts +51 -0
  77. package/lib/proto/event/service/segment_pb.js +324 -0
  78. package/lib/proto/event/service/segment_pb.mjs +375 -0
  79. package/lib/proto/event/service/segment_pb_service.d.ts +3 -0
  80. package/lib/proto/event/service/segment_pb_service.js +3 -0
  81. package/lib/proto/event/service/segment_pb_service.mjs +3 -0
  82. package/lib/proto/event/service/user_pb.d.ts +49 -0
  83. package/lib/proto/event/service/user_pb.js +315 -0
  84. package/lib/proto/event/service/user_pb.mjs +362 -0
  85. package/lib/proto/event/service/user_pb_service.d.ts +3 -0
  86. package/lib/proto/event/service/user_pb_service.js +3 -0
  87. package/lib/proto/event/service/user_pb_service.mjs +3 -0
  88. package/lib/proto/feature/clause_pb.d.ts +57 -0
  89. package/lib/proto/feature/clause_pb.js +277 -0
  90. package/lib/proto/feature/clause_pb.mjs +312 -0
  91. package/lib/proto/feature/clause_pb_service.d.ts +3 -0
  92. package/lib/proto/feature/clause_pb_service.js +3 -0
  93. package/lib/proto/feature/clause_pb_service.mjs +3 -0
  94. package/lib/proto/feature/command_pb.d.ts +1213 -0
  95. package/lib/proto/feature/command_pb.js +8260 -0
  96. package/lib/proto/feature/command_pb.mjs +9275 -0
  97. package/lib/proto/feature/command_pb_service.d.ts +3 -0
  98. package/lib/proto/feature/command_pb_service.js +3 -0
  99. package/lib/proto/feature/command_pb_service.mjs +3 -0
  100. package/lib/proto/feature/evaluation_pb.d.ts +111 -0
  101. package/lib/proto/feature/evaluation_pb.js +685 -0
  102. package/lib/proto/feature/evaluation_pb.mjs +793 -0
  103. package/lib/proto/feature/evaluation_pb_service.d.ts +3 -0
  104. package/lib/proto/feature/evaluation_pb_service.js +3 -0
  105. package/lib/proto/feature/evaluation_pb_service.mjs +3 -0
  106. package/lib/proto/feature/feature_last_used_info_pb.d.ts +45 -0
  107. package/lib/proto/feature/feature_last_used_info_pb.js +283 -0
  108. package/lib/proto/feature/feature_last_used_info_pb.mjs +326 -0
  109. package/lib/proto/feature/feature_last_used_info_pb_service.d.ts +3 -0
  110. package/lib/proto/feature/feature_last_used_info_pb_service.js +3 -0
  111. package/lib/proto/feature/feature_last_used_info_pb_service.mjs +3 -0
  112. package/lib/proto/feature/feature_pb.d.ts +192 -0
  113. package/lib/proto/feature/feature_pb.js +1210 -0
  114. package/lib/proto/feature/feature_pb.mjs +1413 -0
  115. package/lib/proto/feature/feature_pb_service.d.ts +3 -0
  116. package/lib/proto/feature/feature_pb_service.js +3 -0
  117. package/lib/proto/feature/feature_pb_service.mjs +3 -0
  118. package/lib/proto/feature/flag_trigger_pb.d.ts +84 -0
  119. package/lib/proto/feature/flag_trigger_pb.js +452 -0
  120. package/lib/proto/feature/flag_trigger_pb.mjs +525 -0
  121. package/lib/proto/feature/flag_trigger_pb_service.d.ts +3 -0
  122. package/lib/proto/feature/flag_trigger_pb_service.js +3 -0
  123. package/lib/proto/feature/flag_trigger_pb_service.mjs +3 -0
  124. package/lib/proto/feature/prerequisite_pb.d.ts +29 -0
  125. package/lib/proto/feature/prerequisite_pb.js +183 -0
  126. package/lib/proto/feature/prerequisite_pb.mjs +206 -0
  127. package/lib/proto/feature/prerequisite_pb_service.d.ts +3 -0
  128. package/lib/proto/feature/prerequisite_pb_service.js +3 -0
  129. package/lib/proto/feature/prerequisite_pb_service.mjs +3 -0
  130. package/lib/proto/feature/reason_pb.d.ts +40 -0
  131. package/lib/proto/feature/reason_pb.js +196 -0
  132. package/lib/proto/feature/reason_pb.mjs +219 -0
  133. package/lib/proto/feature/reason_pb_service.d.ts +3 -0
  134. package/lib/proto/feature/reason_pb_service.js +3 -0
  135. package/lib/proto/feature/reason_pb_service.mjs +3 -0
  136. package/lib/proto/feature/rule_pb.d.ts +39 -0
  137. package/lib/proto/feature/rule_pb.js +254 -0
  138. package/lib/proto/feature/rule_pb.mjs +291 -0
  139. package/lib/proto/feature/rule_pb_service.d.ts +3 -0
  140. package/lib/proto/feature/rule_pb_service.js +3 -0
  141. package/lib/proto/feature/rule_pb_service.mjs +3 -0
  142. package/lib/proto/feature/segment_pb.d.ts +161 -0
  143. package/lib/proto/feature/segment_pb.js +974 -0
  144. package/lib/proto/feature/segment_pb.mjs +1127 -0
  145. package/lib/proto/feature/segment_pb_service.d.ts +3 -0
  146. package/lib/proto/feature/segment_pb_service.js +3 -0
  147. package/lib/proto/feature/segment_pb_service.mjs +3 -0
  148. package/lib/proto/feature/service_pb.d.ts +2158 -0
  149. package/lib/proto/feature/service_pb.js +5363 -0
  150. package/lib/proto/feature/service_pb.mjs +16348 -0
  151. package/lib/proto/feature/service_pb_service.d.ts +747 -0
  152. package/lib/proto/feature/service_pb_service.js +1424 -0
  153. package/lib/proto/feature/service_pb_service.mjs +1501 -0
  154. package/lib/proto/feature/strategy_pb.d.ts +110 -0
  155. package/lib/proto/feature/strategy_pb.js +712 -0
  156. package/lib/proto/feature/strategy_pb.mjs +803 -0
  157. package/lib/proto/feature/strategy_pb_service.d.ts +3 -0
  158. package/lib/proto/feature/strategy_pb_service.js +3 -0
  159. package/lib/proto/feature/strategy_pb_service.mjs +3 -0
  160. package/lib/proto/feature/target_pb.d.ts +31 -0
  161. package/lib/proto/feature/target_pb.js +207 -0
  162. package/lib/proto/feature/target_pb.mjs +232 -0
  163. package/lib/proto/feature/target_pb_service.d.ts +3 -0
  164. package/lib/proto/feature/target_pb_service.js +3 -0
  165. package/lib/proto/feature/target_pb_service.mjs +3 -0
  166. package/lib/proto/feature/variation_pb.d.ts +37 -0
  167. package/lib/proto/feature/variation_pb.js +233 -0
  168. package/lib/proto/feature/variation_pb.mjs +266 -0
  169. package/lib/proto/feature/variation_pb_service.d.ts +3 -0
  170. package/lib/proto/feature/variation_pb_service.js +3 -0
  171. package/lib/proto/feature/variation_pb_service.mjs +3 -0
  172. package/lib/proto/gateway/service_pb.d.ts +772 -0
  173. package/lib/proto/gateway/service_pb.js +5249 -0
  174. package/lib/proto/gateway/service_pb.mjs +6001 -0
  175. package/lib/proto/gateway/service_pb_service.d.ts +253 -0
  176. package/lib/proto/gateway/service_pb_service.js +436 -0
  177. package/lib/proto/gateway/service_pb_service.mjs +461 -0
  178. package/lib/proto/user/user_pb.d.ts +58 -0
  179. package/lib/proto/user/user_pb.js +410 -0
  180. package/lib/proto/user/user_pb.mjs +460 -0
  181. package/lib/proto/user/user_pb_service.d.ts +3 -0
  182. package/lib/proto/user/user_pb_service.js +3 -0
  183. package/lib/proto/user/user_pb_service.mjs +3 -0
  184. package/lib/protoc-gen-openapiv2/options/annotations_pb.d.ts +16 -0
  185. package/lib/protoc-gen-openapiv2/options/annotations_pb.js +100 -0
  186. package/lib/protoc-gen-openapiv2/options/annotations_pb.mjs +158 -0
  187. package/lib/protoc-gen-openapiv2/options/annotations_pb_service.d.ts +3 -0
  188. package/lib/protoc-gen-openapiv2/options/annotations_pb_service.js +3 -0
  189. package/lib/protoc-gen-openapiv2/options/annotations_pb_service.mjs +3 -0
  190. package/lib/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +834 -0
  191. package/lib/protoc-gen-openapiv2/options/openapiv2_pb.js +5456 -0
  192. package/lib/protoc-gen-openapiv2/options/openapiv2_pb.mjs +6256 -0
  193. package/lib/protoc-gen-openapiv2/options/openapiv2_pb_service.d.ts +3 -0
  194. package/lib/protoc-gen-openapiv2/options/openapiv2_pb_service.js +3 -0
  195. package/lib/protoc-gen-openapiv2/options/openapiv2_pb_service.mjs +3 -0
  196. package/lib/ruleEvaluator.d.ts +13 -0
  197. package/lib/ruleEvaluator.js +80 -0
  198. package/lib/ruleEvaluator.mjs +41 -0
  199. package/lib/segmentEvaluator.d.ts +7 -0
  200. package/lib/segmentEvaluator.js +74 -0
  201. package/lib/segmentEvaluator.mjs +34 -0
  202. package/lib/strategyEvaluator.d.ts +10 -0
  203. package/lib/strategyEvaluator.js +135 -0
  204. package/lib/strategyEvaluator.mjs +83 -0
  205. package/lib/userEvaluation.d.ts +8 -0
  206. package/lib/userEvaluation.js +70 -0
  207. package/lib/userEvaluation.mjs +60 -0
  208. package/package.json +46 -0
  209. package/release-please-config.json +22 -0
@@ -0,0 +1,460 @@
1
+ // source: proto/user/user.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ goog.exportSymbol('proto.bucketeer.user.User', null, global);
25
+ goog.exportSymbol('proto.bucketeer.user.User.Data', null, global);
26
+ /**
27
+ * Generated by JsPbCodeGenerator.
28
+ * @param {Array=} opt_data Optional initial data array, typically from a
29
+ * server response, or constructed directly in Javascript. The array is used
30
+ * in place and becomes part of the constructed object. It is not cloned.
31
+ * If no data is provided, the constructed object will be empty, but still
32
+ * valid.
33
+ * @extends {jspb.Message}
34
+ * @constructor
35
+ */
36
+ proto.bucketeer.user.User = function(opt_data) {
37
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
38
+ };
39
+ goog.inherits(proto.bucketeer.user.User, jspb.Message);
40
+ if (goog.DEBUG && !COMPILED) {
41
+ /**
42
+ * @public
43
+ * @override
44
+ */
45
+ proto.bucketeer.user.User.displayName = 'proto.bucketeer.user.User';
46
+ }
47
+ /**
48
+ * Generated by JsPbCodeGenerator.
49
+ * @param {Array=} opt_data Optional initial data array, typically from a
50
+ * server response, or constructed directly in Javascript. The array is used
51
+ * in place and becomes part of the constructed object. It is not cloned.
52
+ * If no data is provided, the constructed object will be empty, but still
53
+ * valid.
54
+ * @extends {jspb.Message}
55
+ * @constructor
56
+ */
57
+ proto.bucketeer.user.User.Data = function(opt_data) {
58
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
59
+ };
60
+ goog.inherits(proto.bucketeer.user.User.Data, jspb.Message);
61
+ if (goog.DEBUG && !COMPILED) {
62
+ /**
63
+ * @public
64
+ * @override
65
+ */
66
+ proto.bucketeer.user.User.Data.displayName = 'proto.bucketeer.user.User.Data';
67
+ }
68
+
69
+
70
+
71
+ if (jspb.Message.GENERATE_TO_OBJECT) {
72
+ /**
73
+ * Creates an object representation of this proto.
74
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
75
+ * Optional fields that are not set will be set to undefined.
76
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
77
+ * For the list of reserved names please see:
78
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
79
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
80
+ * JSPB instance for transitional soy proto support:
81
+ * http://goto/soy-param-migration
82
+ * @return {!Object}
83
+ */
84
+ proto.bucketeer.user.User.prototype.toObject = function(opt_includeInstance) {
85
+ return proto.bucketeer.user.User.toObject(opt_includeInstance, this);
86
+ };
87
+
88
+
89
+ /**
90
+ * Static version of the {@see toObject} method.
91
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
92
+ * the JSPB instance for transitional soy proto support:
93
+ * http://goto/soy-param-migration
94
+ * @param {!proto.bucketeer.user.User} msg The msg instance to transform.
95
+ * @return {!Object}
96
+ * @suppress {unusedLocalVariables} f is only used for nested messages
97
+ */
98
+ proto.bucketeer.user.User.toObject = function(includeInstance, msg) {
99
+ var f, obj = {
100
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
101
+ dataMap: (f = msg.getDataMap()) ? f.toObject(includeInstance, undefined) : [],
102
+ taggedDataMap: (f = msg.getTaggedDataMap()) ? f.toObject(includeInstance, proto.bucketeer.user.User.Data.toObject) : [],
103
+ lastSeen: jspb.Message.getFieldWithDefault(msg, 4, 0),
104
+ createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0)
105
+ };
106
+
107
+ if (includeInstance) {
108
+ obj.$jspbMessageInstance = msg;
109
+ }
110
+ return obj;
111
+ };
112
+ }
113
+
114
+
115
+ /**
116
+ * Deserializes binary data (in protobuf wire format).
117
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
118
+ * @return {!proto.bucketeer.user.User}
119
+ */
120
+ proto.bucketeer.user.User.deserializeBinary = function(bytes) {
121
+ var reader = new jspb.BinaryReader(bytes);
122
+ var msg = new proto.bucketeer.user.User;
123
+ return proto.bucketeer.user.User.deserializeBinaryFromReader(msg, reader);
124
+ };
125
+
126
+
127
+ /**
128
+ * Deserializes binary data (in protobuf wire format) from the
129
+ * given reader into the given message object.
130
+ * @param {!proto.bucketeer.user.User} msg The message object to deserialize into.
131
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
132
+ * @return {!proto.bucketeer.user.User}
133
+ */
134
+ proto.bucketeer.user.User.deserializeBinaryFromReader = function(msg, reader) {
135
+ while (reader.nextField()) {
136
+ if (reader.isEndGroup()) {
137
+ break;
138
+ }
139
+ var field = reader.getFieldNumber();
140
+ switch (field) {
141
+ case 1:
142
+ var value = /** @type {string} */ (reader.readString());
143
+ msg.setId(value);
144
+ break;
145
+ case 2:
146
+ var value = msg.getDataMap();
147
+ reader.readMessage(value, function(message, reader) {
148
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
149
+ });
150
+ break;
151
+ case 3:
152
+ var value = msg.getTaggedDataMap();
153
+ reader.readMessage(value, function(message, reader) {
154
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.bucketeer.user.User.Data.deserializeBinaryFromReader, "", new proto.bucketeer.user.User.Data());
155
+ });
156
+ break;
157
+ case 4:
158
+ var value = /** @type {number} */ (reader.readInt64());
159
+ msg.setLastSeen(value);
160
+ break;
161
+ case 5:
162
+ var value = /** @type {number} */ (reader.readInt64());
163
+ msg.setCreatedAt(value);
164
+ break;
165
+ default:
166
+ reader.skipField();
167
+ break;
168
+ }
169
+ }
170
+ return msg;
171
+ };
172
+
173
+
174
+ /**
175
+ * Serializes the message to binary data (in protobuf wire format).
176
+ * @return {!Uint8Array}
177
+ */
178
+ proto.bucketeer.user.User.prototype.serializeBinary = function() {
179
+ var writer = new jspb.BinaryWriter();
180
+ proto.bucketeer.user.User.serializeBinaryToWriter(this, writer);
181
+ return writer.getResultBuffer();
182
+ };
183
+
184
+
185
+ /**
186
+ * Serializes the given message to binary data (in protobuf wire
187
+ * format), writing to the given BinaryWriter.
188
+ * @param {!proto.bucketeer.user.User} message
189
+ * @param {!jspb.BinaryWriter} writer
190
+ * @suppress {unusedLocalVariables} f is only used for nested messages
191
+ */
192
+ proto.bucketeer.user.User.serializeBinaryToWriter = function(message, writer) {
193
+ var f = undefined;
194
+ f = message.getId();
195
+ if (f.length > 0) {
196
+ writer.writeString(
197
+ 1,
198
+ f
199
+ );
200
+ }
201
+ f = message.getDataMap(true);
202
+ if (f && f.getLength() > 0) {
203
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
204
+ }
205
+ f = message.getTaggedDataMap(true);
206
+ if (f && f.getLength() > 0) {
207
+ f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.bucketeer.user.User.Data.serializeBinaryToWriter);
208
+ }
209
+ f = message.getLastSeen();
210
+ if (f !== 0) {
211
+ writer.writeInt64(
212
+ 4,
213
+ f
214
+ );
215
+ }
216
+ f = message.getCreatedAt();
217
+ if (f !== 0) {
218
+ writer.writeInt64(
219
+ 5,
220
+ f
221
+ );
222
+ }
223
+ };
224
+
225
+
226
+
227
+
228
+
229
+ if (jspb.Message.GENERATE_TO_OBJECT) {
230
+ /**
231
+ * Creates an object representation of this proto.
232
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
233
+ * Optional fields that are not set will be set to undefined.
234
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
235
+ * For the list of reserved names please see:
236
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
237
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
238
+ * JSPB instance for transitional soy proto support:
239
+ * http://goto/soy-param-migration
240
+ * @return {!Object}
241
+ */
242
+ proto.bucketeer.user.User.Data.prototype.toObject = function(opt_includeInstance) {
243
+ return proto.bucketeer.user.User.Data.toObject(opt_includeInstance, this);
244
+ };
245
+
246
+
247
+ /**
248
+ * Static version of the {@see toObject} method.
249
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
250
+ * the JSPB instance for transitional soy proto support:
251
+ * http://goto/soy-param-migration
252
+ * @param {!proto.bucketeer.user.User.Data} msg The msg instance to transform.
253
+ * @return {!Object}
254
+ * @suppress {unusedLocalVariables} f is only used for nested messages
255
+ */
256
+ proto.bucketeer.user.User.Data.toObject = function(includeInstance, msg) {
257
+ var f, obj = {
258
+ valueMap: (f = msg.getValueMap()) ? f.toObject(includeInstance, undefined) : []
259
+ };
260
+
261
+ if (includeInstance) {
262
+ obj.$jspbMessageInstance = msg;
263
+ }
264
+ return obj;
265
+ };
266
+ }
267
+
268
+
269
+ /**
270
+ * Deserializes binary data (in protobuf wire format).
271
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
272
+ * @return {!proto.bucketeer.user.User.Data}
273
+ */
274
+ proto.bucketeer.user.User.Data.deserializeBinary = function(bytes) {
275
+ var reader = new jspb.BinaryReader(bytes);
276
+ var msg = new proto.bucketeer.user.User.Data;
277
+ return proto.bucketeer.user.User.Data.deserializeBinaryFromReader(msg, reader);
278
+ };
279
+
280
+
281
+ /**
282
+ * Deserializes binary data (in protobuf wire format) from the
283
+ * given reader into the given message object.
284
+ * @param {!proto.bucketeer.user.User.Data} msg The message object to deserialize into.
285
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
286
+ * @return {!proto.bucketeer.user.User.Data}
287
+ */
288
+ proto.bucketeer.user.User.Data.deserializeBinaryFromReader = function(msg, reader) {
289
+ while (reader.nextField()) {
290
+ if (reader.isEndGroup()) {
291
+ break;
292
+ }
293
+ var field = reader.getFieldNumber();
294
+ switch (field) {
295
+ case 1:
296
+ var value = msg.getValueMap();
297
+ reader.readMessage(value, function(message, reader) {
298
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
299
+ });
300
+ break;
301
+ default:
302
+ reader.skipField();
303
+ break;
304
+ }
305
+ }
306
+ return msg;
307
+ };
308
+
309
+
310
+ /**
311
+ * Serializes the message to binary data (in protobuf wire format).
312
+ * @return {!Uint8Array}
313
+ */
314
+ proto.bucketeer.user.User.Data.prototype.serializeBinary = function() {
315
+ var writer = new jspb.BinaryWriter();
316
+ proto.bucketeer.user.User.Data.serializeBinaryToWriter(this, writer);
317
+ return writer.getResultBuffer();
318
+ };
319
+
320
+
321
+ /**
322
+ * Serializes the given message to binary data (in protobuf wire
323
+ * format), writing to the given BinaryWriter.
324
+ * @param {!proto.bucketeer.user.User.Data} message
325
+ * @param {!jspb.BinaryWriter} writer
326
+ * @suppress {unusedLocalVariables} f is only used for nested messages
327
+ */
328
+ proto.bucketeer.user.User.Data.serializeBinaryToWriter = function(message, writer) {
329
+ var f = undefined;
330
+ f = message.getValueMap(true);
331
+ if (f && f.getLength() > 0) {
332
+ f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
333
+ }
334
+ };
335
+
336
+
337
+ /**
338
+ * map<string, string> value = 1;
339
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
340
+ * empty, instead returning `undefined`
341
+ * @return {!jspb.Map<string,string>}
342
+ */
343
+ proto.bucketeer.user.User.Data.prototype.getValueMap = function(opt_noLazyCreate) {
344
+ return /** @type {!jspb.Map<string,string>} */ (
345
+ jspb.Message.getMapField(this, 1, opt_noLazyCreate,
346
+ null));
347
+ };
348
+
349
+
350
+ /**
351
+ * Clears values from the map. The map will be non-null.
352
+ * @return {!proto.bucketeer.user.User.Data} returns this
353
+ */
354
+ proto.bucketeer.user.User.Data.prototype.clearValueMap = function() {
355
+ this.getValueMap().clear();
356
+ return this;
357
+ };
358
+
359
+
360
+ /**
361
+ * optional string id = 1;
362
+ * @return {string}
363
+ */
364
+ proto.bucketeer.user.User.prototype.getId = function() {
365
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
366
+ };
367
+
368
+
369
+ /**
370
+ * @param {string} value
371
+ * @return {!proto.bucketeer.user.User} returns this
372
+ */
373
+ proto.bucketeer.user.User.prototype.setId = function(value) {
374
+ return jspb.Message.setProto3StringField(this, 1, value);
375
+ };
376
+
377
+
378
+ /**
379
+ * map<string, string> data = 2;
380
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
381
+ * empty, instead returning `undefined`
382
+ * @return {!jspb.Map<string,string>}
383
+ */
384
+ proto.bucketeer.user.User.prototype.getDataMap = function(opt_noLazyCreate) {
385
+ return /** @type {!jspb.Map<string,string>} */ (
386
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
387
+ null));
388
+ };
389
+
390
+
391
+ /**
392
+ * Clears values from the map. The map will be non-null.
393
+ * @return {!proto.bucketeer.user.User} returns this
394
+ */
395
+ proto.bucketeer.user.User.prototype.clearDataMap = function() {
396
+ this.getDataMap().clear();
397
+ return this;
398
+ };
399
+
400
+
401
+ /**
402
+ * map<string, Data> tagged_data = 3;
403
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
404
+ * empty, instead returning `undefined`
405
+ * @return {!jspb.Map<string,!proto.bucketeer.user.User.Data>}
406
+ */
407
+ proto.bucketeer.user.User.prototype.getTaggedDataMap = function(opt_noLazyCreate) {
408
+ return /** @type {!jspb.Map<string,!proto.bucketeer.user.User.Data>} */ (
409
+ jspb.Message.getMapField(this, 3, opt_noLazyCreate,
410
+ proto.bucketeer.user.User.Data));
411
+ };
412
+
413
+
414
+ /**
415
+ * Clears values from the map. The map will be non-null.
416
+ * @return {!proto.bucketeer.user.User} returns this
417
+ */
418
+ proto.bucketeer.user.User.prototype.clearTaggedDataMap = function() {
419
+ this.getTaggedDataMap().clear();
420
+ return this;
421
+ };
422
+
423
+
424
+ /**
425
+ * optional int64 last_seen = 4;
426
+ * @return {number}
427
+ */
428
+ proto.bucketeer.user.User.prototype.getLastSeen = function() {
429
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
430
+ };
431
+
432
+
433
+ /**
434
+ * @param {number} value
435
+ * @return {!proto.bucketeer.user.User} returns this
436
+ */
437
+ proto.bucketeer.user.User.prototype.setLastSeen = function(value) {
438
+ return jspb.Message.setProto3IntField(this, 4, value);
439
+ };
440
+
441
+
442
+ /**
443
+ * optional int64 created_at = 5;
444
+ * @return {number}
445
+ */
446
+ proto.bucketeer.user.User.prototype.getCreatedAt = function() {
447
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
448
+ };
449
+
450
+
451
+ /**
452
+ * @param {number} value
453
+ * @return {!proto.bucketeer.user.User} returns this
454
+ */
455
+ proto.bucketeer.user.User.prototype.setCreatedAt = function(value) {
456
+ return jspb.Message.setProto3IntField(this, 5, value);
457
+ };
458
+
459
+
460
+ goog.object.extend(exports, proto.bucketeer.user);
@@ -0,0 +1,3 @@
1
+ // package: bucketeer.user
2
+ // file: proto/user/user.proto
3
+
@@ -0,0 +1,3 @@
1
+ // package: bucketeer.user
2
+ // file: proto/user/user.proto
3
+ "use strict";
@@ -0,0 +1,3 @@
1
+ // package: bucketeer.user
2
+ // file: proto/user/user.proto
3
+
@@ -0,0 +1,16 @@
1
+ // package: grpc.gateway.protoc_gen_openapiv2.options
2
+ // file: protoc-gen-openapiv2/options/annotations.proto
3
+
4
+ import * as jspb from 'google-protobuf';
5
+ import * as protoc_gen_openapiv2_options_openapiv2_pb from '../../protoc-gen-openapiv2/options/openapiv2_pb';
6
+
7
+ export const openapiv2Swagger: jspb.ExtensionFieldInfo<protoc_gen_openapiv2_options_openapiv2_pb.Swagger>;
8
+
9
+ export const openapiv2Operation: jspb.ExtensionFieldInfo<protoc_gen_openapiv2_options_openapiv2_pb.Operation>;
10
+
11
+ export const openapiv2Schema: jspb.ExtensionFieldInfo<protoc_gen_openapiv2_options_openapiv2_pb.Schema>;
12
+
13
+ export const openapiv2Tag: jspb.ExtensionFieldInfo<protoc_gen_openapiv2_options_openapiv2_pb.Tag>;
14
+
15
+ export const openapiv2Field: jspb.ExtensionFieldInfo<protoc_gen_openapiv2_options_openapiv2_pb.JSONSchema>;
16
+
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+
3
+ // source: protoc-gen-openapiv2/options/annotations.proto
4
+ /**
5
+ * @fileoverview
6
+ * @enhanceable
7
+ * @suppress {missingRequire} reports error on implicit type usages.
8
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
9
+ * field starts with 'MSG_' and isn't a translatable message.
10
+ * @public
11
+ */
12
+ // GENERATED CODE -- DO NOT EDIT!
13
+
14
+ // @ts-nocheck
15
+
16
+ var jspb = require('google-protobuf');
17
+ var goog = jspb;
18
+ var global = typeof globalThis !== 'undefined' && globalThis || typeof window !== 'undefined' && window || typeof global !== 'undefined' && global || typeof self !== 'undefined' && self || function () {
19
+ return this;
20
+ }.call(null) || Function('return this')();
21
+ var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
22
+ goog.object.extend(proto, google_protobuf_descriptor_pb);
23
+ var protoc$gen$openapiv2_options_openapiv2_pb = require('../../protoc-gen-openapiv2/options/openapiv2_pb.js');
24
+ goog.object.extend(proto, protoc$gen$openapiv2_options_openapiv2_pb);
25
+ goog.exportSymbol('proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Field', null, global);
26
+ goog.exportSymbol('proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Operation', null, global);
27
+ goog.exportSymbol('proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Schema', null, global);
28
+ goog.exportSymbol('proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Swagger', null, global);
29
+ goog.exportSymbol('proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Tag', null, global);
30
+
31
+ /**
32
+ * A tuple of {field number, class constructor} for the extension
33
+ * field named `openapiv2Swagger`.
34
+ * @type {!jspb.ExtensionFieldInfo<!proto.grpc.gateway.protoc_gen_openapiv2.options.Swagger>}
35
+ */
36
+ proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Swagger = new jspb.ExtensionFieldInfo(1042, {
37
+ openapiv2Swagger: 0
38
+ }, protoc$gen$openapiv2_options_openapiv2_pb.Swagger, /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */
39
+ protoc$gen$openapiv2_options_openapiv2_pb.Swagger.toObject, 0);
40
+ google_protobuf_descriptor_pb.FileOptions.extensionsBinary[1042] = new jspb.ExtensionFieldBinaryInfo(proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Swagger, jspb.BinaryReader.prototype.readMessage, jspb.BinaryWriter.prototype.writeMessage, protoc$gen$openapiv2_options_openapiv2_pb.Swagger.serializeBinaryToWriter, protoc$gen$openapiv2_options_openapiv2_pb.Swagger.deserializeBinaryFromReader, false);
41
+ // This registers the extension field with the extended class, so that
42
+ // toObject() will function correctly.
43
+ google_protobuf_descriptor_pb.FileOptions.extensions[1042] = proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Swagger;
44
+
45
+ /**
46
+ * A tuple of {field number, class constructor} for the extension
47
+ * field named `openapiv2Operation`.
48
+ * @type {!jspb.ExtensionFieldInfo<!proto.grpc.gateway.protoc_gen_openapiv2.options.Operation>}
49
+ */
50
+ proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Operation = new jspb.ExtensionFieldInfo(1042, {
51
+ openapiv2Operation: 0
52
+ }, protoc$gen$openapiv2_options_openapiv2_pb.Operation, /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */
53
+ protoc$gen$openapiv2_options_openapiv2_pb.Operation.toObject, 0);
54
+ google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[1042] = new jspb.ExtensionFieldBinaryInfo(proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Operation, jspb.BinaryReader.prototype.readMessage, jspb.BinaryWriter.prototype.writeMessage, protoc$gen$openapiv2_options_openapiv2_pb.Operation.serializeBinaryToWriter, protoc$gen$openapiv2_options_openapiv2_pb.Operation.deserializeBinaryFromReader, false);
55
+ // This registers the extension field with the extended class, so that
56
+ // toObject() will function correctly.
57
+ google_protobuf_descriptor_pb.MethodOptions.extensions[1042] = proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Operation;
58
+
59
+ /**
60
+ * A tuple of {field number, class constructor} for the extension
61
+ * field named `openapiv2Schema`.
62
+ * @type {!jspb.ExtensionFieldInfo<!proto.grpc.gateway.protoc_gen_openapiv2.options.Schema>}
63
+ */
64
+ proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Schema = new jspb.ExtensionFieldInfo(1042, {
65
+ openapiv2Schema: 0
66
+ }, protoc$gen$openapiv2_options_openapiv2_pb.Schema, /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */
67
+ protoc$gen$openapiv2_options_openapiv2_pb.Schema.toObject, 0);
68
+ google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[1042] = new jspb.ExtensionFieldBinaryInfo(proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Schema, jspb.BinaryReader.prototype.readMessage, jspb.BinaryWriter.prototype.writeMessage, protoc$gen$openapiv2_options_openapiv2_pb.Schema.serializeBinaryToWriter, protoc$gen$openapiv2_options_openapiv2_pb.Schema.deserializeBinaryFromReader, false);
69
+ // This registers the extension field with the extended class, so that
70
+ // toObject() will function correctly.
71
+ google_protobuf_descriptor_pb.MessageOptions.extensions[1042] = proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Schema;
72
+
73
+ /**
74
+ * A tuple of {field number, class constructor} for the extension
75
+ * field named `openapiv2Tag`.
76
+ * @type {!jspb.ExtensionFieldInfo<!proto.grpc.gateway.protoc_gen_openapiv2.options.Tag>}
77
+ */
78
+ proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Tag = new jspb.ExtensionFieldInfo(1042, {
79
+ openapiv2Tag: 0
80
+ }, protoc$gen$openapiv2_options_openapiv2_pb.Tag, /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */
81
+ protoc$gen$openapiv2_options_openapiv2_pb.Tag.toObject, 0);
82
+ google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[1042] = new jspb.ExtensionFieldBinaryInfo(proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Tag, jspb.BinaryReader.prototype.readMessage, jspb.BinaryWriter.prototype.writeMessage, protoc$gen$openapiv2_options_openapiv2_pb.Tag.serializeBinaryToWriter, protoc$gen$openapiv2_options_openapiv2_pb.Tag.deserializeBinaryFromReader, false);
83
+ // This registers the extension field with the extended class, so that
84
+ // toObject() will function correctly.
85
+ google_protobuf_descriptor_pb.ServiceOptions.extensions[1042] = proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Tag;
86
+
87
+ /**
88
+ * A tuple of {field number, class constructor} for the extension
89
+ * field named `openapiv2Field`.
90
+ * @type {!jspb.ExtensionFieldInfo<!proto.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema>}
91
+ */
92
+ proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Field = new jspb.ExtensionFieldInfo(1042, {
93
+ openapiv2Field: 0
94
+ }, protoc$gen$openapiv2_options_openapiv2_pb.JSONSchema, /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */
95
+ protoc$gen$openapiv2_options_openapiv2_pb.JSONSchema.toObject, 0);
96
+ google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[1042] = new jspb.ExtensionFieldBinaryInfo(proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Field, jspb.BinaryReader.prototype.readMessage, jspb.BinaryWriter.prototype.writeMessage, protoc$gen$openapiv2_options_openapiv2_pb.JSONSchema.serializeBinaryToWriter, protoc$gen$openapiv2_options_openapiv2_pb.JSONSchema.deserializeBinaryFromReader, false);
97
+ // This registers the extension field with the extended class, so that
98
+ // toObject() will function correctly.
99
+ google_protobuf_descriptor_pb.FieldOptions.extensions[1042] = proto.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Field;
100
+ goog.object.extend(exports, proto.grpc.gateway.protoc_gen_openapiv2.options);