@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,277 @@
1
+ "use strict";
2
+
3
+ // source: proto/event/service/feature.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 proto_user_user_pb = require('../../../proto/user/user_pb.js');
22
+ goog.object.extend(proto, proto_user_user_pb);
23
+ goog.exportSymbol('proto.bucketeer.event.service.EvaluationRequestEvent', null, global);
24
+ /**
25
+ * Generated by JsPbCodeGenerator.
26
+ * @param {Array=} opt_data Optional initial data array, typically from a
27
+ * server response, or constructed directly in Javascript. The array is used
28
+ * in place and becomes part of the constructed object. It is not cloned.
29
+ * If no data is provided, the constructed object will be empty, but still
30
+ * valid.
31
+ * @extends {jspb.Message}
32
+ * @constructor
33
+ */
34
+ proto.bucketeer.event.service.EvaluationRequestEvent = function (opt_data) {
35
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
36
+ };
37
+ goog.inherits(proto.bucketeer.event.service.EvaluationRequestEvent, jspb.Message);
38
+ if (goog.DEBUG && !COMPILED) {
39
+ /**
40
+ * @public
41
+ * @override
42
+ */
43
+ proto.bucketeer.event.service.EvaluationRequestEvent.displayName = 'proto.bucketeer.event.service.EvaluationRequestEvent';
44
+ }
45
+ if (jspb.Message.GENERATE_TO_OBJECT) {
46
+ /**
47
+ * Creates an object representation of this proto.
48
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
49
+ * Optional fields that are not set will be set to undefined.
50
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
51
+ * For the list of reserved names please see:
52
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
53
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
54
+ * JSPB instance for transitional soy proto support:
55
+ * http://goto/soy-param-migration
56
+ * @return {!Object}
57
+ */
58
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.toObject = function (opt_includeInstance) {
59
+ return proto.bucketeer.event.service.EvaluationRequestEvent.toObject(opt_includeInstance, this);
60
+ };
61
+
62
+ /**
63
+ * Static version of the {@see toObject} method.
64
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
65
+ * the JSPB instance for transitional soy proto support:
66
+ * http://goto/soy-param-migration
67
+ * @param {!proto.bucketeer.event.service.EvaluationRequestEvent} msg The msg instance to transform.
68
+ * @return {!Object}
69
+ * @suppress {unusedLocalVariables} f is only used for nested messages
70
+ */
71
+ proto.bucketeer.event.service.EvaluationRequestEvent.toObject = function (includeInstance, msg) {
72
+ var f,
73
+ obj = {
74
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
75
+ timestamp: jspb.Message.getFieldWithDefault(msg, 2, 0),
76
+ user: (f = msg.getUser()) && proto_user_user_pb.User.toObject(includeInstance, f),
77
+ environmentNamespace: jspb.Message.getFieldWithDefault(msg, 5, ""),
78
+ tag: jspb.Message.getFieldWithDefault(msg, 6, "")
79
+ };
80
+ if (includeInstance) {
81
+ obj.$jspbMessageInstance = msg;
82
+ }
83
+ return obj;
84
+ };
85
+ }
86
+
87
+ /**
88
+ * Deserializes binary data (in protobuf wire format).
89
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
90
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent}
91
+ */
92
+ proto.bucketeer.event.service.EvaluationRequestEvent.deserializeBinary = function (bytes) {
93
+ var reader = new jspb.BinaryReader(bytes);
94
+ var msg = new proto.bucketeer.event.service.EvaluationRequestEvent();
95
+ return proto.bucketeer.event.service.EvaluationRequestEvent.deserializeBinaryFromReader(msg, reader);
96
+ };
97
+
98
+ /**
99
+ * Deserializes binary data (in protobuf wire format) from the
100
+ * given reader into the given message object.
101
+ * @param {!proto.bucketeer.event.service.EvaluationRequestEvent} msg The message object to deserialize into.
102
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
103
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent}
104
+ */
105
+ proto.bucketeer.event.service.EvaluationRequestEvent.deserializeBinaryFromReader = function (msg, reader) {
106
+ while (reader.nextField()) {
107
+ if (reader.isEndGroup()) {
108
+ break;
109
+ }
110
+ var field = reader.getFieldNumber();
111
+ switch (field) {
112
+ case 1:
113
+ var value = /** @type {string} */reader.readString();
114
+ msg.setId(value);
115
+ break;
116
+ case 2:
117
+ var value = /** @type {number} */reader.readInt64();
118
+ msg.setTimestamp(value);
119
+ break;
120
+ case 3:
121
+ var value = new proto_user_user_pb.User();
122
+ reader.readMessage(value, proto_user_user_pb.User.deserializeBinaryFromReader);
123
+ msg.setUser(value);
124
+ break;
125
+ case 5:
126
+ var value = /** @type {string} */reader.readString();
127
+ msg.setEnvironmentNamespace(value);
128
+ break;
129
+ case 6:
130
+ var value = /** @type {string} */reader.readString();
131
+ msg.setTag(value);
132
+ break;
133
+ default:
134
+ reader.skipField();
135
+ break;
136
+ }
137
+ }
138
+ return msg;
139
+ };
140
+
141
+ /**
142
+ * Serializes the message to binary data (in protobuf wire format).
143
+ * @return {!Uint8Array}
144
+ */
145
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.serializeBinary = function () {
146
+ var writer = new jspb.BinaryWriter();
147
+ proto.bucketeer.event.service.EvaluationRequestEvent.serializeBinaryToWriter(this, writer);
148
+ return writer.getResultBuffer();
149
+ };
150
+
151
+ /**
152
+ * Serializes the given message to binary data (in protobuf wire
153
+ * format), writing to the given BinaryWriter.
154
+ * @param {!proto.bucketeer.event.service.EvaluationRequestEvent} message
155
+ * @param {!jspb.BinaryWriter} writer
156
+ * @suppress {unusedLocalVariables} f is only used for nested messages
157
+ */
158
+ proto.bucketeer.event.service.EvaluationRequestEvent.serializeBinaryToWriter = function (message, writer) {
159
+ var f = undefined;
160
+ f = message.getId();
161
+ if (f.length > 0) {
162
+ writer.writeString(1, f);
163
+ }
164
+ f = message.getTimestamp();
165
+ if (f !== 0) {
166
+ writer.writeInt64(2, f);
167
+ }
168
+ f = message.getUser();
169
+ if (f != null) {
170
+ writer.writeMessage(3, f, proto_user_user_pb.User.serializeBinaryToWriter);
171
+ }
172
+ f = message.getEnvironmentNamespace();
173
+ if (f.length > 0) {
174
+ writer.writeString(5, f);
175
+ }
176
+ f = message.getTag();
177
+ if (f.length > 0) {
178
+ writer.writeString(6, f);
179
+ }
180
+ };
181
+
182
+ /**
183
+ * optional string id = 1;
184
+ * @return {string}
185
+ */
186
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.getId = function () {
187
+ return /** @type {string} */jspb.Message.getFieldWithDefault(this, 1, "");
188
+ };
189
+
190
+ /**
191
+ * @param {string} value
192
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent} returns this
193
+ */
194
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.setId = function (value) {
195
+ return jspb.Message.setProto3StringField(this, 1, value);
196
+ };
197
+
198
+ /**
199
+ * optional int64 timestamp = 2;
200
+ * @return {number}
201
+ */
202
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.getTimestamp = function () {
203
+ return /** @type {number} */jspb.Message.getFieldWithDefault(this, 2, 0);
204
+ };
205
+
206
+ /**
207
+ * @param {number} value
208
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent} returns this
209
+ */
210
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.setTimestamp = function (value) {
211
+ return jspb.Message.setProto3IntField(this, 2, value);
212
+ };
213
+
214
+ /**
215
+ * optional bucketeer.user.User user = 3;
216
+ * @return {?proto.bucketeer.user.User}
217
+ */
218
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.getUser = function () {
219
+ return /** @type{?proto.bucketeer.user.User} */jspb.Message.getWrapperField(this, proto_user_user_pb.User, 3);
220
+ };
221
+
222
+ /**
223
+ * @param {?proto.bucketeer.user.User|undefined} value
224
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent} returns this
225
+ */
226
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.setUser = function (value) {
227
+ return jspb.Message.setWrapperField(this, 3, value);
228
+ };
229
+
230
+ /**
231
+ * Clears the message field making it undefined.
232
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent} returns this
233
+ */
234
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.clearUser = function () {
235
+ return this.setUser(undefined);
236
+ };
237
+
238
+ /**
239
+ * Returns whether this field is set.
240
+ * @return {boolean}
241
+ */
242
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.hasUser = function () {
243
+ return jspb.Message.getField(this, 3) != null;
244
+ };
245
+
246
+ /**
247
+ * optional string environment_namespace = 5;
248
+ * @return {string}
249
+ */
250
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.getEnvironmentNamespace = function () {
251
+ return /** @type {string} */jspb.Message.getFieldWithDefault(this, 5, "");
252
+ };
253
+
254
+ /**
255
+ * @param {string} value
256
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent} returns this
257
+ */
258
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.setEnvironmentNamespace = function (value) {
259
+ return jspb.Message.setProto3StringField(this, 5, value);
260
+ };
261
+
262
+ /**
263
+ * optional string tag = 6;
264
+ * @return {string}
265
+ */
266
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.getTag = function () {
267
+ return /** @type {string} */jspb.Message.getFieldWithDefault(this, 6, "");
268
+ };
269
+
270
+ /**
271
+ * @param {string} value
272
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent} returns this
273
+ */
274
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.setTag = function (value) {
275
+ return jspb.Message.setProto3StringField(this, 6, value);
276
+ };
277
+ goog.object.extend(exports, proto.bucketeer.event.service);
@@ -0,0 +1,319 @@
1
+ // source: proto/event/service/feature.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
+ var proto_user_user_pb = require('../../../proto/user/user_pb.js');
25
+ goog.object.extend(proto, proto_user_user_pb);
26
+ goog.exportSymbol('proto.bucketeer.event.service.EvaluationRequestEvent', null, global);
27
+ /**
28
+ * Generated by JsPbCodeGenerator.
29
+ * @param {Array=} opt_data Optional initial data array, typically from a
30
+ * server response, or constructed directly in Javascript. The array is used
31
+ * in place and becomes part of the constructed object. It is not cloned.
32
+ * If no data is provided, the constructed object will be empty, but still
33
+ * valid.
34
+ * @extends {jspb.Message}
35
+ * @constructor
36
+ */
37
+ proto.bucketeer.event.service.EvaluationRequestEvent = function(opt_data) {
38
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
39
+ };
40
+ goog.inherits(proto.bucketeer.event.service.EvaluationRequestEvent, jspb.Message);
41
+ if (goog.DEBUG && !COMPILED) {
42
+ /**
43
+ * @public
44
+ * @override
45
+ */
46
+ proto.bucketeer.event.service.EvaluationRequestEvent.displayName = 'proto.bucketeer.event.service.EvaluationRequestEvent';
47
+ }
48
+
49
+
50
+
51
+ if (jspb.Message.GENERATE_TO_OBJECT) {
52
+ /**
53
+ * Creates an object representation of this proto.
54
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
55
+ * Optional fields that are not set will be set to undefined.
56
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
57
+ * For the list of reserved names please see:
58
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
59
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
60
+ * JSPB instance for transitional soy proto support:
61
+ * http://goto/soy-param-migration
62
+ * @return {!Object}
63
+ */
64
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.toObject = function(opt_includeInstance) {
65
+ return proto.bucketeer.event.service.EvaluationRequestEvent.toObject(opt_includeInstance, this);
66
+ };
67
+
68
+
69
+ /**
70
+ * Static version of the {@see toObject} method.
71
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
72
+ * the JSPB instance for transitional soy proto support:
73
+ * http://goto/soy-param-migration
74
+ * @param {!proto.bucketeer.event.service.EvaluationRequestEvent} msg The msg instance to transform.
75
+ * @return {!Object}
76
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77
+ */
78
+ proto.bucketeer.event.service.EvaluationRequestEvent.toObject = function(includeInstance, msg) {
79
+ var f, obj = {
80
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
81
+ timestamp: jspb.Message.getFieldWithDefault(msg, 2, 0),
82
+ user: (f = msg.getUser()) && proto_user_user_pb.User.toObject(includeInstance, f),
83
+ environmentNamespace: jspb.Message.getFieldWithDefault(msg, 5, ""),
84
+ tag: jspb.Message.getFieldWithDefault(msg, 6, "")
85
+ };
86
+
87
+ if (includeInstance) {
88
+ obj.$jspbMessageInstance = msg;
89
+ }
90
+ return obj;
91
+ };
92
+ }
93
+
94
+
95
+ /**
96
+ * Deserializes binary data (in protobuf wire format).
97
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
98
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent}
99
+ */
100
+ proto.bucketeer.event.service.EvaluationRequestEvent.deserializeBinary = function(bytes) {
101
+ var reader = new jspb.BinaryReader(bytes);
102
+ var msg = new proto.bucketeer.event.service.EvaluationRequestEvent;
103
+ return proto.bucketeer.event.service.EvaluationRequestEvent.deserializeBinaryFromReader(msg, reader);
104
+ };
105
+
106
+
107
+ /**
108
+ * Deserializes binary data (in protobuf wire format) from the
109
+ * given reader into the given message object.
110
+ * @param {!proto.bucketeer.event.service.EvaluationRequestEvent} msg The message object to deserialize into.
111
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
112
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent}
113
+ */
114
+ proto.bucketeer.event.service.EvaluationRequestEvent.deserializeBinaryFromReader = function(msg, reader) {
115
+ while (reader.nextField()) {
116
+ if (reader.isEndGroup()) {
117
+ break;
118
+ }
119
+ var field = reader.getFieldNumber();
120
+ switch (field) {
121
+ case 1:
122
+ var value = /** @type {string} */ (reader.readString());
123
+ msg.setId(value);
124
+ break;
125
+ case 2:
126
+ var value = /** @type {number} */ (reader.readInt64());
127
+ msg.setTimestamp(value);
128
+ break;
129
+ case 3:
130
+ var value = new proto_user_user_pb.User;
131
+ reader.readMessage(value,proto_user_user_pb.User.deserializeBinaryFromReader);
132
+ msg.setUser(value);
133
+ break;
134
+ case 5:
135
+ var value = /** @type {string} */ (reader.readString());
136
+ msg.setEnvironmentNamespace(value);
137
+ break;
138
+ case 6:
139
+ var value = /** @type {string} */ (reader.readString());
140
+ msg.setTag(value);
141
+ break;
142
+ default:
143
+ reader.skipField();
144
+ break;
145
+ }
146
+ }
147
+ return msg;
148
+ };
149
+
150
+
151
+ /**
152
+ * Serializes the message to binary data (in protobuf wire format).
153
+ * @return {!Uint8Array}
154
+ */
155
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.serializeBinary = function() {
156
+ var writer = new jspb.BinaryWriter();
157
+ proto.bucketeer.event.service.EvaluationRequestEvent.serializeBinaryToWriter(this, writer);
158
+ return writer.getResultBuffer();
159
+ };
160
+
161
+
162
+ /**
163
+ * Serializes the given message to binary data (in protobuf wire
164
+ * format), writing to the given BinaryWriter.
165
+ * @param {!proto.bucketeer.event.service.EvaluationRequestEvent} message
166
+ * @param {!jspb.BinaryWriter} writer
167
+ * @suppress {unusedLocalVariables} f is only used for nested messages
168
+ */
169
+ proto.bucketeer.event.service.EvaluationRequestEvent.serializeBinaryToWriter = function(message, writer) {
170
+ var f = undefined;
171
+ f = message.getId();
172
+ if (f.length > 0) {
173
+ writer.writeString(
174
+ 1,
175
+ f
176
+ );
177
+ }
178
+ f = message.getTimestamp();
179
+ if (f !== 0) {
180
+ writer.writeInt64(
181
+ 2,
182
+ f
183
+ );
184
+ }
185
+ f = message.getUser();
186
+ if (f != null) {
187
+ writer.writeMessage(
188
+ 3,
189
+ f,
190
+ proto_user_user_pb.User.serializeBinaryToWriter
191
+ );
192
+ }
193
+ f = message.getEnvironmentNamespace();
194
+ if (f.length > 0) {
195
+ writer.writeString(
196
+ 5,
197
+ f
198
+ );
199
+ }
200
+ f = message.getTag();
201
+ if (f.length > 0) {
202
+ writer.writeString(
203
+ 6,
204
+ f
205
+ );
206
+ }
207
+ };
208
+
209
+
210
+ /**
211
+ * optional string id = 1;
212
+ * @return {string}
213
+ */
214
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.getId = function() {
215
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
216
+ };
217
+
218
+
219
+ /**
220
+ * @param {string} value
221
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent} returns this
222
+ */
223
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.setId = function(value) {
224
+ return jspb.Message.setProto3StringField(this, 1, value);
225
+ };
226
+
227
+
228
+ /**
229
+ * optional int64 timestamp = 2;
230
+ * @return {number}
231
+ */
232
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.getTimestamp = function() {
233
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
234
+ };
235
+
236
+
237
+ /**
238
+ * @param {number} value
239
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent} returns this
240
+ */
241
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.setTimestamp = function(value) {
242
+ return jspb.Message.setProto3IntField(this, 2, value);
243
+ };
244
+
245
+
246
+ /**
247
+ * optional bucketeer.user.User user = 3;
248
+ * @return {?proto.bucketeer.user.User}
249
+ */
250
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.getUser = function() {
251
+ return /** @type{?proto.bucketeer.user.User} */ (
252
+ jspb.Message.getWrapperField(this, proto_user_user_pb.User, 3));
253
+ };
254
+
255
+
256
+ /**
257
+ * @param {?proto.bucketeer.user.User|undefined} value
258
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent} returns this
259
+ */
260
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.setUser = function(value) {
261
+ return jspb.Message.setWrapperField(this, 3, value);
262
+ };
263
+
264
+
265
+ /**
266
+ * Clears the message field making it undefined.
267
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent} returns this
268
+ */
269
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.clearUser = function() {
270
+ return this.setUser(undefined);
271
+ };
272
+
273
+
274
+ /**
275
+ * Returns whether this field is set.
276
+ * @return {boolean}
277
+ */
278
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.hasUser = function() {
279
+ return jspb.Message.getField(this, 3) != null;
280
+ };
281
+
282
+
283
+ /**
284
+ * optional string environment_namespace = 5;
285
+ * @return {string}
286
+ */
287
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.getEnvironmentNamespace = function() {
288
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
289
+ };
290
+
291
+
292
+ /**
293
+ * @param {string} value
294
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent} returns this
295
+ */
296
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.setEnvironmentNamespace = function(value) {
297
+ return jspb.Message.setProto3StringField(this, 5, value);
298
+ };
299
+
300
+
301
+ /**
302
+ * optional string tag = 6;
303
+ * @return {string}
304
+ */
305
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.getTag = function() {
306
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
307
+ };
308
+
309
+
310
+ /**
311
+ * @param {string} value
312
+ * @return {!proto.bucketeer.event.service.EvaluationRequestEvent} returns this
313
+ */
314
+ proto.bucketeer.event.service.EvaluationRequestEvent.prototype.setTag = function(value) {
315
+ return jspb.Message.setProto3StringField(this, 6, value);
316
+ };
317
+
318
+
319
+ goog.object.extend(exports, proto.bucketeer.event.service);
@@ -0,0 +1,3 @@
1
+ // package: bucketeer.event.service
2
+ // file: proto/event/service/feature.proto
3
+
@@ -0,0 +1,3 @@
1
+ // package: bucketeer.event.service
2
+ // file: proto/event/service/feature.proto
3
+ "use strict";
@@ -0,0 +1,3 @@
1
+ // package: bucketeer.event.service
2
+ // file: proto/event/service/feature.proto
3
+
@@ -0,0 +1,51 @@
1
+ // package: bucketeer.event.service
2
+ // file: proto/event/service/segment.proto
3
+
4
+ import * as jspb from 'google-protobuf';
5
+ import * as proto_feature_segment_pb from '../../../proto/feature/segment_pb';
6
+ import * as proto_event_domain_event_pb from '../../../proto/event/domain/event_pb';
7
+
8
+ export class BulkSegmentUsersReceivedEvent extends jspb.Message {
9
+ getId(): string;
10
+ setId(value: string): void;
11
+
12
+ getEnvironmentNamespace(): string;
13
+ setEnvironmentNamespace(value: string): void;
14
+
15
+ getSegmentId(): string;
16
+ setSegmentId(value: string): void;
17
+
18
+ getData(): Uint8Array | string;
19
+ getData_asU8(): Uint8Array;
20
+ getData_asB64(): string;
21
+ setData(value: Uint8Array | string): void;
22
+
23
+ getState(): proto_feature_segment_pb.SegmentUser.StateMap[keyof proto_feature_segment_pb.SegmentUser.StateMap];
24
+ setState(value: proto_feature_segment_pb.SegmentUser.StateMap[keyof proto_feature_segment_pb.SegmentUser.StateMap]): void;
25
+
26
+ hasEditor(): boolean;
27
+ clearEditor(): void;
28
+ getEditor(): proto_event_domain_event_pb.Editor | undefined;
29
+ setEditor(value?: proto_event_domain_event_pb.Editor): void;
30
+
31
+ serializeBinary(): Uint8Array;
32
+ toObject(includeInstance?: boolean): BulkSegmentUsersReceivedEvent.AsObject;
33
+ static toObject(includeInstance: boolean, msg: BulkSegmentUsersReceivedEvent): BulkSegmentUsersReceivedEvent.AsObject;
34
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
35
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
36
+ static serializeBinaryToWriter(message: BulkSegmentUsersReceivedEvent, writer: jspb.BinaryWriter): void;
37
+ static deserializeBinary(bytes: Uint8Array): BulkSegmentUsersReceivedEvent;
38
+ static deserializeBinaryFromReader(message: BulkSegmentUsersReceivedEvent, reader: jspb.BinaryReader): BulkSegmentUsersReceivedEvent;
39
+ }
40
+
41
+ export namespace BulkSegmentUsersReceivedEvent {
42
+ export type AsObject = {
43
+ id: string,
44
+ environmentNamespace: string,
45
+ segmentId: string,
46
+ data: Uint8Array | string,
47
+ state: proto_feature_segment_pb.SegmentUser.StateMap[keyof proto_feature_segment_pb.SegmentUser.StateMap],
48
+ editor?: proto_event_domain_event_pb.Editor.AsObject,
49
+ }
50
+ }
51
+