@headspace/protos-events 1.860.0 → 1.861.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.mts +0 -123
- package/lib/index.d.ts +0 -123
- package/lib/index.js +0 -290
- package/lib/index.mjs +0 -290
- package/package.json +1 -1
package/lib/index.d.mts
CHANGED
|
@@ -94394,129 +94394,6 @@ export namespace ModerationActionPerformed {
|
|
|
94394
94394
|
}
|
|
94395
94395
|
}
|
|
94396
94396
|
|
|
94397
|
-
/**
|
|
94398
|
-
* Properties of a UserOnboardingTopicResponses.
|
|
94399
|
-
* @deprecated Use UserOnboardingTopicResponses.$Properties instead.
|
|
94400
|
-
*/
|
|
94401
|
-
export interface IUserOnboardingTopicResponses extends UserOnboardingTopicResponses.$Properties {
|
|
94402
|
-
}
|
|
94403
|
-
|
|
94404
|
-
/** Represents a UserOnboardingTopicResponses. */
|
|
94405
|
-
export class UserOnboardingTopicResponses {
|
|
94406
|
-
|
|
94407
|
-
/**
|
|
94408
|
-
* Constructs a new UserOnboardingTopicResponses.
|
|
94409
|
-
* @param [properties] Properties to set
|
|
94410
|
-
*/
|
|
94411
|
-
constructor(properties?: UserOnboardingTopicResponses.$Properties);
|
|
94412
|
-
|
|
94413
|
-
/** Unknown fields preserved while decoding */
|
|
94414
|
-
$unknowns?: Uint8Array[];
|
|
94415
|
-
|
|
94416
|
-
/** UserOnboardingTopicResponses userId. */
|
|
94417
|
-
userId: string;
|
|
94418
|
-
|
|
94419
|
-
/** UserOnboardingTopicResponses onboardTopics. */
|
|
94420
|
-
onboardTopics: string[];
|
|
94421
|
-
|
|
94422
|
-
/**
|
|
94423
|
-
* Creates a new UserOnboardingTopicResponses instance using the specified properties.
|
|
94424
|
-
* @param [properties] Properties to set
|
|
94425
|
-
* @returns UserOnboardingTopicResponses instance
|
|
94426
|
-
*/
|
|
94427
|
-
static create(properties: UserOnboardingTopicResponses.$Shape): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
|
|
94428
|
-
static create(properties?: UserOnboardingTopicResponses.$Properties): UserOnboardingTopicResponses;
|
|
94429
|
-
|
|
94430
|
-
/**
|
|
94431
|
-
* Encodes the specified UserOnboardingTopicResponses message. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
|
|
94432
|
-
* @param message UserOnboardingTopicResponses message or plain object to encode
|
|
94433
|
-
* @param [writer] Writer to encode to
|
|
94434
|
-
* @returns Writer
|
|
94435
|
-
*/
|
|
94436
|
-
static encode(message: UserOnboardingTopicResponses.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
94437
|
-
|
|
94438
|
-
/**
|
|
94439
|
-
* Encodes the specified UserOnboardingTopicResponses message, length delimited. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
|
|
94440
|
-
* @param message UserOnboardingTopicResponses message or plain object to encode
|
|
94441
|
-
* @param [writer] Writer to encode to
|
|
94442
|
-
* @returns Writer
|
|
94443
|
-
*/
|
|
94444
|
-
static encodeDelimited(message: UserOnboardingTopicResponses.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
94445
|
-
|
|
94446
|
-
/**
|
|
94447
|
-
* Decodes a UserOnboardingTopicResponses message from the specified reader or buffer.
|
|
94448
|
-
* @param reader Reader or buffer to decode from
|
|
94449
|
-
* @param [length] Message length if known beforehand
|
|
94450
|
-
* @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
|
|
94451
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
94452
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
94453
|
-
*/
|
|
94454
|
-
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
|
|
94455
|
-
|
|
94456
|
-
/**
|
|
94457
|
-
* Decodes a UserOnboardingTopicResponses message from the specified reader or buffer, length delimited.
|
|
94458
|
-
* @param reader Reader or buffer to decode from
|
|
94459
|
-
* @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
|
|
94460
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
94461
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
94462
|
-
*/
|
|
94463
|
-
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
|
|
94464
|
-
|
|
94465
|
-
/**
|
|
94466
|
-
* Verifies a UserOnboardingTopicResponses message.
|
|
94467
|
-
* @param message Plain object to verify
|
|
94468
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
94469
|
-
*/
|
|
94470
|
-
static verify(message: { [k: string]: any }): (string|null);
|
|
94471
|
-
|
|
94472
|
-
/**
|
|
94473
|
-
* Creates a UserOnboardingTopicResponses message from a plain object. Also converts values to their respective internal types.
|
|
94474
|
-
* @param object Plain object
|
|
94475
|
-
* @returns UserOnboardingTopicResponses
|
|
94476
|
-
*/
|
|
94477
|
-
static fromObject(object: { [k: string]: any }): UserOnboardingTopicResponses;
|
|
94478
|
-
|
|
94479
|
-
/**
|
|
94480
|
-
* Creates a plain object from a UserOnboardingTopicResponses message. Also converts values to other types if specified.
|
|
94481
|
-
* @param message UserOnboardingTopicResponses
|
|
94482
|
-
* @param [options] Conversion options
|
|
94483
|
-
* @returns Plain object
|
|
94484
|
-
*/
|
|
94485
|
-
static toObject(message: UserOnboardingTopicResponses, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
94486
|
-
|
|
94487
|
-
/**
|
|
94488
|
-
* Converts this UserOnboardingTopicResponses to JSON.
|
|
94489
|
-
* @returns JSON object
|
|
94490
|
-
*/
|
|
94491
|
-
toJSON(): { [k: string]: any };
|
|
94492
|
-
|
|
94493
|
-
/**
|
|
94494
|
-
* Gets the type url for UserOnboardingTopicResponses
|
|
94495
|
-
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
94496
|
-
* @returns The type url
|
|
94497
|
-
*/
|
|
94498
|
-
static getTypeUrl(prefix?: string): string;
|
|
94499
|
-
}
|
|
94500
|
-
|
|
94501
|
-
export namespace UserOnboardingTopicResponses {
|
|
94502
|
-
|
|
94503
|
-
/** Properties of a UserOnboardingTopicResponses. */
|
|
94504
|
-
interface $Properties {
|
|
94505
|
-
|
|
94506
|
-
/** UserOnboardingTopicResponses userId */
|
|
94507
|
-
userId?: (string|null);
|
|
94508
|
-
|
|
94509
|
-
/** UserOnboardingTopicResponses onboardTopics */
|
|
94510
|
-
onboardTopics?: (string[]|null);
|
|
94511
|
-
|
|
94512
|
-
/** Unknown fields preserved while decoding */
|
|
94513
|
-
$unknowns?: Uint8Array[];
|
|
94514
|
-
}
|
|
94515
|
-
|
|
94516
|
-
/** Shape of a UserOnboardingTopicResponses. */
|
|
94517
|
-
type $Shape = UserOnboardingTopicResponses.$Properties;
|
|
94518
|
-
}
|
|
94519
|
-
|
|
94520
94397
|
/**
|
|
94521
94398
|
* Properties of a UserOnboardingPrimaryTopicSelected.
|
|
94522
94399
|
* @deprecated Use UserOnboardingPrimaryTopicSelected.$Properties instead.
|
package/lib/index.d.ts
CHANGED
|
@@ -94394,129 +94394,6 @@ export namespace ModerationActionPerformed {
|
|
|
94394
94394
|
}
|
|
94395
94395
|
}
|
|
94396
94396
|
|
|
94397
|
-
/**
|
|
94398
|
-
* Properties of a UserOnboardingTopicResponses.
|
|
94399
|
-
* @deprecated Use UserOnboardingTopicResponses.$Properties instead.
|
|
94400
|
-
*/
|
|
94401
|
-
export interface IUserOnboardingTopicResponses extends UserOnboardingTopicResponses.$Properties {
|
|
94402
|
-
}
|
|
94403
|
-
|
|
94404
|
-
/** Represents a UserOnboardingTopicResponses. */
|
|
94405
|
-
export class UserOnboardingTopicResponses {
|
|
94406
|
-
|
|
94407
|
-
/**
|
|
94408
|
-
* Constructs a new UserOnboardingTopicResponses.
|
|
94409
|
-
* @param [properties] Properties to set
|
|
94410
|
-
*/
|
|
94411
|
-
constructor(properties?: UserOnboardingTopicResponses.$Properties);
|
|
94412
|
-
|
|
94413
|
-
/** Unknown fields preserved while decoding */
|
|
94414
|
-
$unknowns?: Uint8Array[];
|
|
94415
|
-
|
|
94416
|
-
/** UserOnboardingTopicResponses userId. */
|
|
94417
|
-
userId: string;
|
|
94418
|
-
|
|
94419
|
-
/** UserOnboardingTopicResponses onboardTopics. */
|
|
94420
|
-
onboardTopics: string[];
|
|
94421
|
-
|
|
94422
|
-
/**
|
|
94423
|
-
* Creates a new UserOnboardingTopicResponses instance using the specified properties.
|
|
94424
|
-
* @param [properties] Properties to set
|
|
94425
|
-
* @returns UserOnboardingTopicResponses instance
|
|
94426
|
-
*/
|
|
94427
|
-
static create(properties: UserOnboardingTopicResponses.$Shape): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
|
|
94428
|
-
static create(properties?: UserOnboardingTopicResponses.$Properties): UserOnboardingTopicResponses;
|
|
94429
|
-
|
|
94430
|
-
/**
|
|
94431
|
-
* Encodes the specified UserOnboardingTopicResponses message. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
|
|
94432
|
-
* @param message UserOnboardingTopicResponses message or plain object to encode
|
|
94433
|
-
* @param [writer] Writer to encode to
|
|
94434
|
-
* @returns Writer
|
|
94435
|
-
*/
|
|
94436
|
-
static encode(message: UserOnboardingTopicResponses.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
94437
|
-
|
|
94438
|
-
/**
|
|
94439
|
-
* Encodes the specified UserOnboardingTopicResponses message, length delimited. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
|
|
94440
|
-
* @param message UserOnboardingTopicResponses message or plain object to encode
|
|
94441
|
-
* @param [writer] Writer to encode to
|
|
94442
|
-
* @returns Writer
|
|
94443
|
-
*/
|
|
94444
|
-
static encodeDelimited(message: UserOnboardingTopicResponses.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
94445
|
-
|
|
94446
|
-
/**
|
|
94447
|
-
* Decodes a UserOnboardingTopicResponses message from the specified reader or buffer.
|
|
94448
|
-
* @param reader Reader or buffer to decode from
|
|
94449
|
-
* @param [length] Message length if known beforehand
|
|
94450
|
-
* @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
|
|
94451
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
94452
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
94453
|
-
*/
|
|
94454
|
-
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
|
|
94455
|
-
|
|
94456
|
-
/**
|
|
94457
|
-
* Decodes a UserOnboardingTopicResponses message from the specified reader or buffer, length delimited.
|
|
94458
|
-
* @param reader Reader or buffer to decode from
|
|
94459
|
-
* @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
|
|
94460
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
94461
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
94462
|
-
*/
|
|
94463
|
-
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
|
|
94464
|
-
|
|
94465
|
-
/**
|
|
94466
|
-
* Verifies a UserOnboardingTopicResponses message.
|
|
94467
|
-
* @param message Plain object to verify
|
|
94468
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
94469
|
-
*/
|
|
94470
|
-
static verify(message: { [k: string]: any }): (string|null);
|
|
94471
|
-
|
|
94472
|
-
/**
|
|
94473
|
-
* Creates a UserOnboardingTopicResponses message from a plain object. Also converts values to their respective internal types.
|
|
94474
|
-
* @param object Plain object
|
|
94475
|
-
* @returns UserOnboardingTopicResponses
|
|
94476
|
-
*/
|
|
94477
|
-
static fromObject(object: { [k: string]: any }): UserOnboardingTopicResponses;
|
|
94478
|
-
|
|
94479
|
-
/**
|
|
94480
|
-
* Creates a plain object from a UserOnboardingTopicResponses message. Also converts values to other types if specified.
|
|
94481
|
-
* @param message UserOnboardingTopicResponses
|
|
94482
|
-
* @param [options] Conversion options
|
|
94483
|
-
* @returns Plain object
|
|
94484
|
-
*/
|
|
94485
|
-
static toObject(message: UserOnboardingTopicResponses, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
94486
|
-
|
|
94487
|
-
/**
|
|
94488
|
-
* Converts this UserOnboardingTopicResponses to JSON.
|
|
94489
|
-
* @returns JSON object
|
|
94490
|
-
*/
|
|
94491
|
-
toJSON(): { [k: string]: any };
|
|
94492
|
-
|
|
94493
|
-
/**
|
|
94494
|
-
* Gets the type url for UserOnboardingTopicResponses
|
|
94495
|
-
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
94496
|
-
* @returns The type url
|
|
94497
|
-
*/
|
|
94498
|
-
static getTypeUrl(prefix?: string): string;
|
|
94499
|
-
}
|
|
94500
|
-
|
|
94501
|
-
export namespace UserOnboardingTopicResponses {
|
|
94502
|
-
|
|
94503
|
-
/** Properties of a UserOnboardingTopicResponses. */
|
|
94504
|
-
interface $Properties {
|
|
94505
|
-
|
|
94506
|
-
/** UserOnboardingTopicResponses userId */
|
|
94507
|
-
userId?: (string|null);
|
|
94508
|
-
|
|
94509
|
-
/** UserOnboardingTopicResponses onboardTopics */
|
|
94510
|
-
onboardTopics?: (string[]|null);
|
|
94511
|
-
|
|
94512
|
-
/** Unknown fields preserved while decoding */
|
|
94513
|
-
$unknowns?: Uint8Array[];
|
|
94514
|
-
}
|
|
94515
|
-
|
|
94516
|
-
/** Shape of a UserOnboardingTopicResponses. */
|
|
94517
|
-
type $Shape = UserOnboardingTopicResponses.$Properties;
|
|
94518
|
-
}
|
|
94519
|
-
|
|
94520
94397
|
/**
|
|
94521
94398
|
* Properties of a UserOnboardingPrimaryTopicSelected.
|
|
94522
94399
|
* @deprecated Use UserOnboardingPrimaryTopicSelected.$Properties instead.
|
package/lib/index.js
CHANGED
|
@@ -278500,296 +278500,6 @@ $root.ModerationActionPerformed = (function() {
|
|
|
278500
278500
|
return ModerationActionPerformed;
|
|
278501
278501
|
})();
|
|
278502
278502
|
|
|
278503
|
-
$root.UserOnboardingTopicResponses = (function() {
|
|
278504
|
-
|
|
278505
|
-
/**
|
|
278506
|
-
* Properties of a UserOnboardingTopicResponses.
|
|
278507
|
-
* @typedef {Object} UserOnboardingTopicResponses.$Properties
|
|
278508
|
-
* @property {string|null} [userId] UserOnboardingTopicResponses userId
|
|
278509
|
-
* @property {Array.<string>|null} [onboardTopics] UserOnboardingTopicResponses onboardTopics
|
|
278510
|
-
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
278511
|
-
*/
|
|
278512
|
-
|
|
278513
|
-
/**
|
|
278514
|
-
* Properties of a UserOnboardingTopicResponses.
|
|
278515
|
-
* @name IUserOnboardingTopicResponses
|
|
278516
|
-
* @interface IUserOnboardingTopicResponses
|
|
278517
|
-
* @augments UserOnboardingTopicResponses.$Properties
|
|
278518
|
-
* @deprecated Use UserOnboardingTopicResponses.$Properties instead.
|
|
278519
|
-
*/
|
|
278520
|
-
|
|
278521
|
-
/**
|
|
278522
|
-
* Shape of a UserOnboardingTopicResponses.
|
|
278523
|
-
* @typedef {UserOnboardingTopicResponses.$Properties} UserOnboardingTopicResponses.$Shape
|
|
278524
|
-
*/
|
|
278525
|
-
|
|
278526
|
-
/**
|
|
278527
|
-
* Constructs a new UserOnboardingTopicResponses.
|
|
278528
|
-
* @name UserOnboardingTopicResponses
|
|
278529
|
-
* @classdesc Represents a UserOnboardingTopicResponses.
|
|
278530
|
-
* @constructor
|
|
278531
|
-
* @param {UserOnboardingTopicResponses.$Properties=} [properties] Properties to set
|
|
278532
|
-
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
278533
|
-
*/
|
|
278534
|
-
function UserOnboardingTopicResponses(properties) {
|
|
278535
|
-
this.onboardTopics = [];
|
|
278536
|
-
if (properties)
|
|
278537
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
278538
|
-
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
278539
|
-
this[keys[i]] = properties[keys[i]];
|
|
278540
|
-
}
|
|
278541
|
-
|
|
278542
|
-
/**
|
|
278543
|
-
* UserOnboardingTopicResponses userId.
|
|
278544
|
-
* @member {string} userId
|
|
278545
|
-
* @memberof UserOnboardingTopicResponses
|
|
278546
|
-
* @instance
|
|
278547
|
-
*/
|
|
278548
|
-
UserOnboardingTopicResponses.prototype.userId = "";
|
|
278549
|
-
|
|
278550
|
-
/**
|
|
278551
|
-
* UserOnboardingTopicResponses onboardTopics.
|
|
278552
|
-
* @member {Array.<string>} onboardTopics
|
|
278553
|
-
* @memberof UserOnboardingTopicResponses
|
|
278554
|
-
* @instance
|
|
278555
|
-
*/
|
|
278556
|
-
UserOnboardingTopicResponses.prototype.onboardTopics = $util.emptyArray;
|
|
278557
|
-
|
|
278558
|
-
/**
|
|
278559
|
-
* Creates a new UserOnboardingTopicResponses instance using the specified properties.
|
|
278560
|
-
* @function create
|
|
278561
|
-
* @memberof UserOnboardingTopicResponses
|
|
278562
|
-
* @static
|
|
278563
|
-
* @param {UserOnboardingTopicResponses.$Properties=} [properties] Properties to set
|
|
278564
|
-
* @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses instance
|
|
278565
|
-
* @type {{
|
|
278566
|
-
* (properties: UserOnboardingTopicResponses.$Shape): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
|
|
278567
|
-
* (properties?: UserOnboardingTopicResponses.$Properties): UserOnboardingTopicResponses;
|
|
278568
|
-
* }}
|
|
278569
|
-
*/
|
|
278570
|
-
UserOnboardingTopicResponses.create = function create(properties) {
|
|
278571
|
-
return new UserOnboardingTopicResponses(properties);
|
|
278572
|
-
};
|
|
278573
|
-
|
|
278574
|
-
/**
|
|
278575
|
-
* Encodes the specified UserOnboardingTopicResponses message. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
|
|
278576
|
-
* @function encode
|
|
278577
|
-
* @memberof UserOnboardingTopicResponses
|
|
278578
|
-
* @static
|
|
278579
|
-
* @param {UserOnboardingTopicResponses.$Properties} message UserOnboardingTopicResponses message or plain object to encode
|
|
278580
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
278581
|
-
* @returns {$protobuf.Writer} Writer
|
|
278582
|
-
*/
|
|
278583
|
-
UserOnboardingTopicResponses.encode = function encode(message, writer) {
|
|
278584
|
-
if (!writer)
|
|
278585
|
-
writer = $Writer.create();
|
|
278586
|
-
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
278587
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
278588
|
-
if (message.onboardTopics != null && message.onboardTopics.length)
|
|
278589
|
-
for (var i = 0; i < message.onboardTopics.length; ++i)
|
|
278590
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.onboardTopics[i]);
|
|
278591
|
-
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
278592
|
-
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
278593
|
-
writer.raw(message.$unknowns[i]);
|
|
278594
|
-
return writer;
|
|
278595
|
-
};
|
|
278596
|
-
|
|
278597
|
-
/**
|
|
278598
|
-
* Encodes the specified UserOnboardingTopicResponses message, length delimited. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
|
|
278599
|
-
* @function encodeDelimited
|
|
278600
|
-
* @memberof UserOnboardingTopicResponses
|
|
278601
|
-
* @static
|
|
278602
|
-
* @param {UserOnboardingTopicResponses.$Properties} message UserOnboardingTopicResponses message or plain object to encode
|
|
278603
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
278604
|
-
* @returns {$protobuf.Writer} Writer
|
|
278605
|
-
*/
|
|
278606
|
-
UserOnboardingTopicResponses.encodeDelimited = function encodeDelimited(message, writer) {
|
|
278607
|
-
return this.encode(message, writer).ldelim();
|
|
278608
|
-
};
|
|
278609
|
-
|
|
278610
|
-
/**
|
|
278611
|
-
* Decodes a UserOnboardingTopicResponses message from the specified reader or buffer.
|
|
278612
|
-
* @function decode
|
|
278613
|
-
* @memberof UserOnboardingTopicResponses
|
|
278614
|
-
* @static
|
|
278615
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
278616
|
-
* @param {number} [length] Message length if known beforehand
|
|
278617
|
-
* @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
|
|
278618
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
278619
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
278620
|
-
*/
|
|
278621
|
-
UserOnboardingTopicResponses.decode = function decode(reader, length, _end, _depth, _target) {
|
|
278622
|
-
if (!(reader instanceof $Reader))
|
|
278623
|
-
reader = $Reader.create(reader);
|
|
278624
|
-
if (_depth === undefined)
|
|
278625
|
-
_depth = 0;
|
|
278626
|
-
if (_depth > $Reader.recursionLimit)
|
|
278627
|
-
throw Error("max depth exceeded");
|
|
278628
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserOnboardingTopicResponses(), value;
|
|
278629
|
-
while (reader.pos < end) {
|
|
278630
|
-
var start = reader.pos;
|
|
278631
|
-
var tag = reader.tag();
|
|
278632
|
-
if (tag === _end) {
|
|
278633
|
-
_end = undefined;
|
|
278634
|
-
break;
|
|
278635
|
-
}
|
|
278636
|
-
var wireType = tag & 7;
|
|
278637
|
-
switch (tag >>>= 3) {
|
|
278638
|
-
case 1: {
|
|
278639
|
-
if (wireType !== 2)
|
|
278640
|
-
break;
|
|
278641
|
-
if ((value = reader.string()).length)
|
|
278642
|
-
message.userId = value;
|
|
278643
|
-
else
|
|
278644
|
-
delete message.userId;
|
|
278645
|
-
continue;
|
|
278646
|
-
}
|
|
278647
|
-
case 2: {
|
|
278648
|
-
if (wireType !== 2)
|
|
278649
|
-
break;
|
|
278650
|
-
if (!(message.onboardTopics && message.onboardTopics.length))
|
|
278651
|
-
message.onboardTopics = [];
|
|
278652
|
-
message.onboardTopics.push(reader.string());
|
|
278653
|
-
continue;
|
|
278654
|
-
}
|
|
278655
|
-
}
|
|
278656
|
-
reader.skipType(wireType, _depth, tag);
|
|
278657
|
-
$util.makeProp(message, "$unknowns", false);
|
|
278658
|
-
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
278659
|
-
}
|
|
278660
|
-
if (_end !== undefined)
|
|
278661
|
-
throw Error("missing end group");
|
|
278662
|
-
return message;
|
|
278663
|
-
};
|
|
278664
|
-
|
|
278665
|
-
/**
|
|
278666
|
-
* Decodes a UserOnboardingTopicResponses message from the specified reader or buffer, length delimited.
|
|
278667
|
-
* @function decodeDelimited
|
|
278668
|
-
* @memberof UserOnboardingTopicResponses
|
|
278669
|
-
* @static
|
|
278670
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
278671
|
-
* @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
|
|
278672
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
278673
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
278674
|
-
*/
|
|
278675
|
-
UserOnboardingTopicResponses.decodeDelimited = function decodeDelimited(reader) {
|
|
278676
|
-
if (!(reader instanceof $Reader))
|
|
278677
|
-
reader = new $Reader(reader);
|
|
278678
|
-
return this.decode(reader, reader.uint32());
|
|
278679
|
-
};
|
|
278680
|
-
|
|
278681
|
-
/**
|
|
278682
|
-
* Verifies a UserOnboardingTopicResponses message.
|
|
278683
|
-
* @function verify
|
|
278684
|
-
* @memberof UserOnboardingTopicResponses
|
|
278685
|
-
* @static
|
|
278686
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
278687
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
278688
|
-
*/
|
|
278689
|
-
UserOnboardingTopicResponses.verify = function verify(message, _depth) {
|
|
278690
|
-
if (typeof message !== "object" || message === null)
|
|
278691
|
-
return "object expected";
|
|
278692
|
-
if (_depth === undefined)
|
|
278693
|
-
_depth = 0;
|
|
278694
|
-
if (_depth > $util.recursionLimit)
|
|
278695
|
-
return "max depth exceeded";
|
|
278696
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
278697
|
-
if (!$util.isString(message.userId))
|
|
278698
|
-
return "userId: string expected";
|
|
278699
|
-
if (message.onboardTopics != null && message.hasOwnProperty("onboardTopics")) {
|
|
278700
|
-
if (!Array.isArray(message.onboardTopics))
|
|
278701
|
-
return "onboardTopics: array expected";
|
|
278702
|
-
for (var i = 0; i < message.onboardTopics.length; ++i)
|
|
278703
|
-
if (!$util.isString(message.onboardTopics[i]))
|
|
278704
|
-
return "onboardTopics: string[] expected";
|
|
278705
|
-
}
|
|
278706
|
-
return null;
|
|
278707
|
-
};
|
|
278708
|
-
|
|
278709
|
-
/**
|
|
278710
|
-
* Creates a UserOnboardingTopicResponses message from a plain object. Also converts values to their respective internal types.
|
|
278711
|
-
* @function fromObject
|
|
278712
|
-
* @memberof UserOnboardingTopicResponses
|
|
278713
|
-
* @static
|
|
278714
|
-
* @param {Object.<string,*>} object Plain object
|
|
278715
|
-
* @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses
|
|
278716
|
-
*/
|
|
278717
|
-
UserOnboardingTopicResponses.fromObject = function fromObject(object, _depth) {
|
|
278718
|
-
if (object instanceof $root.UserOnboardingTopicResponses)
|
|
278719
|
-
return object;
|
|
278720
|
-
if (_depth === undefined)
|
|
278721
|
-
_depth = 0;
|
|
278722
|
-
if (_depth > $util.recursionLimit)
|
|
278723
|
-
throw Error("max depth exceeded");
|
|
278724
|
-
var message = new $root.UserOnboardingTopicResponses();
|
|
278725
|
-
if (object.userId != null)
|
|
278726
|
-
if (typeof object.userId !== "string" || object.userId.length)
|
|
278727
|
-
message.userId = String(object.userId);
|
|
278728
|
-
if (object.onboardTopics) {
|
|
278729
|
-
if (!Array.isArray(object.onboardTopics))
|
|
278730
|
-
throw TypeError(".UserOnboardingTopicResponses.onboardTopics: array expected");
|
|
278731
|
-
message.onboardTopics = Array(object.onboardTopics.length);
|
|
278732
|
-
for (var i = 0; i < object.onboardTopics.length; ++i)
|
|
278733
|
-
message.onboardTopics[i] = String(object.onboardTopics[i]);
|
|
278734
|
-
}
|
|
278735
|
-
return message;
|
|
278736
|
-
};
|
|
278737
|
-
|
|
278738
|
-
/**
|
|
278739
|
-
* Creates a plain object from a UserOnboardingTopicResponses message. Also converts values to other types if specified.
|
|
278740
|
-
* @function toObject
|
|
278741
|
-
* @memberof UserOnboardingTopicResponses
|
|
278742
|
-
* @static
|
|
278743
|
-
* @param {UserOnboardingTopicResponses} message UserOnboardingTopicResponses
|
|
278744
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
278745
|
-
* @returns {Object.<string,*>} Plain object
|
|
278746
|
-
*/
|
|
278747
|
-
UserOnboardingTopicResponses.toObject = function toObject(message, options) {
|
|
278748
|
-
if (!options)
|
|
278749
|
-
options = {};
|
|
278750
|
-
var object = {};
|
|
278751
|
-
if (options.arrays || options.defaults)
|
|
278752
|
-
object.onboardTopics = [];
|
|
278753
|
-
if (options.defaults)
|
|
278754
|
-
object.userId = "";
|
|
278755
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
278756
|
-
object.userId = message.userId;
|
|
278757
|
-
if (message.onboardTopics && message.onboardTopics.length) {
|
|
278758
|
-
object.onboardTopics = Array(message.onboardTopics.length);
|
|
278759
|
-
for (var j = 0; j < message.onboardTopics.length; ++j)
|
|
278760
|
-
object.onboardTopics[j] = message.onboardTopics[j];
|
|
278761
|
-
}
|
|
278762
|
-
return object;
|
|
278763
|
-
};
|
|
278764
|
-
|
|
278765
|
-
/**
|
|
278766
|
-
* Converts this UserOnboardingTopicResponses to JSON.
|
|
278767
|
-
* @function toJSON
|
|
278768
|
-
* @memberof UserOnboardingTopicResponses
|
|
278769
|
-
* @instance
|
|
278770
|
-
* @returns {Object.<string,*>} JSON object
|
|
278771
|
-
*/
|
|
278772
|
-
UserOnboardingTopicResponses.prototype.toJSON = function toJSON() {
|
|
278773
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
278774
|
-
};
|
|
278775
|
-
|
|
278776
|
-
/**
|
|
278777
|
-
* Gets the type url for UserOnboardingTopicResponses
|
|
278778
|
-
* @function getTypeUrl
|
|
278779
|
-
* @memberof UserOnboardingTopicResponses
|
|
278780
|
-
* @static
|
|
278781
|
-
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
278782
|
-
* @returns {string} The type url
|
|
278783
|
-
*/
|
|
278784
|
-
UserOnboardingTopicResponses.getTypeUrl = function getTypeUrl(prefix) {
|
|
278785
|
-
if (prefix === undefined)
|
|
278786
|
-
prefix = "type.googleapis.com";
|
|
278787
|
-
return prefix + "/UserOnboardingTopicResponses";
|
|
278788
|
-
};
|
|
278789
|
-
|
|
278790
|
-
return UserOnboardingTopicResponses;
|
|
278791
|
-
})();
|
|
278792
|
-
|
|
278793
278503
|
$root.UserOnboardingPrimaryTopicSelected = (function() {
|
|
278794
278504
|
|
|
278795
278505
|
/**
|
package/lib/index.mjs
CHANGED
|
@@ -278498,296 +278498,6 @@ export const ModerationActionPerformed = $root.ModerationActionPerformed = (() =
|
|
|
278498
278498
|
return ModerationActionPerformed;
|
|
278499
278499
|
})();
|
|
278500
278500
|
|
|
278501
|
-
export const UserOnboardingTopicResponses = $root.UserOnboardingTopicResponses = (() => {
|
|
278502
|
-
|
|
278503
|
-
/**
|
|
278504
|
-
* Properties of a UserOnboardingTopicResponses.
|
|
278505
|
-
* @typedef {Object} UserOnboardingTopicResponses.$Properties
|
|
278506
|
-
* @property {string|null} [userId] UserOnboardingTopicResponses userId
|
|
278507
|
-
* @property {Array.<string>|null} [onboardTopics] UserOnboardingTopicResponses onboardTopics
|
|
278508
|
-
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
278509
|
-
*/
|
|
278510
|
-
|
|
278511
|
-
/**
|
|
278512
|
-
* Properties of a UserOnboardingTopicResponses.
|
|
278513
|
-
* @name IUserOnboardingTopicResponses
|
|
278514
|
-
* @interface IUserOnboardingTopicResponses
|
|
278515
|
-
* @augments UserOnboardingTopicResponses.$Properties
|
|
278516
|
-
* @deprecated Use UserOnboardingTopicResponses.$Properties instead.
|
|
278517
|
-
*/
|
|
278518
|
-
|
|
278519
|
-
/**
|
|
278520
|
-
* Shape of a UserOnboardingTopicResponses.
|
|
278521
|
-
* @typedef {UserOnboardingTopicResponses.$Properties} UserOnboardingTopicResponses.$Shape
|
|
278522
|
-
*/
|
|
278523
|
-
|
|
278524
|
-
/**
|
|
278525
|
-
* Constructs a new UserOnboardingTopicResponses.
|
|
278526
|
-
* @name UserOnboardingTopicResponses
|
|
278527
|
-
* @classdesc Represents a UserOnboardingTopicResponses.
|
|
278528
|
-
* @constructor
|
|
278529
|
-
* @param {UserOnboardingTopicResponses.$Properties=} [properties] Properties to set
|
|
278530
|
-
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
278531
|
-
*/
|
|
278532
|
-
function UserOnboardingTopicResponses(properties) {
|
|
278533
|
-
this.onboardTopics = [];
|
|
278534
|
-
if (properties)
|
|
278535
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
278536
|
-
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
278537
|
-
this[keys[i]] = properties[keys[i]];
|
|
278538
|
-
}
|
|
278539
|
-
|
|
278540
|
-
/**
|
|
278541
|
-
* UserOnboardingTopicResponses userId.
|
|
278542
|
-
* @member {string} userId
|
|
278543
|
-
* @memberof UserOnboardingTopicResponses
|
|
278544
|
-
* @instance
|
|
278545
|
-
*/
|
|
278546
|
-
UserOnboardingTopicResponses.prototype.userId = "";
|
|
278547
|
-
|
|
278548
|
-
/**
|
|
278549
|
-
* UserOnboardingTopicResponses onboardTopics.
|
|
278550
|
-
* @member {Array.<string>} onboardTopics
|
|
278551
|
-
* @memberof UserOnboardingTopicResponses
|
|
278552
|
-
* @instance
|
|
278553
|
-
*/
|
|
278554
|
-
UserOnboardingTopicResponses.prototype.onboardTopics = $util.emptyArray;
|
|
278555
|
-
|
|
278556
|
-
/**
|
|
278557
|
-
* Creates a new UserOnboardingTopicResponses instance using the specified properties.
|
|
278558
|
-
* @function create
|
|
278559
|
-
* @memberof UserOnboardingTopicResponses
|
|
278560
|
-
* @static
|
|
278561
|
-
* @param {UserOnboardingTopicResponses.$Properties=} [properties] Properties to set
|
|
278562
|
-
* @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses instance
|
|
278563
|
-
* @type {{
|
|
278564
|
-
* (properties: UserOnboardingTopicResponses.$Shape): UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape;
|
|
278565
|
-
* (properties?: UserOnboardingTopicResponses.$Properties): UserOnboardingTopicResponses;
|
|
278566
|
-
* }}
|
|
278567
|
-
*/
|
|
278568
|
-
UserOnboardingTopicResponses.create = function create(properties) {
|
|
278569
|
-
return new UserOnboardingTopicResponses(properties);
|
|
278570
|
-
};
|
|
278571
|
-
|
|
278572
|
-
/**
|
|
278573
|
-
* Encodes the specified UserOnboardingTopicResponses message. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
|
|
278574
|
-
* @function encode
|
|
278575
|
-
* @memberof UserOnboardingTopicResponses
|
|
278576
|
-
* @static
|
|
278577
|
-
* @param {UserOnboardingTopicResponses.$Properties} message UserOnboardingTopicResponses message or plain object to encode
|
|
278578
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
278579
|
-
* @returns {$protobuf.Writer} Writer
|
|
278580
|
-
*/
|
|
278581
|
-
UserOnboardingTopicResponses.encode = function encode(message, writer) {
|
|
278582
|
-
if (!writer)
|
|
278583
|
-
writer = $Writer.create();
|
|
278584
|
-
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
278585
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
278586
|
-
if (message.onboardTopics != null && message.onboardTopics.length)
|
|
278587
|
-
for (let i = 0; i < message.onboardTopics.length; ++i)
|
|
278588
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.onboardTopics[i]);
|
|
278589
|
-
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
278590
|
-
for (let i = 0; i < message.$unknowns.length; ++i)
|
|
278591
|
-
writer.raw(message.$unknowns[i]);
|
|
278592
|
-
return writer;
|
|
278593
|
-
};
|
|
278594
|
-
|
|
278595
|
-
/**
|
|
278596
|
-
* Encodes the specified UserOnboardingTopicResponses message, length delimited. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
|
|
278597
|
-
* @function encodeDelimited
|
|
278598
|
-
* @memberof UserOnboardingTopicResponses
|
|
278599
|
-
* @static
|
|
278600
|
-
* @param {UserOnboardingTopicResponses.$Properties} message UserOnboardingTopicResponses message or plain object to encode
|
|
278601
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
278602
|
-
* @returns {$protobuf.Writer} Writer
|
|
278603
|
-
*/
|
|
278604
|
-
UserOnboardingTopicResponses.encodeDelimited = function encodeDelimited(message, writer) {
|
|
278605
|
-
return this.encode(message, writer).ldelim();
|
|
278606
|
-
};
|
|
278607
|
-
|
|
278608
|
-
/**
|
|
278609
|
-
* Decodes a UserOnboardingTopicResponses message from the specified reader or buffer.
|
|
278610
|
-
* @function decode
|
|
278611
|
-
* @memberof UserOnboardingTopicResponses
|
|
278612
|
-
* @static
|
|
278613
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
278614
|
-
* @param {number} [length] Message length if known beforehand
|
|
278615
|
-
* @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
|
|
278616
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
278617
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
278618
|
-
*/
|
|
278619
|
-
UserOnboardingTopicResponses.decode = function decode(reader, length, _end, _depth, _target) {
|
|
278620
|
-
if (!(reader instanceof $Reader))
|
|
278621
|
-
reader = $Reader.create(reader);
|
|
278622
|
-
if (_depth === undefined)
|
|
278623
|
-
_depth = 0;
|
|
278624
|
-
if (_depth > $Reader.recursionLimit)
|
|
278625
|
-
throw Error("max depth exceeded");
|
|
278626
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserOnboardingTopicResponses(), value;
|
|
278627
|
-
while (reader.pos < end) {
|
|
278628
|
-
let start = reader.pos;
|
|
278629
|
-
let tag = reader.tag();
|
|
278630
|
-
if (tag === _end) {
|
|
278631
|
-
_end = undefined;
|
|
278632
|
-
break;
|
|
278633
|
-
}
|
|
278634
|
-
let wireType = tag & 7;
|
|
278635
|
-
switch (tag >>>= 3) {
|
|
278636
|
-
case 1: {
|
|
278637
|
-
if (wireType !== 2)
|
|
278638
|
-
break;
|
|
278639
|
-
if ((value = reader.string()).length)
|
|
278640
|
-
message.userId = value;
|
|
278641
|
-
else
|
|
278642
|
-
delete message.userId;
|
|
278643
|
-
continue;
|
|
278644
|
-
}
|
|
278645
|
-
case 2: {
|
|
278646
|
-
if (wireType !== 2)
|
|
278647
|
-
break;
|
|
278648
|
-
if (!(message.onboardTopics && message.onboardTopics.length))
|
|
278649
|
-
message.onboardTopics = [];
|
|
278650
|
-
message.onboardTopics.push(reader.string());
|
|
278651
|
-
continue;
|
|
278652
|
-
}
|
|
278653
|
-
}
|
|
278654
|
-
reader.skipType(wireType, _depth, tag);
|
|
278655
|
-
$util.makeProp(message, "$unknowns", false);
|
|
278656
|
-
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
278657
|
-
}
|
|
278658
|
-
if (_end !== undefined)
|
|
278659
|
-
throw Error("missing end group");
|
|
278660
|
-
return message;
|
|
278661
|
-
};
|
|
278662
|
-
|
|
278663
|
-
/**
|
|
278664
|
-
* Decodes a UserOnboardingTopicResponses message from the specified reader or buffer, length delimited.
|
|
278665
|
-
* @function decodeDelimited
|
|
278666
|
-
* @memberof UserOnboardingTopicResponses
|
|
278667
|
-
* @static
|
|
278668
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
278669
|
-
* @returns {UserOnboardingTopicResponses & UserOnboardingTopicResponses.$Shape} UserOnboardingTopicResponses
|
|
278670
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
278671
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
278672
|
-
*/
|
|
278673
|
-
UserOnboardingTopicResponses.decodeDelimited = function decodeDelimited(reader) {
|
|
278674
|
-
if (!(reader instanceof $Reader))
|
|
278675
|
-
reader = new $Reader(reader);
|
|
278676
|
-
return this.decode(reader, reader.uint32());
|
|
278677
|
-
};
|
|
278678
|
-
|
|
278679
|
-
/**
|
|
278680
|
-
* Verifies a UserOnboardingTopicResponses message.
|
|
278681
|
-
* @function verify
|
|
278682
|
-
* @memberof UserOnboardingTopicResponses
|
|
278683
|
-
* @static
|
|
278684
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
278685
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
278686
|
-
*/
|
|
278687
|
-
UserOnboardingTopicResponses.verify = function verify(message, _depth) {
|
|
278688
|
-
if (typeof message !== "object" || message === null)
|
|
278689
|
-
return "object expected";
|
|
278690
|
-
if (_depth === undefined)
|
|
278691
|
-
_depth = 0;
|
|
278692
|
-
if (_depth > $util.recursionLimit)
|
|
278693
|
-
return "max depth exceeded";
|
|
278694
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
278695
|
-
if (!$util.isString(message.userId))
|
|
278696
|
-
return "userId: string expected";
|
|
278697
|
-
if (message.onboardTopics != null && message.hasOwnProperty("onboardTopics")) {
|
|
278698
|
-
if (!Array.isArray(message.onboardTopics))
|
|
278699
|
-
return "onboardTopics: array expected";
|
|
278700
|
-
for (let i = 0; i < message.onboardTopics.length; ++i)
|
|
278701
|
-
if (!$util.isString(message.onboardTopics[i]))
|
|
278702
|
-
return "onboardTopics: string[] expected";
|
|
278703
|
-
}
|
|
278704
|
-
return null;
|
|
278705
|
-
};
|
|
278706
|
-
|
|
278707
|
-
/**
|
|
278708
|
-
* Creates a UserOnboardingTopicResponses message from a plain object. Also converts values to their respective internal types.
|
|
278709
|
-
* @function fromObject
|
|
278710
|
-
* @memberof UserOnboardingTopicResponses
|
|
278711
|
-
* @static
|
|
278712
|
-
* @param {Object.<string,*>} object Plain object
|
|
278713
|
-
* @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses
|
|
278714
|
-
*/
|
|
278715
|
-
UserOnboardingTopicResponses.fromObject = function fromObject(object, _depth) {
|
|
278716
|
-
if (object instanceof $root.UserOnboardingTopicResponses)
|
|
278717
|
-
return object;
|
|
278718
|
-
if (_depth === undefined)
|
|
278719
|
-
_depth = 0;
|
|
278720
|
-
if (_depth > $util.recursionLimit)
|
|
278721
|
-
throw Error("max depth exceeded");
|
|
278722
|
-
let message = new $root.UserOnboardingTopicResponses();
|
|
278723
|
-
if (object.userId != null)
|
|
278724
|
-
if (typeof object.userId !== "string" || object.userId.length)
|
|
278725
|
-
message.userId = String(object.userId);
|
|
278726
|
-
if (object.onboardTopics) {
|
|
278727
|
-
if (!Array.isArray(object.onboardTopics))
|
|
278728
|
-
throw TypeError(".UserOnboardingTopicResponses.onboardTopics: array expected");
|
|
278729
|
-
message.onboardTopics = Array(object.onboardTopics.length);
|
|
278730
|
-
for (let i = 0; i < object.onboardTopics.length; ++i)
|
|
278731
|
-
message.onboardTopics[i] = String(object.onboardTopics[i]);
|
|
278732
|
-
}
|
|
278733
|
-
return message;
|
|
278734
|
-
};
|
|
278735
|
-
|
|
278736
|
-
/**
|
|
278737
|
-
* Creates a plain object from a UserOnboardingTopicResponses message. Also converts values to other types if specified.
|
|
278738
|
-
* @function toObject
|
|
278739
|
-
* @memberof UserOnboardingTopicResponses
|
|
278740
|
-
* @static
|
|
278741
|
-
* @param {UserOnboardingTopicResponses} message UserOnboardingTopicResponses
|
|
278742
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
278743
|
-
* @returns {Object.<string,*>} Plain object
|
|
278744
|
-
*/
|
|
278745
|
-
UserOnboardingTopicResponses.toObject = function toObject(message, options) {
|
|
278746
|
-
if (!options)
|
|
278747
|
-
options = {};
|
|
278748
|
-
let object = {};
|
|
278749
|
-
if (options.arrays || options.defaults)
|
|
278750
|
-
object.onboardTopics = [];
|
|
278751
|
-
if (options.defaults)
|
|
278752
|
-
object.userId = "";
|
|
278753
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
278754
|
-
object.userId = message.userId;
|
|
278755
|
-
if (message.onboardTopics && message.onboardTopics.length) {
|
|
278756
|
-
object.onboardTopics = Array(message.onboardTopics.length);
|
|
278757
|
-
for (let j = 0; j < message.onboardTopics.length; ++j)
|
|
278758
|
-
object.onboardTopics[j] = message.onboardTopics[j];
|
|
278759
|
-
}
|
|
278760
|
-
return object;
|
|
278761
|
-
};
|
|
278762
|
-
|
|
278763
|
-
/**
|
|
278764
|
-
* Converts this UserOnboardingTopicResponses to JSON.
|
|
278765
|
-
* @function toJSON
|
|
278766
|
-
* @memberof UserOnboardingTopicResponses
|
|
278767
|
-
* @instance
|
|
278768
|
-
* @returns {Object.<string,*>} JSON object
|
|
278769
|
-
*/
|
|
278770
|
-
UserOnboardingTopicResponses.prototype.toJSON = function toJSON() {
|
|
278771
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
278772
|
-
};
|
|
278773
|
-
|
|
278774
|
-
/**
|
|
278775
|
-
* Gets the type url for UserOnboardingTopicResponses
|
|
278776
|
-
* @function getTypeUrl
|
|
278777
|
-
* @memberof UserOnboardingTopicResponses
|
|
278778
|
-
* @static
|
|
278779
|
-
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
278780
|
-
* @returns {string} The type url
|
|
278781
|
-
*/
|
|
278782
|
-
UserOnboardingTopicResponses.getTypeUrl = function getTypeUrl(prefix) {
|
|
278783
|
-
if (prefix === undefined)
|
|
278784
|
-
prefix = "type.googleapis.com";
|
|
278785
|
-
return prefix + "/UserOnboardingTopicResponses";
|
|
278786
|
-
};
|
|
278787
|
-
|
|
278788
|
-
return UserOnboardingTopicResponses;
|
|
278789
|
-
})();
|
|
278790
|
-
|
|
278791
278501
|
export const UserOnboardingPrimaryTopicSelected = $root.UserOnboardingPrimaryTopicSelected = (() => {
|
|
278792
278502
|
|
|
278793
278503
|
/**
|