@headspace/protos-events 1.850.0 → 1.852.0
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/lib/index.d.ts +583 -0
- package/lib/index.js +1466 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -280726,6 +280726,745 @@ $root.PartnerSignalWindDownScheduled = (function() {
|
|
|
280726
280726
|
return PartnerSignalWindDownScheduled;
|
|
280727
280727
|
})();
|
|
280728
280728
|
|
|
280729
|
+
$root.ContentEngagementPassportCreated = (function() {
|
|
280730
|
+
|
|
280731
|
+
/**
|
|
280732
|
+
* Properties of a ContentEngagementPassportCreated.
|
|
280733
|
+
* @typedef {Object} ContentEngagementPassportCreated.$Properties
|
|
280734
|
+
* @property {string|null} [passportId] ContentEngagementPassportCreated passportId
|
|
280735
|
+
* @property {string|null} [profileId] ContentEngagementPassportCreated profileId
|
|
280736
|
+
* @property {string|null} [hsUserId] ContentEngagementPassportCreated hsUserId
|
|
280737
|
+
* @property {string|null} [universe] ContentEngagementPassportCreated universe
|
|
280738
|
+
* @property {number|Long|null} [timestamp] ContentEngagementPassportCreated timestamp
|
|
280739
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
280740
|
+
*/
|
|
280741
|
+
|
|
280742
|
+
/**
|
|
280743
|
+
* Properties of a ContentEngagementPassportCreated.
|
|
280744
|
+
* @name IContentEngagementPassportCreated
|
|
280745
|
+
* @interface IContentEngagementPassportCreated
|
|
280746
|
+
* @augments ContentEngagementPassportCreated.$Properties
|
|
280747
|
+
* @deprecated Use ContentEngagementPassportCreated.$Properties instead.
|
|
280748
|
+
*/
|
|
280749
|
+
|
|
280750
|
+
/**
|
|
280751
|
+
* Shape of a ContentEngagementPassportCreated.
|
|
280752
|
+
* @typedef {ContentEngagementPassportCreated.$Properties} ContentEngagementPassportCreated.$Shape
|
|
280753
|
+
*/
|
|
280754
|
+
|
|
280755
|
+
/**
|
|
280756
|
+
* Constructs a new ContentEngagementPassportCreated.
|
|
280757
|
+
* @name ContentEngagementPassportCreated
|
|
280758
|
+
* @classdesc Sent when a passport (experience-universe envelope) has been created.
|
|
280759
|
+
* Fired by hs-content-engagement-service.
|
|
280760
|
+
* Responsible team: Core Platform
|
|
280761
|
+
* Responsible domain: Content
|
|
280762
|
+
* @constructor
|
|
280763
|
+
* @param {ContentEngagementPassportCreated.$Properties=} [properties] Properties to set
|
|
280764
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
280765
|
+
*/
|
|
280766
|
+
function ContentEngagementPassportCreated(properties) {
|
|
280767
|
+
if (properties)
|
|
280768
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
280769
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
280770
|
+
this[keys[i]] = properties[keys[i]];
|
|
280771
|
+
}
|
|
280772
|
+
|
|
280773
|
+
/**
|
|
280774
|
+
* ContentEngagementPassportCreated passportId.
|
|
280775
|
+
* @member {string} passportId
|
|
280776
|
+
* @memberof ContentEngagementPassportCreated
|
|
280777
|
+
* @instance
|
|
280778
|
+
*/
|
|
280779
|
+
ContentEngagementPassportCreated.prototype.passportId = "";
|
|
280780
|
+
|
|
280781
|
+
/**
|
|
280782
|
+
* ContentEngagementPassportCreated profileId.
|
|
280783
|
+
* @member {string} profileId
|
|
280784
|
+
* @memberof ContentEngagementPassportCreated
|
|
280785
|
+
* @instance
|
|
280786
|
+
*/
|
|
280787
|
+
ContentEngagementPassportCreated.prototype.profileId = "";
|
|
280788
|
+
|
|
280789
|
+
/**
|
|
280790
|
+
* ContentEngagementPassportCreated hsUserId.
|
|
280791
|
+
* @member {string} hsUserId
|
|
280792
|
+
* @memberof ContentEngagementPassportCreated
|
|
280793
|
+
* @instance
|
|
280794
|
+
*/
|
|
280795
|
+
ContentEngagementPassportCreated.prototype.hsUserId = "";
|
|
280796
|
+
|
|
280797
|
+
/**
|
|
280798
|
+
* ContentEngagementPassportCreated universe.
|
|
280799
|
+
* @member {string} universe
|
|
280800
|
+
* @memberof ContentEngagementPassportCreated
|
|
280801
|
+
* @instance
|
|
280802
|
+
*/
|
|
280803
|
+
ContentEngagementPassportCreated.prototype.universe = "";
|
|
280804
|
+
|
|
280805
|
+
/**
|
|
280806
|
+
* ContentEngagementPassportCreated timestamp.
|
|
280807
|
+
* @member {number|Long} timestamp
|
|
280808
|
+
* @memberof ContentEngagementPassportCreated
|
|
280809
|
+
* @instance
|
|
280810
|
+
*/
|
|
280811
|
+
ContentEngagementPassportCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
280812
|
+
|
|
280813
|
+
/**
|
|
280814
|
+
* Creates a new ContentEngagementPassportCreated instance using the specified properties.
|
|
280815
|
+
* @function create
|
|
280816
|
+
* @memberof ContentEngagementPassportCreated
|
|
280817
|
+
* @static
|
|
280818
|
+
* @param {ContentEngagementPassportCreated.$Properties=} [properties] Properties to set
|
|
280819
|
+
* @returns {ContentEngagementPassportCreated} ContentEngagementPassportCreated instance
|
|
280820
|
+
* @type {{
|
|
280821
|
+
* (properties: ContentEngagementPassportCreated.$Shape): ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape;
|
|
280822
|
+
* (properties?: ContentEngagementPassportCreated.$Properties): ContentEngagementPassportCreated;
|
|
280823
|
+
* }}
|
|
280824
|
+
*/
|
|
280825
|
+
ContentEngagementPassportCreated.create = function create(properties) {
|
|
280826
|
+
return new ContentEngagementPassportCreated(properties);
|
|
280827
|
+
};
|
|
280828
|
+
|
|
280829
|
+
/**
|
|
280830
|
+
* Encodes the specified ContentEngagementPassportCreated message. Does not implicitly {@link ContentEngagementPassportCreated.verify|verify} messages.
|
|
280831
|
+
* @function encode
|
|
280832
|
+
* @memberof ContentEngagementPassportCreated
|
|
280833
|
+
* @static
|
|
280834
|
+
* @param {ContentEngagementPassportCreated.$Properties} message ContentEngagementPassportCreated message or plain object to encode
|
|
280835
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
280836
|
+
* @returns {$protobuf.Writer} Writer
|
|
280837
|
+
*/
|
|
280838
|
+
ContentEngagementPassportCreated.encode = function encode(message, writer) {
|
|
280839
|
+
if (!writer)
|
|
280840
|
+
writer = $Writer.create();
|
|
280841
|
+
if (message.passportId != null && Object.hasOwnProperty.call(message, "passportId"))
|
|
280842
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.passportId);
|
|
280843
|
+
if (message.profileId != null && Object.hasOwnProperty.call(message, "profileId"))
|
|
280844
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileId);
|
|
280845
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
280846
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
280847
|
+
if (message.universe != null && Object.hasOwnProperty.call(message, "universe"))
|
|
280848
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.universe);
|
|
280849
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
280850
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.timestamp);
|
|
280851
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
280852
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
280853
|
+
writer.raw(message.$unknowns[i]);
|
|
280854
|
+
return writer;
|
|
280855
|
+
};
|
|
280856
|
+
|
|
280857
|
+
/**
|
|
280858
|
+
* Encodes the specified ContentEngagementPassportCreated message, length delimited. Does not implicitly {@link ContentEngagementPassportCreated.verify|verify} messages.
|
|
280859
|
+
* @function encodeDelimited
|
|
280860
|
+
* @memberof ContentEngagementPassportCreated
|
|
280861
|
+
* @static
|
|
280862
|
+
* @param {ContentEngagementPassportCreated.$Properties} message ContentEngagementPassportCreated message or plain object to encode
|
|
280863
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
280864
|
+
* @returns {$protobuf.Writer} Writer
|
|
280865
|
+
*/
|
|
280866
|
+
ContentEngagementPassportCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
280867
|
+
return this.encode(message, writer).ldelim();
|
|
280868
|
+
};
|
|
280869
|
+
|
|
280870
|
+
/**
|
|
280871
|
+
* Decodes a ContentEngagementPassportCreated message from the specified reader or buffer.
|
|
280872
|
+
* @function decode
|
|
280873
|
+
* @memberof ContentEngagementPassportCreated
|
|
280874
|
+
* @static
|
|
280875
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
280876
|
+
* @param {number} [length] Message length if known beforehand
|
|
280877
|
+
* @returns {ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape} ContentEngagementPassportCreated
|
|
280878
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
280879
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
280880
|
+
*/
|
|
280881
|
+
ContentEngagementPassportCreated.decode = function decode(reader, length, _end, _depth, _target) {
|
|
280882
|
+
if (!(reader instanceof $Reader))
|
|
280883
|
+
reader = $Reader.create(reader);
|
|
280884
|
+
if (_depth === undefined)
|
|
280885
|
+
_depth = 0;
|
|
280886
|
+
if (_depth > $Reader.recursionLimit)
|
|
280887
|
+
throw Error("max depth exceeded");
|
|
280888
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.ContentEngagementPassportCreated(), value;
|
|
280889
|
+
while (reader.pos < end) {
|
|
280890
|
+
var start = reader.pos;
|
|
280891
|
+
var tag = reader.tag();
|
|
280892
|
+
if (tag === _end) {
|
|
280893
|
+
_end = undefined;
|
|
280894
|
+
break;
|
|
280895
|
+
}
|
|
280896
|
+
var wireType = tag & 7;
|
|
280897
|
+
switch (tag >>>= 3) {
|
|
280898
|
+
case 1: {
|
|
280899
|
+
if (wireType !== 2)
|
|
280900
|
+
break;
|
|
280901
|
+
if ((value = reader.string()).length)
|
|
280902
|
+
message.passportId = value;
|
|
280903
|
+
else
|
|
280904
|
+
delete message.passportId;
|
|
280905
|
+
continue;
|
|
280906
|
+
}
|
|
280907
|
+
case 2: {
|
|
280908
|
+
if (wireType !== 2)
|
|
280909
|
+
break;
|
|
280910
|
+
if ((value = reader.string()).length)
|
|
280911
|
+
message.profileId = value;
|
|
280912
|
+
else
|
|
280913
|
+
delete message.profileId;
|
|
280914
|
+
continue;
|
|
280915
|
+
}
|
|
280916
|
+
case 3: {
|
|
280917
|
+
if (wireType !== 2)
|
|
280918
|
+
break;
|
|
280919
|
+
if ((value = reader.string()).length)
|
|
280920
|
+
message.hsUserId = value;
|
|
280921
|
+
else
|
|
280922
|
+
delete message.hsUserId;
|
|
280923
|
+
continue;
|
|
280924
|
+
}
|
|
280925
|
+
case 4: {
|
|
280926
|
+
if (wireType !== 2)
|
|
280927
|
+
break;
|
|
280928
|
+
if ((value = reader.string()).length)
|
|
280929
|
+
message.universe = value;
|
|
280930
|
+
else
|
|
280931
|
+
delete message.universe;
|
|
280932
|
+
continue;
|
|
280933
|
+
}
|
|
280934
|
+
case 5: {
|
|
280935
|
+
if (wireType !== 0)
|
|
280936
|
+
break;
|
|
280937
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
280938
|
+
message.timestamp = value;
|
|
280939
|
+
else
|
|
280940
|
+
delete message.timestamp;
|
|
280941
|
+
continue;
|
|
280942
|
+
}
|
|
280943
|
+
}
|
|
280944
|
+
reader.skipType(wireType, _depth, tag);
|
|
280945
|
+
$util.makeProp(message, "$unknowns", false);
|
|
280946
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
280947
|
+
}
|
|
280948
|
+
if (_end !== undefined)
|
|
280949
|
+
throw Error("missing end group");
|
|
280950
|
+
return message;
|
|
280951
|
+
};
|
|
280952
|
+
|
|
280953
|
+
/**
|
|
280954
|
+
* Decodes a ContentEngagementPassportCreated message from the specified reader or buffer, length delimited.
|
|
280955
|
+
* @function decodeDelimited
|
|
280956
|
+
* @memberof ContentEngagementPassportCreated
|
|
280957
|
+
* @static
|
|
280958
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
280959
|
+
* @returns {ContentEngagementPassportCreated & ContentEngagementPassportCreated.$Shape} ContentEngagementPassportCreated
|
|
280960
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
280961
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
280962
|
+
*/
|
|
280963
|
+
ContentEngagementPassportCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
280964
|
+
if (!(reader instanceof $Reader))
|
|
280965
|
+
reader = new $Reader(reader);
|
|
280966
|
+
return this.decode(reader, reader.uint32());
|
|
280967
|
+
};
|
|
280968
|
+
|
|
280969
|
+
/**
|
|
280970
|
+
* Verifies a ContentEngagementPassportCreated message.
|
|
280971
|
+
* @function verify
|
|
280972
|
+
* @memberof ContentEngagementPassportCreated
|
|
280973
|
+
* @static
|
|
280974
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
280975
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
280976
|
+
*/
|
|
280977
|
+
ContentEngagementPassportCreated.verify = function verify(message, _depth) {
|
|
280978
|
+
if (typeof message !== "object" || message === null)
|
|
280979
|
+
return "object expected";
|
|
280980
|
+
if (_depth === undefined)
|
|
280981
|
+
_depth = 0;
|
|
280982
|
+
if (_depth > $util.recursionLimit)
|
|
280983
|
+
return "max depth exceeded";
|
|
280984
|
+
if (message.passportId != null && message.hasOwnProperty("passportId"))
|
|
280985
|
+
if (!$util.isString(message.passportId))
|
|
280986
|
+
return "passportId: string expected";
|
|
280987
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
280988
|
+
if (!$util.isString(message.profileId))
|
|
280989
|
+
return "profileId: string expected";
|
|
280990
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
280991
|
+
if (!$util.isString(message.hsUserId))
|
|
280992
|
+
return "hsUserId: string expected";
|
|
280993
|
+
if (message.universe != null && message.hasOwnProperty("universe"))
|
|
280994
|
+
if (!$util.isString(message.universe))
|
|
280995
|
+
return "universe: string expected";
|
|
280996
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
280997
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
280998
|
+
return "timestamp: integer|Long expected";
|
|
280999
|
+
return null;
|
|
281000
|
+
};
|
|
281001
|
+
|
|
281002
|
+
/**
|
|
281003
|
+
* Creates a ContentEngagementPassportCreated message from a plain object. Also converts values to their respective internal types.
|
|
281004
|
+
* @function fromObject
|
|
281005
|
+
* @memberof ContentEngagementPassportCreated
|
|
281006
|
+
* @static
|
|
281007
|
+
* @param {Object.<string,*>} object Plain object
|
|
281008
|
+
* @returns {ContentEngagementPassportCreated} ContentEngagementPassportCreated
|
|
281009
|
+
*/
|
|
281010
|
+
ContentEngagementPassportCreated.fromObject = function fromObject(object, _depth) {
|
|
281011
|
+
if (object instanceof $root.ContentEngagementPassportCreated)
|
|
281012
|
+
return object;
|
|
281013
|
+
if (_depth === undefined)
|
|
281014
|
+
_depth = 0;
|
|
281015
|
+
if (_depth > $util.recursionLimit)
|
|
281016
|
+
throw Error("max depth exceeded");
|
|
281017
|
+
var message = new $root.ContentEngagementPassportCreated();
|
|
281018
|
+
if (object.passportId != null)
|
|
281019
|
+
if (typeof object.passportId !== "string" || object.passportId.length)
|
|
281020
|
+
message.passportId = String(object.passportId);
|
|
281021
|
+
if (object.profileId != null)
|
|
281022
|
+
if (typeof object.profileId !== "string" || object.profileId.length)
|
|
281023
|
+
message.profileId = String(object.profileId);
|
|
281024
|
+
if (object.hsUserId != null)
|
|
281025
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
281026
|
+
message.hsUserId = String(object.hsUserId);
|
|
281027
|
+
if (object.universe != null)
|
|
281028
|
+
if (typeof object.universe !== "string" || object.universe.length)
|
|
281029
|
+
message.universe = String(object.universe);
|
|
281030
|
+
if (object.timestamp != null)
|
|
281031
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
281032
|
+
if ($util.Long)
|
|
281033
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
281034
|
+
else if (typeof object.timestamp === "string")
|
|
281035
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
281036
|
+
else if (typeof object.timestamp === "number")
|
|
281037
|
+
message.timestamp = object.timestamp;
|
|
281038
|
+
else if (typeof object.timestamp === "object")
|
|
281039
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
281040
|
+
return message;
|
|
281041
|
+
};
|
|
281042
|
+
|
|
281043
|
+
/**
|
|
281044
|
+
* Creates a plain object from a ContentEngagementPassportCreated message. Also converts values to other types if specified.
|
|
281045
|
+
* @function toObject
|
|
281046
|
+
* @memberof ContentEngagementPassportCreated
|
|
281047
|
+
* @static
|
|
281048
|
+
* @param {ContentEngagementPassportCreated} message ContentEngagementPassportCreated
|
|
281049
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
281050
|
+
* @returns {Object.<string,*>} Plain object
|
|
281051
|
+
*/
|
|
281052
|
+
ContentEngagementPassportCreated.toObject = function toObject(message, options) {
|
|
281053
|
+
if (!options)
|
|
281054
|
+
options = {};
|
|
281055
|
+
var object = {};
|
|
281056
|
+
if (options.defaults) {
|
|
281057
|
+
object.passportId = "";
|
|
281058
|
+
object.profileId = "";
|
|
281059
|
+
object.hsUserId = "";
|
|
281060
|
+
object.universe = "";
|
|
281061
|
+
if ($util.Long) {
|
|
281062
|
+
var long = new $util.Long(0, 0, true);
|
|
281063
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
281064
|
+
} else
|
|
281065
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
281066
|
+
}
|
|
281067
|
+
if (message.passportId != null && message.hasOwnProperty("passportId"))
|
|
281068
|
+
object.passportId = message.passportId;
|
|
281069
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
281070
|
+
object.profileId = message.profileId;
|
|
281071
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
281072
|
+
object.hsUserId = message.hsUserId;
|
|
281073
|
+
if (message.universe != null && message.hasOwnProperty("universe"))
|
|
281074
|
+
object.universe = message.universe;
|
|
281075
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
281076
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
281077
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
281078
|
+
else if (typeof message.timestamp === "number")
|
|
281079
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
281080
|
+
else
|
|
281081
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
281082
|
+
return object;
|
|
281083
|
+
};
|
|
281084
|
+
|
|
281085
|
+
/**
|
|
281086
|
+
* Converts this ContentEngagementPassportCreated to JSON.
|
|
281087
|
+
* @function toJSON
|
|
281088
|
+
* @memberof ContentEngagementPassportCreated
|
|
281089
|
+
* @instance
|
|
281090
|
+
* @returns {Object.<string,*>} JSON object
|
|
281091
|
+
*/
|
|
281092
|
+
ContentEngagementPassportCreated.prototype.toJSON = function toJSON() {
|
|
281093
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
281094
|
+
};
|
|
281095
|
+
|
|
281096
|
+
/**
|
|
281097
|
+
* Gets the type url for ContentEngagementPassportCreated
|
|
281098
|
+
* @function getTypeUrl
|
|
281099
|
+
* @memberof ContentEngagementPassportCreated
|
|
281100
|
+
* @static
|
|
281101
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
281102
|
+
* @returns {string} The type url
|
|
281103
|
+
*/
|
|
281104
|
+
ContentEngagementPassportCreated.getTypeUrl = function getTypeUrl(prefix) {
|
|
281105
|
+
if (prefix === undefined)
|
|
281106
|
+
prefix = "type.googleapis.com";
|
|
281107
|
+
return prefix + "/ContentEngagementPassportCreated";
|
|
281108
|
+
};
|
|
281109
|
+
|
|
281110
|
+
return ContentEngagementPassportCreated;
|
|
281111
|
+
})();
|
|
281112
|
+
|
|
281113
|
+
$root.ContentEngagementPassportDeleted = (function() {
|
|
281114
|
+
|
|
281115
|
+
/**
|
|
281116
|
+
* Properties of a ContentEngagementPassportDeleted.
|
|
281117
|
+
* @typedef {Object} ContentEngagementPassportDeleted.$Properties
|
|
281118
|
+
* @property {string|null} [passportId] ContentEngagementPassportDeleted passportId
|
|
281119
|
+
* @property {string|null} [profileId] ContentEngagementPassportDeleted profileId
|
|
281120
|
+
* @property {string|null} [hsUserId] ContentEngagementPassportDeleted hsUserId
|
|
281121
|
+
* @property {number|Long|null} [timestamp] ContentEngagementPassportDeleted timestamp
|
|
281122
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
281123
|
+
*/
|
|
281124
|
+
|
|
281125
|
+
/**
|
|
281126
|
+
* Properties of a ContentEngagementPassportDeleted.
|
|
281127
|
+
* @name IContentEngagementPassportDeleted
|
|
281128
|
+
* @interface IContentEngagementPassportDeleted
|
|
281129
|
+
* @augments ContentEngagementPassportDeleted.$Properties
|
|
281130
|
+
* @deprecated Use ContentEngagementPassportDeleted.$Properties instead.
|
|
281131
|
+
*/
|
|
281132
|
+
|
|
281133
|
+
/**
|
|
281134
|
+
* Shape of a ContentEngagementPassportDeleted.
|
|
281135
|
+
* @typedef {ContentEngagementPassportDeleted.$Properties} ContentEngagementPassportDeleted.$Shape
|
|
281136
|
+
*/
|
|
281137
|
+
|
|
281138
|
+
/**
|
|
281139
|
+
* Constructs a new ContentEngagementPassportDeleted.
|
|
281140
|
+
* @name ContentEngagementPassportDeleted
|
|
281141
|
+
* @classdesc Sent when a passport (experience-universe envelope) has been deleted.
|
|
281142
|
+
* Fired by hs-content-engagement-service.
|
|
281143
|
+
* Responsible team: Core Platform
|
|
281144
|
+
* Responsible domain: Content
|
|
281145
|
+
* @constructor
|
|
281146
|
+
* @param {ContentEngagementPassportDeleted.$Properties=} [properties] Properties to set
|
|
281147
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
281148
|
+
*/
|
|
281149
|
+
function ContentEngagementPassportDeleted(properties) {
|
|
281150
|
+
if (properties)
|
|
281151
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
281152
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
281153
|
+
this[keys[i]] = properties[keys[i]];
|
|
281154
|
+
}
|
|
281155
|
+
|
|
281156
|
+
/**
|
|
281157
|
+
* ContentEngagementPassportDeleted passportId.
|
|
281158
|
+
* @member {string} passportId
|
|
281159
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281160
|
+
* @instance
|
|
281161
|
+
*/
|
|
281162
|
+
ContentEngagementPassportDeleted.prototype.passportId = "";
|
|
281163
|
+
|
|
281164
|
+
/**
|
|
281165
|
+
* ContentEngagementPassportDeleted profileId.
|
|
281166
|
+
* @member {string} profileId
|
|
281167
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281168
|
+
* @instance
|
|
281169
|
+
*/
|
|
281170
|
+
ContentEngagementPassportDeleted.prototype.profileId = "";
|
|
281171
|
+
|
|
281172
|
+
/**
|
|
281173
|
+
* ContentEngagementPassportDeleted hsUserId.
|
|
281174
|
+
* @member {string} hsUserId
|
|
281175
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281176
|
+
* @instance
|
|
281177
|
+
*/
|
|
281178
|
+
ContentEngagementPassportDeleted.prototype.hsUserId = "";
|
|
281179
|
+
|
|
281180
|
+
/**
|
|
281181
|
+
* ContentEngagementPassportDeleted timestamp.
|
|
281182
|
+
* @member {number|Long} timestamp
|
|
281183
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281184
|
+
* @instance
|
|
281185
|
+
*/
|
|
281186
|
+
ContentEngagementPassportDeleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
281187
|
+
|
|
281188
|
+
/**
|
|
281189
|
+
* Creates a new ContentEngagementPassportDeleted instance using the specified properties.
|
|
281190
|
+
* @function create
|
|
281191
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281192
|
+
* @static
|
|
281193
|
+
* @param {ContentEngagementPassportDeleted.$Properties=} [properties] Properties to set
|
|
281194
|
+
* @returns {ContentEngagementPassportDeleted} ContentEngagementPassportDeleted instance
|
|
281195
|
+
* @type {{
|
|
281196
|
+
* (properties: ContentEngagementPassportDeleted.$Shape): ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape;
|
|
281197
|
+
* (properties?: ContentEngagementPassportDeleted.$Properties): ContentEngagementPassportDeleted;
|
|
281198
|
+
* }}
|
|
281199
|
+
*/
|
|
281200
|
+
ContentEngagementPassportDeleted.create = function create(properties) {
|
|
281201
|
+
return new ContentEngagementPassportDeleted(properties);
|
|
281202
|
+
};
|
|
281203
|
+
|
|
281204
|
+
/**
|
|
281205
|
+
* Encodes the specified ContentEngagementPassportDeleted message. Does not implicitly {@link ContentEngagementPassportDeleted.verify|verify} messages.
|
|
281206
|
+
* @function encode
|
|
281207
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281208
|
+
* @static
|
|
281209
|
+
* @param {ContentEngagementPassportDeleted.$Properties} message ContentEngagementPassportDeleted message or plain object to encode
|
|
281210
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
281211
|
+
* @returns {$protobuf.Writer} Writer
|
|
281212
|
+
*/
|
|
281213
|
+
ContentEngagementPassportDeleted.encode = function encode(message, writer) {
|
|
281214
|
+
if (!writer)
|
|
281215
|
+
writer = $Writer.create();
|
|
281216
|
+
if (message.passportId != null && Object.hasOwnProperty.call(message, "passportId"))
|
|
281217
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.passportId);
|
|
281218
|
+
if (message.profileId != null && Object.hasOwnProperty.call(message, "profileId"))
|
|
281219
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileId);
|
|
281220
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
281221
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
281222
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
281223
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp);
|
|
281224
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
281225
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
281226
|
+
writer.raw(message.$unknowns[i]);
|
|
281227
|
+
return writer;
|
|
281228
|
+
};
|
|
281229
|
+
|
|
281230
|
+
/**
|
|
281231
|
+
* Encodes the specified ContentEngagementPassportDeleted message, length delimited. Does not implicitly {@link ContentEngagementPassportDeleted.verify|verify} messages.
|
|
281232
|
+
* @function encodeDelimited
|
|
281233
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281234
|
+
* @static
|
|
281235
|
+
* @param {ContentEngagementPassportDeleted.$Properties} message ContentEngagementPassportDeleted message or plain object to encode
|
|
281236
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
281237
|
+
* @returns {$protobuf.Writer} Writer
|
|
281238
|
+
*/
|
|
281239
|
+
ContentEngagementPassportDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
281240
|
+
return this.encode(message, writer).ldelim();
|
|
281241
|
+
};
|
|
281242
|
+
|
|
281243
|
+
/**
|
|
281244
|
+
* Decodes a ContentEngagementPassportDeleted message from the specified reader or buffer.
|
|
281245
|
+
* @function decode
|
|
281246
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281247
|
+
* @static
|
|
281248
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
281249
|
+
* @param {number} [length] Message length if known beforehand
|
|
281250
|
+
* @returns {ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape} ContentEngagementPassportDeleted
|
|
281251
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
281252
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
281253
|
+
*/
|
|
281254
|
+
ContentEngagementPassportDeleted.decode = function decode(reader, length, _end, _depth, _target) {
|
|
281255
|
+
if (!(reader instanceof $Reader))
|
|
281256
|
+
reader = $Reader.create(reader);
|
|
281257
|
+
if (_depth === undefined)
|
|
281258
|
+
_depth = 0;
|
|
281259
|
+
if (_depth > $Reader.recursionLimit)
|
|
281260
|
+
throw Error("max depth exceeded");
|
|
281261
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.ContentEngagementPassportDeleted(), value;
|
|
281262
|
+
while (reader.pos < end) {
|
|
281263
|
+
var start = reader.pos;
|
|
281264
|
+
var tag = reader.tag();
|
|
281265
|
+
if (tag === _end) {
|
|
281266
|
+
_end = undefined;
|
|
281267
|
+
break;
|
|
281268
|
+
}
|
|
281269
|
+
var wireType = tag & 7;
|
|
281270
|
+
switch (tag >>>= 3) {
|
|
281271
|
+
case 1: {
|
|
281272
|
+
if (wireType !== 2)
|
|
281273
|
+
break;
|
|
281274
|
+
if ((value = reader.string()).length)
|
|
281275
|
+
message.passportId = value;
|
|
281276
|
+
else
|
|
281277
|
+
delete message.passportId;
|
|
281278
|
+
continue;
|
|
281279
|
+
}
|
|
281280
|
+
case 2: {
|
|
281281
|
+
if (wireType !== 2)
|
|
281282
|
+
break;
|
|
281283
|
+
if ((value = reader.string()).length)
|
|
281284
|
+
message.profileId = value;
|
|
281285
|
+
else
|
|
281286
|
+
delete message.profileId;
|
|
281287
|
+
continue;
|
|
281288
|
+
}
|
|
281289
|
+
case 3: {
|
|
281290
|
+
if (wireType !== 2)
|
|
281291
|
+
break;
|
|
281292
|
+
if ((value = reader.string()).length)
|
|
281293
|
+
message.hsUserId = value;
|
|
281294
|
+
else
|
|
281295
|
+
delete message.hsUserId;
|
|
281296
|
+
continue;
|
|
281297
|
+
}
|
|
281298
|
+
case 4: {
|
|
281299
|
+
if (wireType !== 0)
|
|
281300
|
+
break;
|
|
281301
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
281302
|
+
message.timestamp = value;
|
|
281303
|
+
else
|
|
281304
|
+
delete message.timestamp;
|
|
281305
|
+
continue;
|
|
281306
|
+
}
|
|
281307
|
+
}
|
|
281308
|
+
reader.skipType(wireType, _depth, tag);
|
|
281309
|
+
$util.makeProp(message, "$unknowns", false);
|
|
281310
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
281311
|
+
}
|
|
281312
|
+
if (_end !== undefined)
|
|
281313
|
+
throw Error("missing end group");
|
|
281314
|
+
return message;
|
|
281315
|
+
};
|
|
281316
|
+
|
|
281317
|
+
/**
|
|
281318
|
+
* Decodes a ContentEngagementPassportDeleted message from the specified reader or buffer, length delimited.
|
|
281319
|
+
* @function decodeDelimited
|
|
281320
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281321
|
+
* @static
|
|
281322
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
281323
|
+
* @returns {ContentEngagementPassportDeleted & ContentEngagementPassportDeleted.$Shape} ContentEngagementPassportDeleted
|
|
281324
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
281325
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
281326
|
+
*/
|
|
281327
|
+
ContentEngagementPassportDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
281328
|
+
if (!(reader instanceof $Reader))
|
|
281329
|
+
reader = new $Reader(reader);
|
|
281330
|
+
return this.decode(reader, reader.uint32());
|
|
281331
|
+
};
|
|
281332
|
+
|
|
281333
|
+
/**
|
|
281334
|
+
* Verifies a ContentEngagementPassportDeleted message.
|
|
281335
|
+
* @function verify
|
|
281336
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281337
|
+
* @static
|
|
281338
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
281339
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
281340
|
+
*/
|
|
281341
|
+
ContentEngagementPassportDeleted.verify = function verify(message, _depth) {
|
|
281342
|
+
if (typeof message !== "object" || message === null)
|
|
281343
|
+
return "object expected";
|
|
281344
|
+
if (_depth === undefined)
|
|
281345
|
+
_depth = 0;
|
|
281346
|
+
if (_depth > $util.recursionLimit)
|
|
281347
|
+
return "max depth exceeded";
|
|
281348
|
+
if (message.passportId != null && message.hasOwnProperty("passportId"))
|
|
281349
|
+
if (!$util.isString(message.passportId))
|
|
281350
|
+
return "passportId: string expected";
|
|
281351
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
281352
|
+
if (!$util.isString(message.profileId))
|
|
281353
|
+
return "profileId: string expected";
|
|
281354
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
281355
|
+
if (!$util.isString(message.hsUserId))
|
|
281356
|
+
return "hsUserId: string expected";
|
|
281357
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
281358
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
281359
|
+
return "timestamp: integer|Long expected";
|
|
281360
|
+
return null;
|
|
281361
|
+
};
|
|
281362
|
+
|
|
281363
|
+
/**
|
|
281364
|
+
* Creates a ContentEngagementPassportDeleted message from a plain object. Also converts values to their respective internal types.
|
|
281365
|
+
* @function fromObject
|
|
281366
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281367
|
+
* @static
|
|
281368
|
+
* @param {Object.<string,*>} object Plain object
|
|
281369
|
+
* @returns {ContentEngagementPassportDeleted} ContentEngagementPassportDeleted
|
|
281370
|
+
*/
|
|
281371
|
+
ContentEngagementPassportDeleted.fromObject = function fromObject(object, _depth) {
|
|
281372
|
+
if (object instanceof $root.ContentEngagementPassportDeleted)
|
|
281373
|
+
return object;
|
|
281374
|
+
if (_depth === undefined)
|
|
281375
|
+
_depth = 0;
|
|
281376
|
+
if (_depth > $util.recursionLimit)
|
|
281377
|
+
throw Error("max depth exceeded");
|
|
281378
|
+
var message = new $root.ContentEngagementPassportDeleted();
|
|
281379
|
+
if (object.passportId != null)
|
|
281380
|
+
if (typeof object.passportId !== "string" || object.passportId.length)
|
|
281381
|
+
message.passportId = String(object.passportId);
|
|
281382
|
+
if (object.profileId != null)
|
|
281383
|
+
if (typeof object.profileId !== "string" || object.profileId.length)
|
|
281384
|
+
message.profileId = String(object.profileId);
|
|
281385
|
+
if (object.hsUserId != null)
|
|
281386
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
281387
|
+
message.hsUserId = String(object.hsUserId);
|
|
281388
|
+
if (object.timestamp != null)
|
|
281389
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
281390
|
+
if ($util.Long)
|
|
281391
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
281392
|
+
else if (typeof object.timestamp === "string")
|
|
281393
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
281394
|
+
else if (typeof object.timestamp === "number")
|
|
281395
|
+
message.timestamp = object.timestamp;
|
|
281396
|
+
else if (typeof object.timestamp === "object")
|
|
281397
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
281398
|
+
return message;
|
|
281399
|
+
};
|
|
281400
|
+
|
|
281401
|
+
/**
|
|
281402
|
+
* Creates a plain object from a ContentEngagementPassportDeleted message. Also converts values to other types if specified.
|
|
281403
|
+
* @function toObject
|
|
281404
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281405
|
+
* @static
|
|
281406
|
+
* @param {ContentEngagementPassportDeleted} message ContentEngagementPassportDeleted
|
|
281407
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
281408
|
+
* @returns {Object.<string,*>} Plain object
|
|
281409
|
+
*/
|
|
281410
|
+
ContentEngagementPassportDeleted.toObject = function toObject(message, options) {
|
|
281411
|
+
if (!options)
|
|
281412
|
+
options = {};
|
|
281413
|
+
var object = {};
|
|
281414
|
+
if (options.defaults) {
|
|
281415
|
+
object.passportId = "";
|
|
281416
|
+
object.profileId = "";
|
|
281417
|
+
object.hsUserId = "";
|
|
281418
|
+
if ($util.Long) {
|
|
281419
|
+
var long = new $util.Long(0, 0, true);
|
|
281420
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
281421
|
+
} else
|
|
281422
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
281423
|
+
}
|
|
281424
|
+
if (message.passportId != null && message.hasOwnProperty("passportId"))
|
|
281425
|
+
object.passportId = message.passportId;
|
|
281426
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
281427
|
+
object.profileId = message.profileId;
|
|
281428
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
281429
|
+
object.hsUserId = message.hsUserId;
|
|
281430
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
281431
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
281432
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
281433
|
+
else if (typeof message.timestamp === "number")
|
|
281434
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
281435
|
+
else
|
|
281436
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
281437
|
+
return object;
|
|
281438
|
+
};
|
|
281439
|
+
|
|
281440
|
+
/**
|
|
281441
|
+
* Converts this ContentEngagementPassportDeleted to JSON.
|
|
281442
|
+
* @function toJSON
|
|
281443
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281444
|
+
* @instance
|
|
281445
|
+
* @returns {Object.<string,*>} JSON object
|
|
281446
|
+
*/
|
|
281447
|
+
ContentEngagementPassportDeleted.prototype.toJSON = function toJSON() {
|
|
281448
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
281449
|
+
};
|
|
281450
|
+
|
|
281451
|
+
/**
|
|
281452
|
+
* Gets the type url for ContentEngagementPassportDeleted
|
|
281453
|
+
* @function getTypeUrl
|
|
281454
|
+
* @memberof ContentEngagementPassportDeleted
|
|
281455
|
+
* @static
|
|
281456
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
281457
|
+
* @returns {string} The type url
|
|
281458
|
+
*/
|
|
281459
|
+
ContentEngagementPassportDeleted.getTypeUrl = function getTypeUrl(prefix) {
|
|
281460
|
+
if (prefix === undefined)
|
|
281461
|
+
prefix = "type.googleapis.com";
|
|
281462
|
+
return prefix + "/ContentEngagementPassportDeleted";
|
|
281463
|
+
};
|
|
281464
|
+
|
|
281465
|
+
return ContentEngagementPassportDeleted;
|
|
281466
|
+
})();
|
|
281467
|
+
|
|
280729
281468
|
$root.PHQAssessmentAssigned = (function() {
|
|
280730
281469
|
|
|
280731
281470
|
/**
|
|
@@ -324017,6 +324756,733 @@ $root.UserServiceAppClient = (function() {
|
|
|
324017
324756
|
return values;
|
|
324018
324757
|
})();
|
|
324019
324758
|
|
|
324759
|
+
$root.UserProfileCreated = (function() {
|
|
324760
|
+
|
|
324761
|
+
/**
|
|
324762
|
+
* Properties of a UserProfileCreated.
|
|
324763
|
+
* @typedef {Object} UserProfileCreated.$Properties
|
|
324764
|
+
* @property {string|null} [hsUserId] UserProfileCreated hsUserId
|
|
324765
|
+
* @property {string|null} [profileId] UserProfileCreated profileId
|
|
324766
|
+
* @property {string|null} [displayName] UserProfileCreated displayName
|
|
324767
|
+
* @property {string|null} [birthYearMonth] UserProfileCreated birthYearMonth
|
|
324768
|
+
* @property {number|Long|null} [timestamp] UserProfileCreated timestamp
|
|
324769
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
324770
|
+
*/
|
|
324771
|
+
|
|
324772
|
+
/**
|
|
324773
|
+
* Properties of a UserProfileCreated.
|
|
324774
|
+
* @name IUserProfileCreated
|
|
324775
|
+
* @interface IUserProfileCreated
|
|
324776
|
+
* @augments UserProfileCreated.$Properties
|
|
324777
|
+
* @deprecated Use UserProfileCreated.$Properties instead.
|
|
324778
|
+
*/
|
|
324779
|
+
|
|
324780
|
+
/**
|
|
324781
|
+
* Shape of a UserProfileCreated.
|
|
324782
|
+
* @typedef {UserProfileCreated.$Properties} UserProfileCreated.$Shape
|
|
324783
|
+
*/
|
|
324784
|
+
|
|
324785
|
+
/**
|
|
324786
|
+
* Constructs a new UserProfileCreated.
|
|
324787
|
+
* @name UserProfileCreated
|
|
324788
|
+
* @classdesc Sent when a Headspace Jr. child profile is created.
|
|
324789
|
+
*
|
|
324790
|
+
* "Profile" here is the Headspace Jr. child-profile identity concept. It is a different
|
|
324791
|
+
* bounded concept from the pre-existing, apparently-unused UserProfileResponse /
|
|
324792
|
+
* UserProfileManager RPC schema in protos/services/user/user_profile.proto (an Amplitude
|
|
324793
|
+
* profile lookup) — do not conflate the two.
|
|
324794
|
+
*
|
|
324795
|
+
* display_name and birth_year_month are intentionally carried on this event for
|
|
324796
|
+
* data-lake-only routing. Do not remove them assuming they are an oversight.
|
|
324797
|
+
*
|
|
324798
|
+
* Consumers: published by hs-user-service; consumed by Braze/lifecycle and the data lake.
|
|
324799
|
+
* @constructor
|
|
324800
|
+
* @param {UserProfileCreated.$Properties=} [properties] Properties to set
|
|
324801
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
324802
|
+
*/
|
|
324803
|
+
function UserProfileCreated(properties) {
|
|
324804
|
+
if (properties)
|
|
324805
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
324806
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
324807
|
+
this[keys[i]] = properties[keys[i]];
|
|
324808
|
+
}
|
|
324809
|
+
|
|
324810
|
+
/**
|
|
324811
|
+
* UserProfileCreated hsUserId.
|
|
324812
|
+
* @member {string} hsUserId
|
|
324813
|
+
* @memberof UserProfileCreated
|
|
324814
|
+
* @instance
|
|
324815
|
+
*/
|
|
324816
|
+
UserProfileCreated.prototype.hsUserId = "";
|
|
324817
|
+
|
|
324818
|
+
/**
|
|
324819
|
+
* UserProfileCreated profileId.
|
|
324820
|
+
* @member {string} profileId
|
|
324821
|
+
* @memberof UserProfileCreated
|
|
324822
|
+
* @instance
|
|
324823
|
+
*/
|
|
324824
|
+
UserProfileCreated.prototype.profileId = "";
|
|
324825
|
+
|
|
324826
|
+
/**
|
|
324827
|
+
* UserProfileCreated displayName.
|
|
324828
|
+
* @member {string} displayName
|
|
324829
|
+
* @memberof UserProfileCreated
|
|
324830
|
+
* @instance
|
|
324831
|
+
*/
|
|
324832
|
+
UserProfileCreated.prototype.displayName = "";
|
|
324833
|
+
|
|
324834
|
+
/**
|
|
324835
|
+
* UserProfileCreated birthYearMonth.
|
|
324836
|
+
* @member {string} birthYearMonth
|
|
324837
|
+
* @memberof UserProfileCreated
|
|
324838
|
+
* @instance
|
|
324839
|
+
*/
|
|
324840
|
+
UserProfileCreated.prototype.birthYearMonth = "";
|
|
324841
|
+
|
|
324842
|
+
/**
|
|
324843
|
+
* UserProfileCreated timestamp.
|
|
324844
|
+
* @member {number|Long} timestamp
|
|
324845
|
+
* @memberof UserProfileCreated
|
|
324846
|
+
* @instance
|
|
324847
|
+
*/
|
|
324848
|
+
UserProfileCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
324849
|
+
|
|
324850
|
+
/**
|
|
324851
|
+
* Creates a new UserProfileCreated instance using the specified properties.
|
|
324852
|
+
* @function create
|
|
324853
|
+
* @memberof UserProfileCreated
|
|
324854
|
+
* @static
|
|
324855
|
+
* @param {UserProfileCreated.$Properties=} [properties] Properties to set
|
|
324856
|
+
* @returns {UserProfileCreated} UserProfileCreated instance
|
|
324857
|
+
* @type {{
|
|
324858
|
+
* (properties: UserProfileCreated.$Shape): UserProfileCreated & UserProfileCreated.$Shape;
|
|
324859
|
+
* (properties?: UserProfileCreated.$Properties): UserProfileCreated;
|
|
324860
|
+
* }}
|
|
324861
|
+
*/
|
|
324862
|
+
UserProfileCreated.create = function create(properties) {
|
|
324863
|
+
return new UserProfileCreated(properties);
|
|
324864
|
+
};
|
|
324865
|
+
|
|
324866
|
+
/**
|
|
324867
|
+
* Encodes the specified UserProfileCreated message. Does not implicitly {@link UserProfileCreated.verify|verify} messages.
|
|
324868
|
+
* @function encode
|
|
324869
|
+
* @memberof UserProfileCreated
|
|
324870
|
+
* @static
|
|
324871
|
+
* @param {UserProfileCreated.$Properties} message UserProfileCreated message or plain object to encode
|
|
324872
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
324873
|
+
* @returns {$protobuf.Writer} Writer
|
|
324874
|
+
*/
|
|
324875
|
+
UserProfileCreated.encode = function encode(message, writer) {
|
|
324876
|
+
if (!writer)
|
|
324877
|
+
writer = $Writer.create();
|
|
324878
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
324879
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
324880
|
+
if (message.profileId != null && Object.hasOwnProperty.call(message, "profileId"))
|
|
324881
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileId);
|
|
324882
|
+
if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
|
|
324883
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName);
|
|
324884
|
+
if (message.birthYearMonth != null && Object.hasOwnProperty.call(message, "birthYearMonth"))
|
|
324885
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.birthYearMonth);
|
|
324886
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
324887
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.timestamp);
|
|
324888
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
324889
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
324890
|
+
writer.raw(message.$unknowns[i]);
|
|
324891
|
+
return writer;
|
|
324892
|
+
};
|
|
324893
|
+
|
|
324894
|
+
/**
|
|
324895
|
+
* Encodes the specified UserProfileCreated message, length delimited. Does not implicitly {@link UserProfileCreated.verify|verify} messages.
|
|
324896
|
+
* @function encodeDelimited
|
|
324897
|
+
* @memberof UserProfileCreated
|
|
324898
|
+
* @static
|
|
324899
|
+
* @param {UserProfileCreated.$Properties} message UserProfileCreated message or plain object to encode
|
|
324900
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
324901
|
+
* @returns {$protobuf.Writer} Writer
|
|
324902
|
+
*/
|
|
324903
|
+
UserProfileCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
324904
|
+
return this.encode(message, writer).ldelim();
|
|
324905
|
+
};
|
|
324906
|
+
|
|
324907
|
+
/**
|
|
324908
|
+
* Decodes a UserProfileCreated message from the specified reader or buffer.
|
|
324909
|
+
* @function decode
|
|
324910
|
+
* @memberof UserProfileCreated
|
|
324911
|
+
* @static
|
|
324912
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
324913
|
+
* @param {number} [length] Message length if known beforehand
|
|
324914
|
+
* @returns {UserProfileCreated & UserProfileCreated.$Shape} UserProfileCreated
|
|
324915
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
324916
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
324917
|
+
*/
|
|
324918
|
+
UserProfileCreated.decode = function decode(reader, length, _end, _depth, _target) {
|
|
324919
|
+
if (!(reader instanceof $Reader))
|
|
324920
|
+
reader = $Reader.create(reader);
|
|
324921
|
+
if (_depth === undefined)
|
|
324922
|
+
_depth = 0;
|
|
324923
|
+
if (_depth > $Reader.recursionLimit)
|
|
324924
|
+
throw Error("max depth exceeded");
|
|
324925
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserProfileCreated(), value;
|
|
324926
|
+
while (reader.pos < end) {
|
|
324927
|
+
var start = reader.pos;
|
|
324928
|
+
var tag = reader.tag();
|
|
324929
|
+
if (tag === _end) {
|
|
324930
|
+
_end = undefined;
|
|
324931
|
+
break;
|
|
324932
|
+
}
|
|
324933
|
+
var wireType = tag & 7;
|
|
324934
|
+
switch (tag >>>= 3) {
|
|
324935
|
+
case 1: {
|
|
324936
|
+
if (wireType !== 2)
|
|
324937
|
+
break;
|
|
324938
|
+
if ((value = reader.string()).length)
|
|
324939
|
+
message.hsUserId = value;
|
|
324940
|
+
else
|
|
324941
|
+
delete message.hsUserId;
|
|
324942
|
+
continue;
|
|
324943
|
+
}
|
|
324944
|
+
case 2: {
|
|
324945
|
+
if (wireType !== 2)
|
|
324946
|
+
break;
|
|
324947
|
+
if ((value = reader.string()).length)
|
|
324948
|
+
message.profileId = value;
|
|
324949
|
+
else
|
|
324950
|
+
delete message.profileId;
|
|
324951
|
+
continue;
|
|
324952
|
+
}
|
|
324953
|
+
case 3: {
|
|
324954
|
+
if (wireType !== 2)
|
|
324955
|
+
break;
|
|
324956
|
+
if ((value = reader.string()).length)
|
|
324957
|
+
message.displayName = value;
|
|
324958
|
+
else
|
|
324959
|
+
delete message.displayName;
|
|
324960
|
+
continue;
|
|
324961
|
+
}
|
|
324962
|
+
case 4: {
|
|
324963
|
+
if (wireType !== 2)
|
|
324964
|
+
break;
|
|
324965
|
+
if ((value = reader.string()).length)
|
|
324966
|
+
message.birthYearMonth = value;
|
|
324967
|
+
else
|
|
324968
|
+
delete message.birthYearMonth;
|
|
324969
|
+
continue;
|
|
324970
|
+
}
|
|
324971
|
+
case 5: {
|
|
324972
|
+
if (wireType !== 0)
|
|
324973
|
+
break;
|
|
324974
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
324975
|
+
message.timestamp = value;
|
|
324976
|
+
else
|
|
324977
|
+
delete message.timestamp;
|
|
324978
|
+
continue;
|
|
324979
|
+
}
|
|
324980
|
+
}
|
|
324981
|
+
reader.skipType(wireType, _depth, tag);
|
|
324982
|
+
$util.makeProp(message, "$unknowns", false);
|
|
324983
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
324984
|
+
}
|
|
324985
|
+
if (_end !== undefined)
|
|
324986
|
+
throw Error("missing end group");
|
|
324987
|
+
return message;
|
|
324988
|
+
};
|
|
324989
|
+
|
|
324990
|
+
/**
|
|
324991
|
+
* Decodes a UserProfileCreated message from the specified reader or buffer, length delimited.
|
|
324992
|
+
* @function decodeDelimited
|
|
324993
|
+
* @memberof UserProfileCreated
|
|
324994
|
+
* @static
|
|
324995
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
324996
|
+
* @returns {UserProfileCreated & UserProfileCreated.$Shape} UserProfileCreated
|
|
324997
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
324998
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
324999
|
+
*/
|
|
325000
|
+
UserProfileCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
325001
|
+
if (!(reader instanceof $Reader))
|
|
325002
|
+
reader = new $Reader(reader);
|
|
325003
|
+
return this.decode(reader, reader.uint32());
|
|
325004
|
+
};
|
|
325005
|
+
|
|
325006
|
+
/**
|
|
325007
|
+
* Verifies a UserProfileCreated message.
|
|
325008
|
+
* @function verify
|
|
325009
|
+
* @memberof UserProfileCreated
|
|
325010
|
+
* @static
|
|
325011
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
325012
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
325013
|
+
*/
|
|
325014
|
+
UserProfileCreated.verify = function verify(message, _depth) {
|
|
325015
|
+
if (typeof message !== "object" || message === null)
|
|
325016
|
+
return "object expected";
|
|
325017
|
+
if (_depth === undefined)
|
|
325018
|
+
_depth = 0;
|
|
325019
|
+
if (_depth > $util.recursionLimit)
|
|
325020
|
+
return "max depth exceeded";
|
|
325021
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
325022
|
+
if (!$util.isString(message.hsUserId))
|
|
325023
|
+
return "hsUserId: string expected";
|
|
325024
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
325025
|
+
if (!$util.isString(message.profileId))
|
|
325026
|
+
return "profileId: string expected";
|
|
325027
|
+
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
325028
|
+
if (!$util.isString(message.displayName))
|
|
325029
|
+
return "displayName: string expected";
|
|
325030
|
+
if (message.birthYearMonth != null && message.hasOwnProperty("birthYearMonth"))
|
|
325031
|
+
if (!$util.isString(message.birthYearMonth))
|
|
325032
|
+
return "birthYearMonth: string expected";
|
|
325033
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
325034
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
325035
|
+
return "timestamp: integer|Long expected";
|
|
325036
|
+
return null;
|
|
325037
|
+
};
|
|
325038
|
+
|
|
325039
|
+
/**
|
|
325040
|
+
* Creates a UserProfileCreated message from a plain object. Also converts values to their respective internal types.
|
|
325041
|
+
* @function fromObject
|
|
325042
|
+
* @memberof UserProfileCreated
|
|
325043
|
+
* @static
|
|
325044
|
+
* @param {Object.<string,*>} object Plain object
|
|
325045
|
+
* @returns {UserProfileCreated} UserProfileCreated
|
|
325046
|
+
*/
|
|
325047
|
+
UserProfileCreated.fromObject = function fromObject(object, _depth) {
|
|
325048
|
+
if (object instanceof $root.UserProfileCreated)
|
|
325049
|
+
return object;
|
|
325050
|
+
if (_depth === undefined)
|
|
325051
|
+
_depth = 0;
|
|
325052
|
+
if (_depth > $util.recursionLimit)
|
|
325053
|
+
throw Error("max depth exceeded");
|
|
325054
|
+
var message = new $root.UserProfileCreated();
|
|
325055
|
+
if (object.hsUserId != null)
|
|
325056
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
325057
|
+
message.hsUserId = String(object.hsUserId);
|
|
325058
|
+
if (object.profileId != null)
|
|
325059
|
+
if (typeof object.profileId !== "string" || object.profileId.length)
|
|
325060
|
+
message.profileId = String(object.profileId);
|
|
325061
|
+
if (object.displayName != null)
|
|
325062
|
+
if (typeof object.displayName !== "string" || object.displayName.length)
|
|
325063
|
+
message.displayName = String(object.displayName);
|
|
325064
|
+
if (object.birthYearMonth != null)
|
|
325065
|
+
if (typeof object.birthYearMonth !== "string" || object.birthYearMonth.length)
|
|
325066
|
+
message.birthYearMonth = String(object.birthYearMonth);
|
|
325067
|
+
if (object.timestamp != null)
|
|
325068
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
325069
|
+
if ($util.Long)
|
|
325070
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
325071
|
+
else if (typeof object.timestamp === "string")
|
|
325072
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
325073
|
+
else if (typeof object.timestamp === "number")
|
|
325074
|
+
message.timestamp = object.timestamp;
|
|
325075
|
+
else if (typeof object.timestamp === "object")
|
|
325076
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
325077
|
+
return message;
|
|
325078
|
+
};
|
|
325079
|
+
|
|
325080
|
+
/**
|
|
325081
|
+
* Creates a plain object from a UserProfileCreated message. Also converts values to other types if specified.
|
|
325082
|
+
* @function toObject
|
|
325083
|
+
* @memberof UserProfileCreated
|
|
325084
|
+
* @static
|
|
325085
|
+
* @param {UserProfileCreated} message UserProfileCreated
|
|
325086
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
325087
|
+
* @returns {Object.<string,*>} Plain object
|
|
325088
|
+
*/
|
|
325089
|
+
UserProfileCreated.toObject = function toObject(message, options) {
|
|
325090
|
+
if (!options)
|
|
325091
|
+
options = {};
|
|
325092
|
+
var object = {};
|
|
325093
|
+
if (options.defaults) {
|
|
325094
|
+
object.hsUserId = "";
|
|
325095
|
+
object.profileId = "";
|
|
325096
|
+
object.displayName = "";
|
|
325097
|
+
object.birthYearMonth = "";
|
|
325098
|
+
if ($util.Long) {
|
|
325099
|
+
var long = new $util.Long(0, 0, true);
|
|
325100
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
325101
|
+
} else
|
|
325102
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
325103
|
+
}
|
|
325104
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
325105
|
+
object.hsUserId = message.hsUserId;
|
|
325106
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
325107
|
+
object.profileId = message.profileId;
|
|
325108
|
+
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
325109
|
+
object.displayName = message.displayName;
|
|
325110
|
+
if (message.birthYearMonth != null && message.hasOwnProperty("birthYearMonth"))
|
|
325111
|
+
object.birthYearMonth = message.birthYearMonth;
|
|
325112
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
325113
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
325114
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
325115
|
+
else if (typeof message.timestamp === "number")
|
|
325116
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
325117
|
+
else
|
|
325118
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
325119
|
+
return object;
|
|
325120
|
+
};
|
|
325121
|
+
|
|
325122
|
+
/**
|
|
325123
|
+
* Converts this UserProfileCreated to JSON.
|
|
325124
|
+
* @function toJSON
|
|
325125
|
+
* @memberof UserProfileCreated
|
|
325126
|
+
* @instance
|
|
325127
|
+
* @returns {Object.<string,*>} JSON object
|
|
325128
|
+
*/
|
|
325129
|
+
UserProfileCreated.prototype.toJSON = function toJSON() {
|
|
325130
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
325131
|
+
};
|
|
325132
|
+
|
|
325133
|
+
/**
|
|
325134
|
+
* Gets the type url for UserProfileCreated
|
|
325135
|
+
* @function getTypeUrl
|
|
325136
|
+
* @memberof UserProfileCreated
|
|
325137
|
+
* @static
|
|
325138
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
325139
|
+
* @returns {string} The type url
|
|
325140
|
+
*/
|
|
325141
|
+
UserProfileCreated.getTypeUrl = function getTypeUrl(prefix) {
|
|
325142
|
+
if (prefix === undefined)
|
|
325143
|
+
prefix = "type.googleapis.com";
|
|
325144
|
+
return prefix + "/UserProfileCreated";
|
|
325145
|
+
};
|
|
325146
|
+
|
|
325147
|
+
return UserProfileCreated;
|
|
325148
|
+
})();
|
|
325149
|
+
|
|
325150
|
+
$root.UserProfileDeleted = (function() {
|
|
325151
|
+
|
|
325152
|
+
/**
|
|
325153
|
+
* Properties of a UserProfileDeleted.
|
|
325154
|
+
* @typedef {Object} UserProfileDeleted.$Properties
|
|
325155
|
+
* @property {string|null} [hsUserId] UserProfileDeleted hsUserId
|
|
325156
|
+
* @property {string|null} [profileId] UserProfileDeleted profileId
|
|
325157
|
+
* @property {number|Long|null} [timestamp] UserProfileDeleted timestamp
|
|
325158
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
325159
|
+
*/
|
|
325160
|
+
|
|
325161
|
+
/**
|
|
325162
|
+
* Properties of a UserProfileDeleted.
|
|
325163
|
+
* @name IUserProfileDeleted
|
|
325164
|
+
* @interface IUserProfileDeleted
|
|
325165
|
+
* @augments UserProfileDeleted.$Properties
|
|
325166
|
+
* @deprecated Use UserProfileDeleted.$Properties instead.
|
|
325167
|
+
*/
|
|
325168
|
+
|
|
325169
|
+
/**
|
|
325170
|
+
* Shape of a UserProfileDeleted.
|
|
325171
|
+
* @typedef {UserProfileDeleted.$Properties} UserProfileDeleted.$Shape
|
|
325172
|
+
*/
|
|
325173
|
+
|
|
325174
|
+
/**
|
|
325175
|
+
* Constructs a new UserProfileDeleted.
|
|
325176
|
+
* @name UserProfileDeleted
|
|
325177
|
+
* @classdesc Sent when a Headspace Jr. child profile is deleted.
|
|
325178
|
+
*
|
|
325179
|
+
* "Profile" here is the Headspace Jr. child-profile identity concept. It is a different
|
|
325180
|
+
* bounded concept from the pre-existing, apparently-unused UserProfileResponse /
|
|
325181
|
+
* UserProfileManager RPC schema in protos/services/user/user_profile.proto (an Amplitude
|
|
325182
|
+
* profile lookup) — do not conflate the two.
|
|
325183
|
+
*
|
|
325184
|
+
* Consumers: published by hs-user-service; consumed by hs-content-engagement-service to
|
|
325185
|
+
* cascade-delete the profile's passports.
|
|
325186
|
+
*
|
|
325187
|
+
* That cascade delete is eventually consistent, not atomic: this event fires after the
|
|
325188
|
+
* profile row is already gone, and passport cleanup happens asynchronously on the consumer
|
|
325189
|
+
* side afterward. A caller can briefly still see a just-deleted profile's passports until
|
|
325190
|
+
* this event is consumed. This is an accepted tradeoff, not a bug.
|
|
325191
|
+
* @constructor
|
|
325192
|
+
* @param {UserProfileDeleted.$Properties=} [properties] Properties to set
|
|
325193
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
325194
|
+
*/
|
|
325195
|
+
function UserProfileDeleted(properties) {
|
|
325196
|
+
if (properties)
|
|
325197
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
325198
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
325199
|
+
this[keys[i]] = properties[keys[i]];
|
|
325200
|
+
}
|
|
325201
|
+
|
|
325202
|
+
/**
|
|
325203
|
+
* UserProfileDeleted hsUserId.
|
|
325204
|
+
* @member {string} hsUserId
|
|
325205
|
+
* @memberof UserProfileDeleted
|
|
325206
|
+
* @instance
|
|
325207
|
+
*/
|
|
325208
|
+
UserProfileDeleted.prototype.hsUserId = "";
|
|
325209
|
+
|
|
325210
|
+
/**
|
|
325211
|
+
* UserProfileDeleted profileId.
|
|
325212
|
+
* @member {string} profileId
|
|
325213
|
+
* @memberof UserProfileDeleted
|
|
325214
|
+
* @instance
|
|
325215
|
+
*/
|
|
325216
|
+
UserProfileDeleted.prototype.profileId = "";
|
|
325217
|
+
|
|
325218
|
+
/**
|
|
325219
|
+
* UserProfileDeleted timestamp.
|
|
325220
|
+
* @member {number|Long} timestamp
|
|
325221
|
+
* @memberof UserProfileDeleted
|
|
325222
|
+
* @instance
|
|
325223
|
+
*/
|
|
325224
|
+
UserProfileDeleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
325225
|
+
|
|
325226
|
+
/**
|
|
325227
|
+
* Creates a new UserProfileDeleted instance using the specified properties.
|
|
325228
|
+
* @function create
|
|
325229
|
+
* @memberof UserProfileDeleted
|
|
325230
|
+
* @static
|
|
325231
|
+
* @param {UserProfileDeleted.$Properties=} [properties] Properties to set
|
|
325232
|
+
* @returns {UserProfileDeleted} UserProfileDeleted instance
|
|
325233
|
+
* @type {{
|
|
325234
|
+
* (properties: UserProfileDeleted.$Shape): UserProfileDeleted & UserProfileDeleted.$Shape;
|
|
325235
|
+
* (properties?: UserProfileDeleted.$Properties): UserProfileDeleted;
|
|
325236
|
+
* }}
|
|
325237
|
+
*/
|
|
325238
|
+
UserProfileDeleted.create = function create(properties) {
|
|
325239
|
+
return new UserProfileDeleted(properties);
|
|
325240
|
+
};
|
|
325241
|
+
|
|
325242
|
+
/**
|
|
325243
|
+
* Encodes the specified UserProfileDeleted message. Does not implicitly {@link UserProfileDeleted.verify|verify} messages.
|
|
325244
|
+
* @function encode
|
|
325245
|
+
* @memberof UserProfileDeleted
|
|
325246
|
+
* @static
|
|
325247
|
+
* @param {UserProfileDeleted.$Properties} message UserProfileDeleted message or plain object to encode
|
|
325248
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
325249
|
+
* @returns {$protobuf.Writer} Writer
|
|
325250
|
+
*/
|
|
325251
|
+
UserProfileDeleted.encode = function encode(message, writer) {
|
|
325252
|
+
if (!writer)
|
|
325253
|
+
writer = $Writer.create();
|
|
325254
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
325255
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
325256
|
+
if (message.profileId != null && Object.hasOwnProperty.call(message, "profileId"))
|
|
325257
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileId);
|
|
325258
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
325259
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
325260
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
325261
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
325262
|
+
writer.raw(message.$unknowns[i]);
|
|
325263
|
+
return writer;
|
|
325264
|
+
};
|
|
325265
|
+
|
|
325266
|
+
/**
|
|
325267
|
+
* Encodes the specified UserProfileDeleted message, length delimited. Does not implicitly {@link UserProfileDeleted.verify|verify} messages.
|
|
325268
|
+
* @function encodeDelimited
|
|
325269
|
+
* @memberof UserProfileDeleted
|
|
325270
|
+
* @static
|
|
325271
|
+
* @param {UserProfileDeleted.$Properties} message UserProfileDeleted message or plain object to encode
|
|
325272
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
325273
|
+
* @returns {$protobuf.Writer} Writer
|
|
325274
|
+
*/
|
|
325275
|
+
UserProfileDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
325276
|
+
return this.encode(message, writer).ldelim();
|
|
325277
|
+
};
|
|
325278
|
+
|
|
325279
|
+
/**
|
|
325280
|
+
* Decodes a UserProfileDeleted message from the specified reader or buffer.
|
|
325281
|
+
* @function decode
|
|
325282
|
+
* @memberof UserProfileDeleted
|
|
325283
|
+
* @static
|
|
325284
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
325285
|
+
* @param {number} [length] Message length if known beforehand
|
|
325286
|
+
* @returns {UserProfileDeleted & UserProfileDeleted.$Shape} UserProfileDeleted
|
|
325287
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
325288
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
325289
|
+
*/
|
|
325290
|
+
UserProfileDeleted.decode = function decode(reader, length, _end, _depth, _target) {
|
|
325291
|
+
if (!(reader instanceof $Reader))
|
|
325292
|
+
reader = $Reader.create(reader);
|
|
325293
|
+
if (_depth === undefined)
|
|
325294
|
+
_depth = 0;
|
|
325295
|
+
if (_depth > $Reader.recursionLimit)
|
|
325296
|
+
throw Error("max depth exceeded");
|
|
325297
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserProfileDeleted(), value;
|
|
325298
|
+
while (reader.pos < end) {
|
|
325299
|
+
var start = reader.pos;
|
|
325300
|
+
var tag = reader.tag();
|
|
325301
|
+
if (tag === _end) {
|
|
325302
|
+
_end = undefined;
|
|
325303
|
+
break;
|
|
325304
|
+
}
|
|
325305
|
+
var wireType = tag & 7;
|
|
325306
|
+
switch (tag >>>= 3) {
|
|
325307
|
+
case 1: {
|
|
325308
|
+
if (wireType !== 2)
|
|
325309
|
+
break;
|
|
325310
|
+
if ((value = reader.string()).length)
|
|
325311
|
+
message.hsUserId = value;
|
|
325312
|
+
else
|
|
325313
|
+
delete message.hsUserId;
|
|
325314
|
+
continue;
|
|
325315
|
+
}
|
|
325316
|
+
case 2: {
|
|
325317
|
+
if (wireType !== 2)
|
|
325318
|
+
break;
|
|
325319
|
+
if ((value = reader.string()).length)
|
|
325320
|
+
message.profileId = value;
|
|
325321
|
+
else
|
|
325322
|
+
delete message.profileId;
|
|
325323
|
+
continue;
|
|
325324
|
+
}
|
|
325325
|
+
case 3: {
|
|
325326
|
+
if (wireType !== 0)
|
|
325327
|
+
break;
|
|
325328
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
325329
|
+
message.timestamp = value;
|
|
325330
|
+
else
|
|
325331
|
+
delete message.timestamp;
|
|
325332
|
+
continue;
|
|
325333
|
+
}
|
|
325334
|
+
}
|
|
325335
|
+
reader.skipType(wireType, _depth, tag);
|
|
325336
|
+
$util.makeProp(message, "$unknowns", false);
|
|
325337
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
325338
|
+
}
|
|
325339
|
+
if (_end !== undefined)
|
|
325340
|
+
throw Error("missing end group");
|
|
325341
|
+
return message;
|
|
325342
|
+
};
|
|
325343
|
+
|
|
325344
|
+
/**
|
|
325345
|
+
* Decodes a UserProfileDeleted message from the specified reader or buffer, length delimited.
|
|
325346
|
+
* @function decodeDelimited
|
|
325347
|
+
* @memberof UserProfileDeleted
|
|
325348
|
+
* @static
|
|
325349
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
325350
|
+
* @returns {UserProfileDeleted & UserProfileDeleted.$Shape} UserProfileDeleted
|
|
325351
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
325352
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
325353
|
+
*/
|
|
325354
|
+
UserProfileDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
325355
|
+
if (!(reader instanceof $Reader))
|
|
325356
|
+
reader = new $Reader(reader);
|
|
325357
|
+
return this.decode(reader, reader.uint32());
|
|
325358
|
+
};
|
|
325359
|
+
|
|
325360
|
+
/**
|
|
325361
|
+
* Verifies a UserProfileDeleted message.
|
|
325362
|
+
* @function verify
|
|
325363
|
+
* @memberof UserProfileDeleted
|
|
325364
|
+
* @static
|
|
325365
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
325366
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
325367
|
+
*/
|
|
325368
|
+
UserProfileDeleted.verify = function verify(message, _depth) {
|
|
325369
|
+
if (typeof message !== "object" || message === null)
|
|
325370
|
+
return "object expected";
|
|
325371
|
+
if (_depth === undefined)
|
|
325372
|
+
_depth = 0;
|
|
325373
|
+
if (_depth > $util.recursionLimit)
|
|
325374
|
+
return "max depth exceeded";
|
|
325375
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
325376
|
+
if (!$util.isString(message.hsUserId))
|
|
325377
|
+
return "hsUserId: string expected";
|
|
325378
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
325379
|
+
if (!$util.isString(message.profileId))
|
|
325380
|
+
return "profileId: string expected";
|
|
325381
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
325382
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
325383
|
+
return "timestamp: integer|Long expected";
|
|
325384
|
+
return null;
|
|
325385
|
+
};
|
|
325386
|
+
|
|
325387
|
+
/**
|
|
325388
|
+
* Creates a UserProfileDeleted message from a plain object. Also converts values to their respective internal types.
|
|
325389
|
+
* @function fromObject
|
|
325390
|
+
* @memberof UserProfileDeleted
|
|
325391
|
+
* @static
|
|
325392
|
+
* @param {Object.<string,*>} object Plain object
|
|
325393
|
+
* @returns {UserProfileDeleted} UserProfileDeleted
|
|
325394
|
+
*/
|
|
325395
|
+
UserProfileDeleted.fromObject = function fromObject(object, _depth) {
|
|
325396
|
+
if (object instanceof $root.UserProfileDeleted)
|
|
325397
|
+
return object;
|
|
325398
|
+
if (_depth === undefined)
|
|
325399
|
+
_depth = 0;
|
|
325400
|
+
if (_depth > $util.recursionLimit)
|
|
325401
|
+
throw Error("max depth exceeded");
|
|
325402
|
+
var message = new $root.UserProfileDeleted();
|
|
325403
|
+
if (object.hsUserId != null)
|
|
325404
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
325405
|
+
message.hsUserId = String(object.hsUserId);
|
|
325406
|
+
if (object.profileId != null)
|
|
325407
|
+
if (typeof object.profileId !== "string" || object.profileId.length)
|
|
325408
|
+
message.profileId = String(object.profileId);
|
|
325409
|
+
if (object.timestamp != null)
|
|
325410
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
325411
|
+
if ($util.Long)
|
|
325412
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
325413
|
+
else if (typeof object.timestamp === "string")
|
|
325414
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
325415
|
+
else if (typeof object.timestamp === "number")
|
|
325416
|
+
message.timestamp = object.timestamp;
|
|
325417
|
+
else if (typeof object.timestamp === "object")
|
|
325418
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
325419
|
+
return message;
|
|
325420
|
+
};
|
|
325421
|
+
|
|
325422
|
+
/**
|
|
325423
|
+
* Creates a plain object from a UserProfileDeleted message. Also converts values to other types if specified.
|
|
325424
|
+
* @function toObject
|
|
325425
|
+
* @memberof UserProfileDeleted
|
|
325426
|
+
* @static
|
|
325427
|
+
* @param {UserProfileDeleted} message UserProfileDeleted
|
|
325428
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
325429
|
+
* @returns {Object.<string,*>} Plain object
|
|
325430
|
+
*/
|
|
325431
|
+
UserProfileDeleted.toObject = function toObject(message, options) {
|
|
325432
|
+
if (!options)
|
|
325433
|
+
options = {};
|
|
325434
|
+
var object = {};
|
|
325435
|
+
if (options.defaults) {
|
|
325436
|
+
object.hsUserId = "";
|
|
325437
|
+
object.profileId = "";
|
|
325438
|
+
if ($util.Long) {
|
|
325439
|
+
var long = new $util.Long(0, 0, true);
|
|
325440
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
325441
|
+
} else
|
|
325442
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
325443
|
+
}
|
|
325444
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
325445
|
+
object.hsUserId = message.hsUserId;
|
|
325446
|
+
if (message.profileId != null && message.hasOwnProperty("profileId"))
|
|
325447
|
+
object.profileId = message.profileId;
|
|
325448
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
325449
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
325450
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
325451
|
+
else if (typeof message.timestamp === "number")
|
|
325452
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
325453
|
+
else
|
|
325454
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
325455
|
+
return object;
|
|
325456
|
+
};
|
|
325457
|
+
|
|
325458
|
+
/**
|
|
325459
|
+
* Converts this UserProfileDeleted to JSON.
|
|
325460
|
+
* @function toJSON
|
|
325461
|
+
* @memberof UserProfileDeleted
|
|
325462
|
+
* @instance
|
|
325463
|
+
* @returns {Object.<string,*>} JSON object
|
|
325464
|
+
*/
|
|
325465
|
+
UserProfileDeleted.prototype.toJSON = function toJSON() {
|
|
325466
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
325467
|
+
};
|
|
325468
|
+
|
|
325469
|
+
/**
|
|
325470
|
+
* Gets the type url for UserProfileDeleted
|
|
325471
|
+
* @function getTypeUrl
|
|
325472
|
+
* @memberof UserProfileDeleted
|
|
325473
|
+
* @static
|
|
325474
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
325475
|
+
* @returns {string} The type url
|
|
325476
|
+
*/
|
|
325477
|
+
UserProfileDeleted.getTypeUrl = function getTypeUrl(prefix) {
|
|
325478
|
+
if (prefix === undefined)
|
|
325479
|
+
prefix = "type.googleapis.com";
|
|
325480
|
+
return prefix + "/UserProfileDeleted";
|
|
325481
|
+
};
|
|
325482
|
+
|
|
325483
|
+
return UserProfileDeleted;
|
|
325484
|
+
})();
|
|
325485
|
+
|
|
324020
325486
|
$root.CareCoachingInteractionStarted = (function() {
|
|
324021
325487
|
|
|
324022
325488
|
/**
|