@headspace/protos-events 1.692.0 → 1.693.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +233 -0
- package/lib/index.js +639 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -67518,6 +67518,239 @@ export class GingerProviderProfileUpdateRequest implements IGingerProviderProfil
|
|
|
67518
67518
|
public toJSON(): { [k: string]: any };
|
|
67519
67519
|
}
|
|
67520
67520
|
|
|
67521
|
+
/** GingerProviderAttributeCategory enum. */
|
|
67522
|
+
export enum GingerProviderAttributeCategory {
|
|
67523
|
+
GINGER_PROVIDER_ATTRIBUTE_CATEGORY_UNKNOWN = 0,
|
|
67524
|
+
GINGER_PROVIDER_ATTRIBUTE_CATEGORY_GENDER = 1,
|
|
67525
|
+
GINGER_PROVIDER_ATTRIBUTE_CATEGORY_RACE = 2,
|
|
67526
|
+
GINGER_PROVIDER_ATTRIBUTE_CATEGORY_CLINICAL_SPECIALITY = 3,
|
|
67527
|
+
GINGER_PROVIDER_ATTRIBUTE_CATEGORY_THERAPY_MODALITY = 4,
|
|
67528
|
+
GINGER_PROVIDER_ATTRIBUTE_CATEGORY_LANGUAGE = 5,
|
|
67529
|
+
GINGER_PROVIDER_ATTRIBUTE_CATEGORY_AGE_RANGE = 6
|
|
67530
|
+
}
|
|
67531
|
+
|
|
67532
|
+
/** Properties of a GingerProviderAttribute. */
|
|
67533
|
+
export interface IGingerProviderAttribute {
|
|
67534
|
+
|
|
67535
|
+
/** GingerProviderAttribute attributeId */
|
|
67536
|
+
attributeId?: (string|null);
|
|
67537
|
+
|
|
67538
|
+
/** GingerProviderAttribute hsClinicianId */
|
|
67539
|
+
hsClinicianId?: (string|null);
|
|
67540
|
+
|
|
67541
|
+
/** GingerProviderAttribute clinicianId */
|
|
67542
|
+
clinicianId?: (number|null);
|
|
67543
|
+
|
|
67544
|
+
/** GingerProviderAttribute attributeValue */
|
|
67545
|
+
attributeValue?: (string|null);
|
|
67546
|
+
|
|
67547
|
+
/** GingerProviderAttribute attributeCategory */
|
|
67548
|
+
attributeCategory?: (GingerProviderAttributeCategory|null);
|
|
67549
|
+
|
|
67550
|
+
/** GingerProviderAttribute createdAtTimestamp */
|
|
67551
|
+
createdAtTimestamp?: (number|Long|null);
|
|
67552
|
+
|
|
67553
|
+
/** GingerProviderAttribute updatedAtTimestamp */
|
|
67554
|
+
updatedAtTimestamp?: (number|Long|null);
|
|
67555
|
+
}
|
|
67556
|
+
|
|
67557
|
+
/** Represents a GingerProviderAttribute. */
|
|
67558
|
+
export class GingerProviderAttribute implements IGingerProviderAttribute {
|
|
67559
|
+
|
|
67560
|
+
/**
|
|
67561
|
+
* Constructs a new GingerProviderAttribute.
|
|
67562
|
+
* @param [properties] Properties to set
|
|
67563
|
+
*/
|
|
67564
|
+
constructor(properties?: IGingerProviderAttribute);
|
|
67565
|
+
|
|
67566
|
+
/** GingerProviderAttribute attributeId. */
|
|
67567
|
+
public attributeId: string;
|
|
67568
|
+
|
|
67569
|
+
/** GingerProviderAttribute hsClinicianId. */
|
|
67570
|
+
public hsClinicianId: string;
|
|
67571
|
+
|
|
67572
|
+
/** GingerProviderAttribute clinicianId. */
|
|
67573
|
+
public clinicianId: number;
|
|
67574
|
+
|
|
67575
|
+
/** GingerProviderAttribute attributeValue. */
|
|
67576
|
+
public attributeValue: string;
|
|
67577
|
+
|
|
67578
|
+
/** GingerProviderAttribute attributeCategory. */
|
|
67579
|
+
public attributeCategory: GingerProviderAttributeCategory;
|
|
67580
|
+
|
|
67581
|
+
/** GingerProviderAttribute createdAtTimestamp. */
|
|
67582
|
+
public createdAtTimestamp: (number|Long);
|
|
67583
|
+
|
|
67584
|
+
/** GingerProviderAttribute updatedAtTimestamp. */
|
|
67585
|
+
public updatedAtTimestamp: (number|Long);
|
|
67586
|
+
|
|
67587
|
+
/**
|
|
67588
|
+
* Creates a new GingerProviderAttribute instance using the specified properties.
|
|
67589
|
+
* @param [properties] Properties to set
|
|
67590
|
+
* @returns GingerProviderAttribute instance
|
|
67591
|
+
*/
|
|
67592
|
+
public static create(properties?: IGingerProviderAttribute): GingerProviderAttribute;
|
|
67593
|
+
|
|
67594
|
+
/**
|
|
67595
|
+
* Encodes the specified GingerProviderAttribute message. Does not implicitly {@link GingerProviderAttribute.verify|verify} messages.
|
|
67596
|
+
* @param message GingerProviderAttribute message or plain object to encode
|
|
67597
|
+
* @param [writer] Writer to encode to
|
|
67598
|
+
* @returns Writer
|
|
67599
|
+
*/
|
|
67600
|
+
public static encode(message: IGingerProviderAttribute, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
67601
|
+
|
|
67602
|
+
/**
|
|
67603
|
+
* Encodes the specified GingerProviderAttribute message, length delimited. Does not implicitly {@link GingerProviderAttribute.verify|verify} messages.
|
|
67604
|
+
* @param message GingerProviderAttribute message or plain object to encode
|
|
67605
|
+
* @param [writer] Writer to encode to
|
|
67606
|
+
* @returns Writer
|
|
67607
|
+
*/
|
|
67608
|
+
public static encodeDelimited(message: IGingerProviderAttribute, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
67609
|
+
|
|
67610
|
+
/**
|
|
67611
|
+
* Decodes a GingerProviderAttribute message from the specified reader or buffer.
|
|
67612
|
+
* @param reader Reader or buffer to decode from
|
|
67613
|
+
* @param [length] Message length if known beforehand
|
|
67614
|
+
* @returns GingerProviderAttribute
|
|
67615
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67616
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67617
|
+
*/
|
|
67618
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GingerProviderAttribute;
|
|
67619
|
+
|
|
67620
|
+
/**
|
|
67621
|
+
* Decodes a GingerProviderAttribute message from the specified reader or buffer, length delimited.
|
|
67622
|
+
* @param reader Reader or buffer to decode from
|
|
67623
|
+
* @returns GingerProviderAttribute
|
|
67624
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67625
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67626
|
+
*/
|
|
67627
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GingerProviderAttribute;
|
|
67628
|
+
|
|
67629
|
+
/**
|
|
67630
|
+
* Verifies a GingerProviderAttribute message.
|
|
67631
|
+
* @param message Plain object to verify
|
|
67632
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
67633
|
+
*/
|
|
67634
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
67635
|
+
|
|
67636
|
+
/**
|
|
67637
|
+
* Creates a GingerProviderAttribute message from a plain object. Also converts values to their respective internal types.
|
|
67638
|
+
* @param object Plain object
|
|
67639
|
+
* @returns GingerProviderAttribute
|
|
67640
|
+
*/
|
|
67641
|
+
public static fromObject(object: { [k: string]: any }): GingerProviderAttribute;
|
|
67642
|
+
|
|
67643
|
+
/**
|
|
67644
|
+
* Creates a plain object from a GingerProviderAttribute message. Also converts values to other types if specified.
|
|
67645
|
+
* @param message GingerProviderAttribute
|
|
67646
|
+
* @param [options] Conversion options
|
|
67647
|
+
* @returns Plain object
|
|
67648
|
+
*/
|
|
67649
|
+
public static toObject(message: GingerProviderAttribute, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
67650
|
+
|
|
67651
|
+
/**
|
|
67652
|
+
* Converts this GingerProviderAttribute to JSON.
|
|
67653
|
+
* @returns JSON object
|
|
67654
|
+
*/
|
|
67655
|
+
public toJSON(): { [k: string]: any };
|
|
67656
|
+
}
|
|
67657
|
+
|
|
67658
|
+
/** Properties of a GingerProviderAttributeExported. */
|
|
67659
|
+
export interface IGingerProviderAttributeExported {
|
|
67660
|
+
|
|
67661
|
+
/** GingerProviderAttributeExported attribute */
|
|
67662
|
+
attribute?: (IGingerProviderAttribute|null);
|
|
67663
|
+
|
|
67664
|
+
/** GingerProviderAttributeExported timestamp */
|
|
67665
|
+
timestamp?: (number|Long|null);
|
|
67666
|
+
}
|
|
67667
|
+
|
|
67668
|
+
/** Represents a GingerProviderAttributeExported. */
|
|
67669
|
+
export class GingerProviderAttributeExported implements IGingerProviderAttributeExported {
|
|
67670
|
+
|
|
67671
|
+
/**
|
|
67672
|
+
* Constructs a new GingerProviderAttributeExported.
|
|
67673
|
+
* @param [properties] Properties to set
|
|
67674
|
+
*/
|
|
67675
|
+
constructor(properties?: IGingerProviderAttributeExported);
|
|
67676
|
+
|
|
67677
|
+
/** GingerProviderAttributeExported attribute. */
|
|
67678
|
+
public attribute?: (IGingerProviderAttribute|null);
|
|
67679
|
+
|
|
67680
|
+
/** GingerProviderAttributeExported timestamp. */
|
|
67681
|
+
public timestamp: (number|Long);
|
|
67682
|
+
|
|
67683
|
+
/**
|
|
67684
|
+
* Creates a new GingerProviderAttributeExported instance using the specified properties.
|
|
67685
|
+
* @param [properties] Properties to set
|
|
67686
|
+
* @returns GingerProviderAttributeExported instance
|
|
67687
|
+
*/
|
|
67688
|
+
public static create(properties?: IGingerProviderAttributeExported): GingerProviderAttributeExported;
|
|
67689
|
+
|
|
67690
|
+
/**
|
|
67691
|
+
* Encodes the specified GingerProviderAttributeExported message. Does not implicitly {@link GingerProviderAttributeExported.verify|verify} messages.
|
|
67692
|
+
* @param message GingerProviderAttributeExported message or plain object to encode
|
|
67693
|
+
* @param [writer] Writer to encode to
|
|
67694
|
+
* @returns Writer
|
|
67695
|
+
*/
|
|
67696
|
+
public static encode(message: IGingerProviderAttributeExported, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
67697
|
+
|
|
67698
|
+
/**
|
|
67699
|
+
* Encodes the specified GingerProviderAttributeExported message, length delimited. Does not implicitly {@link GingerProviderAttributeExported.verify|verify} messages.
|
|
67700
|
+
* @param message GingerProviderAttributeExported message or plain object to encode
|
|
67701
|
+
* @param [writer] Writer to encode to
|
|
67702
|
+
* @returns Writer
|
|
67703
|
+
*/
|
|
67704
|
+
public static encodeDelimited(message: IGingerProviderAttributeExported, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
67705
|
+
|
|
67706
|
+
/**
|
|
67707
|
+
* Decodes a GingerProviderAttributeExported message from the specified reader or buffer.
|
|
67708
|
+
* @param reader Reader or buffer to decode from
|
|
67709
|
+
* @param [length] Message length if known beforehand
|
|
67710
|
+
* @returns GingerProviderAttributeExported
|
|
67711
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67712
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67713
|
+
*/
|
|
67714
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GingerProviderAttributeExported;
|
|
67715
|
+
|
|
67716
|
+
/**
|
|
67717
|
+
* Decodes a GingerProviderAttributeExported message from the specified reader or buffer, length delimited.
|
|
67718
|
+
* @param reader Reader or buffer to decode from
|
|
67719
|
+
* @returns GingerProviderAttributeExported
|
|
67720
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67721
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67722
|
+
*/
|
|
67723
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GingerProviderAttributeExported;
|
|
67724
|
+
|
|
67725
|
+
/**
|
|
67726
|
+
* Verifies a GingerProviderAttributeExported message.
|
|
67727
|
+
* @param message Plain object to verify
|
|
67728
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
67729
|
+
*/
|
|
67730
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
67731
|
+
|
|
67732
|
+
/**
|
|
67733
|
+
* Creates a GingerProviderAttributeExported message from a plain object. Also converts values to their respective internal types.
|
|
67734
|
+
* @param object Plain object
|
|
67735
|
+
* @returns GingerProviderAttributeExported
|
|
67736
|
+
*/
|
|
67737
|
+
public static fromObject(object: { [k: string]: any }): GingerProviderAttributeExported;
|
|
67738
|
+
|
|
67739
|
+
/**
|
|
67740
|
+
* Creates a plain object from a GingerProviderAttributeExported message. Also converts values to other types if specified.
|
|
67741
|
+
* @param message GingerProviderAttributeExported
|
|
67742
|
+
* @param [options] Conversion options
|
|
67743
|
+
* @returns Plain object
|
|
67744
|
+
*/
|
|
67745
|
+
public static toObject(message: GingerProviderAttributeExported, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
67746
|
+
|
|
67747
|
+
/**
|
|
67748
|
+
* Converts this GingerProviderAttributeExported to JSON.
|
|
67749
|
+
* @returns JSON object
|
|
67750
|
+
*/
|
|
67751
|
+
public toJSON(): { [k: string]: any };
|
|
67752
|
+
}
|
|
67753
|
+
|
|
67521
67754
|
/** Namespace googlereceipt. */
|
|
67522
67755
|
export namespace googlereceipt {
|
|
67523
67756
|
|
package/lib/index.js
CHANGED
|
@@ -190610,6 +190610,645 @@ $root.GingerProviderProfileUpdateRequest = (function() {
|
|
|
190610
190610
|
return GingerProviderProfileUpdateRequest;
|
|
190611
190611
|
})();
|
|
190612
190612
|
|
|
190613
|
+
/**
|
|
190614
|
+
* GingerProviderAttributeCategory enum.
|
|
190615
|
+
* @name GingerProviderAttributeCategory
|
|
190616
|
+
* @enum {string}
|
|
190617
|
+
* @property {number} GINGER_PROVIDER_ATTRIBUTE_CATEGORY_UNKNOWN=0 GINGER_PROVIDER_ATTRIBUTE_CATEGORY_UNKNOWN value
|
|
190618
|
+
* @property {number} GINGER_PROVIDER_ATTRIBUTE_CATEGORY_GENDER=1 GINGER_PROVIDER_ATTRIBUTE_CATEGORY_GENDER value
|
|
190619
|
+
* @property {number} GINGER_PROVIDER_ATTRIBUTE_CATEGORY_RACE=2 GINGER_PROVIDER_ATTRIBUTE_CATEGORY_RACE value
|
|
190620
|
+
* @property {number} GINGER_PROVIDER_ATTRIBUTE_CATEGORY_CLINICAL_SPECIALITY=3 GINGER_PROVIDER_ATTRIBUTE_CATEGORY_CLINICAL_SPECIALITY value
|
|
190621
|
+
* @property {number} GINGER_PROVIDER_ATTRIBUTE_CATEGORY_THERAPY_MODALITY=4 GINGER_PROVIDER_ATTRIBUTE_CATEGORY_THERAPY_MODALITY value
|
|
190622
|
+
* @property {number} GINGER_PROVIDER_ATTRIBUTE_CATEGORY_LANGUAGE=5 GINGER_PROVIDER_ATTRIBUTE_CATEGORY_LANGUAGE value
|
|
190623
|
+
* @property {number} GINGER_PROVIDER_ATTRIBUTE_CATEGORY_AGE_RANGE=6 GINGER_PROVIDER_ATTRIBUTE_CATEGORY_AGE_RANGE value
|
|
190624
|
+
*/
|
|
190625
|
+
$root.GingerProviderAttributeCategory = (function() {
|
|
190626
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
190627
|
+
values[valuesById[0] = "GINGER_PROVIDER_ATTRIBUTE_CATEGORY_UNKNOWN"] = 0;
|
|
190628
|
+
values[valuesById[1] = "GINGER_PROVIDER_ATTRIBUTE_CATEGORY_GENDER"] = 1;
|
|
190629
|
+
values[valuesById[2] = "GINGER_PROVIDER_ATTRIBUTE_CATEGORY_RACE"] = 2;
|
|
190630
|
+
values[valuesById[3] = "GINGER_PROVIDER_ATTRIBUTE_CATEGORY_CLINICAL_SPECIALITY"] = 3;
|
|
190631
|
+
values[valuesById[4] = "GINGER_PROVIDER_ATTRIBUTE_CATEGORY_THERAPY_MODALITY"] = 4;
|
|
190632
|
+
values[valuesById[5] = "GINGER_PROVIDER_ATTRIBUTE_CATEGORY_LANGUAGE"] = 5;
|
|
190633
|
+
values[valuesById[6] = "GINGER_PROVIDER_ATTRIBUTE_CATEGORY_AGE_RANGE"] = 6;
|
|
190634
|
+
return values;
|
|
190635
|
+
})();
|
|
190636
|
+
|
|
190637
|
+
$root.GingerProviderAttribute = (function() {
|
|
190638
|
+
|
|
190639
|
+
/**
|
|
190640
|
+
* Properties of a GingerProviderAttribute.
|
|
190641
|
+
* @name IGingerProviderAttribute
|
|
190642
|
+
* @interface IGingerProviderAttribute
|
|
190643
|
+
* @property {string|null} [attributeId] GingerProviderAttribute attributeId
|
|
190644
|
+
* @property {string|null} [hsClinicianId] GingerProviderAttribute hsClinicianId
|
|
190645
|
+
* @property {number|null} [clinicianId] GingerProviderAttribute clinicianId
|
|
190646
|
+
* @property {string|null} [attributeValue] GingerProviderAttribute attributeValue
|
|
190647
|
+
* @property {GingerProviderAttributeCategory|null} [attributeCategory] GingerProviderAttribute attributeCategory
|
|
190648
|
+
* @property {number|Long|null} [createdAtTimestamp] GingerProviderAttribute createdAtTimestamp
|
|
190649
|
+
* @property {number|Long|null} [updatedAtTimestamp] GingerProviderAttribute updatedAtTimestamp
|
|
190650
|
+
*/
|
|
190651
|
+
|
|
190652
|
+
/**
|
|
190653
|
+
* Constructs a new GingerProviderAttribute.
|
|
190654
|
+
* @name GingerProviderAttribute
|
|
190655
|
+
* @classdesc Represents a GingerProviderAttribute.
|
|
190656
|
+
* @implements IGingerProviderAttribute
|
|
190657
|
+
* @constructor
|
|
190658
|
+
* @param {IGingerProviderAttribute=} [properties] Properties to set
|
|
190659
|
+
*/
|
|
190660
|
+
function GingerProviderAttribute(properties) {
|
|
190661
|
+
if (properties)
|
|
190662
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
190663
|
+
if (properties[keys[i]] != null)
|
|
190664
|
+
this[keys[i]] = properties[keys[i]];
|
|
190665
|
+
}
|
|
190666
|
+
|
|
190667
|
+
/**
|
|
190668
|
+
* GingerProviderAttribute attributeId.
|
|
190669
|
+
* @member {string} attributeId
|
|
190670
|
+
* @memberof GingerProviderAttribute
|
|
190671
|
+
* @instance
|
|
190672
|
+
*/
|
|
190673
|
+
GingerProviderAttribute.prototype.attributeId = "";
|
|
190674
|
+
|
|
190675
|
+
/**
|
|
190676
|
+
* GingerProviderAttribute hsClinicianId.
|
|
190677
|
+
* @member {string} hsClinicianId
|
|
190678
|
+
* @memberof GingerProviderAttribute
|
|
190679
|
+
* @instance
|
|
190680
|
+
*/
|
|
190681
|
+
GingerProviderAttribute.prototype.hsClinicianId = "";
|
|
190682
|
+
|
|
190683
|
+
/**
|
|
190684
|
+
* GingerProviderAttribute clinicianId.
|
|
190685
|
+
* @member {number} clinicianId
|
|
190686
|
+
* @memberof GingerProviderAttribute
|
|
190687
|
+
* @instance
|
|
190688
|
+
*/
|
|
190689
|
+
GingerProviderAttribute.prototype.clinicianId = 0;
|
|
190690
|
+
|
|
190691
|
+
/**
|
|
190692
|
+
* GingerProviderAttribute attributeValue.
|
|
190693
|
+
* @member {string} attributeValue
|
|
190694
|
+
* @memberof GingerProviderAttribute
|
|
190695
|
+
* @instance
|
|
190696
|
+
*/
|
|
190697
|
+
GingerProviderAttribute.prototype.attributeValue = "";
|
|
190698
|
+
|
|
190699
|
+
/**
|
|
190700
|
+
* GingerProviderAttribute attributeCategory.
|
|
190701
|
+
* @member {GingerProviderAttributeCategory} attributeCategory
|
|
190702
|
+
* @memberof GingerProviderAttribute
|
|
190703
|
+
* @instance
|
|
190704
|
+
*/
|
|
190705
|
+
GingerProviderAttribute.prototype.attributeCategory = 0;
|
|
190706
|
+
|
|
190707
|
+
/**
|
|
190708
|
+
* GingerProviderAttribute createdAtTimestamp.
|
|
190709
|
+
* @member {number|Long} createdAtTimestamp
|
|
190710
|
+
* @memberof GingerProviderAttribute
|
|
190711
|
+
* @instance
|
|
190712
|
+
*/
|
|
190713
|
+
GingerProviderAttribute.prototype.createdAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
190714
|
+
|
|
190715
|
+
/**
|
|
190716
|
+
* GingerProviderAttribute updatedAtTimestamp.
|
|
190717
|
+
* @member {number|Long} updatedAtTimestamp
|
|
190718
|
+
* @memberof GingerProviderAttribute
|
|
190719
|
+
* @instance
|
|
190720
|
+
*/
|
|
190721
|
+
GingerProviderAttribute.prototype.updatedAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
190722
|
+
|
|
190723
|
+
/**
|
|
190724
|
+
* Creates a new GingerProviderAttribute instance using the specified properties.
|
|
190725
|
+
* @function create
|
|
190726
|
+
* @memberof GingerProviderAttribute
|
|
190727
|
+
* @static
|
|
190728
|
+
* @param {IGingerProviderAttribute=} [properties] Properties to set
|
|
190729
|
+
* @returns {GingerProviderAttribute} GingerProviderAttribute instance
|
|
190730
|
+
*/
|
|
190731
|
+
GingerProviderAttribute.create = function create(properties) {
|
|
190732
|
+
return new GingerProviderAttribute(properties);
|
|
190733
|
+
};
|
|
190734
|
+
|
|
190735
|
+
/**
|
|
190736
|
+
* Encodes the specified GingerProviderAttribute message. Does not implicitly {@link GingerProviderAttribute.verify|verify} messages.
|
|
190737
|
+
* @function encode
|
|
190738
|
+
* @memberof GingerProviderAttribute
|
|
190739
|
+
* @static
|
|
190740
|
+
* @param {IGingerProviderAttribute} message GingerProviderAttribute message or plain object to encode
|
|
190741
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
190742
|
+
* @returns {$protobuf.Writer} Writer
|
|
190743
|
+
*/
|
|
190744
|
+
GingerProviderAttribute.encode = function encode(message, writer) {
|
|
190745
|
+
if (!writer)
|
|
190746
|
+
writer = $Writer.create();
|
|
190747
|
+
if (message.attributeId != null && message.hasOwnProperty("attributeId"))
|
|
190748
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.attributeId);
|
|
190749
|
+
if (message.hsClinicianId != null && message.hasOwnProperty("hsClinicianId"))
|
|
190750
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsClinicianId);
|
|
190751
|
+
if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
|
|
190752
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.clinicianId);
|
|
190753
|
+
if (message.attributeValue != null && message.hasOwnProperty("attributeValue"))
|
|
190754
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.attributeValue);
|
|
190755
|
+
if (message.attributeCategory != null && message.hasOwnProperty("attributeCategory"))
|
|
190756
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.attributeCategory);
|
|
190757
|
+
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
190758
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAtTimestamp);
|
|
190759
|
+
if (message.updatedAtTimestamp != null && message.hasOwnProperty("updatedAtTimestamp"))
|
|
190760
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.updatedAtTimestamp);
|
|
190761
|
+
return writer;
|
|
190762
|
+
};
|
|
190763
|
+
|
|
190764
|
+
/**
|
|
190765
|
+
* Encodes the specified GingerProviderAttribute message, length delimited. Does not implicitly {@link GingerProviderAttribute.verify|verify} messages.
|
|
190766
|
+
* @function encodeDelimited
|
|
190767
|
+
* @memberof GingerProviderAttribute
|
|
190768
|
+
* @static
|
|
190769
|
+
* @param {IGingerProviderAttribute} message GingerProviderAttribute message or plain object to encode
|
|
190770
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
190771
|
+
* @returns {$protobuf.Writer} Writer
|
|
190772
|
+
*/
|
|
190773
|
+
GingerProviderAttribute.encodeDelimited = function encodeDelimited(message, writer) {
|
|
190774
|
+
return this.encode(message, writer).ldelim();
|
|
190775
|
+
};
|
|
190776
|
+
|
|
190777
|
+
/**
|
|
190778
|
+
* Decodes a GingerProviderAttribute message from the specified reader or buffer.
|
|
190779
|
+
* @function decode
|
|
190780
|
+
* @memberof GingerProviderAttribute
|
|
190781
|
+
* @static
|
|
190782
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
190783
|
+
* @param {number} [length] Message length if known beforehand
|
|
190784
|
+
* @returns {GingerProviderAttribute} GingerProviderAttribute
|
|
190785
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
190786
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
190787
|
+
*/
|
|
190788
|
+
GingerProviderAttribute.decode = function decode(reader, length) {
|
|
190789
|
+
if (!(reader instanceof $Reader))
|
|
190790
|
+
reader = $Reader.create(reader);
|
|
190791
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerProviderAttribute();
|
|
190792
|
+
while (reader.pos < end) {
|
|
190793
|
+
var tag = reader.uint32();
|
|
190794
|
+
switch (tag >>> 3) {
|
|
190795
|
+
case 1:
|
|
190796
|
+
message.attributeId = reader.string();
|
|
190797
|
+
break;
|
|
190798
|
+
case 2:
|
|
190799
|
+
message.hsClinicianId = reader.string();
|
|
190800
|
+
break;
|
|
190801
|
+
case 3:
|
|
190802
|
+
message.clinicianId = reader.uint32();
|
|
190803
|
+
break;
|
|
190804
|
+
case 4:
|
|
190805
|
+
message.attributeValue = reader.string();
|
|
190806
|
+
break;
|
|
190807
|
+
case 5:
|
|
190808
|
+
message.attributeCategory = reader.int32();
|
|
190809
|
+
break;
|
|
190810
|
+
case 6:
|
|
190811
|
+
message.createdAtTimestamp = reader.uint64();
|
|
190812
|
+
break;
|
|
190813
|
+
case 7:
|
|
190814
|
+
message.updatedAtTimestamp = reader.uint64();
|
|
190815
|
+
break;
|
|
190816
|
+
default:
|
|
190817
|
+
reader.skipType(tag & 7);
|
|
190818
|
+
break;
|
|
190819
|
+
}
|
|
190820
|
+
}
|
|
190821
|
+
return message;
|
|
190822
|
+
};
|
|
190823
|
+
|
|
190824
|
+
/**
|
|
190825
|
+
* Decodes a GingerProviderAttribute message from the specified reader or buffer, length delimited.
|
|
190826
|
+
* @function decodeDelimited
|
|
190827
|
+
* @memberof GingerProviderAttribute
|
|
190828
|
+
* @static
|
|
190829
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
190830
|
+
* @returns {GingerProviderAttribute} GingerProviderAttribute
|
|
190831
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
190832
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
190833
|
+
*/
|
|
190834
|
+
GingerProviderAttribute.decodeDelimited = function decodeDelimited(reader) {
|
|
190835
|
+
if (!(reader instanceof $Reader))
|
|
190836
|
+
reader = new $Reader(reader);
|
|
190837
|
+
return this.decode(reader, reader.uint32());
|
|
190838
|
+
};
|
|
190839
|
+
|
|
190840
|
+
/**
|
|
190841
|
+
* Verifies a GingerProviderAttribute message.
|
|
190842
|
+
* @function verify
|
|
190843
|
+
* @memberof GingerProviderAttribute
|
|
190844
|
+
* @static
|
|
190845
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
190846
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
190847
|
+
*/
|
|
190848
|
+
GingerProviderAttribute.verify = function verify(message) {
|
|
190849
|
+
if (typeof message !== "object" || message === null)
|
|
190850
|
+
return "object expected";
|
|
190851
|
+
if (message.attributeId != null && message.hasOwnProperty("attributeId"))
|
|
190852
|
+
if (!$util.isString(message.attributeId))
|
|
190853
|
+
return "attributeId: string expected";
|
|
190854
|
+
if (message.hsClinicianId != null && message.hasOwnProperty("hsClinicianId"))
|
|
190855
|
+
if (!$util.isString(message.hsClinicianId))
|
|
190856
|
+
return "hsClinicianId: string expected";
|
|
190857
|
+
if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
|
|
190858
|
+
if (!$util.isInteger(message.clinicianId))
|
|
190859
|
+
return "clinicianId: integer expected";
|
|
190860
|
+
if (message.attributeValue != null && message.hasOwnProperty("attributeValue"))
|
|
190861
|
+
if (!$util.isString(message.attributeValue))
|
|
190862
|
+
return "attributeValue: string expected";
|
|
190863
|
+
if (message.attributeCategory != null && message.hasOwnProperty("attributeCategory"))
|
|
190864
|
+
switch (message.attributeCategory) {
|
|
190865
|
+
default:
|
|
190866
|
+
return "attributeCategory: enum value expected";
|
|
190867
|
+
case 0:
|
|
190868
|
+
case 1:
|
|
190869
|
+
case 2:
|
|
190870
|
+
case 3:
|
|
190871
|
+
case 4:
|
|
190872
|
+
case 5:
|
|
190873
|
+
case 6:
|
|
190874
|
+
break;
|
|
190875
|
+
}
|
|
190876
|
+
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
190877
|
+
if (!$util.isInteger(message.createdAtTimestamp) && !(message.createdAtTimestamp && $util.isInteger(message.createdAtTimestamp.low) && $util.isInteger(message.createdAtTimestamp.high)))
|
|
190878
|
+
return "createdAtTimestamp: integer|Long expected";
|
|
190879
|
+
if (message.updatedAtTimestamp != null && message.hasOwnProperty("updatedAtTimestamp"))
|
|
190880
|
+
if (!$util.isInteger(message.updatedAtTimestamp) && !(message.updatedAtTimestamp && $util.isInteger(message.updatedAtTimestamp.low) && $util.isInteger(message.updatedAtTimestamp.high)))
|
|
190881
|
+
return "updatedAtTimestamp: integer|Long expected";
|
|
190882
|
+
return null;
|
|
190883
|
+
};
|
|
190884
|
+
|
|
190885
|
+
/**
|
|
190886
|
+
* Creates a GingerProviderAttribute message from a plain object. Also converts values to their respective internal types.
|
|
190887
|
+
* @function fromObject
|
|
190888
|
+
* @memberof GingerProviderAttribute
|
|
190889
|
+
* @static
|
|
190890
|
+
* @param {Object.<string,*>} object Plain object
|
|
190891
|
+
* @returns {GingerProviderAttribute} GingerProviderAttribute
|
|
190892
|
+
*/
|
|
190893
|
+
GingerProviderAttribute.fromObject = function fromObject(object) {
|
|
190894
|
+
if (object instanceof $root.GingerProviderAttribute)
|
|
190895
|
+
return object;
|
|
190896
|
+
var message = new $root.GingerProviderAttribute();
|
|
190897
|
+
if (object.attributeId != null)
|
|
190898
|
+
message.attributeId = String(object.attributeId);
|
|
190899
|
+
if (object.hsClinicianId != null)
|
|
190900
|
+
message.hsClinicianId = String(object.hsClinicianId);
|
|
190901
|
+
if (object.clinicianId != null)
|
|
190902
|
+
message.clinicianId = object.clinicianId >>> 0;
|
|
190903
|
+
if (object.attributeValue != null)
|
|
190904
|
+
message.attributeValue = String(object.attributeValue);
|
|
190905
|
+
switch (object.attributeCategory) {
|
|
190906
|
+
case "GINGER_PROVIDER_ATTRIBUTE_CATEGORY_UNKNOWN":
|
|
190907
|
+
case 0:
|
|
190908
|
+
message.attributeCategory = 0;
|
|
190909
|
+
break;
|
|
190910
|
+
case "GINGER_PROVIDER_ATTRIBUTE_CATEGORY_GENDER":
|
|
190911
|
+
case 1:
|
|
190912
|
+
message.attributeCategory = 1;
|
|
190913
|
+
break;
|
|
190914
|
+
case "GINGER_PROVIDER_ATTRIBUTE_CATEGORY_RACE":
|
|
190915
|
+
case 2:
|
|
190916
|
+
message.attributeCategory = 2;
|
|
190917
|
+
break;
|
|
190918
|
+
case "GINGER_PROVIDER_ATTRIBUTE_CATEGORY_CLINICAL_SPECIALITY":
|
|
190919
|
+
case 3:
|
|
190920
|
+
message.attributeCategory = 3;
|
|
190921
|
+
break;
|
|
190922
|
+
case "GINGER_PROVIDER_ATTRIBUTE_CATEGORY_THERAPY_MODALITY":
|
|
190923
|
+
case 4:
|
|
190924
|
+
message.attributeCategory = 4;
|
|
190925
|
+
break;
|
|
190926
|
+
case "GINGER_PROVIDER_ATTRIBUTE_CATEGORY_LANGUAGE":
|
|
190927
|
+
case 5:
|
|
190928
|
+
message.attributeCategory = 5;
|
|
190929
|
+
break;
|
|
190930
|
+
case "GINGER_PROVIDER_ATTRIBUTE_CATEGORY_AGE_RANGE":
|
|
190931
|
+
case 6:
|
|
190932
|
+
message.attributeCategory = 6;
|
|
190933
|
+
break;
|
|
190934
|
+
}
|
|
190935
|
+
if (object.createdAtTimestamp != null)
|
|
190936
|
+
if ($util.Long)
|
|
190937
|
+
(message.createdAtTimestamp = $util.Long.fromValue(object.createdAtTimestamp)).unsigned = true;
|
|
190938
|
+
else if (typeof object.createdAtTimestamp === "string")
|
|
190939
|
+
message.createdAtTimestamp = parseInt(object.createdAtTimestamp, 10);
|
|
190940
|
+
else if (typeof object.createdAtTimestamp === "number")
|
|
190941
|
+
message.createdAtTimestamp = object.createdAtTimestamp;
|
|
190942
|
+
else if (typeof object.createdAtTimestamp === "object")
|
|
190943
|
+
message.createdAtTimestamp = new $util.LongBits(object.createdAtTimestamp.low >>> 0, object.createdAtTimestamp.high >>> 0).toNumber(true);
|
|
190944
|
+
if (object.updatedAtTimestamp != null)
|
|
190945
|
+
if ($util.Long)
|
|
190946
|
+
(message.updatedAtTimestamp = $util.Long.fromValue(object.updatedAtTimestamp)).unsigned = true;
|
|
190947
|
+
else if (typeof object.updatedAtTimestamp === "string")
|
|
190948
|
+
message.updatedAtTimestamp = parseInt(object.updatedAtTimestamp, 10);
|
|
190949
|
+
else if (typeof object.updatedAtTimestamp === "number")
|
|
190950
|
+
message.updatedAtTimestamp = object.updatedAtTimestamp;
|
|
190951
|
+
else if (typeof object.updatedAtTimestamp === "object")
|
|
190952
|
+
message.updatedAtTimestamp = new $util.LongBits(object.updatedAtTimestamp.low >>> 0, object.updatedAtTimestamp.high >>> 0).toNumber(true);
|
|
190953
|
+
return message;
|
|
190954
|
+
};
|
|
190955
|
+
|
|
190956
|
+
/**
|
|
190957
|
+
* Creates a plain object from a GingerProviderAttribute message. Also converts values to other types if specified.
|
|
190958
|
+
* @function toObject
|
|
190959
|
+
* @memberof GingerProviderAttribute
|
|
190960
|
+
* @static
|
|
190961
|
+
* @param {GingerProviderAttribute} message GingerProviderAttribute
|
|
190962
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
190963
|
+
* @returns {Object.<string,*>} Plain object
|
|
190964
|
+
*/
|
|
190965
|
+
GingerProviderAttribute.toObject = function toObject(message, options) {
|
|
190966
|
+
if (!options)
|
|
190967
|
+
options = {};
|
|
190968
|
+
var object = {};
|
|
190969
|
+
if (options.defaults) {
|
|
190970
|
+
object.attributeId = "";
|
|
190971
|
+
object.hsClinicianId = "";
|
|
190972
|
+
object.clinicianId = 0;
|
|
190973
|
+
object.attributeValue = "";
|
|
190974
|
+
object.attributeCategory = options.enums === String ? "GINGER_PROVIDER_ATTRIBUTE_CATEGORY_UNKNOWN" : 0;
|
|
190975
|
+
if ($util.Long) {
|
|
190976
|
+
var long = new $util.Long(0, 0, true);
|
|
190977
|
+
object.createdAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
190978
|
+
} else
|
|
190979
|
+
object.createdAtTimestamp = options.longs === String ? "0" : 0;
|
|
190980
|
+
if ($util.Long) {
|
|
190981
|
+
var long = new $util.Long(0, 0, true);
|
|
190982
|
+
object.updatedAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
190983
|
+
} else
|
|
190984
|
+
object.updatedAtTimestamp = options.longs === String ? "0" : 0;
|
|
190985
|
+
}
|
|
190986
|
+
if (message.attributeId != null && message.hasOwnProperty("attributeId"))
|
|
190987
|
+
object.attributeId = message.attributeId;
|
|
190988
|
+
if (message.hsClinicianId != null && message.hasOwnProperty("hsClinicianId"))
|
|
190989
|
+
object.hsClinicianId = message.hsClinicianId;
|
|
190990
|
+
if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
|
|
190991
|
+
object.clinicianId = message.clinicianId;
|
|
190992
|
+
if (message.attributeValue != null && message.hasOwnProperty("attributeValue"))
|
|
190993
|
+
object.attributeValue = message.attributeValue;
|
|
190994
|
+
if (message.attributeCategory != null && message.hasOwnProperty("attributeCategory"))
|
|
190995
|
+
object.attributeCategory = options.enums === String ? $root.GingerProviderAttributeCategory[message.attributeCategory] : message.attributeCategory;
|
|
190996
|
+
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
190997
|
+
if (typeof message.createdAtTimestamp === "number")
|
|
190998
|
+
object.createdAtTimestamp = options.longs === String ? String(message.createdAtTimestamp) : message.createdAtTimestamp;
|
|
190999
|
+
else
|
|
191000
|
+
object.createdAtTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.createdAtTimestamp) : options.longs === Number ? new $util.LongBits(message.createdAtTimestamp.low >>> 0, message.createdAtTimestamp.high >>> 0).toNumber(true) : message.createdAtTimestamp;
|
|
191001
|
+
if (message.updatedAtTimestamp != null && message.hasOwnProperty("updatedAtTimestamp"))
|
|
191002
|
+
if (typeof message.updatedAtTimestamp === "number")
|
|
191003
|
+
object.updatedAtTimestamp = options.longs === String ? String(message.updatedAtTimestamp) : message.updatedAtTimestamp;
|
|
191004
|
+
else
|
|
191005
|
+
object.updatedAtTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAtTimestamp) : options.longs === Number ? new $util.LongBits(message.updatedAtTimestamp.low >>> 0, message.updatedAtTimestamp.high >>> 0).toNumber(true) : message.updatedAtTimestamp;
|
|
191006
|
+
return object;
|
|
191007
|
+
};
|
|
191008
|
+
|
|
191009
|
+
/**
|
|
191010
|
+
* Converts this GingerProviderAttribute to JSON.
|
|
191011
|
+
* @function toJSON
|
|
191012
|
+
* @memberof GingerProviderAttribute
|
|
191013
|
+
* @instance
|
|
191014
|
+
* @returns {Object.<string,*>} JSON object
|
|
191015
|
+
*/
|
|
191016
|
+
GingerProviderAttribute.prototype.toJSON = function toJSON() {
|
|
191017
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
191018
|
+
};
|
|
191019
|
+
|
|
191020
|
+
return GingerProviderAttribute;
|
|
191021
|
+
})();
|
|
191022
|
+
|
|
191023
|
+
$root.GingerProviderAttributeExported = (function() {
|
|
191024
|
+
|
|
191025
|
+
/**
|
|
191026
|
+
* Properties of a GingerProviderAttributeExported.
|
|
191027
|
+
* @name IGingerProviderAttributeExported
|
|
191028
|
+
* @interface IGingerProviderAttributeExported
|
|
191029
|
+
* @property {IGingerProviderAttribute|null} [attribute] GingerProviderAttributeExported attribute
|
|
191030
|
+
* @property {number|Long|null} [timestamp] GingerProviderAttributeExported timestamp
|
|
191031
|
+
*/
|
|
191032
|
+
|
|
191033
|
+
/**
|
|
191034
|
+
* Constructs a new GingerProviderAttributeExported.
|
|
191035
|
+
* @name GingerProviderAttributeExported
|
|
191036
|
+
* @classdesc Represents a GingerProviderAttributeExported.
|
|
191037
|
+
* @implements IGingerProviderAttributeExported
|
|
191038
|
+
* @constructor
|
|
191039
|
+
* @param {IGingerProviderAttributeExported=} [properties] Properties to set
|
|
191040
|
+
*/
|
|
191041
|
+
function GingerProviderAttributeExported(properties) {
|
|
191042
|
+
if (properties)
|
|
191043
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
191044
|
+
if (properties[keys[i]] != null)
|
|
191045
|
+
this[keys[i]] = properties[keys[i]];
|
|
191046
|
+
}
|
|
191047
|
+
|
|
191048
|
+
/**
|
|
191049
|
+
* GingerProviderAttributeExported attribute.
|
|
191050
|
+
* @member {IGingerProviderAttribute|null|undefined} attribute
|
|
191051
|
+
* @memberof GingerProviderAttributeExported
|
|
191052
|
+
* @instance
|
|
191053
|
+
*/
|
|
191054
|
+
GingerProviderAttributeExported.prototype.attribute = null;
|
|
191055
|
+
|
|
191056
|
+
/**
|
|
191057
|
+
* GingerProviderAttributeExported timestamp.
|
|
191058
|
+
* @member {number|Long} timestamp
|
|
191059
|
+
* @memberof GingerProviderAttributeExported
|
|
191060
|
+
* @instance
|
|
191061
|
+
*/
|
|
191062
|
+
GingerProviderAttributeExported.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
191063
|
+
|
|
191064
|
+
/**
|
|
191065
|
+
* Creates a new GingerProviderAttributeExported instance using the specified properties.
|
|
191066
|
+
* @function create
|
|
191067
|
+
* @memberof GingerProviderAttributeExported
|
|
191068
|
+
* @static
|
|
191069
|
+
* @param {IGingerProviderAttributeExported=} [properties] Properties to set
|
|
191070
|
+
* @returns {GingerProviderAttributeExported} GingerProviderAttributeExported instance
|
|
191071
|
+
*/
|
|
191072
|
+
GingerProviderAttributeExported.create = function create(properties) {
|
|
191073
|
+
return new GingerProviderAttributeExported(properties);
|
|
191074
|
+
};
|
|
191075
|
+
|
|
191076
|
+
/**
|
|
191077
|
+
* Encodes the specified GingerProviderAttributeExported message. Does not implicitly {@link GingerProviderAttributeExported.verify|verify} messages.
|
|
191078
|
+
* @function encode
|
|
191079
|
+
* @memberof GingerProviderAttributeExported
|
|
191080
|
+
* @static
|
|
191081
|
+
* @param {IGingerProviderAttributeExported} message GingerProviderAttributeExported message or plain object to encode
|
|
191082
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
191083
|
+
* @returns {$protobuf.Writer} Writer
|
|
191084
|
+
*/
|
|
191085
|
+
GingerProviderAttributeExported.encode = function encode(message, writer) {
|
|
191086
|
+
if (!writer)
|
|
191087
|
+
writer = $Writer.create();
|
|
191088
|
+
if (message.attribute != null && message.hasOwnProperty("attribute"))
|
|
191089
|
+
$root.GingerProviderAttribute.encode(message.attribute, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
191090
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
191091
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
|
|
191092
|
+
return writer;
|
|
191093
|
+
};
|
|
191094
|
+
|
|
191095
|
+
/**
|
|
191096
|
+
* Encodes the specified GingerProviderAttributeExported message, length delimited. Does not implicitly {@link GingerProviderAttributeExported.verify|verify} messages.
|
|
191097
|
+
* @function encodeDelimited
|
|
191098
|
+
* @memberof GingerProviderAttributeExported
|
|
191099
|
+
* @static
|
|
191100
|
+
* @param {IGingerProviderAttributeExported} message GingerProviderAttributeExported message or plain object to encode
|
|
191101
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
191102
|
+
* @returns {$protobuf.Writer} Writer
|
|
191103
|
+
*/
|
|
191104
|
+
GingerProviderAttributeExported.encodeDelimited = function encodeDelimited(message, writer) {
|
|
191105
|
+
return this.encode(message, writer).ldelim();
|
|
191106
|
+
};
|
|
191107
|
+
|
|
191108
|
+
/**
|
|
191109
|
+
* Decodes a GingerProviderAttributeExported message from the specified reader or buffer.
|
|
191110
|
+
* @function decode
|
|
191111
|
+
* @memberof GingerProviderAttributeExported
|
|
191112
|
+
* @static
|
|
191113
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
191114
|
+
* @param {number} [length] Message length if known beforehand
|
|
191115
|
+
* @returns {GingerProviderAttributeExported} GingerProviderAttributeExported
|
|
191116
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
191117
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
191118
|
+
*/
|
|
191119
|
+
GingerProviderAttributeExported.decode = function decode(reader, length) {
|
|
191120
|
+
if (!(reader instanceof $Reader))
|
|
191121
|
+
reader = $Reader.create(reader);
|
|
191122
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerProviderAttributeExported();
|
|
191123
|
+
while (reader.pos < end) {
|
|
191124
|
+
var tag = reader.uint32();
|
|
191125
|
+
switch (tag >>> 3) {
|
|
191126
|
+
case 1:
|
|
191127
|
+
message.attribute = $root.GingerProviderAttribute.decode(reader, reader.uint32());
|
|
191128
|
+
break;
|
|
191129
|
+
case 2:
|
|
191130
|
+
message.timestamp = reader.uint64();
|
|
191131
|
+
break;
|
|
191132
|
+
default:
|
|
191133
|
+
reader.skipType(tag & 7);
|
|
191134
|
+
break;
|
|
191135
|
+
}
|
|
191136
|
+
}
|
|
191137
|
+
return message;
|
|
191138
|
+
};
|
|
191139
|
+
|
|
191140
|
+
/**
|
|
191141
|
+
* Decodes a GingerProviderAttributeExported message from the specified reader or buffer, length delimited.
|
|
191142
|
+
* @function decodeDelimited
|
|
191143
|
+
* @memberof GingerProviderAttributeExported
|
|
191144
|
+
* @static
|
|
191145
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
191146
|
+
* @returns {GingerProviderAttributeExported} GingerProviderAttributeExported
|
|
191147
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
191148
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
191149
|
+
*/
|
|
191150
|
+
GingerProviderAttributeExported.decodeDelimited = function decodeDelimited(reader) {
|
|
191151
|
+
if (!(reader instanceof $Reader))
|
|
191152
|
+
reader = new $Reader(reader);
|
|
191153
|
+
return this.decode(reader, reader.uint32());
|
|
191154
|
+
};
|
|
191155
|
+
|
|
191156
|
+
/**
|
|
191157
|
+
* Verifies a GingerProviderAttributeExported message.
|
|
191158
|
+
* @function verify
|
|
191159
|
+
* @memberof GingerProviderAttributeExported
|
|
191160
|
+
* @static
|
|
191161
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
191162
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
191163
|
+
*/
|
|
191164
|
+
GingerProviderAttributeExported.verify = function verify(message) {
|
|
191165
|
+
if (typeof message !== "object" || message === null)
|
|
191166
|
+
return "object expected";
|
|
191167
|
+
if (message.attribute != null && message.hasOwnProperty("attribute")) {
|
|
191168
|
+
var error = $root.GingerProviderAttribute.verify(message.attribute);
|
|
191169
|
+
if (error)
|
|
191170
|
+
return "attribute." + error;
|
|
191171
|
+
}
|
|
191172
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
191173
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
191174
|
+
return "timestamp: integer|Long expected";
|
|
191175
|
+
return null;
|
|
191176
|
+
};
|
|
191177
|
+
|
|
191178
|
+
/**
|
|
191179
|
+
* Creates a GingerProviderAttributeExported message from a plain object. Also converts values to their respective internal types.
|
|
191180
|
+
* @function fromObject
|
|
191181
|
+
* @memberof GingerProviderAttributeExported
|
|
191182
|
+
* @static
|
|
191183
|
+
* @param {Object.<string,*>} object Plain object
|
|
191184
|
+
* @returns {GingerProviderAttributeExported} GingerProviderAttributeExported
|
|
191185
|
+
*/
|
|
191186
|
+
GingerProviderAttributeExported.fromObject = function fromObject(object) {
|
|
191187
|
+
if (object instanceof $root.GingerProviderAttributeExported)
|
|
191188
|
+
return object;
|
|
191189
|
+
var message = new $root.GingerProviderAttributeExported();
|
|
191190
|
+
if (object.attribute != null) {
|
|
191191
|
+
if (typeof object.attribute !== "object")
|
|
191192
|
+
throw TypeError(".GingerProviderAttributeExported.attribute: object expected");
|
|
191193
|
+
message.attribute = $root.GingerProviderAttribute.fromObject(object.attribute);
|
|
191194
|
+
}
|
|
191195
|
+
if (object.timestamp != null)
|
|
191196
|
+
if ($util.Long)
|
|
191197
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
191198
|
+
else if (typeof object.timestamp === "string")
|
|
191199
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
191200
|
+
else if (typeof object.timestamp === "number")
|
|
191201
|
+
message.timestamp = object.timestamp;
|
|
191202
|
+
else if (typeof object.timestamp === "object")
|
|
191203
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
191204
|
+
return message;
|
|
191205
|
+
};
|
|
191206
|
+
|
|
191207
|
+
/**
|
|
191208
|
+
* Creates a plain object from a GingerProviderAttributeExported message. Also converts values to other types if specified.
|
|
191209
|
+
* @function toObject
|
|
191210
|
+
* @memberof GingerProviderAttributeExported
|
|
191211
|
+
* @static
|
|
191212
|
+
* @param {GingerProviderAttributeExported} message GingerProviderAttributeExported
|
|
191213
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
191214
|
+
* @returns {Object.<string,*>} Plain object
|
|
191215
|
+
*/
|
|
191216
|
+
GingerProviderAttributeExported.toObject = function toObject(message, options) {
|
|
191217
|
+
if (!options)
|
|
191218
|
+
options = {};
|
|
191219
|
+
var object = {};
|
|
191220
|
+
if (options.defaults) {
|
|
191221
|
+
object.attribute = null;
|
|
191222
|
+
if ($util.Long) {
|
|
191223
|
+
var long = new $util.Long(0, 0, true);
|
|
191224
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
191225
|
+
} else
|
|
191226
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
191227
|
+
}
|
|
191228
|
+
if (message.attribute != null && message.hasOwnProperty("attribute"))
|
|
191229
|
+
object.attribute = $root.GingerProviderAttribute.toObject(message.attribute, options);
|
|
191230
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
191231
|
+
if (typeof message.timestamp === "number")
|
|
191232
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
191233
|
+
else
|
|
191234
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
191235
|
+
return object;
|
|
191236
|
+
};
|
|
191237
|
+
|
|
191238
|
+
/**
|
|
191239
|
+
* Converts this GingerProviderAttributeExported to JSON.
|
|
191240
|
+
* @function toJSON
|
|
191241
|
+
* @memberof GingerProviderAttributeExported
|
|
191242
|
+
* @instance
|
|
191243
|
+
* @returns {Object.<string,*>} JSON object
|
|
191244
|
+
*/
|
|
191245
|
+
GingerProviderAttributeExported.prototype.toJSON = function toJSON() {
|
|
191246
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
191247
|
+
};
|
|
191248
|
+
|
|
191249
|
+
return GingerProviderAttributeExported;
|
|
191250
|
+
})();
|
|
191251
|
+
|
|
190613
191252
|
$root.googlereceipt = (function() {
|
|
190614
191253
|
|
|
190615
191254
|
/**
|
package/package.json
CHANGED