@headspace/protos-events 1.788.0 → 1.790.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 +487 -0
- package/lib/index.js +1585 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -39771,6 +39771,1301 @@ $root.MemberDeactivationStarted = (function() {
|
|
|
39771
39771
|
return MemberDeactivationStarted;
|
|
39772
39772
|
})();
|
|
39773
39773
|
|
|
39774
|
+
/**
|
|
39775
|
+
* CareService enum.
|
|
39776
|
+
* @name CareService
|
|
39777
|
+
* @enum {string}
|
|
39778
|
+
* @property {number} CARE_SERVICE_UNKNOWN=0 CARE_SERVICE_UNKNOWN value
|
|
39779
|
+
* @property {number} CARE_SERVICE_COACHING=1 CARE_SERVICE_COACHING value
|
|
39780
|
+
* @property {number} CARE_SERVICE_THERAPY=2 CARE_SERVICE_THERAPY value
|
|
39781
|
+
* @property {number} CARE_SERVICE_PSYCHIATRY=3 CARE_SERVICE_PSYCHIATRY value
|
|
39782
|
+
*/
|
|
39783
|
+
$root.CareService = (function() {
|
|
39784
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
39785
|
+
values[valuesById[0] = "CARE_SERVICE_UNKNOWN"] = 0;
|
|
39786
|
+
values[valuesById[1] = "CARE_SERVICE_COACHING"] = 1;
|
|
39787
|
+
values[valuesById[2] = "CARE_SERVICE_THERAPY"] = 2;
|
|
39788
|
+
values[valuesById[3] = "CARE_SERVICE_PSYCHIATRY"] = 3;
|
|
39789
|
+
return values;
|
|
39790
|
+
})();
|
|
39791
|
+
|
|
39792
|
+
/**
|
|
39793
|
+
* SessionType enum.
|
|
39794
|
+
* @name SessionType
|
|
39795
|
+
* @enum {string}
|
|
39796
|
+
* @property {number} SESSION_TYPE_UNKNOWN=0 SESSION_TYPE_UNKNOWN value
|
|
39797
|
+
* @property {number} SESSION_TYPE_INTAKE=1 SESSION_TYPE_INTAKE value
|
|
39798
|
+
* @property {number} SESSION_TYPE_FOLLOW_UP=2 SESSION_TYPE_FOLLOW_UP value
|
|
39799
|
+
* @property {number} SESSION_TYPE_SI=3 SESSION_TYPE_SI value
|
|
39800
|
+
* @property {number} SESSION_TYPE_DROP_IN=4 SESSION_TYPE_DROP_IN value
|
|
39801
|
+
*/
|
|
39802
|
+
$root.SessionType = (function() {
|
|
39803
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
39804
|
+
values[valuesById[0] = "SESSION_TYPE_UNKNOWN"] = 0;
|
|
39805
|
+
values[valuesById[1] = "SESSION_TYPE_INTAKE"] = 1;
|
|
39806
|
+
values[valuesById[2] = "SESSION_TYPE_FOLLOW_UP"] = 2;
|
|
39807
|
+
values[valuesById[3] = "SESSION_TYPE_SI"] = 3;
|
|
39808
|
+
values[valuesById[4] = "SESSION_TYPE_DROP_IN"] = 4;
|
|
39809
|
+
return values;
|
|
39810
|
+
})();
|
|
39811
|
+
|
|
39812
|
+
/**
|
|
39813
|
+
* SessionFormat enum.
|
|
39814
|
+
* @name SessionFormat
|
|
39815
|
+
* @enum {string}
|
|
39816
|
+
* @property {number} SESSION_FORMAT_UNKNOWN=0 SESSION_FORMAT_UNKNOWN value
|
|
39817
|
+
* @property {number} SESSION_FORMAT_CHAT=1 SESSION_FORMAT_CHAT value
|
|
39818
|
+
* @property {number} SESSION_FORMAT_VIDEO=2 SESSION_FORMAT_VIDEO value
|
|
39819
|
+
*/
|
|
39820
|
+
$root.SessionFormat = (function() {
|
|
39821
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
39822
|
+
values[valuesById[0] = "SESSION_FORMAT_UNKNOWN"] = 0;
|
|
39823
|
+
values[valuesById[1] = "SESSION_FORMAT_CHAT"] = 1;
|
|
39824
|
+
values[valuesById[2] = "SESSION_FORMAT_VIDEO"] = 2;
|
|
39825
|
+
return values;
|
|
39826
|
+
})();
|
|
39827
|
+
|
|
39828
|
+
$root.CareSessionCompleted = (function() {
|
|
39829
|
+
|
|
39830
|
+
/**
|
|
39831
|
+
* Properties of a CareSessionCompleted.
|
|
39832
|
+
* @name ICareSessionCompleted
|
|
39833
|
+
* @interface ICareSessionCompleted
|
|
39834
|
+
* @property {IEventDetail|null} [eventDetail] CareSessionCompleted eventDetail
|
|
39835
|
+
* @property {string|null} [hsUserId] CareSessionCompleted hsUserId
|
|
39836
|
+
* @property {number|Long|null} [listenerId] CareSessionCompleted listenerId
|
|
39837
|
+
* @property {number|Long|null} [sessionId] CareSessionCompleted sessionId
|
|
39838
|
+
* @property {CareService|null} [careService] CareSessionCompleted careService
|
|
39839
|
+
* @property {SessionType|null} [sessionType] CareSessionCompleted sessionType
|
|
39840
|
+
* @property {SessionFormat|null} [sessionFormat] CareSessionCompleted sessionFormat
|
|
39841
|
+
* @property {boolean|null} [isScheduled] CareSessionCompleted isScheduled
|
|
39842
|
+
* @property {number|Long|null} [startTimestamp] CareSessionCompleted startTimestamp
|
|
39843
|
+
* @property {string|null} [startTimestampIso] CareSessionCompleted startTimestampIso
|
|
39844
|
+
* @property {number|Long|null} [engagementTimestamp] CareSessionCompleted engagementTimestamp
|
|
39845
|
+
* @property {string|null} [engagementTimestampIso] CareSessionCompleted engagementTimestampIso
|
|
39846
|
+
* @property {number|Long|null} [endTimestamp] CareSessionCompleted endTimestamp
|
|
39847
|
+
* @property {string|null} [endTimestampIso] CareSessionCompleted endTimestampIso
|
|
39848
|
+
* @property {string|null} [endedGingerUserId] CareSessionCompleted endedGingerUserId
|
|
39849
|
+
*/
|
|
39850
|
+
|
|
39851
|
+
/**
|
|
39852
|
+
* Constructs a new CareSessionCompleted.
|
|
39853
|
+
* @name CareSessionCompleted
|
|
39854
|
+
* @classdesc Represents a CareSessionCompleted.
|
|
39855
|
+
* @implements ICareSessionCompleted
|
|
39856
|
+
* @constructor
|
|
39857
|
+
* @param {ICareSessionCompleted=} [properties] Properties to set
|
|
39858
|
+
*/
|
|
39859
|
+
function CareSessionCompleted(properties) {
|
|
39860
|
+
if (properties)
|
|
39861
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39862
|
+
if (properties[keys[i]] != null)
|
|
39863
|
+
this[keys[i]] = properties[keys[i]];
|
|
39864
|
+
}
|
|
39865
|
+
|
|
39866
|
+
/**
|
|
39867
|
+
* CareSessionCompleted eventDetail.
|
|
39868
|
+
* @member {IEventDetail|null|undefined} eventDetail
|
|
39869
|
+
* @memberof CareSessionCompleted
|
|
39870
|
+
* @instance
|
|
39871
|
+
*/
|
|
39872
|
+
CareSessionCompleted.prototype.eventDetail = null;
|
|
39873
|
+
|
|
39874
|
+
/**
|
|
39875
|
+
* CareSessionCompleted hsUserId.
|
|
39876
|
+
* @member {string} hsUserId
|
|
39877
|
+
* @memberof CareSessionCompleted
|
|
39878
|
+
* @instance
|
|
39879
|
+
*/
|
|
39880
|
+
CareSessionCompleted.prototype.hsUserId = "";
|
|
39881
|
+
|
|
39882
|
+
/**
|
|
39883
|
+
* CareSessionCompleted listenerId.
|
|
39884
|
+
* @member {number|Long} listenerId
|
|
39885
|
+
* @memberof CareSessionCompleted
|
|
39886
|
+
* @instance
|
|
39887
|
+
*/
|
|
39888
|
+
CareSessionCompleted.prototype.listenerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
39889
|
+
|
|
39890
|
+
/**
|
|
39891
|
+
* CareSessionCompleted sessionId.
|
|
39892
|
+
* @member {number|Long} sessionId
|
|
39893
|
+
* @memberof CareSessionCompleted
|
|
39894
|
+
* @instance
|
|
39895
|
+
*/
|
|
39896
|
+
CareSessionCompleted.prototype.sessionId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
39897
|
+
|
|
39898
|
+
/**
|
|
39899
|
+
* CareSessionCompleted careService.
|
|
39900
|
+
* @member {CareService} careService
|
|
39901
|
+
* @memberof CareSessionCompleted
|
|
39902
|
+
* @instance
|
|
39903
|
+
*/
|
|
39904
|
+
CareSessionCompleted.prototype.careService = 0;
|
|
39905
|
+
|
|
39906
|
+
/**
|
|
39907
|
+
* CareSessionCompleted sessionType.
|
|
39908
|
+
* @member {SessionType} sessionType
|
|
39909
|
+
* @memberof CareSessionCompleted
|
|
39910
|
+
* @instance
|
|
39911
|
+
*/
|
|
39912
|
+
CareSessionCompleted.prototype.sessionType = 0;
|
|
39913
|
+
|
|
39914
|
+
/**
|
|
39915
|
+
* CareSessionCompleted sessionFormat.
|
|
39916
|
+
* @member {SessionFormat} sessionFormat
|
|
39917
|
+
* @memberof CareSessionCompleted
|
|
39918
|
+
* @instance
|
|
39919
|
+
*/
|
|
39920
|
+
CareSessionCompleted.prototype.sessionFormat = 0;
|
|
39921
|
+
|
|
39922
|
+
/**
|
|
39923
|
+
* CareSessionCompleted isScheduled.
|
|
39924
|
+
* @member {boolean} isScheduled
|
|
39925
|
+
* @memberof CareSessionCompleted
|
|
39926
|
+
* @instance
|
|
39927
|
+
*/
|
|
39928
|
+
CareSessionCompleted.prototype.isScheduled = false;
|
|
39929
|
+
|
|
39930
|
+
/**
|
|
39931
|
+
* CareSessionCompleted startTimestamp.
|
|
39932
|
+
* @member {number|Long} startTimestamp
|
|
39933
|
+
* @memberof CareSessionCompleted
|
|
39934
|
+
* @instance
|
|
39935
|
+
*/
|
|
39936
|
+
CareSessionCompleted.prototype.startTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
39937
|
+
|
|
39938
|
+
/**
|
|
39939
|
+
* CareSessionCompleted startTimestampIso.
|
|
39940
|
+
* @member {string} startTimestampIso
|
|
39941
|
+
* @memberof CareSessionCompleted
|
|
39942
|
+
* @instance
|
|
39943
|
+
*/
|
|
39944
|
+
CareSessionCompleted.prototype.startTimestampIso = "";
|
|
39945
|
+
|
|
39946
|
+
/**
|
|
39947
|
+
* CareSessionCompleted engagementTimestamp.
|
|
39948
|
+
* @member {number|Long} engagementTimestamp
|
|
39949
|
+
* @memberof CareSessionCompleted
|
|
39950
|
+
* @instance
|
|
39951
|
+
*/
|
|
39952
|
+
CareSessionCompleted.prototype.engagementTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
39953
|
+
|
|
39954
|
+
/**
|
|
39955
|
+
* CareSessionCompleted engagementTimestampIso.
|
|
39956
|
+
* @member {string} engagementTimestampIso
|
|
39957
|
+
* @memberof CareSessionCompleted
|
|
39958
|
+
* @instance
|
|
39959
|
+
*/
|
|
39960
|
+
CareSessionCompleted.prototype.engagementTimestampIso = "";
|
|
39961
|
+
|
|
39962
|
+
/**
|
|
39963
|
+
* CareSessionCompleted endTimestamp.
|
|
39964
|
+
* @member {number|Long} endTimestamp
|
|
39965
|
+
* @memberof CareSessionCompleted
|
|
39966
|
+
* @instance
|
|
39967
|
+
*/
|
|
39968
|
+
CareSessionCompleted.prototype.endTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
39969
|
+
|
|
39970
|
+
/**
|
|
39971
|
+
* CareSessionCompleted endTimestampIso.
|
|
39972
|
+
* @member {string} endTimestampIso
|
|
39973
|
+
* @memberof CareSessionCompleted
|
|
39974
|
+
* @instance
|
|
39975
|
+
*/
|
|
39976
|
+
CareSessionCompleted.prototype.endTimestampIso = "";
|
|
39977
|
+
|
|
39978
|
+
/**
|
|
39979
|
+
* CareSessionCompleted endedGingerUserId.
|
|
39980
|
+
* @member {string} endedGingerUserId
|
|
39981
|
+
* @memberof CareSessionCompleted
|
|
39982
|
+
* @instance
|
|
39983
|
+
*/
|
|
39984
|
+
CareSessionCompleted.prototype.endedGingerUserId = "";
|
|
39985
|
+
|
|
39986
|
+
/**
|
|
39987
|
+
* Creates a new CareSessionCompleted instance using the specified properties.
|
|
39988
|
+
* @function create
|
|
39989
|
+
* @memberof CareSessionCompleted
|
|
39990
|
+
* @static
|
|
39991
|
+
* @param {ICareSessionCompleted=} [properties] Properties to set
|
|
39992
|
+
* @returns {CareSessionCompleted} CareSessionCompleted instance
|
|
39993
|
+
*/
|
|
39994
|
+
CareSessionCompleted.create = function create(properties) {
|
|
39995
|
+
return new CareSessionCompleted(properties);
|
|
39996
|
+
};
|
|
39997
|
+
|
|
39998
|
+
/**
|
|
39999
|
+
* Encodes the specified CareSessionCompleted message. Does not implicitly {@link CareSessionCompleted.verify|verify} messages.
|
|
40000
|
+
* @function encode
|
|
40001
|
+
* @memberof CareSessionCompleted
|
|
40002
|
+
* @static
|
|
40003
|
+
* @param {ICareSessionCompleted} message CareSessionCompleted message or plain object to encode
|
|
40004
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40005
|
+
* @returns {$protobuf.Writer} Writer
|
|
40006
|
+
*/
|
|
40007
|
+
CareSessionCompleted.encode = function encode(message, writer) {
|
|
40008
|
+
if (!writer)
|
|
40009
|
+
writer = $Writer.create();
|
|
40010
|
+
if (message.eventDetail != null && message.hasOwnProperty("eventDetail"))
|
|
40011
|
+
$root.EventDetail.encode(message.eventDetail, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
40012
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
40013
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
40014
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
40015
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int64(message.listenerId);
|
|
40016
|
+
if (message.sessionId != null && message.hasOwnProperty("sessionId"))
|
|
40017
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.sessionId);
|
|
40018
|
+
if (message.careService != null && message.hasOwnProperty("careService"))
|
|
40019
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.careService);
|
|
40020
|
+
if (message.sessionType != null && message.hasOwnProperty("sessionType"))
|
|
40021
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.sessionType);
|
|
40022
|
+
if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
|
|
40023
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.sessionFormat);
|
|
40024
|
+
if (message.isScheduled != null && message.hasOwnProperty("isScheduled"))
|
|
40025
|
+
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isScheduled);
|
|
40026
|
+
if (message.startTimestamp != null && message.hasOwnProperty("startTimestamp"))
|
|
40027
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.startTimestamp);
|
|
40028
|
+
if (message.startTimestampIso != null && message.hasOwnProperty("startTimestampIso"))
|
|
40029
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.startTimestampIso);
|
|
40030
|
+
if (message.engagementTimestamp != null && message.hasOwnProperty("engagementTimestamp"))
|
|
40031
|
+
writer.uint32(/* id 11, wireType 0 =*/88).uint64(message.engagementTimestamp);
|
|
40032
|
+
if (message.engagementTimestampIso != null && message.hasOwnProperty("engagementTimestampIso"))
|
|
40033
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.engagementTimestampIso);
|
|
40034
|
+
if (message.endTimestamp != null && message.hasOwnProperty("endTimestamp"))
|
|
40035
|
+
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.endTimestamp);
|
|
40036
|
+
if (message.endTimestampIso != null && message.hasOwnProperty("endTimestampIso"))
|
|
40037
|
+
writer.uint32(/* id 14, wireType 2 =*/114).string(message.endTimestampIso);
|
|
40038
|
+
if (message.endedGingerUserId != null && message.hasOwnProperty("endedGingerUserId"))
|
|
40039
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.endedGingerUserId);
|
|
40040
|
+
return writer;
|
|
40041
|
+
};
|
|
40042
|
+
|
|
40043
|
+
/**
|
|
40044
|
+
* Encodes the specified CareSessionCompleted message, length delimited. Does not implicitly {@link CareSessionCompleted.verify|verify} messages.
|
|
40045
|
+
* @function encodeDelimited
|
|
40046
|
+
* @memberof CareSessionCompleted
|
|
40047
|
+
* @static
|
|
40048
|
+
* @param {ICareSessionCompleted} message CareSessionCompleted message or plain object to encode
|
|
40049
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40050
|
+
* @returns {$protobuf.Writer} Writer
|
|
40051
|
+
*/
|
|
40052
|
+
CareSessionCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40053
|
+
return this.encode(message, writer).ldelim();
|
|
40054
|
+
};
|
|
40055
|
+
|
|
40056
|
+
/**
|
|
40057
|
+
* Decodes a CareSessionCompleted message from the specified reader or buffer.
|
|
40058
|
+
* @function decode
|
|
40059
|
+
* @memberof CareSessionCompleted
|
|
40060
|
+
* @static
|
|
40061
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40062
|
+
* @param {number} [length] Message length if known beforehand
|
|
40063
|
+
* @returns {CareSessionCompleted} CareSessionCompleted
|
|
40064
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40065
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40066
|
+
*/
|
|
40067
|
+
CareSessionCompleted.decode = function decode(reader, length) {
|
|
40068
|
+
if (!(reader instanceof $Reader))
|
|
40069
|
+
reader = $Reader.create(reader);
|
|
40070
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CareSessionCompleted();
|
|
40071
|
+
while (reader.pos < end) {
|
|
40072
|
+
var tag = reader.uint32();
|
|
40073
|
+
switch (tag >>> 3) {
|
|
40074
|
+
case 1:
|
|
40075
|
+
message.eventDetail = $root.EventDetail.decode(reader, reader.uint32());
|
|
40076
|
+
break;
|
|
40077
|
+
case 2:
|
|
40078
|
+
message.hsUserId = reader.string();
|
|
40079
|
+
break;
|
|
40080
|
+
case 3:
|
|
40081
|
+
message.listenerId = reader.int64();
|
|
40082
|
+
break;
|
|
40083
|
+
case 4:
|
|
40084
|
+
message.sessionId = reader.int64();
|
|
40085
|
+
break;
|
|
40086
|
+
case 5:
|
|
40087
|
+
message.careService = reader.int32();
|
|
40088
|
+
break;
|
|
40089
|
+
case 6:
|
|
40090
|
+
message.sessionType = reader.int32();
|
|
40091
|
+
break;
|
|
40092
|
+
case 7:
|
|
40093
|
+
message.sessionFormat = reader.int32();
|
|
40094
|
+
break;
|
|
40095
|
+
case 8:
|
|
40096
|
+
message.isScheduled = reader.bool();
|
|
40097
|
+
break;
|
|
40098
|
+
case 9:
|
|
40099
|
+
message.startTimestamp = reader.uint64();
|
|
40100
|
+
break;
|
|
40101
|
+
case 10:
|
|
40102
|
+
message.startTimestampIso = reader.string();
|
|
40103
|
+
break;
|
|
40104
|
+
case 11:
|
|
40105
|
+
message.engagementTimestamp = reader.uint64();
|
|
40106
|
+
break;
|
|
40107
|
+
case 12:
|
|
40108
|
+
message.engagementTimestampIso = reader.string();
|
|
40109
|
+
break;
|
|
40110
|
+
case 13:
|
|
40111
|
+
message.endTimestamp = reader.uint64();
|
|
40112
|
+
break;
|
|
40113
|
+
case 14:
|
|
40114
|
+
message.endTimestampIso = reader.string();
|
|
40115
|
+
break;
|
|
40116
|
+
case 15:
|
|
40117
|
+
message.endedGingerUserId = reader.string();
|
|
40118
|
+
break;
|
|
40119
|
+
default:
|
|
40120
|
+
reader.skipType(tag & 7);
|
|
40121
|
+
break;
|
|
40122
|
+
}
|
|
40123
|
+
}
|
|
40124
|
+
return message;
|
|
40125
|
+
};
|
|
40126
|
+
|
|
40127
|
+
/**
|
|
40128
|
+
* Decodes a CareSessionCompleted message from the specified reader or buffer, length delimited.
|
|
40129
|
+
* @function decodeDelimited
|
|
40130
|
+
* @memberof CareSessionCompleted
|
|
40131
|
+
* @static
|
|
40132
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40133
|
+
* @returns {CareSessionCompleted} CareSessionCompleted
|
|
40134
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40135
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40136
|
+
*/
|
|
40137
|
+
CareSessionCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
40138
|
+
if (!(reader instanceof $Reader))
|
|
40139
|
+
reader = new $Reader(reader);
|
|
40140
|
+
return this.decode(reader, reader.uint32());
|
|
40141
|
+
};
|
|
40142
|
+
|
|
40143
|
+
/**
|
|
40144
|
+
* Verifies a CareSessionCompleted message.
|
|
40145
|
+
* @function verify
|
|
40146
|
+
* @memberof CareSessionCompleted
|
|
40147
|
+
* @static
|
|
40148
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
40149
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40150
|
+
*/
|
|
40151
|
+
CareSessionCompleted.verify = function verify(message) {
|
|
40152
|
+
if (typeof message !== "object" || message === null)
|
|
40153
|
+
return "object expected";
|
|
40154
|
+
if (message.eventDetail != null && message.hasOwnProperty("eventDetail")) {
|
|
40155
|
+
var error = $root.EventDetail.verify(message.eventDetail);
|
|
40156
|
+
if (error)
|
|
40157
|
+
return "eventDetail." + error;
|
|
40158
|
+
}
|
|
40159
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
40160
|
+
if (!$util.isString(message.hsUserId))
|
|
40161
|
+
return "hsUserId: string expected";
|
|
40162
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
40163
|
+
if (!$util.isInteger(message.listenerId) && !(message.listenerId && $util.isInteger(message.listenerId.low) && $util.isInteger(message.listenerId.high)))
|
|
40164
|
+
return "listenerId: integer|Long expected";
|
|
40165
|
+
if (message.sessionId != null && message.hasOwnProperty("sessionId"))
|
|
40166
|
+
if (!$util.isInteger(message.sessionId) && !(message.sessionId && $util.isInteger(message.sessionId.low) && $util.isInteger(message.sessionId.high)))
|
|
40167
|
+
return "sessionId: integer|Long expected";
|
|
40168
|
+
if (message.careService != null && message.hasOwnProperty("careService"))
|
|
40169
|
+
switch (message.careService) {
|
|
40170
|
+
default:
|
|
40171
|
+
return "careService: enum value expected";
|
|
40172
|
+
case 0:
|
|
40173
|
+
case 1:
|
|
40174
|
+
case 2:
|
|
40175
|
+
case 3:
|
|
40176
|
+
break;
|
|
40177
|
+
}
|
|
40178
|
+
if (message.sessionType != null && message.hasOwnProperty("sessionType"))
|
|
40179
|
+
switch (message.sessionType) {
|
|
40180
|
+
default:
|
|
40181
|
+
return "sessionType: enum value expected";
|
|
40182
|
+
case 0:
|
|
40183
|
+
case 1:
|
|
40184
|
+
case 2:
|
|
40185
|
+
case 3:
|
|
40186
|
+
case 4:
|
|
40187
|
+
break;
|
|
40188
|
+
}
|
|
40189
|
+
if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
|
|
40190
|
+
switch (message.sessionFormat) {
|
|
40191
|
+
default:
|
|
40192
|
+
return "sessionFormat: enum value expected";
|
|
40193
|
+
case 0:
|
|
40194
|
+
case 1:
|
|
40195
|
+
case 2:
|
|
40196
|
+
break;
|
|
40197
|
+
}
|
|
40198
|
+
if (message.isScheduled != null && message.hasOwnProperty("isScheduled"))
|
|
40199
|
+
if (typeof message.isScheduled !== "boolean")
|
|
40200
|
+
return "isScheduled: boolean expected";
|
|
40201
|
+
if (message.startTimestamp != null && message.hasOwnProperty("startTimestamp"))
|
|
40202
|
+
if (!$util.isInteger(message.startTimestamp) && !(message.startTimestamp && $util.isInteger(message.startTimestamp.low) && $util.isInteger(message.startTimestamp.high)))
|
|
40203
|
+
return "startTimestamp: integer|Long expected";
|
|
40204
|
+
if (message.startTimestampIso != null && message.hasOwnProperty("startTimestampIso"))
|
|
40205
|
+
if (!$util.isString(message.startTimestampIso))
|
|
40206
|
+
return "startTimestampIso: string expected";
|
|
40207
|
+
if (message.engagementTimestamp != null && message.hasOwnProperty("engagementTimestamp"))
|
|
40208
|
+
if (!$util.isInteger(message.engagementTimestamp) && !(message.engagementTimestamp && $util.isInteger(message.engagementTimestamp.low) && $util.isInteger(message.engagementTimestamp.high)))
|
|
40209
|
+
return "engagementTimestamp: integer|Long expected";
|
|
40210
|
+
if (message.engagementTimestampIso != null && message.hasOwnProperty("engagementTimestampIso"))
|
|
40211
|
+
if (!$util.isString(message.engagementTimestampIso))
|
|
40212
|
+
return "engagementTimestampIso: string expected";
|
|
40213
|
+
if (message.endTimestamp != null && message.hasOwnProperty("endTimestamp"))
|
|
40214
|
+
if (!$util.isInteger(message.endTimestamp) && !(message.endTimestamp && $util.isInteger(message.endTimestamp.low) && $util.isInteger(message.endTimestamp.high)))
|
|
40215
|
+
return "endTimestamp: integer|Long expected";
|
|
40216
|
+
if (message.endTimestampIso != null && message.hasOwnProperty("endTimestampIso"))
|
|
40217
|
+
if (!$util.isString(message.endTimestampIso))
|
|
40218
|
+
return "endTimestampIso: string expected";
|
|
40219
|
+
if (message.endedGingerUserId != null && message.hasOwnProperty("endedGingerUserId"))
|
|
40220
|
+
if (!$util.isString(message.endedGingerUserId))
|
|
40221
|
+
return "endedGingerUserId: string expected";
|
|
40222
|
+
return null;
|
|
40223
|
+
};
|
|
40224
|
+
|
|
40225
|
+
/**
|
|
40226
|
+
* Creates a CareSessionCompleted message from a plain object. Also converts values to their respective internal types.
|
|
40227
|
+
* @function fromObject
|
|
40228
|
+
* @memberof CareSessionCompleted
|
|
40229
|
+
* @static
|
|
40230
|
+
* @param {Object.<string,*>} object Plain object
|
|
40231
|
+
* @returns {CareSessionCompleted} CareSessionCompleted
|
|
40232
|
+
*/
|
|
40233
|
+
CareSessionCompleted.fromObject = function fromObject(object) {
|
|
40234
|
+
if (object instanceof $root.CareSessionCompleted)
|
|
40235
|
+
return object;
|
|
40236
|
+
var message = new $root.CareSessionCompleted();
|
|
40237
|
+
if (object.eventDetail != null) {
|
|
40238
|
+
if (typeof object.eventDetail !== "object")
|
|
40239
|
+
throw TypeError(".CareSessionCompleted.eventDetail: object expected");
|
|
40240
|
+
message.eventDetail = $root.EventDetail.fromObject(object.eventDetail);
|
|
40241
|
+
}
|
|
40242
|
+
if (object.hsUserId != null)
|
|
40243
|
+
message.hsUserId = String(object.hsUserId);
|
|
40244
|
+
if (object.listenerId != null)
|
|
40245
|
+
if ($util.Long)
|
|
40246
|
+
(message.listenerId = $util.Long.fromValue(object.listenerId)).unsigned = false;
|
|
40247
|
+
else if (typeof object.listenerId === "string")
|
|
40248
|
+
message.listenerId = parseInt(object.listenerId, 10);
|
|
40249
|
+
else if (typeof object.listenerId === "number")
|
|
40250
|
+
message.listenerId = object.listenerId;
|
|
40251
|
+
else if (typeof object.listenerId === "object")
|
|
40252
|
+
message.listenerId = new $util.LongBits(object.listenerId.low >>> 0, object.listenerId.high >>> 0).toNumber();
|
|
40253
|
+
if (object.sessionId != null)
|
|
40254
|
+
if ($util.Long)
|
|
40255
|
+
(message.sessionId = $util.Long.fromValue(object.sessionId)).unsigned = false;
|
|
40256
|
+
else if (typeof object.sessionId === "string")
|
|
40257
|
+
message.sessionId = parseInt(object.sessionId, 10);
|
|
40258
|
+
else if (typeof object.sessionId === "number")
|
|
40259
|
+
message.sessionId = object.sessionId;
|
|
40260
|
+
else if (typeof object.sessionId === "object")
|
|
40261
|
+
message.sessionId = new $util.LongBits(object.sessionId.low >>> 0, object.sessionId.high >>> 0).toNumber();
|
|
40262
|
+
switch (object.careService) {
|
|
40263
|
+
case "CARE_SERVICE_UNKNOWN":
|
|
40264
|
+
case 0:
|
|
40265
|
+
message.careService = 0;
|
|
40266
|
+
break;
|
|
40267
|
+
case "CARE_SERVICE_COACHING":
|
|
40268
|
+
case 1:
|
|
40269
|
+
message.careService = 1;
|
|
40270
|
+
break;
|
|
40271
|
+
case "CARE_SERVICE_THERAPY":
|
|
40272
|
+
case 2:
|
|
40273
|
+
message.careService = 2;
|
|
40274
|
+
break;
|
|
40275
|
+
case "CARE_SERVICE_PSYCHIATRY":
|
|
40276
|
+
case 3:
|
|
40277
|
+
message.careService = 3;
|
|
40278
|
+
break;
|
|
40279
|
+
}
|
|
40280
|
+
switch (object.sessionType) {
|
|
40281
|
+
case "SESSION_TYPE_UNKNOWN":
|
|
40282
|
+
case 0:
|
|
40283
|
+
message.sessionType = 0;
|
|
40284
|
+
break;
|
|
40285
|
+
case "SESSION_TYPE_INTAKE":
|
|
40286
|
+
case 1:
|
|
40287
|
+
message.sessionType = 1;
|
|
40288
|
+
break;
|
|
40289
|
+
case "SESSION_TYPE_FOLLOW_UP":
|
|
40290
|
+
case 2:
|
|
40291
|
+
message.sessionType = 2;
|
|
40292
|
+
break;
|
|
40293
|
+
case "SESSION_TYPE_SI":
|
|
40294
|
+
case 3:
|
|
40295
|
+
message.sessionType = 3;
|
|
40296
|
+
break;
|
|
40297
|
+
case "SESSION_TYPE_DROP_IN":
|
|
40298
|
+
case 4:
|
|
40299
|
+
message.sessionType = 4;
|
|
40300
|
+
break;
|
|
40301
|
+
}
|
|
40302
|
+
switch (object.sessionFormat) {
|
|
40303
|
+
case "SESSION_FORMAT_UNKNOWN":
|
|
40304
|
+
case 0:
|
|
40305
|
+
message.sessionFormat = 0;
|
|
40306
|
+
break;
|
|
40307
|
+
case "SESSION_FORMAT_CHAT":
|
|
40308
|
+
case 1:
|
|
40309
|
+
message.sessionFormat = 1;
|
|
40310
|
+
break;
|
|
40311
|
+
case "SESSION_FORMAT_VIDEO":
|
|
40312
|
+
case 2:
|
|
40313
|
+
message.sessionFormat = 2;
|
|
40314
|
+
break;
|
|
40315
|
+
}
|
|
40316
|
+
if (object.isScheduled != null)
|
|
40317
|
+
message.isScheduled = Boolean(object.isScheduled);
|
|
40318
|
+
if (object.startTimestamp != null)
|
|
40319
|
+
if ($util.Long)
|
|
40320
|
+
(message.startTimestamp = $util.Long.fromValue(object.startTimestamp)).unsigned = true;
|
|
40321
|
+
else if (typeof object.startTimestamp === "string")
|
|
40322
|
+
message.startTimestamp = parseInt(object.startTimestamp, 10);
|
|
40323
|
+
else if (typeof object.startTimestamp === "number")
|
|
40324
|
+
message.startTimestamp = object.startTimestamp;
|
|
40325
|
+
else if (typeof object.startTimestamp === "object")
|
|
40326
|
+
message.startTimestamp = new $util.LongBits(object.startTimestamp.low >>> 0, object.startTimestamp.high >>> 0).toNumber(true);
|
|
40327
|
+
if (object.startTimestampIso != null)
|
|
40328
|
+
message.startTimestampIso = String(object.startTimestampIso);
|
|
40329
|
+
if (object.engagementTimestamp != null)
|
|
40330
|
+
if ($util.Long)
|
|
40331
|
+
(message.engagementTimestamp = $util.Long.fromValue(object.engagementTimestamp)).unsigned = true;
|
|
40332
|
+
else if (typeof object.engagementTimestamp === "string")
|
|
40333
|
+
message.engagementTimestamp = parseInt(object.engagementTimestamp, 10);
|
|
40334
|
+
else if (typeof object.engagementTimestamp === "number")
|
|
40335
|
+
message.engagementTimestamp = object.engagementTimestamp;
|
|
40336
|
+
else if (typeof object.engagementTimestamp === "object")
|
|
40337
|
+
message.engagementTimestamp = new $util.LongBits(object.engagementTimestamp.low >>> 0, object.engagementTimestamp.high >>> 0).toNumber(true);
|
|
40338
|
+
if (object.engagementTimestampIso != null)
|
|
40339
|
+
message.engagementTimestampIso = String(object.engagementTimestampIso);
|
|
40340
|
+
if (object.endTimestamp != null)
|
|
40341
|
+
if ($util.Long)
|
|
40342
|
+
(message.endTimestamp = $util.Long.fromValue(object.endTimestamp)).unsigned = true;
|
|
40343
|
+
else if (typeof object.endTimestamp === "string")
|
|
40344
|
+
message.endTimestamp = parseInt(object.endTimestamp, 10);
|
|
40345
|
+
else if (typeof object.endTimestamp === "number")
|
|
40346
|
+
message.endTimestamp = object.endTimestamp;
|
|
40347
|
+
else if (typeof object.endTimestamp === "object")
|
|
40348
|
+
message.endTimestamp = new $util.LongBits(object.endTimestamp.low >>> 0, object.endTimestamp.high >>> 0).toNumber(true);
|
|
40349
|
+
if (object.endTimestampIso != null)
|
|
40350
|
+
message.endTimestampIso = String(object.endTimestampIso);
|
|
40351
|
+
if (object.endedGingerUserId != null)
|
|
40352
|
+
message.endedGingerUserId = String(object.endedGingerUserId);
|
|
40353
|
+
return message;
|
|
40354
|
+
};
|
|
40355
|
+
|
|
40356
|
+
/**
|
|
40357
|
+
* Creates a plain object from a CareSessionCompleted message. Also converts values to other types if specified.
|
|
40358
|
+
* @function toObject
|
|
40359
|
+
* @memberof CareSessionCompleted
|
|
40360
|
+
* @static
|
|
40361
|
+
* @param {CareSessionCompleted} message CareSessionCompleted
|
|
40362
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40363
|
+
* @returns {Object.<string,*>} Plain object
|
|
40364
|
+
*/
|
|
40365
|
+
CareSessionCompleted.toObject = function toObject(message, options) {
|
|
40366
|
+
if (!options)
|
|
40367
|
+
options = {};
|
|
40368
|
+
var object = {};
|
|
40369
|
+
if (options.defaults) {
|
|
40370
|
+
object.eventDetail = null;
|
|
40371
|
+
object.hsUserId = "";
|
|
40372
|
+
if ($util.Long) {
|
|
40373
|
+
var long = new $util.Long(0, 0, false);
|
|
40374
|
+
object.listenerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
40375
|
+
} else
|
|
40376
|
+
object.listenerId = options.longs === String ? "0" : 0;
|
|
40377
|
+
if ($util.Long) {
|
|
40378
|
+
var long = new $util.Long(0, 0, false);
|
|
40379
|
+
object.sessionId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
40380
|
+
} else
|
|
40381
|
+
object.sessionId = options.longs === String ? "0" : 0;
|
|
40382
|
+
object.careService = options.enums === String ? "CARE_SERVICE_UNKNOWN" : 0;
|
|
40383
|
+
object.sessionType = options.enums === String ? "SESSION_TYPE_UNKNOWN" : 0;
|
|
40384
|
+
object.sessionFormat = options.enums === String ? "SESSION_FORMAT_UNKNOWN" : 0;
|
|
40385
|
+
object.isScheduled = false;
|
|
40386
|
+
if ($util.Long) {
|
|
40387
|
+
var long = new $util.Long(0, 0, true);
|
|
40388
|
+
object.startTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
40389
|
+
} else
|
|
40390
|
+
object.startTimestamp = options.longs === String ? "0" : 0;
|
|
40391
|
+
object.startTimestampIso = "";
|
|
40392
|
+
if ($util.Long) {
|
|
40393
|
+
var long = new $util.Long(0, 0, true);
|
|
40394
|
+
object.engagementTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
40395
|
+
} else
|
|
40396
|
+
object.engagementTimestamp = options.longs === String ? "0" : 0;
|
|
40397
|
+
object.engagementTimestampIso = "";
|
|
40398
|
+
if ($util.Long) {
|
|
40399
|
+
var long = new $util.Long(0, 0, true);
|
|
40400
|
+
object.endTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
40401
|
+
} else
|
|
40402
|
+
object.endTimestamp = options.longs === String ? "0" : 0;
|
|
40403
|
+
object.endTimestampIso = "";
|
|
40404
|
+
object.endedGingerUserId = "";
|
|
40405
|
+
}
|
|
40406
|
+
if (message.eventDetail != null && message.hasOwnProperty("eventDetail"))
|
|
40407
|
+
object.eventDetail = $root.EventDetail.toObject(message.eventDetail, options);
|
|
40408
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
40409
|
+
object.hsUserId = message.hsUserId;
|
|
40410
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
40411
|
+
if (typeof message.listenerId === "number")
|
|
40412
|
+
object.listenerId = options.longs === String ? String(message.listenerId) : message.listenerId;
|
|
40413
|
+
else
|
|
40414
|
+
object.listenerId = options.longs === String ? $util.Long.prototype.toString.call(message.listenerId) : options.longs === Number ? new $util.LongBits(message.listenerId.low >>> 0, message.listenerId.high >>> 0).toNumber() : message.listenerId;
|
|
40415
|
+
if (message.sessionId != null && message.hasOwnProperty("sessionId"))
|
|
40416
|
+
if (typeof message.sessionId === "number")
|
|
40417
|
+
object.sessionId = options.longs === String ? String(message.sessionId) : message.sessionId;
|
|
40418
|
+
else
|
|
40419
|
+
object.sessionId = options.longs === String ? $util.Long.prototype.toString.call(message.sessionId) : options.longs === Number ? new $util.LongBits(message.sessionId.low >>> 0, message.sessionId.high >>> 0).toNumber() : message.sessionId;
|
|
40420
|
+
if (message.careService != null && message.hasOwnProperty("careService"))
|
|
40421
|
+
object.careService = options.enums === String ? $root.CareService[message.careService] : message.careService;
|
|
40422
|
+
if (message.sessionType != null && message.hasOwnProperty("sessionType"))
|
|
40423
|
+
object.sessionType = options.enums === String ? $root.SessionType[message.sessionType] : message.sessionType;
|
|
40424
|
+
if (message.sessionFormat != null && message.hasOwnProperty("sessionFormat"))
|
|
40425
|
+
object.sessionFormat = options.enums === String ? $root.SessionFormat[message.sessionFormat] : message.sessionFormat;
|
|
40426
|
+
if (message.isScheduled != null && message.hasOwnProperty("isScheduled"))
|
|
40427
|
+
object.isScheduled = message.isScheduled;
|
|
40428
|
+
if (message.startTimestamp != null && message.hasOwnProperty("startTimestamp"))
|
|
40429
|
+
if (typeof message.startTimestamp === "number")
|
|
40430
|
+
object.startTimestamp = options.longs === String ? String(message.startTimestamp) : message.startTimestamp;
|
|
40431
|
+
else
|
|
40432
|
+
object.startTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.startTimestamp) : options.longs === Number ? new $util.LongBits(message.startTimestamp.low >>> 0, message.startTimestamp.high >>> 0).toNumber(true) : message.startTimestamp;
|
|
40433
|
+
if (message.startTimestampIso != null && message.hasOwnProperty("startTimestampIso"))
|
|
40434
|
+
object.startTimestampIso = message.startTimestampIso;
|
|
40435
|
+
if (message.engagementTimestamp != null && message.hasOwnProperty("engagementTimestamp"))
|
|
40436
|
+
if (typeof message.engagementTimestamp === "number")
|
|
40437
|
+
object.engagementTimestamp = options.longs === String ? String(message.engagementTimestamp) : message.engagementTimestamp;
|
|
40438
|
+
else
|
|
40439
|
+
object.engagementTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.engagementTimestamp) : options.longs === Number ? new $util.LongBits(message.engagementTimestamp.low >>> 0, message.engagementTimestamp.high >>> 0).toNumber(true) : message.engagementTimestamp;
|
|
40440
|
+
if (message.engagementTimestampIso != null && message.hasOwnProperty("engagementTimestampIso"))
|
|
40441
|
+
object.engagementTimestampIso = message.engagementTimestampIso;
|
|
40442
|
+
if (message.endTimestamp != null && message.hasOwnProperty("endTimestamp"))
|
|
40443
|
+
if (typeof message.endTimestamp === "number")
|
|
40444
|
+
object.endTimestamp = options.longs === String ? String(message.endTimestamp) : message.endTimestamp;
|
|
40445
|
+
else
|
|
40446
|
+
object.endTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.endTimestamp) : options.longs === Number ? new $util.LongBits(message.endTimestamp.low >>> 0, message.endTimestamp.high >>> 0).toNumber(true) : message.endTimestamp;
|
|
40447
|
+
if (message.endTimestampIso != null && message.hasOwnProperty("endTimestampIso"))
|
|
40448
|
+
object.endTimestampIso = message.endTimestampIso;
|
|
40449
|
+
if (message.endedGingerUserId != null && message.hasOwnProperty("endedGingerUserId"))
|
|
40450
|
+
object.endedGingerUserId = message.endedGingerUserId;
|
|
40451
|
+
return object;
|
|
40452
|
+
};
|
|
40453
|
+
|
|
40454
|
+
/**
|
|
40455
|
+
* Converts this CareSessionCompleted to JSON.
|
|
40456
|
+
* @function toJSON
|
|
40457
|
+
* @memberof CareSessionCompleted
|
|
40458
|
+
* @instance
|
|
40459
|
+
* @returns {Object.<string,*>} JSON object
|
|
40460
|
+
*/
|
|
40461
|
+
CareSessionCompleted.prototype.toJSON = function toJSON() {
|
|
40462
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40463
|
+
};
|
|
40464
|
+
|
|
40465
|
+
return CareSessionCompleted;
|
|
40466
|
+
})();
|
|
40467
|
+
|
|
40468
|
+
/**
|
|
40469
|
+
* CareAvailabilityType enum.
|
|
40470
|
+
* @name CareAvailabilityType
|
|
40471
|
+
* @enum {string}
|
|
40472
|
+
* @property {number} CARE_AVAILABILITY_TYPE_UNKNOWN=0 CARE_AVAILABILITY_TYPE_UNKNOWN value
|
|
40473
|
+
* @property {number} CARE_AVAILABILITY_TYPE_CHAT=1 CARE_AVAILABILITY_TYPE_CHAT value
|
|
40474
|
+
* @property {number} CARE_AVAILABILITY_TYPE_VIDEO=2 CARE_AVAILABILITY_TYPE_VIDEO value
|
|
40475
|
+
*/
|
|
40476
|
+
$root.CareAvailabilityType = (function() {
|
|
40477
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
40478
|
+
values[valuesById[0] = "CARE_AVAILABILITY_TYPE_UNKNOWN"] = 0;
|
|
40479
|
+
values[valuesById[1] = "CARE_AVAILABILITY_TYPE_CHAT"] = 1;
|
|
40480
|
+
values[valuesById[2] = "CARE_AVAILABILITY_TYPE_VIDEO"] = 2;
|
|
40481
|
+
return values;
|
|
40482
|
+
})();
|
|
40483
|
+
|
|
40484
|
+
$root.CareAvailabilityOffered = (function() {
|
|
40485
|
+
|
|
40486
|
+
/**
|
|
40487
|
+
* Properties of a CareAvailabilityOffered.
|
|
40488
|
+
* @name ICareAvailabilityOffered
|
|
40489
|
+
* @interface ICareAvailabilityOffered
|
|
40490
|
+
* @property {number|Long|null} [listenerId] CareAvailabilityOffered listenerId
|
|
40491
|
+
* @property {string|null} [careWebUserId] CareAvailabilityOffered careWebUserId
|
|
40492
|
+
* @property {string|null} [hsUserId] CareAvailabilityOffered hsUserId
|
|
40493
|
+
* @property {CareService|null} [careService] CareAvailabilityOffered careService
|
|
40494
|
+
* @property {CareAvailabilityType|null} [availabilityType] CareAvailabilityOffered availabilityType
|
|
40495
|
+
* @property {number|Long|null} [searchStart] CareAvailabilityOffered searchStart
|
|
40496
|
+
* @property {number|Long|null} [searchEnd] CareAvailabilityOffered searchEnd
|
|
40497
|
+
* @property {number|null} [availabilitySlotCount] CareAvailabilityOffered availabilitySlotCount
|
|
40498
|
+
* @property {number|Long|null} [earliestAvailability] CareAvailabilityOffered earliestAvailability
|
|
40499
|
+
* @property {string|null} [earliestAvailabilityIso] CareAvailabilityOffered earliestAvailabilityIso
|
|
40500
|
+
* @property {number|null} [earliestAvailabilityHoursAhead] CareAvailabilityOffered earliestAvailabilityHoursAhead
|
|
40501
|
+
* @property {number|Long|null} [latestAvailability] CareAvailabilityOffered latestAvailability
|
|
40502
|
+
* @property {string|null} [latestAvailabilityIso] CareAvailabilityOffered latestAvailabilityIso
|
|
40503
|
+
* @property {number|null} [latestAvailabilityHoursAhead] CareAvailabilityOffered latestAvailabilityHoursAhead
|
|
40504
|
+
*/
|
|
40505
|
+
|
|
40506
|
+
/**
|
|
40507
|
+
* Constructs a new CareAvailabilityOffered.
|
|
40508
|
+
* @name CareAvailabilityOffered
|
|
40509
|
+
* @classdesc Represents a CareAvailabilityOffered.
|
|
40510
|
+
* @implements ICareAvailabilityOffered
|
|
40511
|
+
* @constructor
|
|
40512
|
+
* @param {ICareAvailabilityOffered=} [properties] Properties to set
|
|
40513
|
+
*/
|
|
40514
|
+
function CareAvailabilityOffered(properties) {
|
|
40515
|
+
if (properties)
|
|
40516
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
40517
|
+
if (properties[keys[i]] != null)
|
|
40518
|
+
this[keys[i]] = properties[keys[i]];
|
|
40519
|
+
}
|
|
40520
|
+
|
|
40521
|
+
/**
|
|
40522
|
+
* CareAvailabilityOffered listenerId.
|
|
40523
|
+
* @member {number|Long} listenerId
|
|
40524
|
+
* @memberof CareAvailabilityOffered
|
|
40525
|
+
* @instance
|
|
40526
|
+
*/
|
|
40527
|
+
CareAvailabilityOffered.prototype.listenerId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
40528
|
+
|
|
40529
|
+
/**
|
|
40530
|
+
* CareAvailabilityOffered careWebUserId.
|
|
40531
|
+
* @member {string} careWebUserId
|
|
40532
|
+
* @memberof CareAvailabilityOffered
|
|
40533
|
+
* @instance
|
|
40534
|
+
*/
|
|
40535
|
+
CareAvailabilityOffered.prototype.careWebUserId = "";
|
|
40536
|
+
|
|
40537
|
+
/**
|
|
40538
|
+
* CareAvailabilityOffered hsUserId.
|
|
40539
|
+
* @member {string} hsUserId
|
|
40540
|
+
* @memberof CareAvailabilityOffered
|
|
40541
|
+
* @instance
|
|
40542
|
+
*/
|
|
40543
|
+
CareAvailabilityOffered.prototype.hsUserId = "";
|
|
40544
|
+
|
|
40545
|
+
/**
|
|
40546
|
+
* CareAvailabilityOffered careService.
|
|
40547
|
+
* @member {CareService} careService
|
|
40548
|
+
* @memberof CareAvailabilityOffered
|
|
40549
|
+
* @instance
|
|
40550
|
+
*/
|
|
40551
|
+
CareAvailabilityOffered.prototype.careService = 0;
|
|
40552
|
+
|
|
40553
|
+
/**
|
|
40554
|
+
* CareAvailabilityOffered availabilityType.
|
|
40555
|
+
* @member {CareAvailabilityType} availabilityType
|
|
40556
|
+
* @memberof CareAvailabilityOffered
|
|
40557
|
+
* @instance
|
|
40558
|
+
*/
|
|
40559
|
+
CareAvailabilityOffered.prototype.availabilityType = 0;
|
|
40560
|
+
|
|
40561
|
+
/**
|
|
40562
|
+
* CareAvailabilityOffered searchStart.
|
|
40563
|
+
* @member {number|Long} searchStart
|
|
40564
|
+
* @memberof CareAvailabilityOffered
|
|
40565
|
+
* @instance
|
|
40566
|
+
*/
|
|
40567
|
+
CareAvailabilityOffered.prototype.searchStart = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
40568
|
+
|
|
40569
|
+
/**
|
|
40570
|
+
* CareAvailabilityOffered searchEnd.
|
|
40571
|
+
* @member {number|Long} searchEnd
|
|
40572
|
+
* @memberof CareAvailabilityOffered
|
|
40573
|
+
* @instance
|
|
40574
|
+
*/
|
|
40575
|
+
CareAvailabilityOffered.prototype.searchEnd = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
40576
|
+
|
|
40577
|
+
/**
|
|
40578
|
+
* CareAvailabilityOffered availabilitySlotCount.
|
|
40579
|
+
* @member {number} availabilitySlotCount
|
|
40580
|
+
* @memberof CareAvailabilityOffered
|
|
40581
|
+
* @instance
|
|
40582
|
+
*/
|
|
40583
|
+
CareAvailabilityOffered.prototype.availabilitySlotCount = 0;
|
|
40584
|
+
|
|
40585
|
+
/**
|
|
40586
|
+
* CareAvailabilityOffered earliestAvailability.
|
|
40587
|
+
* @member {number|Long} earliestAvailability
|
|
40588
|
+
* @memberof CareAvailabilityOffered
|
|
40589
|
+
* @instance
|
|
40590
|
+
*/
|
|
40591
|
+
CareAvailabilityOffered.prototype.earliestAvailability = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
40592
|
+
|
|
40593
|
+
/**
|
|
40594
|
+
* CareAvailabilityOffered earliestAvailabilityIso.
|
|
40595
|
+
* @member {string} earliestAvailabilityIso
|
|
40596
|
+
* @memberof CareAvailabilityOffered
|
|
40597
|
+
* @instance
|
|
40598
|
+
*/
|
|
40599
|
+
CareAvailabilityOffered.prototype.earliestAvailabilityIso = "";
|
|
40600
|
+
|
|
40601
|
+
/**
|
|
40602
|
+
* CareAvailabilityOffered earliestAvailabilityHoursAhead.
|
|
40603
|
+
* @member {number} earliestAvailabilityHoursAhead
|
|
40604
|
+
* @memberof CareAvailabilityOffered
|
|
40605
|
+
* @instance
|
|
40606
|
+
*/
|
|
40607
|
+
CareAvailabilityOffered.prototype.earliestAvailabilityHoursAhead = 0;
|
|
40608
|
+
|
|
40609
|
+
/**
|
|
40610
|
+
* CareAvailabilityOffered latestAvailability.
|
|
40611
|
+
* @member {number|Long} latestAvailability
|
|
40612
|
+
* @memberof CareAvailabilityOffered
|
|
40613
|
+
* @instance
|
|
40614
|
+
*/
|
|
40615
|
+
CareAvailabilityOffered.prototype.latestAvailability = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
40616
|
+
|
|
40617
|
+
/**
|
|
40618
|
+
* CareAvailabilityOffered latestAvailabilityIso.
|
|
40619
|
+
* @member {string} latestAvailabilityIso
|
|
40620
|
+
* @memberof CareAvailabilityOffered
|
|
40621
|
+
* @instance
|
|
40622
|
+
*/
|
|
40623
|
+
CareAvailabilityOffered.prototype.latestAvailabilityIso = "";
|
|
40624
|
+
|
|
40625
|
+
/**
|
|
40626
|
+
* CareAvailabilityOffered latestAvailabilityHoursAhead.
|
|
40627
|
+
* @member {number} latestAvailabilityHoursAhead
|
|
40628
|
+
* @memberof CareAvailabilityOffered
|
|
40629
|
+
* @instance
|
|
40630
|
+
*/
|
|
40631
|
+
CareAvailabilityOffered.prototype.latestAvailabilityHoursAhead = 0;
|
|
40632
|
+
|
|
40633
|
+
/**
|
|
40634
|
+
* Creates a new CareAvailabilityOffered instance using the specified properties.
|
|
40635
|
+
* @function create
|
|
40636
|
+
* @memberof CareAvailabilityOffered
|
|
40637
|
+
* @static
|
|
40638
|
+
* @param {ICareAvailabilityOffered=} [properties] Properties to set
|
|
40639
|
+
* @returns {CareAvailabilityOffered} CareAvailabilityOffered instance
|
|
40640
|
+
*/
|
|
40641
|
+
CareAvailabilityOffered.create = function create(properties) {
|
|
40642
|
+
return new CareAvailabilityOffered(properties);
|
|
40643
|
+
};
|
|
40644
|
+
|
|
40645
|
+
/**
|
|
40646
|
+
* Encodes the specified CareAvailabilityOffered message. Does not implicitly {@link CareAvailabilityOffered.verify|verify} messages.
|
|
40647
|
+
* @function encode
|
|
40648
|
+
* @memberof CareAvailabilityOffered
|
|
40649
|
+
* @static
|
|
40650
|
+
* @param {ICareAvailabilityOffered} message CareAvailabilityOffered message or plain object to encode
|
|
40651
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40652
|
+
* @returns {$protobuf.Writer} Writer
|
|
40653
|
+
*/
|
|
40654
|
+
CareAvailabilityOffered.encode = function encode(message, writer) {
|
|
40655
|
+
if (!writer)
|
|
40656
|
+
writer = $Writer.create();
|
|
40657
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
40658
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.listenerId);
|
|
40659
|
+
if (message.careWebUserId != null && message.hasOwnProperty("careWebUserId"))
|
|
40660
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.careWebUserId);
|
|
40661
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
40662
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
40663
|
+
if (message.careService != null && message.hasOwnProperty("careService"))
|
|
40664
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.careService);
|
|
40665
|
+
if (message.availabilityType != null && message.hasOwnProperty("availabilityType"))
|
|
40666
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.availabilityType);
|
|
40667
|
+
if (message.searchStart != null && message.hasOwnProperty("searchStart"))
|
|
40668
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.searchStart);
|
|
40669
|
+
if (message.searchEnd != null && message.hasOwnProperty("searchEnd"))
|
|
40670
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.searchEnd);
|
|
40671
|
+
if (message.availabilitySlotCount != null && message.hasOwnProperty("availabilitySlotCount"))
|
|
40672
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.availabilitySlotCount);
|
|
40673
|
+
if (message.earliestAvailability != null && message.hasOwnProperty("earliestAvailability"))
|
|
40674
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.earliestAvailability);
|
|
40675
|
+
if (message.earliestAvailabilityIso != null && message.hasOwnProperty("earliestAvailabilityIso"))
|
|
40676
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.earliestAvailabilityIso);
|
|
40677
|
+
if (message.earliestAvailabilityHoursAhead != null && message.hasOwnProperty("earliestAvailabilityHoursAhead"))
|
|
40678
|
+
writer.uint32(/* id 11, wireType 5 =*/93).float(message.earliestAvailabilityHoursAhead);
|
|
40679
|
+
if (message.latestAvailability != null && message.hasOwnProperty("latestAvailability"))
|
|
40680
|
+
writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.latestAvailability);
|
|
40681
|
+
if (message.latestAvailabilityIso != null && message.hasOwnProperty("latestAvailabilityIso"))
|
|
40682
|
+
writer.uint32(/* id 13, wireType 2 =*/106).string(message.latestAvailabilityIso);
|
|
40683
|
+
if (message.latestAvailabilityHoursAhead != null && message.hasOwnProperty("latestAvailabilityHoursAhead"))
|
|
40684
|
+
writer.uint32(/* id 14, wireType 5 =*/117).float(message.latestAvailabilityHoursAhead);
|
|
40685
|
+
return writer;
|
|
40686
|
+
};
|
|
40687
|
+
|
|
40688
|
+
/**
|
|
40689
|
+
* Encodes the specified CareAvailabilityOffered message, length delimited. Does not implicitly {@link CareAvailabilityOffered.verify|verify} messages.
|
|
40690
|
+
* @function encodeDelimited
|
|
40691
|
+
* @memberof CareAvailabilityOffered
|
|
40692
|
+
* @static
|
|
40693
|
+
* @param {ICareAvailabilityOffered} message CareAvailabilityOffered message or plain object to encode
|
|
40694
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
40695
|
+
* @returns {$protobuf.Writer} Writer
|
|
40696
|
+
*/
|
|
40697
|
+
CareAvailabilityOffered.encodeDelimited = function encodeDelimited(message, writer) {
|
|
40698
|
+
return this.encode(message, writer).ldelim();
|
|
40699
|
+
};
|
|
40700
|
+
|
|
40701
|
+
/**
|
|
40702
|
+
* Decodes a CareAvailabilityOffered message from the specified reader or buffer.
|
|
40703
|
+
* @function decode
|
|
40704
|
+
* @memberof CareAvailabilityOffered
|
|
40705
|
+
* @static
|
|
40706
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40707
|
+
* @param {number} [length] Message length if known beforehand
|
|
40708
|
+
* @returns {CareAvailabilityOffered} CareAvailabilityOffered
|
|
40709
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40710
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40711
|
+
*/
|
|
40712
|
+
CareAvailabilityOffered.decode = function decode(reader, length) {
|
|
40713
|
+
if (!(reader instanceof $Reader))
|
|
40714
|
+
reader = $Reader.create(reader);
|
|
40715
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CareAvailabilityOffered();
|
|
40716
|
+
while (reader.pos < end) {
|
|
40717
|
+
var tag = reader.uint32();
|
|
40718
|
+
switch (tag >>> 3) {
|
|
40719
|
+
case 1:
|
|
40720
|
+
message.listenerId = reader.int64();
|
|
40721
|
+
break;
|
|
40722
|
+
case 2:
|
|
40723
|
+
message.careWebUserId = reader.string();
|
|
40724
|
+
break;
|
|
40725
|
+
case 3:
|
|
40726
|
+
message.hsUserId = reader.string();
|
|
40727
|
+
break;
|
|
40728
|
+
case 4:
|
|
40729
|
+
message.careService = reader.int32();
|
|
40730
|
+
break;
|
|
40731
|
+
case 5:
|
|
40732
|
+
message.availabilityType = reader.int32();
|
|
40733
|
+
break;
|
|
40734
|
+
case 6:
|
|
40735
|
+
message.searchStart = reader.uint64();
|
|
40736
|
+
break;
|
|
40737
|
+
case 7:
|
|
40738
|
+
message.searchEnd = reader.uint64();
|
|
40739
|
+
break;
|
|
40740
|
+
case 8:
|
|
40741
|
+
message.availabilitySlotCount = reader.int32();
|
|
40742
|
+
break;
|
|
40743
|
+
case 9:
|
|
40744
|
+
message.earliestAvailability = reader.uint64();
|
|
40745
|
+
break;
|
|
40746
|
+
case 10:
|
|
40747
|
+
message.earliestAvailabilityIso = reader.string();
|
|
40748
|
+
break;
|
|
40749
|
+
case 11:
|
|
40750
|
+
message.earliestAvailabilityHoursAhead = reader.float();
|
|
40751
|
+
break;
|
|
40752
|
+
case 12:
|
|
40753
|
+
message.latestAvailability = reader.uint64();
|
|
40754
|
+
break;
|
|
40755
|
+
case 13:
|
|
40756
|
+
message.latestAvailabilityIso = reader.string();
|
|
40757
|
+
break;
|
|
40758
|
+
case 14:
|
|
40759
|
+
message.latestAvailabilityHoursAhead = reader.float();
|
|
40760
|
+
break;
|
|
40761
|
+
default:
|
|
40762
|
+
reader.skipType(tag & 7);
|
|
40763
|
+
break;
|
|
40764
|
+
}
|
|
40765
|
+
}
|
|
40766
|
+
return message;
|
|
40767
|
+
};
|
|
40768
|
+
|
|
40769
|
+
/**
|
|
40770
|
+
* Decodes a CareAvailabilityOffered message from the specified reader or buffer, length delimited.
|
|
40771
|
+
* @function decodeDelimited
|
|
40772
|
+
* @memberof CareAvailabilityOffered
|
|
40773
|
+
* @static
|
|
40774
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40775
|
+
* @returns {CareAvailabilityOffered} CareAvailabilityOffered
|
|
40776
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40777
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40778
|
+
*/
|
|
40779
|
+
CareAvailabilityOffered.decodeDelimited = function decodeDelimited(reader) {
|
|
40780
|
+
if (!(reader instanceof $Reader))
|
|
40781
|
+
reader = new $Reader(reader);
|
|
40782
|
+
return this.decode(reader, reader.uint32());
|
|
40783
|
+
};
|
|
40784
|
+
|
|
40785
|
+
/**
|
|
40786
|
+
* Verifies a CareAvailabilityOffered message.
|
|
40787
|
+
* @function verify
|
|
40788
|
+
* @memberof CareAvailabilityOffered
|
|
40789
|
+
* @static
|
|
40790
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
40791
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40792
|
+
*/
|
|
40793
|
+
CareAvailabilityOffered.verify = function verify(message) {
|
|
40794
|
+
if (typeof message !== "object" || message === null)
|
|
40795
|
+
return "object expected";
|
|
40796
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
40797
|
+
if (!$util.isInteger(message.listenerId) && !(message.listenerId && $util.isInteger(message.listenerId.low) && $util.isInteger(message.listenerId.high)))
|
|
40798
|
+
return "listenerId: integer|Long expected";
|
|
40799
|
+
if (message.careWebUserId != null && message.hasOwnProperty("careWebUserId"))
|
|
40800
|
+
if (!$util.isString(message.careWebUserId))
|
|
40801
|
+
return "careWebUserId: string expected";
|
|
40802
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
40803
|
+
if (!$util.isString(message.hsUserId))
|
|
40804
|
+
return "hsUserId: string expected";
|
|
40805
|
+
if (message.careService != null && message.hasOwnProperty("careService"))
|
|
40806
|
+
switch (message.careService) {
|
|
40807
|
+
default:
|
|
40808
|
+
return "careService: enum value expected";
|
|
40809
|
+
case 0:
|
|
40810
|
+
case 1:
|
|
40811
|
+
case 2:
|
|
40812
|
+
case 3:
|
|
40813
|
+
break;
|
|
40814
|
+
}
|
|
40815
|
+
if (message.availabilityType != null && message.hasOwnProperty("availabilityType"))
|
|
40816
|
+
switch (message.availabilityType) {
|
|
40817
|
+
default:
|
|
40818
|
+
return "availabilityType: enum value expected";
|
|
40819
|
+
case 0:
|
|
40820
|
+
case 1:
|
|
40821
|
+
case 2:
|
|
40822
|
+
break;
|
|
40823
|
+
}
|
|
40824
|
+
if (message.searchStart != null && message.hasOwnProperty("searchStart"))
|
|
40825
|
+
if (!$util.isInteger(message.searchStart) && !(message.searchStart && $util.isInteger(message.searchStart.low) && $util.isInteger(message.searchStart.high)))
|
|
40826
|
+
return "searchStart: integer|Long expected";
|
|
40827
|
+
if (message.searchEnd != null && message.hasOwnProperty("searchEnd"))
|
|
40828
|
+
if (!$util.isInteger(message.searchEnd) && !(message.searchEnd && $util.isInteger(message.searchEnd.low) && $util.isInteger(message.searchEnd.high)))
|
|
40829
|
+
return "searchEnd: integer|Long expected";
|
|
40830
|
+
if (message.availabilitySlotCount != null && message.hasOwnProperty("availabilitySlotCount"))
|
|
40831
|
+
if (!$util.isInteger(message.availabilitySlotCount))
|
|
40832
|
+
return "availabilitySlotCount: integer expected";
|
|
40833
|
+
if (message.earliestAvailability != null && message.hasOwnProperty("earliestAvailability"))
|
|
40834
|
+
if (!$util.isInteger(message.earliestAvailability) && !(message.earliestAvailability && $util.isInteger(message.earliestAvailability.low) && $util.isInteger(message.earliestAvailability.high)))
|
|
40835
|
+
return "earliestAvailability: integer|Long expected";
|
|
40836
|
+
if (message.earliestAvailabilityIso != null && message.hasOwnProperty("earliestAvailabilityIso"))
|
|
40837
|
+
if (!$util.isString(message.earliestAvailabilityIso))
|
|
40838
|
+
return "earliestAvailabilityIso: string expected";
|
|
40839
|
+
if (message.earliestAvailabilityHoursAhead != null && message.hasOwnProperty("earliestAvailabilityHoursAhead"))
|
|
40840
|
+
if (typeof message.earliestAvailabilityHoursAhead !== "number")
|
|
40841
|
+
return "earliestAvailabilityHoursAhead: number expected";
|
|
40842
|
+
if (message.latestAvailability != null && message.hasOwnProperty("latestAvailability"))
|
|
40843
|
+
if (!$util.isInteger(message.latestAvailability) && !(message.latestAvailability && $util.isInteger(message.latestAvailability.low) && $util.isInteger(message.latestAvailability.high)))
|
|
40844
|
+
return "latestAvailability: integer|Long expected";
|
|
40845
|
+
if (message.latestAvailabilityIso != null && message.hasOwnProperty("latestAvailabilityIso"))
|
|
40846
|
+
if (!$util.isString(message.latestAvailabilityIso))
|
|
40847
|
+
return "latestAvailabilityIso: string expected";
|
|
40848
|
+
if (message.latestAvailabilityHoursAhead != null && message.hasOwnProperty("latestAvailabilityHoursAhead"))
|
|
40849
|
+
if (typeof message.latestAvailabilityHoursAhead !== "number")
|
|
40850
|
+
return "latestAvailabilityHoursAhead: number expected";
|
|
40851
|
+
return null;
|
|
40852
|
+
};
|
|
40853
|
+
|
|
40854
|
+
/**
|
|
40855
|
+
* Creates a CareAvailabilityOffered message from a plain object. Also converts values to their respective internal types.
|
|
40856
|
+
* @function fromObject
|
|
40857
|
+
* @memberof CareAvailabilityOffered
|
|
40858
|
+
* @static
|
|
40859
|
+
* @param {Object.<string,*>} object Plain object
|
|
40860
|
+
* @returns {CareAvailabilityOffered} CareAvailabilityOffered
|
|
40861
|
+
*/
|
|
40862
|
+
CareAvailabilityOffered.fromObject = function fromObject(object) {
|
|
40863
|
+
if (object instanceof $root.CareAvailabilityOffered)
|
|
40864
|
+
return object;
|
|
40865
|
+
var message = new $root.CareAvailabilityOffered();
|
|
40866
|
+
if (object.listenerId != null)
|
|
40867
|
+
if ($util.Long)
|
|
40868
|
+
(message.listenerId = $util.Long.fromValue(object.listenerId)).unsigned = false;
|
|
40869
|
+
else if (typeof object.listenerId === "string")
|
|
40870
|
+
message.listenerId = parseInt(object.listenerId, 10);
|
|
40871
|
+
else if (typeof object.listenerId === "number")
|
|
40872
|
+
message.listenerId = object.listenerId;
|
|
40873
|
+
else if (typeof object.listenerId === "object")
|
|
40874
|
+
message.listenerId = new $util.LongBits(object.listenerId.low >>> 0, object.listenerId.high >>> 0).toNumber();
|
|
40875
|
+
if (object.careWebUserId != null)
|
|
40876
|
+
message.careWebUserId = String(object.careWebUserId);
|
|
40877
|
+
if (object.hsUserId != null)
|
|
40878
|
+
message.hsUserId = String(object.hsUserId);
|
|
40879
|
+
switch (object.careService) {
|
|
40880
|
+
case "CARE_SERVICE_UNKNOWN":
|
|
40881
|
+
case 0:
|
|
40882
|
+
message.careService = 0;
|
|
40883
|
+
break;
|
|
40884
|
+
case "CARE_SERVICE_COACHING":
|
|
40885
|
+
case 1:
|
|
40886
|
+
message.careService = 1;
|
|
40887
|
+
break;
|
|
40888
|
+
case "CARE_SERVICE_THERAPY":
|
|
40889
|
+
case 2:
|
|
40890
|
+
message.careService = 2;
|
|
40891
|
+
break;
|
|
40892
|
+
case "CARE_SERVICE_PSYCHIATRY":
|
|
40893
|
+
case 3:
|
|
40894
|
+
message.careService = 3;
|
|
40895
|
+
break;
|
|
40896
|
+
}
|
|
40897
|
+
switch (object.availabilityType) {
|
|
40898
|
+
case "CARE_AVAILABILITY_TYPE_UNKNOWN":
|
|
40899
|
+
case 0:
|
|
40900
|
+
message.availabilityType = 0;
|
|
40901
|
+
break;
|
|
40902
|
+
case "CARE_AVAILABILITY_TYPE_CHAT":
|
|
40903
|
+
case 1:
|
|
40904
|
+
message.availabilityType = 1;
|
|
40905
|
+
break;
|
|
40906
|
+
case "CARE_AVAILABILITY_TYPE_VIDEO":
|
|
40907
|
+
case 2:
|
|
40908
|
+
message.availabilityType = 2;
|
|
40909
|
+
break;
|
|
40910
|
+
}
|
|
40911
|
+
if (object.searchStart != null)
|
|
40912
|
+
if ($util.Long)
|
|
40913
|
+
(message.searchStart = $util.Long.fromValue(object.searchStart)).unsigned = true;
|
|
40914
|
+
else if (typeof object.searchStart === "string")
|
|
40915
|
+
message.searchStart = parseInt(object.searchStart, 10);
|
|
40916
|
+
else if (typeof object.searchStart === "number")
|
|
40917
|
+
message.searchStart = object.searchStart;
|
|
40918
|
+
else if (typeof object.searchStart === "object")
|
|
40919
|
+
message.searchStart = new $util.LongBits(object.searchStart.low >>> 0, object.searchStart.high >>> 0).toNumber(true);
|
|
40920
|
+
if (object.searchEnd != null)
|
|
40921
|
+
if ($util.Long)
|
|
40922
|
+
(message.searchEnd = $util.Long.fromValue(object.searchEnd)).unsigned = true;
|
|
40923
|
+
else if (typeof object.searchEnd === "string")
|
|
40924
|
+
message.searchEnd = parseInt(object.searchEnd, 10);
|
|
40925
|
+
else if (typeof object.searchEnd === "number")
|
|
40926
|
+
message.searchEnd = object.searchEnd;
|
|
40927
|
+
else if (typeof object.searchEnd === "object")
|
|
40928
|
+
message.searchEnd = new $util.LongBits(object.searchEnd.low >>> 0, object.searchEnd.high >>> 0).toNumber(true);
|
|
40929
|
+
if (object.availabilitySlotCount != null)
|
|
40930
|
+
message.availabilitySlotCount = object.availabilitySlotCount | 0;
|
|
40931
|
+
if (object.earliestAvailability != null)
|
|
40932
|
+
if ($util.Long)
|
|
40933
|
+
(message.earliestAvailability = $util.Long.fromValue(object.earliestAvailability)).unsigned = true;
|
|
40934
|
+
else if (typeof object.earliestAvailability === "string")
|
|
40935
|
+
message.earliestAvailability = parseInt(object.earliestAvailability, 10);
|
|
40936
|
+
else if (typeof object.earliestAvailability === "number")
|
|
40937
|
+
message.earliestAvailability = object.earliestAvailability;
|
|
40938
|
+
else if (typeof object.earliestAvailability === "object")
|
|
40939
|
+
message.earliestAvailability = new $util.LongBits(object.earliestAvailability.low >>> 0, object.earliestAvailability.high >>> 0).toNumber(true);
|
|
40940
|
+
if (object.earliestAvailabilityIso != null)
|
|
40941
|
+
message.earliestAvailabilityIso = String(object.earliestAvailabilityIso);
|
|
40942
|
+
if (object.earliestAvailabilityHoursAhead != null)
|
|
40943
|
+
message.earliestAvailabilityHoursAhead = Number(object.earliestAvailabilityHoursAhead);
|
|
40944
|
+
if (object.latestAvailability != null)
|
|
40945
|
+
if ($util.Long)
|
|
40946
|
+
(message.latestAvailability = $util.Long.fromValue(object.latestAvailability)).unsigned = true;
|
|
40947
|
+
else if (typeof object.latestAvailability === "string")
|
|
40948
|
+
message.latestAvailability = parseInt(object.latestAvailability, 10);
|
|
40949
|
+
else if (typeof object.latestAvailability === "number")
|
|
40950
|
+
message.latestAvailability = object.latestAvailability;
|
|
40951
|
+
else if (typeof object.latestAvailability === "object")
|
|
40952
|
+
message.latestAvailability = new $util.LongBits(object.latestAvailability.low >>> 0, object.latestAvailability.high >>> 0).toNumber(true);
|
|
40953
|
+
if (object.latestAvailabilityIso != null)
|
|
40954
|
+
message.latestAvailabilityIso = String(object.latestAvailabilityIso);
|
|
40955
|
+
if (object.latestAvailabilityHoursAhead != null)
|
|
40956
|
+
message.latestAvailabilityHoursAhead = Number(object.latestAvailabilityHoursAhead);
|
|
40957
|
+
return message;
|
|
40958
|
+
};
|
|
40959
|
+
|
|
40960
|
+
/**
|
|
40961
|
+
* Creates a plain object from a CareAvailabilityOffered message. Also converts values to other types if specified.
|
|
40962
|
+
* @function toObject
|
|
40963
|
+
* @memberof CareAvailabilityOffered
|
|
40964
|
+
* @static
|
|
40965
|
+
* @param {CareAvailabilityOffered} message CareAvailabilityOffered
|
|
40966
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40967
|
+
* @returns {Object.<string,*>} Plain object
|
|
40968
|
+
*/
|
|
40969
|
+
CareAvailabilityOffered.toObject = function toObject(message, options) {
|
|
40970
|
+
if (!options)
|
|
40971
|
+
options = {};
|
|
40972
|
+
var object = {};
|
|
40973
|
+
if (options.defaults) {
|
|
40974
|
+
if ($util.Long) {
|
|
40975
|
+
var long = new $util.Long(0, 0, false);
|
|
40976
|
+
object.listenerId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
40977
|
+
} else
|
|
40978
|
+
object.listenerId = options.longs === String ? "0" : 0;
|
|
40979
|
+
object.careWebUserId = "";
|
|
40980
|
+
object.hsUserId = "";
|
|
40981
|
+
object.careService = options.enums === String ? "CARE_SERVICE_UNKNOWN" : 0;
|
|
40982
|
+
object.availabilityType = options.enums === String ? "CARE_AVAILABILITY_TYPE_UNKNOWN" : 0;
|
|
40983
|
+
if ($util.Long) {
|
|
40984
|
+
var long = new $util.Long(0, 0, true);
|
|
40985
|
+
object.searchStart = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
40986
|
+
} else
|
|
40987
|
+
object.searchStart = options.longs === String ? "0" : 0;
|
|
40988
|
+
if ($util.Long) {
|
|
40989
|
+
var long = new $util.Long(0, 0, true);
|
|
40990
|
+
object.searchEnd = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
40991
|
+
} else
|
|
40992
|
+
object.searchEnd = options.longs === String ? "0" : 0;
|
|
40993
|
+
object.availabilitySlotCount = 0;
|
|
40994
|
+
if ($util.Long) {
|
|
40995
|
+
var long = new $util.Long(0, 0, true);
|
|
40996
|
+
object.earliestAvailability = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
40997
|
+
} else
|
|
40998
|
+
object.earliestAvailability = options.longs === String ? "0" : 0;
|
|
40999
|
+
object.earliestAvailabilityIso = "";
|
|
41000
|
+
object.earliestAvailabilityHoursAhead = 0;
|
|
41001
|
+
if ($util.Long) {
|
|
41002
|
+
var long = new $util.Long(0, 0, true);
|
|
41003
|
+
object.latestAvailability = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
41004
|
+
} else
|
|
41005
|
+
object.latestAvailability = options.longs === String ? "0" : 0;
|
|
41006
|
+
object.latestAvailabilityIso = "";
|
|
41007
|
+
object.latestAvailabilityHoursAhead = 0;
|
|
41008
|
+
}
|
|
41009
|
+
if (message.listenerId != null && message.hasOwnProperty("listenerId"))
|
|
41010
|
+
if (typeof message.listenerId === "number")
|
|
41011
|
+
object.listenerId = options.longs === String ? String(message.listenerId) : message.listenerId;
|
|
41012
|
+
else
|
|
41013
|
+
object.listenerId = options.longs === String ? $util.Long.prototype.toString.call(message.listenerId) : options.longs === Number ? new $util.LongBits(message.listenerId.low >>> 0, message.listenerId.high >>> 0).toNumber() : message.listenerId;
|
|
41014
|
+
if (message.careWebUserId != null && message.hasOwnProperty("careWebUserId"))
|
|
41015
|
+
object.careWebUserId = message.careWebUserId;
|
|
41016
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
41017
|
+
object.hsUserId = message.hsUserId;
|
|
41018
|
+
if (message.careService != null && message.hasOwnProperty("careService"))
|
|
41019
|
+
object.careService = options.enums === String ? $root.CareService[message.careService] : message.careService;
|
|
41020
|
+
if (message.availabilityType != null && message.hasOwnProperty("availabilityType"))
|
|
41021
|
+
object.availabilityType = options.enums === String ? $root.CareAvailabilityType[message.availabilityType] : message.availabilityType;
|
|
41022
|
+
if (message.searchStart != null && message.hasOwnProperty("searchStart"))
|
|
41023
|
+
if (typeof message.searchStart === "number")
|
|
41024
|
+
object.searchStart = options.longs === String ? String(message.searchStart) : message.searchStart;
|
|
41025
|
+
else
|
|
41026
|
+
object.searchStart = options.longs === String ? $util.Long.prototype.toString.call(message.searchStart) : options.longs === Number ? new $util.LongBits(message.searchStart.low >>> 0, message.searchStart.high >>> 0).toNumber(true) : message.searchStart;
|
|
41027
|
+
if (message.searchEnd != null && message.hasOwnProperty("searchEnd"))
|
|
41028
|
+
if (typeof message.searchEnd === "number")
|
|
41029
|
+
object.searchEnd = options.longs === String ? String(message.searchEnd) : message.searchEnd;
|
|
41030
|
+
else
|
|
41031
|
+
object.searchEnd = options.longs === String ? $util.Long.prototype.toString.call(message.searchEnd) : options.longs === Number ? new $util.LongBits(message.searchEnd.low >>> 0, message.searchEnd.high >>> 0).toNumber(true) : message.searchEnd;
|
|
41032
|
+
if (message.availabilitySlotCount != null && message.hasOwnProperty("availabilitySlotCount"))
|
|
41033
|
+
object.availabilitySlotCount = message.availabilitySlotCount;
|
|
41034
|
+
if (message.earliestAvailability != null && message.hasOwnProperty("earliestAvailability"))
|
|
41035
|
+
if (typeof message.earliestAvailability === "number")
|
|
41036
|
+
object.earliestAvailability = options.longs === String ? String(message.earliestAvailability) : message.earliestAvailability;
|
|
41037
|
+
else
|
|
41038
|
+
object.earliestAvailability = options.longs === String ? $util.Long.prototype.toString.call(message.earliestAvailability) : options.longs === Number ? new $util.LongBits(message.earliestAvailability.low >>> 0, message.earliestAvailability.high >>> 0).toNumber(true) : message.earliestAvailability;
|
|
41039
|
+
if (message.earliestAvailabilityIso != null && message.hasOwnProperty("earliestAvailabilityIso"))
|
|
41040
|
+
object.earliestAvailabilityIso = message.earliestAvailabilityIso;
|
|
41041
|
+
if (message.earliestAvailabilityHoursAhead != null && message.hasOwnProperty("earliestAvailabilityHoursAhead"))
|
|
41042
|
+
object.earliestAvailabilityHoursAhead = options.json && !isFinite(message.earliestAvailabilityHoursAhead) ? String(message.earliestAvailabilityHoursAhead) : message.earliestAvailabilityHoursAhead;
|
|
41043
|
+
if (message.latestAvailability != null && message.hasOwnProperty("latestAvailability"))
|
|
41044
|
+
if (typeof message.latestAvailability === "number")
|
|
41045
|
+
object.latestAvailability = options.longs === String ? String(message.latestAvailability) : message.latestAvailability;
|
|
41046
|
+
else
|
|
41047
|
+
object.latestAvailability = options.longs === String ? $util.Long.prototype.toString.call(message.latestAvailability) : options.longs === Number ? new $util.LongBits(message.latestAvailability.low >>> 0, message.latestAvailability.high >>> 0).toNumber(true) : message.latestAvailability;
|
|
41048
|
+
if (message.latestAvailabilityIso != null && message.hasOwnProperty("latestAvailabilityIso"))
|
|
41049
|
+
object.latestAvailabilityIso = message.latestAvailabilityIso;
|
|
41050
|
+
if (message.latestAvailabilityHoursAhead != null && message.hasOwnProperty("latestAvailabilityHoursAhead"))
|
|
41051
|
+
object.latestAvailabilityHoursAhead = options.json && !isFinite(message.latestAvailabilityHoursAhead) ? String(message.latestAvailabilityHoursAhead) : message.latestAvailabilityHoursAhead;
|
|
41052
|
+
return object;
|
|
41053
|
+
};
|
|
41054
|
+
|
|
41055
|
+
/**
|
|
41056
|
+
* Converts this CareAvailabilityOffered to JSON.
|
|
41057
|
+
* @function toJSON
|
|
41058
|
+
* @memberof CareAvailabilityOffered
|
|
41059
|
+
* @instance
|
|
41060
|
+
* @returns {Object.<string,*>} JSON object
|
|
41061
|
+
*/
|
|
41062
|
+
CareAvailabilityOffered.prototype.toJSON = function toJSON() {
|
|
41063
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
41064
|
+
};
|
|
41065
|
+
|
|
41066
|
+
return CareAvailabilityOffered;
|
|
41067
|
+
})();
|
|
41068
|
+
|
|
39774
41069
|
/**
|
|
39775
41070
|
* CostShareType enum.
|
|
39776
41071
|
* @name CostShareType
|
|
@@ -146862,6 +148157,296 @@ $root.PartnerEventUpdated = (function() {
|
|
|
146862
148157
|
return PartnerEventUpdated;
|
|
146863
148158
|
})();
|
|
146864
148159
|
|
|
148160
|
+
$root.PartnerSignalStateAssigned = (function() {
|
|
148161
|
+
|
|
148162
|
+
/**
|
|
148163
|
+
* Properties of a PartnerSignalStateAssigned.
|
|
148164
|
+
* @name IPartnerSignalStateAssigned
|
|
148165
|
+
* @interface IPartnerSignalStateAssigned
|
|
148166
|
+
* @property {string|null} [partnerId] Unique identifier of the partner (from PAPI service). Formatted as a 24-char hex string.
|
|
148167
|
+
* @property {string|null} [partnerName] Name of the partner.
|
|
148168
|
+
* @property {string|null} [signal] Assigned signal.
|
|
148169
|
+
* @property {string|null} [hsUserId] Headspace user that was assigned the signal (e.g. HSUSER_FOOBAR).
|
|
148170
|
+
* @property {number|Long|null} [createdAtTimestamp] UTC epoch milliseconds - when the signal was assigned.
|
|
148171
|
+
*/
|
|
148172
|
+
|
|
148173
|
+
/**
|
|
148174
|
+
* Constructs a new PartnerSignalStateAssigned.
|
|
148175
|
+
* @name PartnerSignalStateAssigned
|
|
148176
|
+
* @classdesc Represents a PartnerSignalStateAssigned.
|
|
148177
|
+
* @implements IPartnerSignalStateAssigned
|
|
148178
|
+
* @constructor
|
|
148179
|
+
* @param {IPartnerSignalStateAssigned=} [properties] Properties to set
|
|
148180
|
+
*/
|
|
148181
|
+
function PartnerSignalStateAssigned(properties) {
|
|
148182
|
+
if (properties)
|
|
148183
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
148184
|
+
if (properties[keys[i]] != null)
|
|
148185
|
+
this[keys[i]] = properties[keys[i]];
|
|
148186
|
+
}
|
|
148187
|
+
|
|
148188
|
+
/**
|
|
148189
|
+
* Unique identifier of the partner (from PAPI service). Formatted as a 24-char hex string.
|
|
148190
|
+
* @member {string} partnerId
|
|
148191
|
+
* @memberof PartnerSignalStateAssigned
|
|
148192
|
+
* @instance
|
|
148193
|
+
*/
|
|
148194
|
+
PartnerSignalStateAssigned.prototype.partnerId = "";
|
|
148195
|
+
|
|
148196
|
+
/**
|
|
148197
|
+
* Name of the partner.
|
|
148198
|
+
* @member {string} partnerName
|
|
148199
|
+
* @memberof PartnerSignalStateAssigned
|
|
148200
|
+
* @instance
|
|
148201
|
+
*/
|
|
148202
|
+
PartnerSignalStateAssigned.prototype.partnerName = "";
|
|
148203
|
+
|
|
148204
|
+
/**
|
|
148205
|
+
* Assigned signal.
|
|
148206
|
+
* @member {string} signal
|
|
148207
|
+
* @memberof PartnerSignalStateAssigned
|
|
148208
|
+
* @instance
|
|
148209
|
+
*/
|
|
148210
|
+
PartnerSignalStateAssigned.prototype.signal = "";
|
|
148211
|
+
|
|
148212
|
+
/**
|
|
148213
|
+
* Headspace user that was assigned the signal (e.g. HSUSER_FOOBAR).
|
|
148214
|
+
* @member {string} hsUserId
|
|
148215
|
+
* @memberof PartnerSignalStateAssigned
|
|
148216
|
+
* @instance
|
|
148217
|
+
*/
|
|
148218
|
+
PartnerSignalStateAssigned.prototype.hsUserId = "";
|
|
148219
|
+
|
|
148220
|
+
/**
|
|
148221
|
+
* UTC epoch milliseconds - when the signal was assigned.
|
|
148222
|
+
* @member {number|Long} createdAtTimestamp
|
|
148223
|
+
* @memberof PartnerSignalStateAssigned
|
|
148224
|
+
* @instance
|
|
148225
|
+
*/
|
|
148226
|
+
PartnerSignalStateAssigned.prototype.createdAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
148227
|
+
|
|
148228
|
+
/**
|
|
148229
|
+
* Creates a new PartnerSignalStateAssigned instance using the specified properties.
|
|
148230
|
+
* @function create
|
|
148231
|
+
* @memberof PartnerSignalStateAssigned
|
|
148232
|
+
* @static
|
|
148233
|
+
* @param {IPartnerSignalStateAssigned=} [properties] Properties to set
|
|
148234
|
+
* @returns {PartnerSignalStateAssigned} PartnerSignalStateAssigned instance
|
|
148235
|
+
*/
|
|
148236
|
+
PartnerSignalStateAssigned.create = function create(properties) {
|
|
148237
|
+
return new PartnerSignalStateAssigned(properties);
|
|
148238
|
+
};
|
|
148239
|
+
|
|
148240
|
+
/**
|
|
148241
|
+
* Encodes the specified PartnerSignalStateAssigned message. Does not implicitly {@link PartnerSignalStateAssigned.verify|verify} messages.
|
|
148242
|
+
* @function encode
|
|
148243
|
+
* @memberof PartnerSignalStateAssigned
|
|
148244
|
+
* @static
|
|
148245
|
+
* @param {IPartnerSignalStateAssigned} message PartnerSignalStateAssigned message or plain object to encode
|
|
148246
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
148247
|
+
* @returns {$protobuf.Writer} Writer
|
|
148248
|
+
*/
|
|
148249
|
+
PartnerSignalStateAssigned.encode = function encode(message, writer) {
|
|
148250
|
+
if (!writer)
|
|
148251
|
+
writer = $Writer.create();
|
|
148252
|
+
if (message.partnerId != null && message.hasOwnProperty("partnerId"))
|
|
148253
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.partnerId);
|
|
148254
|
+
if (message.partnerName != null && message.hasOwnProperty("partnerName"))
|
|
148255
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.partnerName);
|
|
148256
|
+
if (message.signal != null && message.hasOwnProperty("signal"))
|
|
148257
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.signal);
|
|
148258
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
148259
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.hsUserId);
|
|
148260
|
+
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
148261
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAtTimestamp);
|
|
148262
|
+
return writer;
|
|
148263
|
+
};
|
|
148264
|
+
|
|
148265
|
+
/**
|
|
148266
|
+
* Encodes the specified PartnerSignalStateAssigned message, length delimited. Does not implicitly {@link PartnerSignalStateAssigned.verify|verify} messages.
|
|
148267
|
+
* @function encodeDelimited
|
|
148268
|
+
* @memberof PartnerSignalStateAssigned
|
|
148269
|
+
* @static
|
|
148270
|
+
* @param {IPartnerSignalStateAssigned} message PartnerSignalStateAssigned message or plain object to encode
|
|
148271
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
148272
|
+
* @returns {$protobuf.Writer} Writer
|
|
148273
|
+
*/
|
|
148274
|
+
PartnerSignalStateAssigned.encodeDelimited = function encodeDelimited(message, writer) {
|
|
148275
|
+
return this.encode(message, writer).ldelim();
|
|
148276
|
+
};
|
|
148277
|
+
|
|
148278
|
+
/**
|
|
148279
|
+
* Decodes a PartnerSignalStateAssigned message from the specified reader or buffer.
|
|
148280
|
+
* @function decode
|
|
148281
|
+
* @memberof PartnerSignalStateAssigned
|
|
148282
|
+
* @static
|
|
148283
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
148284
|
+
* @param {number} [length] Message length if known beforehand
|
|
148285
|
+
* @returns {PartnerSignalStateAssigned} PartnerSignalStateAssigned
|
|
148286
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
148287
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
148288
|
+
*/
|
|
148289
|
+
PartnerSignalStateAssigned.decode = function decode(reader, length) {
|
|
148290
|
+
if (!(reader instanceof $Reader))
|
|
148291
|
+
reader = $Reader.create(reader);
|
|
148292
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PartnerSignalStateAssigned();
|
|
148293
|
+
while (reader.pos < end) {
|
|
148294
|
+
var tag = reader.uint32();
|
|
148295
|
+
switch (tag >>> 3) {
|
|
148296
|
+
case 1:
|
|
148297
|
+
message.partnerId = reader.string();
|
|
148298
|
+
break;
|
|
148299
|
+
case 2:
|
|
148300
|
+
message.partnerName = reader.string();
|
|
148301
|
+
break;
|
|
148302
|
+
case 3:
|
|
148303
|
+
message.signal = reader.string();
|
|
148304
|
+
break;
|
|
148305
|
+
case 4:
|
|
148306
|
+
message.hsUserId = reader.string();
|
|
148307
|
+
break;
|
|
148308
|
+
case 5:
|
|
148309
|
+
message.createdAtTimestamp = reader.uint64();
|
|
148310
|
+
break;
|
|
148311
|
+
default:
|
|
148312
|
+
reader.skipType(tag & 7);
|
|
148313
|
+
break;
|
|
148314
|
+
}
|
|
148315
|
+
}
|
|
148316
|
+
return message;
|
|
148317
|
+
};
|
|
148318
|
+
|
|
148319
|
+
/**
|
|
148320
|
+
* Decodes a PartnerSignalStateAssigned message from the specified reader or buffer, length delimited.
|
|
148321
|
+
* @function decodeDelimited
|
|
148322
|
+
* @memberof PartnerSignalStateAssigned
|
|
148323
|
+
* @static
|
|
148324
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
148325
|
+
* @returns {PartnerSignalStateAssigned} PartnerSignalStateAssigned
|
|
148326
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
148327
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
148328
|
+
*/
|
|
148329
|
+
PartnerSignalStateAssigned.decodeDelimited = function decodeDelimited(reader) {
|
|
148330
|
+
if (!(reader instanceof $Reader))
|
|
148331
|
+
reader = new $Reader(reader);
|
|
148332
|
+
return this.decode(reader, reader.uint32());
|
|
148333
|
+
};
|
|
148334
|
+
|
|
148335
|
+
/**
|
|
148336
|
+
* Verifies a PartnerSignalStateAssigned message.
|
|
148337
|
+
* @function verify
|
|
148338
|
+
* @memberof PartnerSignalStateAssigned
|
|
148339
|
+
* @static
|
|
148340
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
148341
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
148342
|
+
*/
|
|
148343
|
+
PartnerSignalStateAssigned.verify = function verify(message) {
|
|
148344
|
+
if (typeof message !== "object" || message === null)
|
|
148345
|
+
return "object expected";
|
|
148346
|
+
if (message.partnerId != null && message.hasOwnProperty("partnerId"))
|
|
148347
|
+
if (!$util.isString(message.partnerId))
|
|
148348
|
+
return "partnerId: string expected";
|
|
148349
|
+
if (message.partnerName != null && message.hasOwnProperty("partnerName"))
|
|
148350
|
+
if (!$util.isString(message.partnerName))
|
|
148351
|
+
return "partnerName: string expected";
|
|
148352
|
+
if (message.signal != null && message.hasOwnProperty("signal"))
|
|
148353
|
+
if (!$util.isString(message.signal))
|
|
148354
|
+
return "signal: string expected";
|
|
148355
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
148356
|
+
if (!$util.isString(message.hsUserId))
|
|
148357
|
+
return "hsUserId: string expected";
|
|
148358
|
+
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
148359
|
+
if (!$util.isInteger(message.createdAtTimestamp) && !(message.createdAtTimestamp && $util.isInteger(message.createdAtTimestamp.low) && $util.isInteger(message.createdAtTimestamp.high)))
|
|
148360
|
+
return "createdAtTimestamp: integer|Long expected";
|
|
148361
|
+
return null;
|
|
148362
|
+
};
|
|
148363
|
+
|
|
148364
|
+
/**
|
|
148365
|
+
* Creates a PartnerSignalStateAssigned message from a plain object. Also converts values to their respective internal types.
|
|
148366
|
+
* @function fromObject
|
|
148367
|
+
* @memberof PartnerSignalStateAssigned
|
|
148368
|
+
* @static
|
|
148369
|
+
* @param {Object.<string,*>} object Plain object
|
|
148370
|
+
* @returns {PartnerSignalStateAssigned} PartnerSignalStateAssigned
|
|
148371
|
+
*/
|
|
148372
|
+
PartnerSignalStateAssigned.fromObject = function fromObject(object) {
|
|
148373
|
+
if (object instanceof $root.PartnerSignalStateAssigned)
|
|
148374
|
+
return object;
|
|
148375
|
+
var message = new $root.PartnerSignalStateAssigned();
|
|
148376
|
+
if (object.partnerId != null)
|
|
148377
|
+
message.partnerId = String(object.partnerId);
|
|
148378
|
+
if (object.partnerName != null)
|
|
148379
|
+
message.partnerName = String(object.partnerName);
|
|
148380
|
+
if (object.signal != null)
|
|
148381
|
+
message.signal = String(object.signal);
|
|
148382
|
+
if (object.hsUserId != null)
|
|
148383
|
+
message.hsUserId = String(object.hsUserId);
|
|
148384
|
+
if (object.createdAtTimestamp != null)
|
|
148385
|
+
if ($util.Long)
|
|
148386
|
+
(message.createdAtTimestamp = $util.Long.fromValue(object.createdAtTimestamp)).unsigned = true;
|
|
148387
|
+
else if (typeof object.createdAtTimestamp === "string")
|
|
148388
|
+
message.createdAtTimestamp = parseInt(object.createdAtTimestamp, 10);
|
|
148389
|
+
else if (typeof object.createdAtTimestamp === "number")
|
|
148390
|
+
message.createdAtTimestamp = object.createdAtTimestamp;
|
|
148391
|
+
else if (typeof object.createdAtTimestamp === "object")
|
|
148392
|
+
message.createdAtTimestamp = new $util.LongBits(object.createdAtTimestamp.low >>> 0, object.createdAtTimestamp.high >>> 0).toNumber(true);
|
|
148393
|
+
return message;
|
|
148394
|
+
};
|
|
148395
|
+
|
|
148396
|
+
/**
|
|
148397
|
+
* Creates a plain object from a PartnerSignalStateAssigned message. Also converts values to other types if specified.
|
|
148398
|
+
* @function toObject
|
|
148399
|
+
* @memberof PartnerSignalStateAssigned
|
|
148400
|
+
* @static
|
|
148401
|
+
* @param {PartnerSignalStateAssigned} message PartnerSignalStateAssigned
|
|
148402
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
148403
|
+
* @returns {Object.<string,*>} Plain object
|
|
148404
|
+
*/
|
|
148405
|
+
PartnerSignalStateAssigned.toObject = function toObject(message, options) {
|
|
148406
|
+
if (!options)
|
|
148407
|
+
options = {};
|
|
148408
|
+
var object = {};
|
|
148409
|
+
if (options.defaults) {
|
|
148410
|
+
object.partnerId = "";
|
|
148411
|
+
object.partnerName = "";
|
|
148412
|
+
object.signal = "";
|
|
148413
|
+
object.hsUserId = "";
|
|
148414
|
+
if ($util.Long) {
|
|
148415
|
+
var long = new $util.Long(0, 0, true);
|
|
148416
|
+
object.createdAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
148417
|
+
} else
|
|
148418
|
+
object.createdAtTimestamp = options.longs === String ? "0" : 0;
|
|
148419
|
+
}
|
|
148420
|
+
if (message.partnerId != null && message.hasOwnProperty("partnerId"))
|
|
148421
|
+
object.partnerId = message.partnerId;
|
|
148422
|
+
if (message.partnerName != null && message.hasOwnProperty("partnerName"))
|
|
148423
|
+
object.partnerName = message.partnerName;
|
|
148424
|
+
if (message.signal != null && message.hasOwnProperty("signal"))
|
|
148425
|
+
object.signal = message.signal;
|
|
148426
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
148427
|
+
object.hsUserId = message.hsUserId;
|
|
148428
|
+
if (message.createdAtTimestamp != null && message.hasOwnProperty("createdAtTimestamp"))
|
|
148429
|
+
if (typeof message.createdAtTimestamp === "number")
|
|
148430
|
+
object.createdAtTimestamp = options.longs === String ? String(message.createdAtTimestamp) : message.createdAtTimestamp;
|
|
148431
|
+
else
|
|
148432
|
+
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;
|
|
148433
|
+
return object;
|
|
148434
|
+
};
|
|
148435
|
+
|
|
148436
|
+
/**
|
|
148437
|
+
* Converts this PartnerSignalStateAssigned to JSON.
|
|
148438
|
+
* @function toJSON
|
|
148439
|
+
* @memberof PartnerSignalStateAssigned
|
|
148440
|
+
* @instance
|
|
148441
|
+
* @returns {Object.<string,*>} JSON object
|
|
148442
|
+
*/
|
|
148443
|
+
PartnerSignalStateAssigned.prototype.toJSON = function toJSON() {
|
|
148444
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
148445
|
+
};
|
|
148446
|
+
|
|
148447
|
+
return PartnerSignalStateAssigned;
|
|
148448
|
+
})();
|
|
148449
|
+
|
|
146865
148450
|
$root.PHQAssessmentAssigned = (function() {
|
|
146866
148451
|
|
|
146867
148452
|
/**
|