@headspace/protos-events 1.368.0 → 1.370.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +530 -1
  2. package/lib/index.js +1636 -0
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -314,6 +314,7 @@ $root.auth0 = (function() {
314
314
  * @property {number} THEHARRISCENTER_OKTA_SSO=19 THEHARRISCENTER_OKTA_SSO value
315
315
  * @property {number} BILLGO_OKTA_SSO=20 BILLGO_OKTA_SSO value
316
316
  * @property {number} HEADSPACE_TEST_AZURE_SSO=21 HEADSPACE_TEST_AZURE_SSO value
317
+ * @property {number} SMSASSIST_OKTA_SSO=22 SMSASSIST_OKTA_SSO value
317
318
  */
318
319
  connections.Connection = (function() {
319
320
  var valuesById = {}, values = Object.create(valuesById);
@@ -339,6 +340,7 @@ $root.auth0 = (function() {
339
340
  values[valuesById[19] = "THEHARRISCENTER_OKTA_SSO"] = 19;
340
341
  values[valuesById[20] = "BILLGO_OKTA_SSO"] = 20;
341
342
  values[valuesById[21] = "HEADSPACE_TEST_AZURE_SSO"] = 21;
343
+ values[valuesById[22] = "SMSASSIST_OKTA_SSO"] = 22;
342
344
  return values;
343
345
  })();
344
346
 
@@ -32031,6 +32033,7 @@ $root.SuccessfulUserLogin = (function() {
32031
32033
  case 19:
32032
32034
  case 20:
32033
32035
  case 21:
32036
+ case 22:
32034
32037
  break;
32035
32038
  }
32036
32039
  return null;
@@ -32202,6 +32205,10 @@ $root.SuccessfulUserLogin = (function() {
32202
32205
  case 21:
32203
32206
  message.connection = 21;
32204
32207
  break;
32208
+ case "SMSASSIST_OKTA_SSO":
32209
+ case 22:
32210
+ message.connection = 22;
32211
+ break;
32205
32212
  }
32206
32213
  return message;
32207
32214
  };
@@ -32444,6 +32451,7 @@ $root.UnlinkedConnection = (function() {
32444
32451
  case 19:
32445
32452
  case 20:
32446
32453
  case 21:
32454
+ case 22:
32447
32455
  break;
32448
32456
  }
32449
32457
  if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
@@ -32555,6 +32563,10 @@ $root.UnlinkedConnection = (function() {
32555
32563
  case 21:
32556
32564
  message.connection = 21;
32557
32565
  break;
32566
+ case "SMSASSIST_OKTA_SSO":
32567
+ case 22:
32568
+ message.connection = 22;
32569
+ break;
32558
32570
  }
32559
32571
  if (object.unlinkedAt != null)
32560
32572
  if ($util.Long)
@@ -32817,6 +32829,7 @@ $root.ConnectionLinked = (function() {
32817
32829
  case 19:
32818
32830
  case 20:
32819
32831
  case 21:
32832
+ case 22:
32820
32833
  break;
32821
32834
  }
32822
32835
  if (message.linkedAt != null && message.hasOwnProperty("linkedAt"))
@@ -32931,6 +32944,10 @@ $root.ConnectionLinked = (function() {
32931
32944
  case 21:
32932
32945
  message.connection = 21;
32933
32946
  break;
32947
+ case "SMSASSIST_OKTA_SSO":
32948
+ case 22:
32949
+ message.connection = 22;
32950
+ break;
32934
32951
  }
32935
32952
  if (object.linkedAt != null)
32936
32953
  if ($util.Long)
@@ -88478,6 +88495,8 @@ $root.ElfNormalizationJobFailed = (function() {
88478
88495
  * @interface IElfNormalizationJobFailed
88479
88496
  * @property {elf.INormalizationJob|null} [job] ElfNormalizationJobFailed job
88480
88497
  * @property {elf.INormalizationJobError|null} [error] ElfNormalizationJobFailed error
88498
+ * @property {boolean|null} [gingerShouldProcess] ElfNormalizationJobFailed gingerShouldProcess
88499
+ * @property {boolean|null} [headspaceShouldProcess] ElfNormalizationJobFailed headspaceShouldProcess
88481
88500
  */
88482
88501
 
88483
88502
  /**
@@ -88511,6 +88530,22 @@ $root.ElfNormalizationJobFailed = (function() {
88511
88530
  */
88512
88531
  ElfNormalizationJobFailed.prototype.error = null;
88513
88532
 
88533
+ /**
88534
+ * ElfNormalizationJobFailed gingerShouldProcess.
88535
+ * @member {boolean} gingerShouldProcess
88536
+ * @memberof ElfNormalizationJobFailed
88537
+ * @instance
88538
+ */
88539
+ ElfNormalizationJobFailed.prototype.gingerShouldProcess = false;
88540
+
88541
+ /**
88542
+ * ElfNormalizationJobFailed headspaceShouldProcess.
88543
+ * @member {boolean} headspaceShouldProcess
88544
+ * @memberof ElfNormalizationJobFailed
88545
+ * @instance
88546
+ */
88547
+ ElfNormalizationJobFailed.prototype.headspaceShouldProcess = false;
88548
+
88514
88549
  /**
88515
88550
  * Creates a new ElfNormalizationJobFailed instance using the specified properties.
88516
88551
  * @function create
@@ -88539,6 +88574,10 @@ $root.ElfNormalizationJobFailed = (function() {
88539
88574
  $root.elf.NormalizationJob.encode(message.job, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
88540
88575
  if (message.error != null && message.hasOwnProperty("error"))
88541
88576
  $root.elf.NormalizationJobError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
88577
+ if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
88578
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.gingerShouldProcess);
88579
+ if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
88580
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.headspaceShouldProcess);
88542
88581
  return writer;
88543
88582
  };
88544
88583
 
@@ -88579,6 +88618,12 @@ $root.ElfNormalizationJobFailed = (function() {
88579
88618
  case 2:
88580
88619
  message.error = $root.elf.NormalizationJobError.decode(reader, reader.uint32());
88581
88620
  break;
88621
+ case 3:
88622
+ message.gingerShouldProcess = reader.bool();
88623
+ break;
88624
+ case 4:
88625
+ message.headspaceShouldProcess = reader.bool();
88626
+ break;
88582
88627
  default:
88583
88628
  reader.skipType(tag & 7);
88584
88629
  break;
@@ -88624,6 +88669,12 @@ $root.ElfNormalizationJobFailed = (function() {
88624
88669
  if (error)
88625
88670
  return "error." + error;
88626
88671
  }
88672
+ if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
88673
+ if (typeof message.gingerShouldProcess !== "boolean")
88674
+ return "gingerShouldProcess: boolean expected";
88675
+ if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
88676
+ if (typeof message.headspaceShouldProcess !== "boolean")
88677
+ return "headspaceShouldProcess: boolean expected";
88627
88678
  return null;
88628
88679
  };
88629
88680
 
@@ -88649,6 +88700,10 @@ $root.ElfNormalizationJobFailed = (function() {
88649
88700
  throw TypeError(".ElfNormalizationJobFailed.error: object expected");
88650
88701
  message.error = $root.elf.NormalizationJobError.fromObject(object.error);
88651
88702
  }
88703
+ if (object.gingerShouldProcess != null)
88704
+ message.gingerShouldProcess = Boolean(object.gingerShouldProcess);
88705
+ if (object.headspaceShouldProcess != null)
88706
+ message.headspaceShouldProcess = Boolean(object.headspaceShouldProcess);
88652
88707
  return message;
88653
88708
  };
88654
88709
 
@@ -88668,11 +88723,17 @@ $root.ElfNormalizationJobFailed = (function() {
88668
88723
  if (options.defaults) {
88669
88724
  object.job = null;
88670
88725
  object.error = null;
88726
+ object.gingerShouldProcess = false;
88727
+ object.headspaceShouldProcess = false;
88671
88728
  }
88672
88729
  if (message.job != null && message.hasOwnProperty("job"))
88673
88730
  object.job = $root.elf.NormalizationJob.toObject(message.job, options);
88674
88731
  if (message.error != null && message.hasOwnProperty("error"))
88675
88732
  object.error = $root.elf.NormalizationJobError.toObject(message.error, options);
88733
+ if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
88734
+ object.gingerShouldProcess = message.gingerShouldProcess;
88735
+ if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
88736
+ object.headspaceShouldProcess = message.headspaceShouldProcess;
88676
88737
  return object;
88677
88738
  };
88678
88739
 
@@ -88690,6 +88751,1581 @@ $root.ElfNormalizationJobFailed = (function() {
88690
88751
  return ElfNormalizationJobFailed;
88691
88752
  })();
88692
88753
 
88754
+ /**
88755
+ * KeyType enum.
88756
+ * @exports KeyType
88757
+ * @enum {string}
88758
+ * @property {number} WORK_ID=0 WORK_ID value
88759
+ * @property {number} WORK_EMAIL=1 WORK_EMAIL value
88760
+ */
88761
+ $root.KeyType = (function() {
88762
+ var valuesById = {}, values = Object.create(valuesById);
88763
+ values[valuesById[0] = "WORK_ID"] = 0;
88764
+ values[valuesById[1] = "WORK_EMAIL"] = 1;
88765
+ return values;
88766
+ })();
88767
+
88768
+ $root.ElfRecordPresent = (function() {
88769
+
88770
+ /**
88771
+ * Properties of an ElfRecordPresent.
88772
+ * @exports IElfRecordPresent
88773
+ * @interface IElfRecordPresent
88774
+ * @property {string|null} [headspaceHealthOrgId] ElfRecordPresent headspaceHealthOrgId
88775
+ * @property {string|null} [b2bOrgId] ElfRecordPresent b2bOrgId
88776
+ * @property {string|null} [gingerOrgId] ElfRecordPresent gingerOrgId
88777
+ * @property {number|Long|null} [fileImportedTimestamp] ElfRecordPresent fileImportedTimestamp
88778
+ * @property {number|null} [lineNumber] ElfRecordPresent lineNumber
88779
+ * @property {string|null} [workEmail] ElfRecordPresent workEmail
88780
+ * @property {string|null} [workId] ElfRecordPresent workId
88781
+ * @property {KeyType|null} [keyType] ElfRecordPresent keyType
88782
+ * @property {string|null} [firstName] ElfRecordPresent firstName
88783
+ * @property {string|null} [lastName] ElfRecordPresent lastName
88784
+ * @property {string|null} [country] ElfRecordPresent country
88785
+ * @property {string|null} [zipCode] ElfRecordPresent zipCode
88786
+ * @property {string|null} [dob] ElfRecordPresent dob
88787
+ * @property {string|null} [streetAddress_1] ElfRecordPresent streetAddress_1
88788
+ * @property {string|null} [streetAddress_2] ElfRecordPresent streetAddress_2
88789
+ * @property {string|null} [division] ElfRecordPresent division
88790
+ * @property {string|null} [language] ElfRecordPresent language
88791
+ * @property {boolean|null} [isDryRun] ElfRecordPresent isDryRun
88792
+ * @property {boolean|null} [gingerShouldProcess] ElfRecordPresent gingerShouldProcess
88793
+ * @property {boolean|null} [headspaceShouldProcess] ElfRecordPresent headspaceShouldProcess
88794
+ */
88795
+
88796
+ /**
88797
+ * Constructs a new ElfRecordPresent.
88798
+ * @exports ElfRecordPresent
88799
+ * @classdesc Represents an ElfRecordPresent.
88800
+ * @implements IElfRecordPresent
88801
+ * @constructor
88802
+ * @param {IElfRecordPresent=} [properties] Properties to set
88803
+ */
88804
+ function ElfRecordPresent(properties) {
88805
+ if (properties)
88806
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
88807
+ if (properties[keys[i]] != null)
88808
+ this[keys[i]] = properties[keys[i]];
88809
+ }
88810
+
88811
+ /**
88812
+ * ElfRecordPresent headspaceHealthOrgId.
88813
+ * @member {string} headspaceHealthOrgId
88814
+ * @memberof ElfRecordPresent
88815
+ * @instance
88816
+ */
88817
+ ElfRecordPresent.prototype.headspaceHealthOrgId = "";
88818
+
88819
+ /**
88820
+ * ElfRecordPresent b2bOrgId.
88821
+ * @member {string} b2bOrgId
88822
+ * @memberof ElfRecordPresent
88823
+ * @instance
88824
+ */
88825
+ ElfRecordPresent.prototype.b2bOrgId = "";
88826
+
88827
+ /**
88828
+ * ElfRecordPresent gingerOrgId.
88829
+ * @member {string} gingerOrgId
88830
+ * @memberof ElfRecordPresent
88831
+ * @instance
88832
+ */
88833
+ ElfRecordPresent.prototype.gingerOrgId = "";
88834
+
88835
+ /**
88836
+ * ElfRecordPresent fileImportedTimestamp.
88837
+ * @member {number|Long} fileImportedTimestamp
88838
+ * @memberof ElfRecordPresent
88839
+ * @instance
88840
+ */
88841
+ ElfRecordPresent.prototype.fileImportedTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
88842
+
88843
+ /**
88844
+ * ElfRecordPresent lineNumber.
88845
+ * @member {number} lineNumber
88846
+ * @memberof ElfRecordPresent
88847
+ * @instance
88848
+ */
88849
+ ElfRecordPresent.prototype.lineNumber = 0;
88850
+
88851
+ /**
88852
+ * ElfRecordPresent workEmail.
88853
+ * @member {string} workEmail
88854
+ * @memberof ElfRecordPresent
88855
+ * @instance
88856
+ */
88857
+ ElfRecordPresent.prototype.workEmail = "";
88858
+
88859
+ /**
88860
+ * ElfRecordPresent workId.
88861
+ * @member {string} workId
88862
+ * @memberof ElfRecordPresent
88863
+ * @instance
88864
+ */
88865
+ ElfRecordPresent.prototype.workId = "";
88866
+
88867
+ /**
88868
+ * ElfRecordPresent keyType.
88869
+ * @member {KeyType} keyType
88870
+ * @memberof ElfRecordPresent
88871
+ * @instance
88872
+ */
88873
+ ElfRecordPresent.prototype.keyType = 0;
88874
+
88875
+ /**
88876
+ * ElfRecordPresent firstName.
88877
+ * @member {string} firstName
88878
+ * @memberof ElfRecordPresent
88879
+ * @instance
88880
+ */
88881
+ ElfRecordPresent.prototype.firstName = "";
88882
+
88883
+ /**
88884
+ * ElfRecordPresent lastName.
88885
+ * @member {string} lastName
88886
+ * @memberof ElfRecordPresent
88887
+ * @instance
88888
+ */
88889
+ ElfRecordPresent.prototype.lastName = "";
88890
+
88891
+ /**
88892
+ * ElfRecordPresent country.
88893
+ * @member {string} country
88894
+ * @memberof ElfRecordPresent
88895
+ * @instance
88896
+ */
88897
+ ElfRecordPresent.prototype.country = "";
88898
+
88899
+ /**
88900
+ * ElfRecordPresent zipCode.
88901
+ * @member {string} zipCode
88902
+ * @memberof ElfRecordPresent
88903
+ * @instance
88904
+ */
88905
+ ElfRecordPresent.prototype.zipCode = "";
88906
+
88907
+ /**
88908
+ * ElfRecordPresent dob.
88909
+ * @member {string} dob
88910
+ * @memberof ElfRecordPresent
88911
+ * @instance
88912
+ */
88913
+ ElfRecordPresent.prototype.dob = "";
88914
+
88915
+ /**
88916
+ * ElfRecordPresent streetAddress_1.
88917
+ * @member {string} streetAddress_1
88918
+ * @memberof ElfRecordPresent
88919
+ * @instance
88920
+ */
88921
+ ElfRecordPresent.prototype.streetAddress_1 = "";
88922
+
88923
+ /**
88924
+ * ElfRecordPresent streetAddress_2.
88925
+ * @member {string} streetAddress_2
88926
+ * @memberof ElfRecordPresent
88927
+ * @instance
88928
+ */
88929
+ ElfRecordPresent.prototype.streetAddress_2 = "";
88930
+
88931
+ /**
88932
+ * ElfRecordPresent division.
88933
+ * @member {string} division
88934
+ * @memberof ElfRecordPresent
88935
+ * @instance
88936
+ */
88937
+ ElfRecordPresent.prototype.division = "";
88938
+
88939
+ /**
88940
+ * ElfRecordPresent language.
88941
+ * @member {string} language
88942
+ * @memberof ElfRecordPresent
88943
+ * @instance
88944
+ */
88945
+ ElfRecordPresent.prototype.language = "";
88946
+
88947
+ /**
88948
+ * ElfRecordPresent isDryRun.
88949
+ * @member {boolean} isDryRun
88950
+ * @memberof ElfRecordPresent
88951
+ * @instance
88952
+ */
88953
+ ElfRecordPresent.prototype.isDryRun = false;
88954
+
88955
+ /**
88956
+ * ElfRecordPresent gingerShouldProcess.
88957
+ * @member {boolean} gingerShouldProcess
88958
+ * @memberof ElfRecordPresent
88959
+ * @instance
88960
+ */
88961
+ ElfRecordPresent.prototype.gingerShouldProcess = false;
88962
+
88963
+ /**
88964
+ * ElfRecordPresent headspaceShouldProcess.
88965
+ * @member {boolean} headspaceShouldProcess
88966
+ * @memberof ElfRecordPresent
88967
+ * @instance
88968
+ */
88969
+ ElfRecordPresent.prototype.headspaceShouldProcess = false;
88970
+
88971
+ /**
88972
+ * Creates a new ElfRecordPresent instance using the specified properties.
88973
+ * @function create
88974
+ * @memberof ElfRecordPresent
88975
+ * @static
88976
+ * @param {IElfRecordPresent=} [properties] Properties to set
88977
+ * @returns {ElfRecordPresent} ElfRecordPresent instance
88978
+ */
88979
+ ElfRecordPresent.create = function create(properties) {
88980
+ return new ElfRecordPresent(properties);
88981
+ };
88982
+
88983
+ /**
88984
+ * Encodes the specified ElfRecordPresent message. Does not implicitly {@link ElfRecordPresent.verify|verify} messages.
88985
+ * @function encode
88986
+ * @memberof ElfRecordPresent
88987
+ * @static
88988
+ * @param {IElfRecordPresent} message ElfRecordPresent message or plain object to encode
88989
+ * @param {$protobuf.Writer} [writer] Writer to encode to
88990
+ * @returns {$protobuf.Writer} Writer
88991
+ */
88992
+ ElfRecordPresent.encode = function encode(message, writer) {
88993
+ if (!writer)
88994
+ writer = $Writer.create();
88995
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
88996
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.headspaceHealthOrgId);
88997
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
88998
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.b2bOrgId);
88999
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
89000
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.gingerOrgId);
89001
+ if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
89002
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.fileImportedTimestamp);
89003
+ if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
89004
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.lineNumber);
89005
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
89006
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.workEmail);
89007
+ if (message.workId != null && message.hasOwnProperty("workId"))
89008
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.workId);
89009
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
89010
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.keyType);
89011
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
89012
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.firstName);
89013
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
89014
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.lastName);
89015
+ if (message.country != null && message.hasOwnProperty("country"))
89016
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.country);
89017
+ if (message.zipCode != null && message.hasOwnProperty("zipCode"))
89018
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.zipCode);
89019
+ if (message.dob != null && message.hasOwnProperty("dob"))
89020
+ writer.uint32(/* id 13, wireType 2 =*/106).string(message.dob);
89021
+ if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
89022
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.streetAddress_1);
89023
+ if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
89024
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.streetAddress_2);
89025
+ if (message.division != null && message.hasOwnProperty("division"))
89026
+ writer.uint32(/* id 16, wireType 2 =*/130).string(message.division);
89027
+ if (message.language != null && message.hasOwnProperty("language"))
89028
+ writer.uint32(/* id 17, wireType 2 =*/138).string(message.language);
89029
+ if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
89030
+ writer.uint32(/* id 18, wireType 0 =*/144).bool(message.isDryRun);
89031
+ if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
89032
+ writer.uint32(/* id 19, wireType 0 =*/152).bool(message.gingerShouldProcess);
89033
+ if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
89034
+ writer.uint32(/* id 20, wireType 0 =*/160).bool(message.headspaceShouldProcess);
89035
+ return writer;
89036
+ };
89037
+
89038
+ /**
89039
+ * Encodes the specified ElfRecordPresent message, length delimited. Does not implicitly {@link ElfRecordPresent.verify|verify} messages.
89040
+ * @function encodeDelimited
89041
+ * @memberof ElfRecordPresent
89042
+ * @static
89043
+ * @param {IElfRecordPresent} message ElfRecordPresent message or plain object to encode
89044
+ * @param {$protobuf.Writer} [writer] Writer to encode to
89045
+ * @returns {$protobuf.Writer} Writer
89046
+ */
89047
+ ElfRecordPresent.encodeDelimited = function encodeDelimited(message, writer) {
89048
+ return this.encode(message, writer).ldelim();
89049
+ };
89050
+
89051
+ /**
89052
+ * Decodes an ElfRecordPresent message from the specified reader or buffer.
89053
+ * @function decode
89054
+ * @memberof ElfRecordPresent
89055
+ * @static
89056
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
89057
+ * @param {number} [length] Message length if known beforehand
89058
+ * @returns {ElfRecordPresent} ElfRecordPresent
89059
+ * @throws {Error} If the payload is not a reader or valid buffer
89060
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
89061
+ */
89062
+ ElfRecordPresent.decode = function decode(reader, length) {
89063
+ if (!(reader instanceof $Reader))
89064
+ reader = $Reader.create(reader);
89065
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ElfRecordPresent();
89066
+ while (reader.pos < end) {
89067
+ var tag = reader.uint32();
89068
+ switch (tag >>> 3) {
89069
+ case 1:
89070
+ message.headspaceHealthOrgId = reader.string();
89071
+ break;
89072
+ case 2:
89073
+ message.b2bOrgId = reader.string();
89074
+ break;
89075
+ case 3:
89076
+ message.gingerOrgId = reader.string();
89077
+ break;
89078
+ case 4:
89079
+ message.fileImportedTimestamp = reader.uint64();
89080
+ break;
89081
+ case 5:
89082
+ message.lineNumber = reader.int32();
89083
+ break;
89084
+ case 6:
89085
+ message.workEmail = reader.string();
89086
+ break;
89087
+ case 7:
89088
+ message.workId = reader.string();
89089
+ break;
89090
+ case 8:
89091
+ message.keyType = reader.int32();
89092
+ break;
89093
+ case 9:
89094
+ message.firstName = reader.string();
89095
+ break;
89096
+ case 10:
89097
+ message.lastName = reader.string();
89098
+ break;
89099
+ case 11:
89100
+ message.country = reader.string();
89101
+ break;
89102
+ case 12:
89103
+ message.zipCode = reader.string();
89104
+ break;
89105
+ case 13:
89106
+ message.dob = reader.string();
89107
+ break;
89108
+ case 14:
89109
+ message.streetAddress_1 = reader.string();
89110
+ break;
89111
+ case 15:
89112
+ message.streetAddress_2 = reader.string();
89113
+ break;
89114
+ case 16:
89115
+ message.division = reader.string();
89116
+ break;
89117
+ case 17:
89118
+ message.language = reader.string();
89119
+ break;
89120
+ case 18:
89121
+ message.isDryRun = reader.bool();
89122
+ break;
89123
+ case 19:
89124
+ message.gingerShouldProcess = reader.bool();
89125
+ break;
89126
+ case 20:
89127
+ message.headspaceShouldProcess = reader.bool();
89128
+ break;
89129
+ default:
89130
+ reader.skipType(tag & 7);
89131
+ break;
89132
+ }
89133
+ }
89134
+ return message;
89135
+ };
89136
+
89137
+ /**
89138
+ * Decodes an ElfRecordPresent message from the specified reader or buffer, length delimited.
89139
+ * @function decodeDelimited
89140
+ * @memberof ElfRecordPresent
89141
+ * @static
89142
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
89143
+ * @returns {ElfRecordPresent} ElfRecordPresent
89144
+ * @throws {Error} If the payload is not a reader or valid buffer
89145
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
89146
+ */
89147
+ ElfRecordPresent.decodeDelimited = function decodeDelimited(reader) {
89148
+ if (!(reader instanceof $Reader))
89149
+ reader = new $Reader(reader);
89150
+ return this.decode(reader, reader.uint32());
89151
+ };
89152
+
89153
+ /**
89154
+ * Verifies an ElfRecordPresent message.
89155
+ * @function verify
89156
+ * @memberof ElfRecordPresent
89157
+ * @static
89158
+ * @param {Object.<string,*>} message Plain object to verify
89159
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
89160
+ */
89161
+ ElfRecordPresent.verify = function verify(message) {
89162
+ if (typeof message !== "object" || message === null)
89163
+ return "object expected";
89164
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
89165
+ if (!$util.isString(message.headspaceHealthOrgId))
89166
+ return "headspaceHealthOrgId: string expected";
89167
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
89168
+ if (!$util.isString(message.b2bOrgId))
89169
+ return "b2bOrgId: string expected";
89170
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
89171
+ if (!$util.isString(message.gingerOrgId))
89172
+ return "gingerOrgId: string expected";
89173
+ if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
89174
+ if (!$util.isInteger(message.fileImportedTimestamp) && !(message.fileImportedTimestamp && $util.isInteger(message.fileImportedTimestamp.low) && $util.isInteger(message.fileImportedTimestamp.high)))
89175
+ return "fileImportedTimestamp: integer|Long expected";
89176
+ if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
89177
+ if (!$util.isInteger(message.lineNumber))
89178
+ return "lineNumber: integer expected";
89179
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
89180
+ if (!$util.isString(message.workEmail))
89181
+ return "workEmail: string expected";
89182
+ if (message.workId != null && message.hasOwnProperty("workId"))
89183
+ if (!$util.isString(message.workId))
89184
+ return "workId: string expected";
89185
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
89186
+ switch (message.keyType) {
89187
+ default:
89188
+ return "keyType: enum value expected";
89189
+ case 0:
89190
+ case 1:
89191
+ break;
89192
+ }
89193
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
89194
+ if (!$util.isString(message.firstName))
89195
+ return "firstName: string expected";
89196
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
89197
+ if (!$util.isString(message.lastName))
89198
+ return "lastName: string expected";
89199
+ if (message.country != null && message.hasOwnProperty("country"))
89200
+ if (!$util.isString(message.country))
89201
+ return "country: string expected";
89202
+ if (message.zipCode != null && message.hasOwnProperty("zipCode"))
89203
+ if (!$util.isString(message.zipCode))
89204
+ return "zipCode: string expected";
89205
+ if (message.dob != null && message.hasOwnProperty("dob"))
89206
+ if (!$util.isString(message.dob))
89207
+ return "dob: string expected";
89208
+ if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
89209
+ if (!$util.isString(message.streetAddress_1))
89210
+ return "streetAddress_1: string expected";
89211
+ if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
89212
+ if (!$util.isString(message.streetAddress_2))
89213
+ return "streetAddress_2: string expected";
89214
+ if (message.division != null && message.hasOwnProperty("division"))
89215
+ if (!$util.isString(message.division))
89216
+ return "division: string expected";
89217
+ if (message.language != null && message.hasOwnProperty("language"))
89218
+ if (!$util.isString(message.language))
89219
+ return "language: string expected";
89220
+ if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
89221
+ if (typeof message.isDryRun !== "boolean")
89222
+ return "isDryRun: boolean expected";
89223
+ if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
89224
+ if (typeof message.gingerShouldProcess !== "boolean")
89225
+ return "gingerShouldProcess: boolean expected";
89226
+ if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
89227
+ if (typeof message.headspaceShouldProcess !== "boolean")
89228
+ return "headspaceShouldProcess: boolean expected";
89229
+ return null;
89230
+ };
89231
+
89232
+ /**
89233
+ * Creates an ElfRecordPresent message from a plain object. Also converts values to their respective internal types.
89234
+ * @function fromObject
89235
+ * @memberof ElfRecordPresent
89236
+ * @static
89237
+ * @param {Object.<string,*>} object Plain object
89238
+ * @returns {ElfRecordPresent} ElfRecordPresent
89239
+ */
89240
+ ElfRecordPresent.fromObject = function fromObject(object) {
89241
+ if (object instanceof $root.ElfRecordPresent)
89242
+ return object;
89243
+ var message = new $root.ElfRecordPresent();
89244
+ if (object.headspaceHealthOrgId != null)
89245
+ message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
89246
+ if (object.b2bOrgId != null)
89247
+ message.b2bOrgId = String(object.b2bOrgId);
89248
+ if (object.gingerOrgId != null)
89249
+ message.gingerOrgId = String(object.gingerOrgId);
89250
+ if (object.fileImportedTimestamp != null)
89251
+ if ($util.Long)
89252
+ (message.fileImportedTimestamp = $util.Long.fromValue(object.fileImportedTimestamp)).unsigned = true;
89253
+ else if (typeof object.fileImportedTimestamp === "string")
89254
+ message.fileImportedTimestamp = parseInt(object.fileImportedTimestamp, 10);
89255
+ else if (typeof object.fileImportedTimestamp === "number")
89256
+ message.fileImportedTimestamp = object.fileImportedTimestamp;
89257
+ else if (typeof object.fileImportedTimestamp === "object")
89258
+ message.fileImportedTimestamp = new $util.LongBits(object.fileImportedTimestamp.low >>> 0, object.fileImportedTimestamp.high >>> 0).toNumber(true);
89259
+ if (object.lineNumber != null)
89260
+ message.lineNumber = object.lineNumber | 0;
89261
+ if (object.workEmail != null)
89262
+ message.workEmail = String(object.workEmail);
89263
+ if (object.workId != null)
89264
+ message.workId = String(object.workId);
89265
+ switch (object.keyType) {
89266
+ case "WORK_ID":
89267
+ case 0:
89268
+ message.keyType = 0;
89269
+ break;
89270
+ case "WORK_EMAIL":
89271
+ case 1:
89272
+ message.keyType = 1;
89273
+ break;
89274
+ }
89275
+ if (object.firstName != null)
89276
+ message.firstName = String(object.firstName);
89277
+ if (object.lastName != null)
89278
+ message.lastName = String(object.lastName);
89279
+ if (object.country != null)
89280
+ message.country = String(object.country);
89281
+ if (object.zipCode != null)
89282
+ message.zipCode = String(object.zipCode);
89283
+ if (object.dob != null)
89284
+ message.dob = String(object.dob);
89285
+ if (object.streetAddress_1 != null)
89286
+ message.streetAddress_1 = String(object.streetAddress_1);
89287
+ if (object.streetAddress_2 != null)
89288
+ message.streetAddress_2 = String(object.streetAddress_2);
89289
+ if (object.division != null)
89290
+ message.division = String(object.division);
89291
+ if (object.language != null)
89292
+ message.language = String(object.language);
89293
+ if (object.isDryRun != null)
89294
+ message.isDryRun = Boolean(object.isDryRun);
89295
+ if (object.gingerShouldProcess != null)
89296
+ message.gingerShouldProcess = Boolean(object.gingerShouldProcess);
89297
+ if (object.headspaceShouldProcess != null)
89298
+ message.headspaceShouldProcess = Boolean(object.headspaceShouldProcess);
89299
+ return message;
89300
+ };
89301
+
89302
+ /**
89303
+ * Creates a plain object from an ElfRecordPresent message. Also converts values to other types if specified.
89304
+ * @function toObject
89305
+ * @memberof ElfRecordPresent
89306
+ * @static
89307
+ * @param {ElfRecordPresent} message ElfRecordPresent
89308
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
89309
+ * @returns {Object.<string,*>} Plain object
89310
+ */
89311
+ ElfRecordPresent.toObject = function toObject(message, options) {
89312
+ if (!options)
89313
+ options = {};
89314
+ var object = {};
89315
+ if (options.defaults) {
89316
+ object.headspaceHealthOrgId = "";
89317
+ object.b2bOrgId = "";
89318
+ object.gingerOrgId = "";
89319
+ if ($util.Long) {
89320
+ var long = new $util.Long(0, 0, true);
89321
+ object.fileImportedTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
89322
+ } else
89323
+ object.fileImportedTimestamp = options.longs === String ? "0" : 0;
89324
+ object.lineNumber = 0;
89325
+ object.workEmail = "";
89326
+ object.workId = "";
89327
+ object.keyType = options.enums === String ? "WORK_ID" : 0;
89328
+ object.firstName = "";
89329
+ object.lastName = "";
89330
+ object.country = "";
89331
+ object.zipCode = "";
89332
+ object.dob = "";
89333
+ object.streetAddress_1 = "";
89334
+ object.streetAddress_2 = "";
89335
+ object.division = "";
89336
+ object.language = "";
89337
+ object.isDryRun = false;
89338
+ object.gingerShouldProcess = false;
89339
+ object.headspaceShouldProcess = false;
89340
+ }
89341
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
89342
+ object.headspaceHealthOrgId = message.headspaceHealthOrgId;
89343
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
89344
+ object.b2bOrgId = message.b2bOrgId;
89345
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
89346
+ object.gingerOrgId = message.gingerOrgId;
89347
+ if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
89348
+ if (typeof message.fileImportedTimestamp === "number")
89349
+ object.fileImportedTimestamp = options.longs === String ? String(message.fileImportedTimestamp) : message.fileImportedTimestamp;
89350
+ else
89351
+ object.fileImportedTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.fileImportedTimestamp) : options.longs === Number ? new $util.LongBits(message.fileImportedTimestamp.low >>> 0, message.fileImportedTimestamp.high >>> 0).toNumber(true) : message.fileImportedTimestamp;
89352
+ if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
89353
+ object.lineNumber = message.lineNumber;
89354
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
89355
+ object.workEmail = message.workEmail;
89356
+ if (message.workId != null && message.hasOwnProperty("workId"))
89357
+ object.workId = message.workId;
89358
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
89359
+ object.keyType = options.enums === String ? $root.KeyType[message.keyType] : message.keyType;
89360
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
89361
+ object.firstName = message.firstName;
89362
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
89363
+ object.lastName = message.lastName;
89364
+ if (message.country != null && message.hasOwnProperty("country"))
89365
+ object.country = message.country;
89366
+ if (message.zipCode != null && message.hasOwnProperty("zipCode"))
89367
+ object.zipCode = message.zipCode;
89368
+ if (message.dob != null && message.hasOwnProperty("dob"))
89369
+ object.dob = message.dob;
89370
+ if (message.streetAddress_1 != null && message.hasOwnProperty("streetAddress_1"))
89371
+ object.streetAddress_1 = message.streetAddress_1;
89372
+ if (message.streetAddress_2 != null && message.hasOwnProperty("streetAddress_2"))
89373
+ object.streetAddress_2 = message.streetAddress_2;
89374
+ if (message.division != null && message.hasOwnProperty("division"))
89375
+ object.division = message.division;
89376
+ if (message.language != null && message.hasOwnProperty("language"))
89377
+ object.language = message.language;
89378
+ if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
89379
+ object.isDryRun = message.isDryRun;
89380
+ if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
89381
+ object.gingerShouldProcess = message.gingerShouldProcess;
89382
+ if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
89383
+ object.headspaceShouldProcess = message.headspaceShouldProcess;
89384
+ return object;
89385
+ };
89386
+
89387
+ /**
89388
+ * Converts this ElfRecordPresent to JSON.
89389
+ * @function toJSON
89390
+ * @memberof ElfRecordPresent
89391
+ * @instance
89392
+ * @returns {Object.<string,*>} JSON object
89393
+ */
89394
+ ElfRecordPresent.prototype.toJSON = function toJSON() {
89395
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
89396
+ };
89397
+
89398
+ return ElfRecordPresent;
89399
+ })();
89400
+
89401
+ $root.ElfRecordAbsent = (function() {
89402
+
89403
+ /**
89404
+ * Properties of an ElfRecordAbsent.
89405
+ * @exports IElfRecordAbsent
89406
+ * @interface IElfRecordAbsent
89407
+ * @property {string|null} [headspaceHealthOrgId] ElfRecordAbsent headspaceHealthOrgId
89408
+ * @property {string|null} [b2bOrgId] ElfRecordAbsent b2bOrgId
89409
+ * @property {string|null} [gingerOrgId] ElfRecordAbsent gingerOrgId
89410
+ * @property {number|Long|null} [fileImportedTimestamp] ElfRecordAbsent fileImportedTimestamp
89411
+ * @property {string|null} [workEmail] ElfRecordAbsent workEmail
89412
+ * @property {string|null} [workId] ElfRecordAbsent workId
89413
+ * @property {KeyType|null} [keyType] ElfRecordAbsent keyType
89414
+ * @property {boolean|null} [isDryRun] ElfRecordAbsent isDryRun
89415
+ * @property {boolean|null} [gingerShouldProcess] ElfRecordAbsent gingerShouldProcess
89416
+ * @property {boolean|null} [headspaceShouldProcess] ElfRecordAbsent headspaceShouldProcess
89417
+ */
89418
+
89419
+ /**
89420
+ * Constructs a new ElfRecordAbsent.
89421
+ * @exports ElfRecordAbsent
89422
+ * @classdesc Represents an ElfRecordAbsent.
89423
+ * @implements IElfRecordAbsent
89424
+ * @constructor
89425
+ * @param {IElfRecordAbsent=} [properties] Properties to set
89426
+ */
89427
+ function ElfRecordAbsent(properties) {
89428
+ if (properties)
89429
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
89430
+ if (properties[keys[i]] != null)
89431
+ this[keys[i]] = properties[keys[i]];
89432
+ }
89433
+
89434
+ /**
89435
+ * ElfRecordAbsent headspaceHealthOrgId.
89436
+ * @member {string} headspaceHealthOrgId
89437
+ * @memberof ElfRecordAbsent
89438
+ * @instance
89439
+ */
89440
+ ElfRecordAbsent.prototype.headspaceHealthOrgId = "";
89441
+
89442
+ /**
89443
+ * ElfRecordAbsent b2bOrgId.
89444
+ * @member {string} b2bOrgId
89445
+ * @memberof ElfRecordAbsent
89446
+ * @instance
89447
+ */
89448
+ ElfRecordAbsent.prototype.b2bOrgId = "";
89449
+
89450
+ /**
89451
+ * ElfRecordAbsent gingerOrgId.
89452
+ * @member {string} gingerOrgId
89453
+ * @memberof ElfRecordAbsent
89454
+ * @instance
89455
+ */
89456
+ ElfRecordAbsent.prototype.gingerOrgId = "";
89457
+
89458
+ /**
89459
+ * ElfRecordAbsent fileImportedTimestamp.
89460
+ * @member {number|Long} fileImportedTimestamp
89461
+ * @memberof ElfRecordAbsent
89462
+ * @instance
89463
+ */
89464
+ ElfRecordAbsent.prototype.fileImportedTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
89465
+
89466
+ /**
89467
+ * ElfRecordAbsent workEmail.
89468
+ * @member {string} workEmail
89469
+ * @memberof ElfRecordAbsent
89470
+ * @instance
89471
+ */
89472
+ ElfRecordAbsent.prototype.workEmail = "";
89473
+
89474
+ /**
89475
+ * ElfRecordAbsent workId.
89476
+ * @member {string} workId
89477
+ * @memberof ElfRecordAbsent
89478
+ * @instance
89479
+ */
89480
+ ElfRecordAbsent.prototype.workId = "";
89481
+
89482
+ /**
89483
+ * ElfRecordAbsent keyType.
89484
+ * @member {KeyType} keyType
89485
+ * @memberof ElfRecordAbsent
89486
+ * @instance
89487
+ */
89488
+ ElfRecordAbsent.prototype.keyType = 0;
89489
+
89490
+ /**
89491
+ * ElfRecordAbsent isDryRun.
89492
+ * @member {boolean} isDryRun
89493
+ * @memberof ElfRecordAbsent
89494
+ * @instance
89495
+ */
89496
+ ElfRecordAbsent.prototype.isDryRun = false;
89497
+
89498
+ /**
89499
+ * ElfRecordAbsent gingerShouldProcess.
89500
+ * @member {boolean} gingerShouldProcess
89501
+ * @memberof ElfRecordAbsent
89502
+ * @instance
89503
+ */
89504
+ ElfRecordAbsent.prototype.gingerShouldProcess = false;
89505
+
89506
+ /**
89507
+ * ElfRecordAbsent headspaceShouldProcess.
89508
+ * @member {boolean} headspaceShouldProcess
89509
+ * @memberof ElfRecordAbsent
89510
+ * @instance
89511
+ */
89512
+ ElfRecordAbsent.prototype.headspaceShouldProcess = false;
89513
+
89514
+ /**
89515
+ * Creates a new ElfRecordAbsent instance using the specified properties.
89516
+ * @function create
89517
+ * @memberof ElfRecordAbsent
89518
+ * @static
89519
+ * @param {IElfRecordAbsent=} [properties] Properties to set
89520
+ * @returns {ElfRecordAbsent} ElfRecordAbsent instance
89521
+ */
89522
+ ElfRecordAbsent.create = function create(properties) {
89523
+ return new ElfRecordAbsent(properties);
89524
+ };
89525
+
89526
+ /**
89527
+ * Encodes the specified ElfRecordAbsent message. Does not implicitly {@link ElfRecordAbsent.verify|verify} messages.
89528
+ * @function encode
89529
+ * @memberof ElfRecordAbsent
89530
+ * @static
89531
+ * @param {IElfRecordAbsent} message ElfRecordAbsent message or plain object to encode
89532
+ * @param {$protobuf.Writer} [writer] Writer to encode to
89533
+ * @returns {$protobuf.Writer} Writer
89534
+ */
89535
+ ElfRecordAbsent.encode = function encode(message, writer) {
89536
+ if (!writer)
89537
+ writer = $Writer.create();
89538
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
89539
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.headspaceHealthOrgId);
89540
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
89541
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.b2bOrgId);
89542
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
89543
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.gingerOrgId);
89544
+ if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
89545
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.fileImportedTimestamp);
89546
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
89547
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.workEmail);
89548
+ if (message.workId != null && message.hasOwnProperty("workId"))
89549
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.workId);
89550
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
89551
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.keyType);
89552
+ if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
89553
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isDryRun);
89554
+ if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
89555
+ writer.uint32(/* id 9, wireType 0 =*/72).bool(message.gingerShouldProcess);
89556
+ if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
89557
+ writer.uint32(/* id 10, wireType 0 =*/80).bool(message.headspaceShouldProcess);
89558
+ return writer;
89559
+ };
89560
+
89561
+ /**
89562
+ * Encodes the specified ElfRecordAbsent message, length delimited. Does not implicitly {@link ElfRecordAbsent.verify|verify} messages.
89563
+ * @function encodeDelimited
89564
+ * @memberof ElfRecordAbsent
89565
+ * @static
89566
+ * @param {IElfRecordAbsent} message ElfRecordAbsent message or plain object to encode
89567
+ * @param {$protobuf.Writer} [writer] Writer to encode to
89568
+ * @returns {$protobuf.Writer} Writer
89569
+ */
89570
+ ElfRecordAbsent.encodeDelimited = function encodeDelimited(message, writer) {
89571
+ return this.encode(message, writer).ldelim();
89572
+ };
89573
+
89574
+ /**
89575
+ * Decodes an ElfRecordAbsent message from the specified reader or buffer.
89576
+ * @function decode
89577
+ * @memberof ElfRecordAbsent
89578
+ * @static
89579
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
89580
+ * @param {number} [length] Message length if known beforehand
89581
+ * @returns {ElfRecordAbsent} ElfRecordAbsent
89582
+ * @throws {Error} If the payload is not a reader or valid buffer
89583
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
89584
+ */
89585
+ ElfRecordAbsent.decode = function decode(reader, length) {
89586
+ if (!(reader instanceof $Reader))
89587
+ reader = $Reader.create(reader);
89588
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ElfRecordAbsent();
89589
+ while (reader.pos < end) {
89590
+ var tag = reader.uint32();
89591
+ switch (tag >>> 3) {
89592
+ case 1:
89593
+ message.headspaceHealthOrgId = reader.string();
89594
+ break;
89595
+ case 2:
89596
+ message.b2bOrgId = reader.string();
89597
+ break;
89598
+ case 3:
89599
+ message.gingerOrgId = reader.string();
89600
+ break;
89601
+ case 4:
89602
+ message.fileImportedTimestamp = reader.uint64();
89603
+ break;
89604
+ case 5:
89605
+ message.workEmail = reader.string();
89606
+ break;
89607
+ case 6:
89608
+ message.workId = reader.string();
89609
+ break;
89610
+ case 7:
89611
+ message.keyType = reader.int32();
89612
+ break;
89613
+ case 8:
89614
+ message.isDryRun = reader.bool();
89615
+ break;
89616
+ case 9:
89617
+ message.gingerShouldProcess = reader.bool();
89618
+ break;
89619
+ case 10:
89620
+ message.headspaceShouldProcess = reader.bool();
89621
+ break;
89622
+ default:
89623
+ reader.skipType(tag & 7);
89624
+ break;
89625
+ }
89626
+ }
89627
+ return message;
89628
+ };
89629
+
89630
+ /**
89631
+ * Decodes an ElfRecordAbsent message from the specified reader or buffer, length delimited.
89632
+ * @function decodeDelimited
89633
+ * @memberof ElfRecordAbsent
89634
+ * @static
89635
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
89636
+ * @returns {ElfRecordAbsent} ElfRecordAbsent
89637
+ * @throws {Error} If the payload is not a reader or valid buffer
89638
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
89639
+ */
89640
+ ElfRecordAbsent.decodeDelimited = function decodeDelimited(reader) {
89641
+ if (!(reader instanceof $Reader))
89642
+ reader = new $Reader(reader);
89643
+ return this.decode(reader, reader.uint32());
89644
+ };
89645
+
89646
+ /**
89647
+ * Verifies an ElfRecordAbsent message.
89648
+ * @function verify
89649
+ * @memberof ElfRecordAbsent
89650
+ * @static
89651
+ * @param {Object.<string,*>} message Plain object to verify
89652
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
89653
+ */
89654
+ ElfRecordAbsent.verify = function verify(message) {
89655
+ if (typeof message !== "object" || message === null)
89656
+ return "object expected";
89657
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
89658
+ if (!$util.isString(message.headspaceHealthOrgId))
89659
+ return "headspaceHealthOrgId: string expected";
89660
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
89661
+ if (!$util.isString(message.b2bOrgId))
89662
+ return "b2bOrgId: string expected";
89663
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
89664
+ if (!$util.isString(message.gingerOrgId))
89665
+ return "gingerOrgId: string expected";
89666
+ if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
89667
+ if (!$util.isInteger(message.fileImportedTimestamp) && !(message.fileImportedTimestamp && $util.isInteger(message.fileImportedTimestamp.low) && $util.isInteger(message.fileImportedTimestamp.high)))
89668
+ return "fileImportedTimestamp: integer|Long expected";
89669
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
89670
+ if (!$util.isString(message.workEmail))
89671
+ return "workEmail: string expected";
89672
+ if (message.workId != null && message.hasOwnProperty("workId"))
89673
+ if (!$util.isString(message.workId))
89674
+ return "workId: string expected";
89675
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
89676
+ switch (message.keyType) {
89677
+ default:
89678
+ return "keyType: enum value expected";
89679
+ case 0:
89680
+ case 1:
89681
+ break;
89682
+ }
89683
+ if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
89684
+ if (typeof message.isDryRun !== "boolean")
89685
+ return "isDryRun: boolean expected";
89686
+ if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
89687
+ if (typeof message.gingerShouldProcess !== "boolean")
89688
+ return "gingerShouldProcess: boolean expected";
89689
+ if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
89690
+ if (typeof message.headspaceShouldProcess !== "boolean")
89691
+ return "headspaceShouldProcess: boolean expected";
89692
+ return null;
89693
+ };
89694
+
89695
+ /**
89696
+ * Creates an ElfRecordAbsent message from a plain object. Also converts values to their respective internal types.
89697
+ * @function fromObject
89698
+ * @memberof ElfRecordAbsent
89699
+ * @static
89700
+ * @param {Object.<string,*>} object Plain object
89701
+ * @returns {ElfRecordAbsent} ElfRecordAbsent
89702
+ */
89703
+ ElfRecordAbsent.fromObject = function fromObject(object) {
89704
+ if (object instanceof $root.ElfRecordAbsent)
89705
+ return object;
89706
+ var message = new $root.ElfRecordAbsent();
89707
+ if (object.headspaceHealthOrgId != null)
89708
+ message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
89709
+ if (object.b2bOrgId != null)
89710
+ message.b2bOrgId = String(object.b2bOrgId);
89711
+ if (object.gingerOrgId != null)
89712
+ message.gingerOrgId = String(object.gingerOrgId);
89713
+ if (object.fileImportedTimestamp != null)
89714
+ if ($util.Long)
89715
+ (message.fileImportedTimestamp = $util.Long.fromValue(object.fileImportedTimestamp)).unsigned = true;
89716
+ else if (typeof object.fileImportedTimestamp === "string")
89717
+ message.fileImportedTimestamp = parseInt(object.fileImportedTimestamp, 10);
89718
+ else if (typeof object.fileImportedTimestamp === "number")
89719
+ message.fileImportedTimestamp = object.fileImportedTimestamp;
89720
+ else if (typeof object.fileImportedTimestamp === "object")
89721
+ message.fileImportedTimestamp = new $util.LongBits(object.fileImportedTimestamp.low >>> 0, object.fileImportedTimestamp.high >>> 0).toNumber(true);
89722
+ if (object.workEmail != null)
89723
+ message.workEmail = String(object.workEmail);
89724
+ if (object.workId != null)
89725
+ message.workId = String(object.workId);
89726
+ switch (object.keyType) {
89727
+ case "WORK_ID":
89728
+ case 0:
89729
+ message.keyType = 0;
89730
+ break;
89731
+ case "WORK_EMAIL":
89732
+ case 1:
89733
+ message.keyType = 1;
89734
+ break;
89735
+ }
89736
+ if (object.isDryRun != null)
89737
+ message.isDryRun = Boolean(object.isDryRun);
89738
+ if (object.gingerShouldProcess != null)
89739
+ message.gingerShouldProcess = Boolean(object.gingerShouldProcess);
89740
+ if (object.headspaceShouldProcess != null)
89741
+ message.headspaceShouldProcess = Boolean(object.headspaceShouldProcess);
89742
+ return message;
89743
+ };
89744
+
89745
+ /**
89746
+ * Creates a plain object from an ElfRecordAbsent message. Also converts values to other types if specified.
89747
+ * @function toObject
89748
+ * @memberof ElfRecordAbsent
89749
+ * @static
89750
+ * @param {ElfRecordAbsent} message ElfRecordAbsent
89751
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
89752
+ * @returns {Object.<string,*>} Plain object
89753
+ */
89754
+ ElfRecordAbsent.toObject = function toObject(message, options) {
89755
+ if (!options)
89756
+ options = {};
89757
+ var object = {};
89758
+ if (options.defaults) {
89759
+ object.headspaceHealthOrgId = "";
89760
+ object.b2bOrgId = "";
89761
+ object.gingerOrgId = "";
89762
+ if ($util.Long) {
89763
+ var long = new $util.Long(0, 0, true);
89764
+ object.fileImportedTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
89765
+ } else
89766
+ object.fileImportedTimestamp = options.longs === String ? "0" : 0;
89767
+ object.workEmail = "";
89768
+ object.workId = "";
89769
+ object.keyType = options.enums === String ? "WORK_ID" : 0;
89770
+ object.isDryRun = false;
89771
+ object.gingerShouldProcess = false;
89772
+ object.headspaceShouldProcess = false;
89773
+ }
89774
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
89775
+ object.headspaceHealthOrgId = message.headspaceHealthOrgId;
89776
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
89777
+ object.b2bOrgId = message.b2bOrgId;
89778
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
89779
+ object.gingerOrgId = message.gingerOrgId;
89780
+ if (message.fileImportedTimestamp != null && message.hasOwnProperty("fileImportedTimestamp"))
89781
+ if (typeof message.fileImportedTimestamp === "number")
89782
+ object.fileImportedTimestamp = options.longs === String ? String(message.fileImportedTimestamp) : message.fileImportedTimestamp;
89783
+ else
89784
+ object.fileImportedTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.fileImportedTimestamp) : options.longs === Number ? new $util.LongBits(message.fileImportedTimestamp.low >>> 0, message.fileImportedTimestamp.high >>> 0).toNumber(true) : message.fileImportedTimestamp;
89785
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
89786
+ object.workEmail = message.workEmail;
89787
+ if (message.workId != null && message.hasOwnProperty("workId"))
89788
+ object.workId = message.workId;
89789
+ if (message.keyType != null && message.hasOwnProperty("keyType"))
89790
+ object.keyType = options.enums === String ? $root.KeyType[message.keyType] : message.keyType;
89791
+ if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
89792
+ object.isDryRun = message.isDryRun;
89793
+ if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
89794
+ object.gingerShouldProcess = message.gingerShouldProcess;
89795
+ if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
89796
+ object.headspaceShouldProcess = message.headspaceShouldProcess;
89797
+ return object;
89798
+ };
89799
+
89800
+ /**
89801
+ * Converts this ElfRecordAbsent to JSON.
89802
+ * @function toJSON
89803
+ * @memberof ElfRecordAbsent
89804
+ * @instance
89805
+ * @returns {Object.<string,*>} JSON object
89806
+ */
89807
+ ElfRecordAbsent.prototype.toJSON = function toJSON() {
89808
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
89809
+ };
89810
+
89811
+ return ElfRecordAbsent;
89812
+ })();
89813
+
89814
+ $root.ElfProcessingStats = (function() {
89815
+
89816
+ /**
89817
+ * Properties of an ElfProcessingStats.
89818
+ * @exports IElfProcessingStats
89819
+ * @interface IElfProcessingStats
89820
+ * @property {string|null} [headspaceHealthOrgId] ElfProcessingStats headspaceHealthOrgId
89821
+ * @property {string|null} [b2bOrgId] ElfProcessingStats b2bOrgId
89822
+ * @property {string|null} [gingerOrgId] ElfProcessingStats gingerOrgId
89823
+ * @property {string|null} [s3Key] ElfProcessingStats s3Key
89824
+ * @property {boolean|null} [isDryRun] ElfProcessingStats isDryRun
89825
+ * @property {number|null} [total] ElfProcessingStats total
89826
+ * @property {number|null} [toBeRemoved] ElfProcessingStats toBeRemoved
89827
+ * @property {number|null} [skipped] ElfProcessingStats skipped
89828
+ * @property {Object.<string,string>|null} [errors] ElfProcessingStats errors
89829
+ * @property {Object.<string,number>|null} [totalByOffering] ElfProcessingStats totalByOffering
89830
+ * @property {Array.<string>|null} [customHeaders] ElfProcessingStats customHeaders
89831
+ * @property {boolean|null} [gingerShouldProcess] ElfProcessingStats gingerShouldProcess
89832
+ * @property {boolean|null} [headspaceShouldProcess] ElfProcessingStats headspaceShouldProcess
89833
+ */
89834
+
89835
+ /**
89836
+ * Constructs a new ElfProcessingStats.
89837
+ * @exports ElfProcessingStats
89838
+ * @classdesc Represents an ElfProcessingStats.
89839
+ * @implements IElfProcessingStats
89840
+ * @constructor
89841
+ * @param {IElfProcessingStats=} [properties] Properties to set
89842
+ */
89843
+ function ElfProcessingStats(properties) {
89844
+ this.errors = {};
89845
+ this.totalByOffering = {};
89846
+ this.customHeaders = [];
89847
+ if (properties)
89848
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
89849
+ if (properties[keys[i]] != null)
89850
+ this[keys[i]] = properties[keys[i]];
89851
+ }
89852
+
89853
+ /**
89854
+ * ElfProcessingStats headspaceHealthOrgId.
89855
+ * @member {string} headspaceHealthOrgId
89856
+ * @memberof ElfProcessingStats
89857
+ * @instance
89858
+ */
89859
+ ElfProcessingStats.prototype.headspaceHealthOrgId = "";
89860
+
89861
+ /**
89862
+ * ElfProcessingStats b2bOrgId.
89863
+ * @member {string} b2bOrgId
89864
+ * @memberof ElfProcessingStats
89865
+ * @instance
89866
+ */
89867
+ ElfProcessingStats.prototype.b2bOrgId = "";
89868
+
89869
+ /**
89870
+ * ElfProcessingStats gingerOrgId.
89871
+ * @member {string} gingerOrgId
89872
+ * @memberof ElfProcessingStats
89873
+ * @instance
89874
+ */
89875
+ ElfProcessingStats.prototype.gingerOrgId = "";
89876
+
89877
+ /**
89878
+ * ElfProcessingStats s3Key.
89879
+ * @member {string} s3Key
89880
+ * @memberof ElfProcessingStats
89881
+ * @instance
89882
+ */
89883
+ ElfProcessingStats.prototype.s3Key = "";
89884
+
89885
+ /**
89886
+ * ElfProcessingStats isDryRun.
89887
+ * @member {boolean} isDryRun
89888
+ * @memberof ElfProcessingStats
89889
+ * @instance
89890
+ */
89891
+ ElfProcessingStats.prototype.isDryRun = false;
89892
+
89893
+ /**
89894
+ * ElfProcessingStats total.
89895
+ * @member {number} total
89896
+ * @memberof ElfProcessingStats
89897
+ * @instance
89898
+ */
89899
+ ElfProcessingStats.prototype.total = 0;
89900
+
89901
+ /**
89902
+ * ElfProcessingStats toBeRemoved.
89903
+ * @member {number} toBeRemoved
89904
+ * @memberof ElfProcessingStats
89905
+ * @instance
89906
+ */
89907
+ ElfProcessingStats.prototype.toBeRemoved = 0;
89908
+
89909
+ /**
89910
+ * ElfProcessingStats skipped.
89911
+ * @member {number} skipped
89912
+ * @memberof ElfProcessingStats
89913
+ * @instance
89914
+ */
89915
+ ElfProcessingStats.prototype.skipped = 0;
89916
+
89917
+ /**
89918
+ * ElfProcessingStats errors.
89919
+ * @member {Object.<string,string>} errors
89920
+ * @memberof ElfProcessingStats
89921
+ * @instance
89922
+ */
89923
+ ElfProcessingStats.prototype.errors = $util.emptyObject;
89924
+
89925
+ /**
89926
+ * ElfProcessingStats totalByOffering.
89927
+ * @member {Object.<string,number>} totalByOffering
89928
+ * @memberof ElfProcessingStats
89929
+ * @instance
89930
+ */
89931
+ ElfProcessingStats.prototype.totalByOffering = $util.emptyObject;
89932
+
89933
+ /**
89934
+ * ElfProcessingStats customHeaders.
89935
+ * @member {Array.<string>} customHeaders
89936
+ * @memberof ElfProcessingStats
89937
+ * @instance
89938
+ */
89939
+ ElfProcessingStats.prototype.customHeaders = $util.emptyArray;
89940
+
89941
+ /**
89942
+ * ElfProcessingStats gingerShouldProcess.
89943
+ * @member {boolean} gingerShouldProcess
89944
+ * @memberof ElfProcessingStats
89945
+ * @instance
89946
+ */
89947
+ ElfProcessingStats.prototype.gingerShouldProcess = false;
89948
+
89949
+ /**
89950
+ * ElfProcessingStats headspaceShouldProcess.
89951
+ * @member {boolean} headspaceShouldProcess
89952
+ * @memberof ElfProcessingStats
89953
+ * @instance
89954
+ */
89955
+ ElfProcessingStats.prototype.headspaceShouldProcess = false;
89956
+
89957
+ /**
89958
+ * Creates a new ElfProcessingStats instance using the specified properties.
89959
+ * @function create
89960
+ * @memberof ElfProcessingStats
89961
+ * @static
89962
+ * @param {IElfProcessingStats=} [properties] Properties to set
89963
+ * @returns {ElfProcessingStats} ElfProcessingStats instance
89964
+ */
89965
+ ElfProcessingStats.create = function create(properties) {
89966
+ return new ElfProcessingStats(properties);
89967
+ };
89968
+
89969
+ /**
89970
+ * Encodes the specified ElfProcessingStats message. Does not implicitly {@link ElfProcessingStats.verify|verify} messages.
89971
+ * @function encode
89972
+ * @memberof ElfProcessingStats
89973
+ * @static
89974
+ * @param {IElfProcessingStats} message ElfProcessingStats message or plain object to encode
89975
+ * @param {$protobuf.Writer} [writer] Writer to encode to
89976
+ * @returns {$protobuf.Writer} Writer
89977
+ */
89978
+ ElfProcessingStats.encode = function encode(message, writer) {
89979
+ if (!writer)
89980
+ writer = $Writer.create();
89981
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
89982
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.headspaceHealthOrgId);
89983
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
89984
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.b2bOrgId);
89985
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
89986
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.gingerOrgId);
89987
+ if (message.s3Key != null && message.hasOwnProperty("s3Key"))
89988
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.s3Key);
89989
+ if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
89990
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isDryRun);
89991
+ if (message.total != null && message.hasOwnProperty("total"))
89992
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.total);
89993
+ if (message.toBeRemoved != null && message.hasOwnProperty("toBeRemoved"))
89994
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.toBeRemoved);
89995
+ if (message.skipped != null && message.hasOwnProperty("skipped"))
89996
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.skipped);
89997
+ if (message.errors != null && message.hasOwnProperty("errors"))
89998
+ for (var keys = Object.keys(message.errors), i = 0; i < keys.length; ++i)
89999
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 0 =*/8).int32(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.errors[keys[i]]).ldelim();
90000
+ if (message.totalByOffering != null && message.hasOwnProperty("totalByOffering"))
90001
+ for (var keys = Object.keys(message.totalByOffering), i = 0; i < keys.length; ++i)
90002
+ writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.totalByOffering[keys[i]]).ldelim();
90003
+ if (message.customHeaders != null && message.customHeaders.length)
90004
+ for (var i = 0; i < message.customHeaders.length; ++i)
90005
+ writer.uint32(/* id 11, wireType 2 =*/90).string(message.customHeaders[i]);
90006
+ if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
90007
+ writer.uint32(/* id 12, wireType 0 =*/96).bool(message.gingerShouldProcess);
90008
+ if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
90009
+ writer.uint32(/* id 13, wireType 0 =*/104).bool(message.headspaceShouldProcess);
90010
+ return writer;
90011
+ };
90012
+
90013
+ /**
90014
+ * Encodes the specified ElfProcessingStats message, length delimited. Does not implicitly {@link ElfProcessingStats.verify|verify} messages.
90015
+ * @function encodeDelimited
90016
+ * @memberof ElfProcessingStats
90017
+ * @static
90018
+ * @param {IElfProcessingStats} message ElfProcessingStats message or plain object to encode
90019
+ * @param {$protobuf.Writer} [writer] Writer to encode to
90020
+ * @returns {$protobuf.Writer} Writer
90021
+ */
90022
+ ElfProcessingStats.encodeDelimited = function encodeDelimited(message, writer) {
90023
+ return this.encode(message, writer).ldelim();
90024
+ };
90025
+
90026
+ /**
90027
+ * Decodes an ElfProcessingStats message from the specified reader or buffer.
90028
+ * @function decode
90029
+ * @memberof ElfProcessingStats
90030
+ * @static
90031
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
90032
+ * @param {number} [length] Message length if known beforehand
90033
+ * @returns {ElfProcessingStats} ElfProcessingStats
90034
+ * @throws {Error} If the payload is not a reader or valid buffer
90035
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
90036
+ */
90037
+ ElfProcessingStats.decode = function decode(reader, length) {
90038
+ if (!(reader instanceof $Reader))
90039
+ reader = $Reader.create(reader);
90040
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ElfProcessingStats(), key;
90041
+ while (reader.pos < end) {
90042
+ var tag = reader.uint32();
90043
+ switch (tag >>> 3) {
90044
+ case 1:
90045
+ message.headspaceHealthOrgId = reader.string();
90046
+ break;
90047
+ case 2:
90048
+ message.b2bOrgId = reader.string();
90049
+ break;
90050
+ case 3:
90051
+ message.gingerOrgId = reader.string();
90052
+ break;
90053
+ case 4:
90054
+ message.s3Key = reader.string();
90055
+ break;
90056
+ case 5:
90057
+ message.isDryRun = reader.bool();
90058
+ break;
90059
+ case 6:
90060
+ message.total = reader.int32();
90061
+ break;
90062
+ case 7:
90063
+ message.toBeRemoved = reader.int32();
90064
+ break;
90065
+ case 8:
90066
+ message.skipped = reader.int32();
90067
+ break;
90068
+ case 9:
90069
+ reader.skip().pos++;
90070
+ if (message.errors === $util.emptyObject)
90071
+ message.errors = {};
90072
+ key = reader.int32();
90073
+ reader.pos++;
90074
+ message.errors[key] = reader.string();
90075
+ break;
90076
+ case 10:
90077
+ reader.skip().pos++;
90078
+ if (message.totalByOffering === $util.emptyObject)
90079
+ message.totalByOffering = {};
90080
+ key = reader.string();
90081
+ reader.pos++;
90082
+ message.totalByOffering[key] = reader.int32();
90083
+ break;
90084
+ case 11:
90085
+ if (!(message.customHeaders && message.customHeaders.length))
90086
+ message.customHeaders = [];
90087
+ message.customHeaders.push(reader.string());
90088
+ break;
90089
+ case 12:
90090
+ message.gingerShouldProcess = reader.bool();
90091
+ break;
90092
+ case 13:
90093
+ message.headspaceShouldProcess = reader.bool();
90094
+ break;
90095
+ default:
90096
+ reader.skipType(tag & 7);
90097
+ break;
90098
+ }
90099
+ }
90100
+ return message;
90101
+ };
90102
+
90103
+ /**
90104
+ * Decodes an ElfProcessingStats message from the specified reader or buffer, length delimited.
90105
+ * @function decodeDelimited
90106
+ * @memberof ElfProcessingStats
90107
+ * @static
90108
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
90109
+ * @returns {ElfProcessingStats} ElfProcessingStats
90110
+ * @throws {Error} If the payload is not a reader or valid buffer
90111
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
90112
+ */
90113
+ ElfProcessingStats.decodeDelimited = function decodeDelimited(reader) {
90114
+ if (!(reader instanceof $Reader))
90115
+ reader = new $Reader(reader);
90116
+ return this.decode(reader, reader.uint32());
90117
+ };
90118
+
90119
+ /**
90120
+ * Verifies an ElfProcessingStats message.
90121
+ * @function verify
90122
+ * @memberof ElfProcessingStats
90123
+ * @static
90124
+ * @param {Object.<string,*>} message Plain object to verify
90125
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
90126
+ */
90127
+ ElfProcessingStats.verify = function verify(message) {
90128
+ if (typeof message !== "object" || message === null)
90129
+ return "object expected";
90130
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
90131
+ if (!$util.isString(message.headspaceHealthOrgId))
90132
+ return "headspaceHealthOrgId: string expected";
90133
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
90134
+ if (!$util.isString(message.b2bOrgId))
90135
+ return "b2bOrgId: string expected";
90136
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
90137
+ if (!$util.isString(message.gingerOrgId))
90138
+ return "gingerOrgId: string expected";
90139
+ if (message.s3Key != null && message.hasOwnProperty("s3Key"))
90140
+ if (!$util.isString(message.s3Key))
90141
+ return "s3Key: string expected";
90142
+ if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
90143
+ if (typeof message.isDryRun !== "boolean")
90144
+ return "isDryRun: boolean expected";
90145
+ if (message.total != null && message.hasOwnProperty("total"))
90146
+ if (!$util.isInteger(message.total))
90147
+ return "total: integer expected";
90148
+ if (message.toBeRemoved != null && message.hasOwnProperty("toBeRemoved"))
90149
+ if (!$util.isInteger(message.toBeRemoved))
90150
+ return "toBeRemoved: integer expected";
90151
+ if (message.skipped != null && message.hasOwnProperty("skipped"))
90152
+ if (!$util.isInteger(message.skipped))
90153
+ return "skipped: integer expected";
90154
+ if (message.errors != null && message.hasOwnProperty("errors")) {
90155
+ if (!$util.isObject(message.errors))
90156
+ return "errors: object expected";
90157
+ var key = Object.keys(message.errors);
90158
+ for (var i = 0; i < key.length; ++i) {
90159
+ if (!$util.key32Re.test(key[i]))
90160
+ return "errors: integer key{k:int32} expected";
90161
+ if (!$util.isString(message.errors[key[i]]))
90162
+ return "errors: string{k:int32} expected";
90163
+ }
90164
+ }
90165
+ if (message.totalByOffering != null && message.hasOwnProperty("totalByOffering")) {
90166
+ if (!$util.isObject(message.totalByOffering))
90167
+ return "totalByOffering: object expected";
90168
+ var key = Object.keys(message.totalByOffering);
90169
+ for (var i = 0; i < key.length; ++i)
90170
+ if (!$util.isInteger(message.totalByOffering[key[i]]))
90171
+ return "totalByOffering: integer{k:string} expected";
90172
+ }
90173
+ if (message.customHeaders != null && message.hasOwnProperty("customHeaders")) {
90174
+ if (!Array.isArray(message.customHeaders))
90175
+ return "customHeaders: array expected";
90176
+ for (var i = 0; i < message.customHeaders.length; ++i)
90177
+ if (!$util.isString(message.customHeaders[i]))
90178
+ return "customHeaders: string[] expected";
90179
+ }
90180
+ if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
90181
+ if (typeof message.gingerShouldProcess !== "boolean")
90182
+ return "gingerShouldProcess: boolean expected";
90183
+ if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
90184
+ if (typeof message.headspaceShouldProcess !== "boolean")
90185
+ return "headspaceShouldProcess: boolean expected";
90186
+ return null;
90187
+ };
90188
+
90189
+ /**
90190
+ * Creates an ElfProcessingStats message from a plain object. Also converts values to their respective internal types.
90191
+ * @function fromObject
90192
+ * @memberof ElfProcessingStats
90193
+ * @static
90194
+ * @param {Object.<string,*>} object Plain object
90195
+ * @returns {ElfProcessingStats} ElfProcessingStats
90196
+ */
90197
+ ElfProcessingStats.fromObject = function fromObject(object) {
90198
+ if (object instanceof $root.ElfProcessingStats)
90199
+ return object;
90200
+ var message = new $root.ElfProcessingStats();
90201
+ if (object.headspaceHealthOrgId != null)
90202
+ message.headspaceHealthOrgId = String(object.headspaceHealthOrgId);
90203
+ if (object.b2bOrgId != null)
90204
+ message.b2bOrgId = String(object.b2bOrgId);
90205
+ if (object.gingerOrgId != null)
90206
+ message.gingerOrgId = String(object.gingerOrgId);
90207
+ if (object.s3Key != null)
90208
+ message.s3Key = String(object.s3Key);
90209
+ if (object.isDryRun != null)
90210
+ message.isDryRun = Boolean(object.isDryRun);
90211
+ if (object.total != null)
90212
+ message.total = object.total | 0;
90213
+ if (object.toBeRemoved != null)
90214
+ message.toBeRemoved = object.toBeRemoved | 0;
90215
+ if (object.skipped != null)
90216
+ message.skipped = object.skipped | 0;
90217
+ if (object.errors) {
90218
+ if (typeof object.errors !== "object")
90219
+ throw TypeError(".ElfProcessingStats.errors: object expected");
90220
+ message.errors = {};
90221
+ for (var keys = Object.keys(object.errors), i = 0; i < keys.length; ++i)
90222
+ message.errors[keys[i]] = String(object.errors[keys[i]]);
90223
+ }
90224
+ if (object.totalByOffering) {
90225
+ if (typeof object.totalByOffering !== "object")
90226
+ throw TypeError(".ElfProcessingStats.totalByOffering: object expected");
90227
+ message.totalByOffering = {};
90228
+ for (var keys = Object.keys(object.totalByOffering), i = 0; i < keys.length; ++i)
90229
+ message.totalByOffering[keys[i]] = object.totalByOffering[keys[i]] | 0;
90230
+ }
90231
+ if (object.customHeaders) {
90232
+ if (!Array.isArray(object.customHeaders))
90233
+ throw TypeError(".ElfProcessingStats.customHeaders: array expected");
90234
+ message.customHeaders = [];
90235
+ for (var i = 0; i < object.customHeaders.length; ++i)
90236
+ message.customHeaders[i] = String(object.customHeaders[i]);
90237
+ }
90238
+ if (object.gingerShouldProcess != null)
90239
+ message.gingerShouldProcess = Boolean(object.gingerShouldProcess);
90240
+ if (object.headspaceShouldProcess != null)
90241
+ message.headspaceShouldProcess = Boolean(object.headspaceShouldProcess);
90242
+ return message;
90243
+ };
90244
+
90245
+ /**
90246
+ * Creates a plain object from an ElfProcessingStats message. Also converts values to other types if specified.
90247
+ * @function toObject
90248
+ * @memberof ElfProcessingStats
90249
+ * @static
90250
+ * @param {ElfProcessingStats} message ElfProcessingStats
90251
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
90252
+ * @returns {Object.<string,*>} Plain object
90253
+ */
90254
+ ElfProcessingStats.toObject = function toObject(message, options) {
90255
+ if (!options)
90256
+ options = {};
90257
+ var object = {};
90258
+ if (options.arrays || options.defaults)
90259
+ object.customHeaders = [];
90260
+ if (options.objects || options.defaults) {
90261
+ object.errors = {};
90262
+ object.totalByOffering = {};
90263
+ }
90264
+ if (options.defaults) {
90265
+ object.headspaceHealthOrgId = "";
90266
+ object.b2bOrgId = "";
90267
+ object.gingerOrgId = "";
90268
+ object.s3Key = "";
90269
+ object.isDryRun = false;
90270
+ object.total = 0;
90271
+ object.toBeRemoved = 0;
90272
+ object.skipped = 0;
90273
+ object.gingerShouldProcess = false;
90274
+ object.headspaceShouldProcess = false;
90275
+ }
90276
+ if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
90277
+ object.headspaceHealthOrgId = message.headspaceHealthOrgId;
90278
+ if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
90279
+ object.b2bOrgId = message.b2bOrgId;
90280
+ if (message.gingerOrgId != null && message.hasOwnProperty("gingerOrgId"))
90281
+ object.gingerOrgId = message.gingerOrgId;
90282
+ if (message.s3Key != null && message.hasOwnProperty("s3Key"))
90283
+ object.s3Key = message.s3Key;
90284
+ if (message.isDryRun != null && message.hasOwnProperty("isDryRun"))
90285
+ object.isDryRun = message.isDryRun;
90286
+ if (message.total != null && message.hasOwnProperty("total"))
90287
+ object.total = message.total;
90288
+ if (message.toBeRemoved != null && message.hasOwnProperty("toBeRemoved"))
90289
+ object.toBeRemoved = message.toBeRemoved;
90290
+ if (message.skipped != null && message.hasOwnProperty("skipped"))
90291
+ object.skipped = message.skipped;
90292
+ var keys2;
90293
+ if (message.errors && (keys2 = Object.keys(message.errors)).length) {
90294
+ object.errors = {};
90295
+ for (var j = 0; j < keys2.length; ++j)
90296
+ object.errors[keys2[j]] = message.errors[keys2[j]];
90297
+ }
90298
+ if (message.totalByOffering && (keys2 = Object.keys(message.totalByOffering)).length) {
90299
+ object.totalByOffering = {};
90300
+ for (var j = 0; j < keys2.length; ++j)
90301
+ object.totalByOffering[keys2[j]] = message.totalByOffering[keys2[j]];
90302
+ }
90303
+ if (message.customHeaders && message.customHeaders.length) {
90304
+ object.customHeaders = [];
90305
+ for (var j = 0; j < message.customHeaders.length; ++j)
90306
+ object.customHeaders[j] = message.customHeaders[j];
90307
+ }
90308
+ if (message.gingerShouldProcess != null && message.hasOwnProperty("gingerShouldProcess"))
90309
+ object.gingerShouldProcess = message.gingerShouldProcess;
90310
+ if (message.headspaceShouldProcess != null && message.hasOwnProperty("headspaceShouldProcess"))
90311
+ object.headspaceShouldProcess = message.headspaceShouldProcess;
90312
+ return object;
90313
+ };
90314
+
90315
+ /**
90316
+ * Converts this ElfProcessingStats to JSON.
90317
+ * @function toJSON
90318
+ * @memberof ElfProcessingStats
90319
+ * @instance
90320
+ * @returns {Object.<string,*>} JSON object
90321
+ */
90322
+ ElfProcessingStats.prototype.toJSON = function toJSON() {
90323
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
90324
+ };
90325
+
90326
+ return ElfProcessingStats;
90327
+ })();
90328
+
88693
90329
  $root.EnterpriseUserEnrollmentCreated = (function() {
88694
90330
 
88695
90331
  /**