@headspace/protos-events 1.819.0 → 1.820.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 +135 -0
- package/lib/index.js +352 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -80555,6 +80555,141 @@ export namespace ExperienceMetadataDeleted {
|
|
|
80555
80555
|
type $Shape = ExperienceMetadataDeleted.$Properties;
|
|
80556
80556
|
}
|
|
80557
80557
|
|
|
80558
|
+
/**
|
|
80559
|
+
* Properties of an ExperimentationUserBucketed.
|
|
80560
|
+
* @deprecated Use ExperimentationUserBucketed.$Properties instead.
|
|
80561
|
+
*/
|
|
80562
|
+
export interface IExperimentationUserBucketed extends ExperimentationUserBucketed.$Properties {
|
|
80563
|
+
}
|
|
80564
|
+
|
|
80565
|
+
/** Represents an ExperimentationUserBucketed. */
|
|
80566
|
+
export class ExperimentationUserBucketed {
|
|
80567
|
+
|
|
80568
|
+
/**
|
|
80569
|
+
* Constructs a new ExperimentationUserBucketed.
|
|
80570
|
+
* @param [properties] Properties to set
|
|
80571
|
+
*/
|
|
80572
|
+
constructor(properties?: ExperimentationUserBucketed.$Properties);
|
|
80573
|
+
|
|
80574
|
+
/** Unknown fields preserved while decoding */
|
|
80575
|
+
$unknowns?: Uint8Array[];
|
|
80576
|
+
|
|
80577
|
+
/** ExperimentationUserBucketed hsUserId. */
|
|
80578
|
+
hsUserId: string;
|
|
80579
|
+
|
|
80580
|
+
/** ExperimentationUserBucketed experimentName. */
|
|
80581
|
+
experimentName: string;
|
|
80582
|
+
|
|
80583
|
+
/** ExperimentationUserBucketed bucketName. */
|
|
80584
|
+
bucketName: string;
|
|
80585
|
+
|
|
80586
|
+
/** ExperimentationUserBucketed bucketedAt. */
|
|
80587
|
+
bucketedAt: (number|Long);
|
|
80588
|
+
|
|
80589
|
+
/**
|
|
80590
|
+
* Creates a new ExperimentationUserBucketed instance using the specified properties.
|
|
80591
|
+
* @param [properties] Properties to set
|
|
80592
|
+
* @returns ExperimentationUserBucketed instance
|
|
80593
|
+
*/
|
|
80594
|
+
static create(properties: ExperimentationUserBucketed.$Shape): ExperimentationUserBucketed & ExperimentationUserBucketed.$Shape;
|
|
80595
|
+
static create(properties?: ExperimentationUserBucketed.$Properties): ExperimentationUserBucketed;
|
|
80596
|
+
|
|
80597
|
+
/**
|
|
80598
|
+
* Encodes the specified ExperimentationUserBucketed message. Does not implicitly {@link ExperimentationUserBucketed.verify|verify} messages.
|
|
80599
|
+
* @param message ExperimentationUserBucketed message or plain object to encode
|
|
80600
|
+
* @param [writer] Writer to encode to
|
|
80601
|
+
* @returns Writer
|
|
80602
|
+
*/
|
|
80603
|
+
static encode(message: ExperimentationUserBucketed.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
80604
|
+
|
|
80605
|
+
/**
|
|
80606
|
+
* Encodes the specified ExperimentationUserBucketed message, length delimited. Does not implicitly {@link ExperimentationUserBucketed.verify|verify} messages.
|
|
80607
|
+
* @param message ExperimentationUserBucketed message or plain object to encode
|
|
80608
|
+
* @param [writer] Writer to encode to
|
|
80609
|
+
* @returns Writer
|
|
80610
|
+
*/
|
|
80611
|
+
static encodeDelimited(message: ExperimentationUserBucketed.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
80612
|
+
|
|
80613
|
+
/**
|
|
80614
|
+
* Decodes an ExperimentationUserBucketed message from the specified reader or buffer.
|
|
80615
|
+
* @param reader Reader or buffer to decode from
|
|
80616
|
+
* @param [length] Message length if known beforehand
|
|
80617
|
+
* @returns {ExperimentationUserBucketed & ExperimentationUserBucketed.$Shape} ExperimentationUserBucketed
|
|
80618
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80619
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80620
|
+
*/
|
|
80621
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ExperimentationUserBucketed & ExperimentationUserBucketed.$Shape;
|
|
80622
|
+
|
|
80623
|
+
/**
|
|
80624
|
+
* Decodes an ExperimentationUserBucketed message from the specified reader or buffer, length delimited.
|
|
80625
|
+
* @param reader Reader or buffer to decode from
|
|
80626
|
+
* @returns {ExperimentationUserBucketed & ExperimentationUserBucketed.$Shape} ExperimentationUserBucketed
|
|
80627
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80628
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80629
|
+
*/
|
|
80630
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ExperimentationUserBucketed & ExperimentationUserBucketed.$Shape;
|
|
80631
|
+
|
|
80632
|
+
/**
|
|
80633
|
+
* Verifies an ExperimentationUserBucketed message.
|
|
80634
|
+
* @param message Plain object to verify
|
|
80635
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
80636
|
+
*/
|
|
80637
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
80638
|
+
|
|
80639
|
+
/**
|
|
80640
|
+
* Creates an ExperimentationUserBucketed message from a plain object. Also converts values to their respective internal types.
|
|
80641
|
+
* @param object Plain object
|
|
80642
|
+
* @returns ExperimentationUserBucketed
|
|
80643
|
+
*/
|
|
80644
|
+
static fromObject(object: { [k: string]: any }): ExperimentationUserBucketed;
|
|
80645
|
+
|
|
80646
|
+
/**
|
|
80647
|
+
* Creates a plain object from an ExperimentationUserBucketed message. Also converts values to other types if specified.
|
|
80648
|
+
* @param message ExperimentationUserBucketed
|
|
80649
|
+
* @param [options] Conversion options
|
|
80650
|
+
* @returns Plain object
|
|
80651
|
+
*/
|
|
80652
|
+
static toObject(message: ExperimentationUserBucketed, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
80653
|
+
|
|
80654
|
+
/**
|
|
80655
|
+
* Converts this ExperimentationUserBucketed to JSON.
|
|
80656
|
+
* @returns JSON object
|
|
80657
|
+
*/
|
|
80658
|
+
toJSON(): { [k: string]: any };
|
|
80659
|
+
|
|
80660
|
+
/**
|
|
80661
|
+
* Gets the type url for ExperimentationUserBucketed
|
|
80662
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
80663
|
+
* @returns The type url
|
|
80664
|
+
*/
|
|
80665
|
+
static getTypeUrl(prefix?: string): string;
|
|
80666
|
+
}
|
|
80667
|
+
|
|
80668
|
+
export namespace ExperimentationUserBucketed {
|
|
80669
|
+
|
|
80670
|
+
/** Properties of an ExperimentationUserBucketed. */
|
|
80671
|
+
interface $Properties {
|
|
80672
|
+
|
|
80673
|
+
/** ExperimentationUserBucketed hsUserId */
|
|
80674
|
+
hsUserId?: (string|null);
|
|
80675
|
+
|
|
80676
|
+
/** ExperimentationUserBucketed experimentName */
|
|
80677
|
+
experimentName?: (string|null);
|
|
80678
|
+
|
|
80679
|
+
/** ExperimentationUserBucketed bucketName */
|
|
80680
|
+
bucketName?: (string|null);
|
|
80681
|
+
|
|
80682
|
+
/** ExperimentationUserBucketed bucketedAt */
|
|
80683
|
+
bucketedAt?: (number|Long|null);
|
|
80684
|
+
|
|
80685
|
+
/** Unknown fields preserved while decoding */
|
|
80686
|
+
$unknowns?: Uint8Array[];
|
|
80687
|
+
}
|
|
80688
|
+
|
|
80689
|
+
/** Shape of an ExperimentationUserBucketed. */
|
|
80690
|
+
type $Shape = ExperimentationUserBucketed.$Properties;
|
|
80691
|
+
}
|
|
80692
|
+
|
|
80558
80693
|
/**
|
|
80559
80694
|
* Properties of a GADAssessmentAssigned.
|
|
80560
80695
|
* @deprecated Use GADAssessmentAssigned.$Properties instead.
|
package/lib/index.js
CHANGED
|
@@ -236317,6 +236317,358 @@ $root.ExperienceMetadataDeleted = (function() {
|
|
|
236317
236317
|
return ExperienceMetadataDeleted;
|
|
236318
236318
|
})();
|
|
236319
236319
|
|
|
236320
|
+
$root.ExperimentationUserBucketed = (function() {
|
|
236321
|
+
|
|
236322
|
+
/**
|
|
236323
|
+
* Properties of an ExperimentationUserBucketed.
|
|
236324
|
+
* @typedef {Object} ExperimentationUserBucketed.$Properties
|
|
236325
|
+
* @property {string|null} [hsUserId] ExperimentationUserBucketed hsUserId
|
|
236326
|
+
* @property {string|null} [experimentName] ExperimentationUserBucketed experimentName
|
|
236327
|
+
* @property {string|null} [bucketName] ExperimentationUserBucketed bucketName
|
|
236328
|
+
* @property {number|Long|null} [bucketedAt] ExperimentationUserBucketed bucketedAt
|
|
236329
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
236330
|
+
*/
|
|
236331
|
+
|
|
236332
|
+
/**
|
|
236333
|
+
* Properties of an ExperimentationUserBucketed.
|
|
236334
|
+
* @name IExperimentationUserBucketed
|
|
236335
|
+
* @interface IExperimentationUserBucketed
|
|
236336
|
+
* @augments ExperimentationUserBucketed.$Properties
|
|
236337
|
+
* @deprecated Use ExperimentationUserBucketed.$Properties instead.
|
|
236338
|
+
*/
|
|
236339
|
+
|
|
236340
|
+
/**
|
|
236341
|
+
* Shape of an ExperimentationUserBucketed.
|
|
236342
|
+
* @typedef {ExperimentationUserBucketed.$Properties} ExperimentationUserBucketed.$Shape
|
|
236343
|
+
*/
|
|
236344
|
+
|
|
236345
|
+
/**
|
|
236346
|
+
* Constructs a new ExperimentationUserBucketed.
|
|
236347
|
+
* @name ExperimentationUserBucketed
|
|
236348
|
+
* @classdesc Represents an ExperimentationUserBucketed.
|
|
236349
|
+
* @constructor
|
|
236350
|
+
* @param {ExperimentationUserBucketed.$Properties=} [properties] Properties to set
|
|
236351
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
236352
|
+
*/
|
|
236353
|
+
function ExperimentationUserBucketed(properties) {
|
|
236354
|
+
if (properties)
|
|
236355
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
236356
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
236357
|
+
this[keys[i]] = properties[keys[i]];
|
|
236358
|
+
}
|
|
236359
|
+
|
|
236360
|
+
/**
|
|
236361
|
+
* ExperimentationUserBucketed hsUserId.
|
|
236362
|
+
* @member {string} hsUserId
|
|
236363
|
+
* @memberof ExperimentationUserBucketed
|
|
236364
|
+
* @instance
|
|
236365
|
+
*/
|
|
236366
|
+
ExperimentationUserBucketed.prototype.hsUserId = "";
|
|
236367
|
+
|
|
236368
|
+
/**
|
|
236369
|
+
* ExperimentationUserBucketed experimentName.
|
|
236370
|
+
* @member {string} experimentName
|
|
236371
|
+
* @memberof ExperimentationUserBucketed
|
|
236372
|
+
* @instance
|
|
236373
|
+
*/
|
|
236374
|
+
ExperimentationUserBucketed.prototype.experimentName = "";
|
|
236375
|
+
|
|
236376
|
+
/**
|
|
236377
|
+
* ExperimentationUserBucketed bucketName.
|
|
236378
|
+
* @member {string} bucketName
|
|
236379
|
+
* @memberof ExperimentationUserBucketed
|
|
236380
|
+
* @instance
|
|
236381
|
+
*/
|
|
236382
|
+
ExperimentationUserBucketed.prototype.bucketName = "";
|
|
236383
|
+
|
|
236384
|
+
/**
|
|
236385
|
+
* ExperimentationUserBucketed bucketedAt.
|
|
236386
|
+
* @member {number|Long} bucketedAt
|
|
236387
|
+
* @memberof ExperimentationUserBucketed
|
|
236388
|
+
* @instance
|
|
236389
|
+
*/
|
|
236390
|
+
ExperimentationUserBucketed.prototype.bucketedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
236391
|
+
|
|
236392
|
+
/**
|
|
236393
|
+
* Creates a new ExperimentationUserBucketed instance using the specified properties.
|
|
236394
|
+
* @function create
|
|
236395
|
+
* @memberof ExperimentationUserBucketed
|
|
236396
|
+
* @static
|
|
236397
|
+
* @param {ExperimentationUserBucketed.$Properties=} [properties] Properties to set
|
|
236398
|
+
* @returns {ExperimentationUserBucketed} ExperimentationUserBucketed instance
|
|
236399
|
+
* @type {{
|
|
236400
|
+
* (properties: ExperimentationUserBucketed.$Shape): ExperimentationUserBucketed & ExperimentationUserBucketed.$Shape;
|
|
236401
|
+
* (properties?: ExperimentationUserBucketed.$Properties): ExperimentationUserBucketed;
|
|
236402
|
+
* }}
|
|
236403
|
+
*/
|
|
236404
|
+
ExperimentationUserBucketed.create = function create(properties) {
|
|
236405
|
+
return new ExperimentationUserBucketed(properties);
|
|
236406
|
+
};
|
|
236407
|
+
|
|
236408
|
+
/**
|
|
236409
|
+
* Encodes the specified ExperimentationUserBucketed message. Does not implicitly {@link ExperimentationUserBucketed.verify|verify} messages.
|
|
236410
|
+
* @function encode
|
|
236411
|
+
* @memberof ExperimentationUserBucketed
|
|
236412
|
+
* @static
|
|
236413
|
+
* @param {ExperimentationUserBucketed.$Properties} message ExperimentationUserBucketed message or plain object to encode
|
|
236414
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
236415
|
+
* @returns {$protobuf.Writer} Writer
|
|
236416
|
+
*/
|
|
236417
|
+
ExperimentationUserBucketed.encode = function encode(message, writer) {
|
|
236418
|
+
if (!writer)
|
|
236419
|
+
writer = $Writer.create();
|
|
236420
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
236421
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
236422
|
+
if (message.experimentName != null && Object.hasOwnProperty.call(message, "experimentName"))
|
|
236423
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.experimentName);
|
|
236424
|
+
if (message.bucketName != null && Object.hasOwnProperty.call(message, "bucketName"))
|
|
236425
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.bucketName);
|
|
236426
|
+
if (message.bucketedAt != null && Object.hasOwnProperty.call(message, "bucketedAt"))
|
|
236427
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.bucketedAt);
|
|
236428
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
236429
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
236430
|
+
writer.raw(message.$unknowns[i]);
|
|
236431
|
+
return writer;
|
|
236432
|
+
};
|
|
236433
|
+
|
|
236434
|
+
/**
|
|
236435
|
+
* Encodes the specified ExperimentationUserBucketed message, length delimited. Does not implicitly {@link ExperimentationUserBucketed.verify|verify} messages.
|
|
236436
|
+
* @function encodeDelimited
|
|
236437
|
+
* @memberof ExperimentationUserBucketed
|
|
236438
|
+
* @static
|
|
236439
|
+
* @param {ExperimentationUserBucketed.$Properties} message ExperimentationUserBucketed message or plain object to encode
|
|
236440
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
236441
|
+
* @returns {$protobuf.Writer} Writer
|
|
236442
|
+
*/
|
|
236443
|
+
ExperimentationUserBucketed.encodeDelimited = function encodeDelimited(message, writer) {
|
|
236444
|
+
return this.encode(message, writer).ldelim();
|
|
236445
|
+
};
|
|
236446
|
+
|
|
236447
|
+
/**
|
|
236448
|
+
* Decodes an ExperimentationUserBucketed message from the specified reader or buffer.
|
|
236449
|
+
* @function decode
|
|
236450
|
+
* @memberof ExperimentationUserBucketed
|
|
236451
|
+
* @static
|
|
236452
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
236453
|
+
* @param {number} [length] Message length if known beforehand
|
|
236454
|
+
* @returns {ExperimentationUserBucketed & ExperimentationUserBucketed.$Shape} ExperimentationUserBucketed
|
|
236455
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
236456
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
236457
|
+
*/
|
|
236458
|
+
ExperimentationUserBucketed.decode = function decode(reader, length, _end, _depth, _target) {
|
|
236459
|
+
if (!(reader instanceof $Reader))
|
|
236460
|
+
reader = $Reader.create(reader);
|
|
236461
|
+
if (_depth === undefined)
|
|
236462
|
+
_depth = 0;
|
|
236463
|
+
if (_depth > $Reader.recursionLimit)
|
|
236464
|
+
throw Error("max depth exceeded");
|
|
236465
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.ExperimentationUserBucketed(), value;
|
|
236466
|
+
while (reader.pos < end) {
|
|
236467
|
+
var start = reader.pos;
|
|
236468
|
+
var tag = reader.tag();
|
|
236469
|
+
if (tag === _end) {
|
|
236470
|
+
_end = undefined;
|
|
236471
|
+
break;
|
|
236472
|
+
}
|
|
236473
|
+
var wireType = tag & 7;
|
|
236474
|
+
switch (tag >>>= 3) {
|
|
236475
|
+
case 1: {
|
|
236476
|
+
if (wireType !== 2)
|
|
236477
|
+
break;
|
|
236478
|
+
if ((value = reader.string()).length)
|
|
236479
|
+
message.hsUserId = value;
|
|
236480
|
+
else
|
|
236481
|
+
delete message.hsUserId;
|
|
236482
|
+
continue;
|
|
236483
|
+
}
|
|
236484
|
+
case 2: {
|
|
236485
|
+
if (wireType !== 2)
|
|
236486
|
+
break;
|
|
236487
|
+
if ((value = reader.string()).length)
|
|
236488
|
+
message.experimentName = value;
|
|
236489
|
+
else
|
|
236490
|
+
delete message.experimentName;
|
|
236491
|
+
continue;
|
|
236492
|
+
}
|
|
236493
|
+
case 3: {
|
|
236494
|
+
if (wireType !== 2)
|
|
236495
|
+
break;
|
|
236496
|
+
if ((value = reader.string()).length)
|
|
236497
|
+
message.bucketName = value;
|
|
236498
|
+
else
|
|
236499
|
+
delete message.bucketName;
|
|
236500
|
+
continue;
|
|
236501
|
+
}
|
|
236502
|
+
case 4: {
|
|
236503
|
+
if (wireType !== 0)
|
|
236504
|
+
break;
|
|
236505
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
236506
|
+
message.bucketedAt = value;
|
|
236507
|
+
else
|
|
236508
|
+
delete message.bucketedAt;
|
|
236509
|
+
continue;
|
|
236510
|
+
}
|
|
236511
|
+
}
|
|
236512
|
+
reader.skipType(wireType, _depth, tag);
|
|
236513
|
+
$util.makeProp(message, "$unknowns", false);
|
|
236514
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
236515
|
+
}
|
|
236516
|
+
if (_end !== undefined)
|
|
236517
|
+
throw Error("missing end group");
|
|
236518
|
+
return message;
|
|
236519
|
+
};
|
|
236520
|
+
|
|
236521
|
+
/**
|
|
236522
|
+
* Decodes an ExperimentationUserBucketed message from the specified reader or buffer, length delimited.
|
|
236523
|
+
* @function decodeDelimited
|
|
236524
|
+
* @memberof ExperimentationUserBucketed
|
|
236525
|
+
* @static
|
|
236526
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
236527
|
+
* @returns {ExperimentationUserBucketed & ExperimentationUserBucketed.$Shape} ExperimentationUserBucketed
|
|
236528
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
236529
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
236530
|
+
*/
|
|
236531
|
+
ExperimentationUserBucketed.decodeDelimited = function decodeDelimited(reader) {
|
|
236532
|
+
if (!(reader instanceof $Reader))
|
|
236533
|
+
reader = new $Reader(reader);
|
|
236534
|
+
return this.decode(reader, reader.uint32());
|
|
236535
|
+
};
|
|
236536
|
+
|
|
236537
|
+
/**
|
|
236538
|
+
* Verifies an ExperimentationUserBucketed message.
|
|
236539
|
+
* @function verify
|
|
236540
|
+
* @memberof ExperimentationUserBucketed
|
|
236541
|
+
* @static
|
|
236542
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
236543
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
236544
|
+
*/
|
|
236545
|
+
ExperimentationUserBucketed.verify = function verify(message, _depth) {
|
|
236546
|
+
if (typeof message !== "object" || message === null)
|
|
236547
|
+
return "object expected";
|
|
236548
|
+
if (_depth === undefined)
|
|
236549
|
+
_depth = 0;
|
|
236550
|
+
if (_depth > $util.recursionLimit)
|
|
236551
|
+
return "max depth exceeded";
|
|
236552
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
236553
|
+
if (!$util.isString(message.hsUserId))
|
|
236554
|
+
return "hsUserId: string expected";
|
|
236555
|
+
if (message.experimentName != null && message.hasOwnProperty("experimentName"))
|
|
236556
|
+
if (!$util.isString(message.experimentName))
|
|
236557
|
+
return "experimentName: string expected";
|
|
236558
|
+
if (message.bucketName != null && message.hasOwnProperty("bucketName"))
|
|
236559
|
+
if (!$util.isString(message.bucketName))
|
|
236560
|
+
return "bucketName: string expected";
|
|
236561
|
+
if (message.bucketedAt != null && message.hasOwnProperty("bucketedAt"))
|
|
236562
|
+
if (!$util.isInteger(message.bucketedAt) && !(message.bucketedAt && $util.isInteger(message.bucketedAt.low) && $util.isInteger(message.bucketedAt.high)))
|
|
236563
|
+
return "bucketedAt: integer|Long expected";
|
|
236564
|
+
return null;
|
|
236565
|
+
};
|
|
236566
|
+
|
|
236567
|
+
/**
|
|
236568
|
+
* Creates an ExperimentationUserBucketed message from a plain object. Also converts values to their respective internal types.
|
|
236569
|
+
* @function fromObject
|
|
236570
|
+
* @memberof ExperimentationUserBucketed
|
|
236571
|
+
* @static
|
|
236572
|
+
* @param {Object.<string,*>} object Plain object
|
|
236573
|
+
* @returns {ExperimentationUserBucketed} ExperimentationUserBucketed
|
|
236574
|
+
*/
|
|
236575
|
+
ExperimentationUserBucketed.fromObject = function fromObject(object, _depth) {
|
|
236576
|
+
if (object instanceof $root.ExperimentationUserBucketed)
|
|
236577
|
+
return object;
|
|
236578
|
+
if (_depth === undefined)
|
|
236579
|
+
_depth = 0;
|
|
236580
|
+
if (_depth > $util.recursionLimit)
|
|
236581
|
+
throw Error("max depth exceeded");
|
|
236582
|
+
var message = new $root.ExperimentationUserBucketed();
|
|
236583
|
+
if (object.hsUserId != null)
|
|
236584
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
236585
|
+
message.hsUserId = String(object.hsUserId);
|
|
236586
|
+
if (object.experimentName != null)
|
|
236587
|
+
if (typeof object.experimentName !== "string" || object.experimentName.length)
|
|
236588
|
+
message.experimentName = String(object.experimentName);
|
|
236589
|
+
if (object.bucketName != null)
|
|
236590
|
+
if (typeof object.bucketName !== "string" || object.bucketName.length)
|
|
236591
|
+
message.bucketName = String(object.bucketName);
|
|
236592
|
+
if (object.bucketedAt != null)
|
|
236593
|
+
if (typeof object.bucketedAt === "object" ? object.bucketedAt.low || object.bucketedAt.high : Number(object.bucketedAt) !== 0)
|
|
236594
|
+
if ($util.Long)
|
|
236595
|
+
(message.bucketedAt = $util.Long.fromValue(object.bucketedAt)).unsigned = true;
|
|
236596
|
+
else if (typeof object.bucketedAt === "string")
|
|
236597
|
+
message.bucketedAt = parseInt(object.bucketedAt, 10);
|
|
236598
|
+
else if (typeof object.bucketedAt === "number")
|
|
236599
|
+
message.bucketedAt = object.bucketedAt;
|
|
236600
|
+
else if (typeof object.bucketedAt === "object")
|
|
236601
|
+
message.bucketedAt = new $util.LongBits(object.bucketedAt.low >>> 0, object.bucketedAt.high >>> 0).toNumber(true);
|
|
236602
|
+
return message;
|
|
236603
|
+
};
|
|
236604
|
+
|
|
236605
|
+
/**
|
|
236606
|
+
* Creates a plain object from an ExperimentationUserBucketed message. Also converts values to other types if specified.
|
|
236607
|
+
* @function toObject
|
|
236608
|
+
* @memberof ExperimentationUserBucketed
|
|
236609
|
+
* @static
|
|
236610
|
+
* @param {ExperimentationUserBucketed} message ExperimentationUserBucketed
|
|
236611
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
236612
|
+
* @returns {Object.<string,*>} Plain object
|
|
236613
|
+
*/
|
|
236614
|
+
ExperimentationUserBucketed.toObject = function toObject(message, options) {
|
|
236615
|
+
if (!options)
|
|
236616
|
+
options = {};
|
|
236617
|
+
var object = {};
|
|
236618
|
+
if (options.defaults) {
|
|
236619
|
+
object.hsUserId = "";
|
|
236620
|
+
object.experimentName = "";
|
|
236621
|
+
object.bucketName = "";
|
|
236622
|
+
if ($util.Long) {
|
|
236623
|
+
var long = new $util.Long(0, 0, true);
|
|
236624
|
+
object.bucketedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
236625
|
+
} else
|
|
236626
|
+
object.bucketedAt = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
236627
|
+
}
|
|
236628
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
236629
|
+
object.hsUserId = message.hsUserId;
|
|
236630
|
+
if (message.experimentName != null && message.hasOwnProperty("experimentName"))
|
|
236631
|
+
object.experimentName = message.experimentName;
|
|
236632
|
+
if (message.bucketName != null && message.hasOwnProperty("bucketName"))
|
|
236633
|
+
object.bucketName = message.bucketName;
|
|
236634
|
+
if (message.bucketedAt != null && message.hasOwnProperty("bucketedAt"))
|
|
236635
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
236636
|
+
object.bucketedAt = typeof message.bucketedAt === "number" ? BigInt(message.bucketedAt) : $util.Long.fromBits(message.bucketedAt.low >>> 0, message.bucketedAt.high >>> 0, true).toBigInt();
|
|
236637
|
+
else if (typeof message.bucketedAt === "number")
|
|
236638
|
+
object.bucketedAt = options.longs === String ? String(message.bucketedAt) : message.bucketedAt;
|
|
236639
|
+
else
|
|
236640
|
+
object.bucketedAt = options.longs === String ? $util.Long.prototype.toString.call(message.bucketedAt) : options.longs === Number ? new $util.LongBits(message.bucketedAt.low >>> 0, message.bucketedAt.high >>> 0).toNumber(true) : message.bucketedAt;
|
|
236641
|
+
return object;
|
|
236642
|
+
};
|
|
236643
|
+
|
|
236644
|
+
/**
|
|
236645
|
+
* Converts this ExperimentationUserBucketed to JSON.
|
|
236646
|
+
* @function toJSON
|
|
236647
|
+
* @memberof ExperimentationUserBucketed
|
|
236648
|
+
* @instance
|
|
236649
|
+
* @returns {Object.<string,*>} JSON object
|
|
236650
|
+
*/
|
|
236651
|
+
ExperimentationUserBucketed.prototype.toJSON = function toJSON() {
|
|
236652
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
236653
|
+
};
|
|
236654
|
+
|
|
236655
|
+
/**
|
|
236656
|
+
* Gets the type url for ExperimentationUserBucketed
|
|
236657
|
+
* @function getTypeUrl
|
|
236658
|
+
* @memberof ExperimentationUserBucketed
|
|
236659
|
+
* @static
|
|
236660
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
236661
|
+
* @returns {string} The type url
|
|
236662
|
+
*/
|
|
236663
|
+
ExperimentationUserBucketed.getTypeUrl = function getTypeUrl(prefix) {
|
|
236664
|
+
if (prefix === undefined)
|
|
236665
|
+
prefix = "type.googleapis.com";
|
|
236666
|
+
return prefix + "/ExperimentationUserBucketed";
|
|
236667
|
+
};
|
|
236668
|
+
|
|
236669
|
+
return ExperimentationUserBucketed;
|
|
236670
|
+
})();
|
|
236671
|
+
|
|
236320
236672
|
$root.GADAssessmentAssigned = (function() {
|
|
236321
236673
|
|
|
236322
236674
|
/**
|
package/package.json
CHANGED