@kenji71089/evaluation 0.0.1 → 0.0.8
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.
- package/CHANGELOG.md +45 -0
- package/README.md +36 -6
- package/lib/bucketeer.d.ts +6 -0
- package/lib/bucketeer.js +65 -0
- package/lib/bucketeer.mjs +38 -0
- package/lib/clauseEvaluator.js +49 -7
- package/lib/clauseEvaluator.mjs +41 -7
- package/lib/evaluation.d.ts +10 -1
- package/lib/evaluation.js +184 -27
- package/lib/evaluation.mjs +141 -10
- package/lib/index.d.ts +12 -10
- package/lib/index.js +61 -40
- package/lib/index.mjs +16 -10
- package/lib/modelFactory.d.ts +1 -0
- package/lib/modelFactory.js +2 -0
- package/lib/modelFactory.mjs +2 -0
- package/lib/proto/event/client/event_pb.d.ts +19 -9
- package/lib/proto/event/client/event_pb.js +22 -12
- package/lib/proto/event/client/event_pb.mjs +100 -90
- package/lib/proto/feature/clause_pb.d.ts +2 -1
- package/lib/proto/feature/clause_pb.js +3 -2
- package/lib/proto/feature/clause_pb.mjs +7 -6
- package/lib/proto/feature/evaluation_pb.d.ts +3 -3
- package/lib/proto/feature/evaluation_pb.js +1 -1
- package/lib/proto/feature/evaluation_pb.mjs +15 -15
- package/lib/proto/feature/feature_last_used_info_pb.d.ts +10 -1
- package/lib/proto/feature/feature_last_used_info_pb.js +12 -1
- package/lib/proto/feature/feature_last_used_info_pb.mjs +18 -7
- package/lib/proto/feature/feature_pb.d.ts +72 -7
- package/lib/proto/feature/feature_pb.js +446 -4
- package/lib/proto/feature/feature_pb.mjs +535 -29
- package/lib/proto/feature/prerequisite_pb.d.ts +1 -1
- package/lib/proto/feature/prerequisite_pb.js +1 -1
- package/lib/proto/feature/prerequisite_pb.mjs +3 -3
- package/lib/proto/feature/reason_pb.d.ts +8 -1
- package/lib/proto/feature/reason_pb.js +9 -2
- package/lib/proto/feature/reason_pb.mjs +11 -4
- package/lib/proto/feature/rule_pb.d.ts +3 -3
- package/lib/proto/feature/rule_pb.js +1 -1
- package/lib/proto/feature/rule_pb.mjs +4 -4
- package/lib/proto/feature/segment_pb.d.ts +3 -3
- package/lib/proto/feature/segment_pb.js +1 -1
- package/lib/proto/feature/segment_pb.mjs +22 -22
- package/lib/proto/feature/strategy_pb.d.ts +31 -1
- package/lib/proto/feature/strategy_pb.js +206 -2
- package/lib/proto/feature/strategy_pb.mjs +242 -9
- package/lib/proto/feature/target_pb.d.ts +1 -1
- package/lib/proto/feature/target_pb.js +1 -1
- package/lib/proto/feature/target_pb.mjs +3 -3
- package/lib/proto/feature/variation_pb.d.ts +1 -1
- package/lib/proto/feature/variation_pb.js +1 -1
- package/lib/proto/feature/variation_pb.mjs +5 -5
- package/lib/proto/user/user_pb.d.ts +53 -1
- package/lib/proto/user/user_pb.js +374 -1
- package/lib/proto/user/user_pb.mjs +427 -7
- package/lib/strategyEvaluator.d.ts +0 -2
- package/lib/strategyEvaluator.js +23 -57
- package/lib/strategyEvaluator.mjs +23 -46
- package/lib/userEvaluation.js +13 -3
- package/lib/userEvaluation.mjs +13 -3
- package/package.json +15 -8
- package/lib/google/api/annotations_pb.d.ts +0 -8
- package/lib/google/api/annotations_pb.js +0 -40
- package/lib/google/api/annotations_pb.mjs +0 -54
- package/lib/google/api/annotations_pb_service.d.ts +0 -3
- package/lib/google/api/annotations_pb_service.js +0 -3
- package/lib/google/api/annotations_pb_service.mjs +0 -3
- package/lib/google/api/http_pb.d.ts +0 -132
- package/lib/google/api/http_pb.js +0 -860
- package/lib/google/api/http_pb.mjs +0 -982
- package/lib/google/api/http_pb_service.d.ts +0 -3
- package/lib/google/api/http_pb_service.js +0 -3
- package/lib/google/api/http_pb_service.mjs +0 -3
- package/lib/google/rpc/code_pb.d.ts +0 -26
- package/lib/google/rpc/code_pb.js +0 -44
- package/lib/google/rpc/code_pb.mjs +0 -48
- package/lib/google/rpc/code_pb_service.d.ts +0 -3
- package/lib/google/rpc/code_pb_service.js +0 -3
- package/lib/google/rpc/code_pb_service.mjs +0 -3
- package/lib/google/rpc/error_details_pb.d.ts +0 -322
- package/lib/google/rpc/error_details_pb.js +0 -2220
- package/lib/google/rpc/error_details_pb.mjs +0 -2499
- package/lib/google/rpc/error_details_pb_service.d.ts +0 -3
- package/lib/google/rpc/error_details_pb_service.js +0 -3
- package/lib/google/rpc/error_details_pb_service.mjs +0 -3
- package/lib/google/rpc/status_pb.d.ts +0 -36
- package/lib/google/rpc/status_pb.js +0 -235
- package/lib/google/rpc/status_pb.mjs +0 -268
- package/lib/google/rpc/status_pb_service.d.ts +0 -3
- package/lib/google/rpc/status_pb_service.js +0 -3
- package/lib/google/rpc/status_pb_service.mjs +0 -3
- package/lib/proto/event/client/event_pb_service.d.ts +0 -3
- package/lib/proto/event/client/event_pb_service.js +0 -3
- package/lib/proto/event/client/event_pb_service.mjs +0 -3
- package/lib/proto/event/domain/event_pb.d.ts +0 -4518
- package/lib/proto/event/domain/event_pb.js +0 -10834
- package/lib/proto/event/domain/event_pb.mjs +0 -33315
- package/lib/proto/event/domain/event_pb_service.d.ts +0 -3
- package/lib/proto/event/domain/event_pb_service.js +0 -3
- package/lib/proto/event/domain/event_pb_service.mjs +0 -3
- package/lib/proto/event/domain/localized_message_pb.d.ts +0 -29
- package/lib/proto/event/domain/localized_message_pb.js +0 -183
- package/lib/proto/event/domain/localized_message_pb.mjs +0 -206
- package/lib/proto/event/domain/localized_message_pb_service.d.ts +0 -3
- package/lib/proto/event/domain/localized_message_pb_service.js +0 -3
- package/lib/proto/event/domain/localized_message_pb_service.mjs +0 -3
- package/lib/proto/event/service/feature_pb.d.ts +0 -44
- package/lib/proto/event/service/feature_pb.js +0 -277
- package/lib/proto/event/service/feature_pb.mjs +0 -319
- package/lib/proto/event/service/feature_pb_service.d.ts +0 -3
- package/lib/proto/event/service/feature_pb_service.js +0 -3
- package/lib/proto/event/service/feature_pb_service.mjs +0 -3
- package/lib/proto/event/service/segment_pb.d.ts +0 -51
- package/lib/proto/event/service/segment_pb.js +0 -324
- package/lib/proto/event/service/segment_pb.mjs +0 -375
- package/lib/proto/event/service/segment_pb_service.d.ts +0 -3
- package/lib/proto/event/service/segment_pb_service.js +0 -3
- package/lib/proto/event/service/segment_pb_service.mjs +0 -3
- package/lib/proto/event/service/user_pb.d.ts +0 -49
- package/lib/proto/event/service/user_pb.js +0 -315
- package/lib/proto/event/service/user_pb.mjs +0 -362
- package/lib/proto/event/service/user_pb_service.d.ts +0 -3
- package/lib/proto/event/service/user_pb_service.js +0 -3
- package/lib/proto/event/service/user_pb_service.mjs +0 -3
- package/lib/proto/feature/clause_pb_service.d.ts +0 -3
- package/lib/proto/feature/clause_pb_service.js +0 -3
- package/lib/proto/feature/clause_pb_service.mjs +0 -3
- package/lib/proto/feature/command_pb.d.ts +0 -1213
- package/lib/proto/feature/command_pb.js +0 -8260
- package/lib/proto/feature/command_pb.mjs +0 -9275
- package/lib/proto/feature/command_pb_service.d.ts +0 -3
- package/lib/proto/feature/command_pb_service.js +0 -3
- package/lib/proto/feature/command_pb_service.mjs +0 -3
- package/lib/proto/feature/evaluation_pb_service.d.ts +0 -3
- package/lib/proto/feature/evaluation_pb_service.js +0 -3
- package/lib/proto/feature/evaluation_pb_service.mjs +0 -3
- package/lib/proto/feature/feature_last_used_info_pb_service.d.ts +0 -3
- package/lib/proto/feature/feature_last_used_info_pb_service.js +0 -3
- package/lib/proto/feature/feature_last_used_info_pb_service.mjs +0 -3
- package/lib/proto/feature/feature_pb_service.d.ts +0 -3
- package/lib/proto/feature/feature_pb_service.js +0 -3
- package/lib/proto/feature/feature_pb_service.mjs +0 -3
- package/lib/proto/feature/flag_trigger_pb.d.ts +0 -84
- package/lib/proto/feature/flag_trigger_pb.js +0 -452
- package/lib/proto/feature/flag_trigger_pb.mjs +0 -525
- package/lib/proto/feature/flag_trigger_pb_service.d.ts +0 -3
- package/lib/proto/feature/flag_trigger_pb_service.js +0 -3
- package/lib/proto/feature/flag_trigger_pb_service.mjs +0 -3
- package/lib/proto/feature/prerequisite_pb_service.d.ts +0 -3
- package/lib/proto/feature/prerequisite_pb_service.js +0 -3
- package/lib/proto/feature/prerequisite_pb_service.mjs +0 -3
- package/lib/proto/feature/reason_pb_service.d.ts +0 -3
- package/lib/proto/feature/reason_pb_service.js +0 -3
- package/lib/proto/feature/reason_pb_service.mjs +0 -3
- package/lib/proto/feature/rule_pb_service.d.ts +0 -3
- package/lib/proto/feature/rule_pb_service.js +0 -3
- package/lib/proto/feature/rule_pb_service.mjs +0 -3
- package/lib/proto/feature/segment_pb_service.d.ts +0 -3
- package/lib/proto/feature/segment_pb_service.js +0 -3
- package/lib/proto/feature/segment_pb_service.mjs +0 -3
- package/lib/proto/feature/service_pb.d.ts +0 -2158
- package/lib/proto/feature/service_pb.js +0 -5363
- package/lib/proto/feature/service_pb.mjs +0 -16348
- package/lib/proto/feature/service_pb_service.d.ts +0 -747
- package/lib/proto/feature/service_pb_service.js +0 -1424
- package/lib/proto/feature/service_pb_service.mjs +0 -1501
- package/lib/proto/feature/strategy_pb_service.d.ts +0 -3
- package/lib/proto/feature/strategy_pb_service.js +0 -3
- package/lib/proto/feature/strategy_pb_service.mjs +0 -3
- package/lib/proto/feature/target_pb_service.d.ts +0 -3
- package/lib/proto/feature/target_pb_service.js +0 -3
- package/lib/proto/feature/target_pb_service.mjs +0 -3
- package/lib/proto/feature/variation_pb_service.d.ts +0 -3
- package/lib/proto/feature/variation_pb_service.js +0 -3
- package/lib/proto/feature/variation_pb_service.mjs +0 -3
- package/lib/proto/gateway/service_pb.d.ts +0 -772
- package/lib/proto/gateway/service_pb.js +0 -5249
- package/lib/proto/gateway/service_pb.mjs +0 -6001
- package/lib/proto/gateway/service_pb_service.d.ts +0 -253
- package/lib/proto/gateway/service_pb_service.js +0 -436
- package/lib/proto/gateway/service_pb_service.mjs +0 -461
- package/lib/proto/user/user_pb_service.d.ts +0 -3
- package/lib/proto/user/user_pb_service.js +0 -3
- package/lib/proto/user/user_pb_service.mjs +0 -3
- package/lib/protoc-gen-openapiv2/options/annotations_pb.d.ts +0 -16
- package/lib/protoc-gen-openapiv2/options/annotations_pb.js +0 -100
- package/lib/protoc-gen-openapiv2/options/annotations_pb.mjs +0 -158
- package/lib/protoc-gen-openapiv2/options/annotations_pb_service.d.ts +0 -3
- package/lib/protoc-gen-openapiv2/options/annotations_pb_service.js +0 -3
- package/lib/protoc-gen-openapiv2/options/annotations_pb_service.mjs +0 -3
- package/lib/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +0 -834
- package/lib/protoc-gen-openapiv2/options/openapiv2_pb.js +0 -5456
- package/lib/protoc-gen-openapiv2/options/openapiv2_pb.mjs +0 -6256
- package/lib/protoc-gen-openapiv2/options/openapiv2_pb_service.d.ts +0 -3
- package/lib/protoc-gen-openapiv2/options/openapiv2_pb_service.js +0 -3
- package/lib/protoc-gen-openapiv2/options/openapiv2_pb_service.mjs +0 -3
|
@@ -1,362 +0,0 @@
|
|
|
1
|
-
// source: proto/event/service/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
|
-
var proto_event_client_event_pb = require('../../../proto/event/client/event_pb.js');
|
|
25
|
-
goog.object.extend(proto, proto_event_client_event_pb);
|
|
26
|
-
goog.exportSymbol('proto.bucketeer.event.service.UserEvent', 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.UserEvent = function(opt_data) {
|
|
38
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
39
|
-
};
|
|
40
|
-
goog.inherits(proto.bucketeer.event.service.UserEvent, jspb.Message);
|
|
41
|
-
if (goog.DEBUG && !COMPILED) {
|
|
42
|
-
/**
|
|
43
|
-
* @public
|
|
44
|
-
* @override
|
|
45
|
-
*/
|
|
46
|
-
proto.bucketeer.event.service.UserEvent.displayName = 'proto.bucketeer.event.service.UserEvent';
|
|
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.UserEvent.prototype.toObject = function(opt_includeInstance) {
|
|
65
|
-
return proto.bucketeer.event.service.UserEvent.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.UserEvent} 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.UserEvent.toObject = function(includeInstance, msg) {
|
|
79
|
-
var f, obj = {
|
|
80
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
81
|
-
environmentNamespace: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
82
|
-
tag: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
83
|
-
userId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
84
|
-
lastSeen: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
85
|
-
dataMap: (f = msg.getDataMap()) ? f.toObject(includeInstance, undefined) : [],
|
|
86
|
-
sourceId: jspb.Message.getFieldWithDefault(msg, 9, 0)
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
if (includeInstance) {
|
|
90
|
-
obj.$jspbMessageInstance = msg;
|
|
91
|
-
}
|
|
92
|
-
return obj;
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Deserializes binary data (in protobuf wire format).
|
|
99
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
100
|
-
* @return {!proto.bucketeer.event.service.UserEvent}
|
|
101
|
-
*/
|
|
102
|
-
proto.bucketeer.event.service.UserEvent.deserializeBinary = function(bytes) {
|
|
103
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
104
|
-
var msg = new proto.bucketeer.event.service.UserEvent;
|
|
105
|
-
return proto.bucketeer.event.service.UserEvent.deserializeBinaryFromReader(msg, reader);
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
111
|
-
* given reader into the given message object.
|
|
112
|
-
* @param {!proto.bucketeer.event.service.UserEvent} msg The message object to deserialize into.
|
|
113
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
114
|
-
* @return {!proto.bucketeer.event.service.UserEvent}
|
|
115
|
-
*/
|
|
116
|
-
proto.bucketeer.event.service.UserEvent.deserializeBinaryFromReader = function(msg, reader) {
|
|
117
|
-
while (reader.nextField()) {
|
|
118
|
-
if (reader.isEndGroup()) {
|
|
119
|
-
break;
|
|
120
|
-
}
|
|
121
|
-
var field = reader.getFieldNumber();
|
|
122
|
-
switch (field) {
|
|
123
|
-
case 1:
|
|
124
|
-
var value = /** @type {string} */ (reader.readString());
|
|
125
|
-
msg.setId(value);
|
|
126
|
-
break;
|
|
127
|
-
case 4:
|
|
128
|
-
var value = /** @type {string} */ (reader.readString());
|
|
129
|
-
msg.setEnvironmentNamespace(value);
|
|
130
|
-
break;
|
|
131
|
-
case 5:
|
|
132
|
-
var value = /** @type {string} */ (reader.readString());
|
|
133
|
-
msg.setTag(value);
|
|
134
|
-
break;
|
|
135
|
-
case 6:
|
|
136
|
-
var value = /** @type {string} */ (reader.readString());
|
|
137
|
-
msg.setUserId(value);
|
|
138
|
-
break;
|
|
139
|
-
case 7:
|
|
140
|
-
var value = /** @type {number} */ (reader.readInt64());
|
|
141
|
-
msg.setLastSeen(value);
|
|
142
|
-
break;
|
|
143
|
-
case 8:
|
|
144
|
-
var value = msg.getDataMap();
|
|
145
|
-
reader.readMessage(value, function(message, reader) {
|
|
146
|
-
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
147
|
-
});
|
|
148
|
-
break;
|
|
149
|
-
case 9:
|
|
150
|
-
var value = /** @type {!proto.bucketeer.event.client.SourceId} */ (reader.readEnum());
|
|
151
|
-
msg.setSourceId(value);
|
|
152
|
-
break;
|
|
153
|
-
default:
|
|
154
|
-
reader.skipField();
|
|
155
|
-
break;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
return msg;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
164
|
-
* @return {!Uint8Array}
|
|
165
|
-
*/
|
|
166
|
-
proto.bucketeer.event.service.UserEvent.prototype.serializeBinary = function() {
|
|
167
|
-
var writer = new jspb.BinaryWriter();
|
|
168
|
-
proto.bucketeer.event.service.UserEvent.serializeBinaryToWriter(this, writer);
|
|
169
|
-
return writer.getResultBuffer();
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
175
|
-
* format), writing to the given BinaryWriter.
|
|
176
|
-
* @param {!proto.bucketeer.event.service.UserEvent} message
|
|
177
|
-
* @param {!jspb.BinaryWriter} writer
|
|
178
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
179
|
-
*/
|
|
180
|
-
proto.bucketeer.event.service.UserEvent.serializeBinaryToWriter = function(message, writer) {
|
|
181
|
-
var f = undefined;
|
|
182
|
-
f = message.getId();
|
|
183
|
-
if (f.length > 0) {
|
|
184
|
-
writer.writeString(
|
|
185
|
-
1,
|
|
186
|
-
f
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
f = message.getEnvironmentNamespace();
|
|
190
|
-
if (f.length > 0) {
|
|
191
|
-
writer.writeString(
|
|
192
|
-
4,
|
|
193
|
-
f
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
f = message.getTag();
|
|
197
|
-
if (f.length > 0) {
|
|
198
|
-
writer.writeString(
|
|
199
|
-
5,
|
|
200
|
-
f
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
f = message.getUserId();
|
|
204
|
-
if (f.length > 0) {
|
|
205
|
-
writer.writeString(
|
|
206
|
-
6,
|
|
207
|
-
f
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
f = message.getLastSeen();
|
|
211
|
-
if (f !== 0) {
|
|
212
|
-
writer.writeInt64(
|
|
213
|
-
7,
|
|
214
|
-
f
|
|
215
|
-
);
|
|
216
|
-
}
|
|
217
|
-
f = message.getDataMap(true);
|
|
218
|
-
if (f && f.getLength() > 0) {
|
|
219
|
-
f.serializeBinary(8, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
220
|
-
}
|
|
221
|
-
f = message.getSourceId();
|
|
222
|
-
if (f !== 0.0) {
|
|
223
|
-
writer.writeEnum(
|
|
224
|
-
9,
|
|
225
|
-
f
|
|
226
|
-
);
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* optional string id = 1;
|
|
233
|
-
* @return {string}
|
|
234
|
-
*/
|
|
235
|
-
proto.bucketeer.event.service.UserEvent.prototype.getId = function() {
|
|
236
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* @param {string} value
|
|
242
|
-
* @return {!proto.bucketeer.event.service.UserEvent} returns this
|
|
243
|
-
*/
|
|
244
|
-
proto.bucketeer.event.service.UserEvent.prototype.setId = function(value) {
|
|
245
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* optional string environment_namespace = 4;
|
|
251
|
-
* @return {string}
|
|
252
|
-
*/
|
|
253
|
-
proto.bucketeer.event.service.UserEvent.prototype.getEnvironmentNamespace = function() {
|
|
254
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* @param {string} value
|
|
260
|
-
* @return {!proto.bucketeer.event.service.UserEvent} returns this
|
|
261
|
-
*/
|
|
262
|
-
proto.bucketeer.event.service.UserEvent.prototype.setEnvironmentNamespace = function(value) {
|
|
263
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* optional string tag = 5;
|
|
269
|
-
* @return {string}
|
|
270
|
-
*/
|
|
271
|
-
proto.bucketeer.event.service.UserEvent.prototype.getTag = function() {
|
|
272
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* @param {string} value
|
|
278
|
-
* @return {!proto.bucketeer.event.service.UserEvent} returns this
|
|
279
|
-
*/
|
|
280
|
-
proto.bucketeer.event.service.UserEvent.prototype.setTag = function(value) {
|
|
281
|
-
return jspb.Message.setProto3StringField(this, 5, value);
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* optional string user_id = 6;
|
|
287
|
-
* @return {string}
|
|
288
|
-
*/
|
|
289
|
-
proto.bucketeer.event.service.UserEvent.prototype.getUserId = function() {
|
|
290
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* @param {string} value
|
|
296
|
-
* @return {!proto.bucketeer.event.service.UserEvent} returns this
|
|
297
|
-
*/
|
|
298
|
-
proto.bucketeer.event.service.UserEvent.prototype.setUserId = function(value) {
|
|
299
|
-
return jspb.Message.setProto3StringField(this, 6, value);
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* optional int64 last_seen = 7;
|
|
305
|
-
* @return {number}
|
|
306
|
-
*/
|
|
307
|
-
proto.bucketeer.event.service.UserEvent.prototype.getLastSeen = function() {
|
|
308
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* @param {number} value
|
|
314
|
-
* @return {!proto.bucketeer.event.service.UserEvent} returns this
|
|
315
|
-
*/
|
|
316
|
-
proto.bucketeer.event.service.UserEvent.prototype.setLastSeen = function(value) {
|
|
317
|
-
return jspb.Message.setProto3IntField(this, 7, value);
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* map<string, string> data = 8;
|
|
323
|
-
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
324
|
-
* empty, instead returning `undefined`
|
|
325
|
-
* @return {!jspb.Map<string,string>}
|
|
326
|
-
*/
|
|
327
|
-
proto.bucketeer.event.service.UserEvent.prototype.getDataMap = function(opt_noLazyCreate) {
|
|
328
|
-
return /** @type {!jspb.Map<string,string>} */ (
|
|
329
|
-
jspb.Message.getMapField(this, 8, opt_noLazyCreate,
|
|
330
|
-
null));
|
|
331
|
-
};
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Clears values from the map. The map will be non-null.
|
|
336
|
-
* @return {!proto.bucketeer.event.service.UserEvent} returns this
|
|
337
|
-
*/
|
|
338
|
-
proto.bucketeer.event.service.UserEvent.prototype.clearDataMap = function() {
|
|
339
|
-
this.getDataMap().clear();
|
|
340
|
-
return this;
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* optional bucketeer.event.client.SourceId source_id = 9;
|
|
346
|
-
* @return {!proto.bucketeer.event.client.SourceId}
|
|
347
|
-
*/
|
|
348
|
-
proto.bucketeer.event.service.UserEvent.prototype.getSourceId = function() {
|
|
349
|
-
return /** @type {!proto.bucketeer.event.client.SourceId} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* @param {!proto.bucketeer.event.client.SourceId} value
|
|
355
|
-
* @return {!proto.bucketeer.event.service.UserEvent} returns this
|
|
356
|
-
*/
|
|
357
|
-
proto.bucketeer.event.service.UserEvent.prototype.setSourceId = function(value) {
|
|
358
|
-
return jspb.Message.setProto3EnumField(this, 9, value);
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
goog.object.extend(exports, proto.bucketeer.event.service);
|