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