a/project/sparkplug™_mqtt_edge_and_host-stack_b9741afd/function_blocks_8ad6e219/fb_payload_ad205903/fb_payloadmetric_a0221364/a022136493b841c08a3e4376086113a9.object b/project/sparkplug™_mqtt_edge_and_host-stack_b9741afd/function_blocks_8ad6e219/fb_payload_ad205903/fb_payloadmetric_a0221364/a022136493b841c08a3e4376086113a9.object
1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)a0221364-93b8-41c0-8a3e-4376086113a9","ParentGuid":"(Guid)00000000-0000-0000-0000-000000000000","Name":"(string)FB_PayloadMetric","Properties":{"@Type":"2c41fa04:IDictionary","@Value":[{"@Key":"(Guid)829a18f2-c514-4f6e-9634-1df173429203","@Value":{"@Type":"829a18f2","@Value":{"ParentObjects":{"@Type":"fa2ee218:IDictionary","@Value":[{"@Key":"(Guid)21af5390-2942-461a-bf89-951aaf6999f1","@Value":"(Guid)ad205903-8508-4926-9d55-99ed8855a066"}]}}}}]},"TypeGuid":"(Guid)6f9dac99-8de1-4efc-8465-68ac443b7d08","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","829a18f2":"{829a18f2-c514-4f6e-9634-1df173429203}","fa2ee218":"{fa2ee218-a39b-4b6d-b249-49dbddbd168a}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"6f9dac99","@Value":{"SpecialFunc":{"@Type":"0db3d7bb:Enum","@Value":"None"},"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)6324","Tag":null,"Text":"(string)//Call SUPER to allow dynamic creation of FBs"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6325","Tag":null,"Text":"(string)SUPER^();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6326","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6327","Tag":null,"Text":"(string)(* This is an FB and not a struct, because it may be possible for a payload to partially or fully encode itself *)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6328","Tag":null,"Text":"(string)//This IF statement"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6329","Tag":null,"Text":"(string)IF xDecode AND xEncode THEN //ERROR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6330","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6331","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6332","Tag":null,"Text":"(string)    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6333","Tag":null,"Text":"(string)    eDecodeError := ERROR.PayloadYouCantDoBothAtOnce;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6334","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6335","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6336","Tag":null,"Text":"(string)    xEncodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6337","Tag":null,"Text":"(string)    eEncodeError := ERROR.PayloadYouCantDoBothAtOnce;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6338","Tag":null,"Text":"(string)ELSIF NOT xDecode AND NOT xEncode THEN //DO NOTHING, ALL OUTPUTS OFF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6339","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6340","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6341","Tag":null,"Text":"(string)    xDecodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6342","Tag":null,"Text":"(string)    eDecodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6343","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6344","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6345","Tag":null,"Text":"(string)    xEncodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6346","Tag":null,"Text":"(string)    eEncodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6347","Tag":null,"Text":"(string)ELSIF xDecode AND NOT xEncode THEN //Decode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6348","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6349","Tag":null,"Text":"(string)    xDecodeBusy := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6350","Tag":null,"Text":"(string)    xDecodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6351","Tag":null,"Text":"(string)    eDecodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6352","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6353","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6354","Tag":null,"Text":"(string)    xEncodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6355","Tag":null,"Text":"(string)    eEncodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6356","Tag":null,"Text":"(string)ELSIF NOT xDecode AND xEncode THEN //Encode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6357","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6358","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6359","Tag":null,"Text":"(string)    xDecodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6360","Tag":null,"Text":"(string)    eDecodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6361","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6362","Tag":null,"Text":"(string)    xEncodeBusy := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6363","Tag":null,"Text":"(string)    xEncodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6364","Tag":null,"Text":"(string)    eEncodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6365","Tag":null,"Text":"(string)END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6366","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6367","Tag":null,"Text":"(string)IF xDecodeBusy THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6368","Tag":null,"Text":"(string)    InitializeStructure();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6369","Tag":null,"Text":"(string)    eDecodeState := PayloadDecodeStates.object_getlength;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6370","Tag":null,"Text":"(string)    //decode length"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6371","Tag":null,"Text":"(string)    dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6372","Tag":null,"Text":"(string)    lengthOfMetric := dviTemp.int32;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6373","Tag":null,"Text":"(string)    finalByteIndex := ProtobufBlobIndex + lengthOfMetric;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6374","Tag":null,"Text":"(string)    ProtobufBlobIndex := ProtobufBlobIndex + 1;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6375","Tag":null,"Text":"(string)    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6376","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6377","Tag":null,"Text":"(string)    //for i to i + length - 1"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6378","Tag":null,"Text":"(string)    FOR ProtobufBlobIndex := ProtobufBlobIndex TO finalByteIndex DO"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6379","Tag":null,"Text":"(string)        CASE eDecodeState OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6380","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getmember:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6381","Tag":null,"Text":"(string)                CASE myProtobufBlob[ProtobufBlobIndex] OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6382","Tag":null,"Text":"(string)                    16#00: //end of data? padding byte? ERROR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6383","Tag":null,"Text":"(string)                        xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6384","Tag":null,"Text":"(string)                        eDecodeError := ERROR.PayloadFound00;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6385","Tag":null,"Text":"(string)                        ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6386","Tag":null,"Text":"(string)                    ProtobufedId.Metric_name:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6387","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getname;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6388","Tag":null,"Text":"(string)                    ProtobufedId.Metric_alias:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6389","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getalias;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6390","Tag":null,"Text":"(string)                    ProtobufedId.Metric_timestamp:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6391","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_gettimestamp;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6392","Tag":null,"Text":"(string)                    ProtobufedId.Metric_datatype:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6393","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_gettype;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6394","Tag":null,"Text":"(string)                    ProtobufedId.Metric_is_historical:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6395","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getis_historical;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6396","Tag":null,"Text":"(string)                    ProtobufedId.Metric_is_transient:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6397","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getis_transient;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6398","Tag":null,"Text":"(string)                    ProtobufedId.Metric_is_null:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6399","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getis_null;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6400","Tag":null,"Text":"(string)                    ProtobufedId.Metric_metadata:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6401","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getmetadata_length;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6402","Tag":null,"Text":"(string)                    ProtobufedId.Metric_properties:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6403","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getProperties;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6404","Tag":null,"Text":"(string)                    ProtobufedId.Metric_int_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6405","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getint_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6406","Tag":null,"Text":"(string)                    ProtobufedId.Metric_long_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6407","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getlong_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6408","Tag":null,"Text":"(string)                    ProtobufedId.Metric_float_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6409","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getfloat_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6410","Tag":null,"Text":"(string)                    ProtobufedId.Metric_double_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6411","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getdouble_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6412","Tag":null,"Text":"(string)                    ProtobufedId.Metric_boolean_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6413","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getboolean_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6414","Tag":null,"Text":"(string)                    ProtobufedId.Metric_string_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6415","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getstring_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6416","Tag":null,"Text":"(string)                    ProtobufedId.Metric_bytes_value[0]:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6417","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getsecondbyteofbytesValueProtobufId;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6418","Tag":null,"Text":"(string)                    ProtobufedId.Metric_dataset_value[0]:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6419","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getsecondbyteofDatasetValueProtobufId;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6420","Tag":null,"Text":"(string)                    ProtobufedId.Metric_template_value[0]:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6421","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getsecondbyteofTemplateValueProtobufId;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6422","Tag":null,"Text":"(string)                    ProtobufedId.Metric_extension_value[0]:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6423","Tag":null,"Text":"(string)                        xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6424","Tag":null,"Text":"(string)                        eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6425","Tag":null,"Text":"(string)                        ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6426","Tag":null,"Text":"(string)                ELSE //extension... error"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6427","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6428","Tag":null,"Text":"(string)                    eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6429","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6430","Tag":null,"Text":"(string)                END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6431","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getname:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6432","Tag":null,"Text":"(string)                _xHasName := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6433","Tag":null,"Text":"(string)                _sname := OwnerPayload.DecodeNextString(); //updates i to end of string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6434","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6435","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getalias:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6436","Tag":null,"Text":"(string)                _xHasAlias := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6437","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6438","Tag":null,"Text":"(string)                _uliAlias := dviTemp.Uint64;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6439","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6440","Tag":null,"Text":"(string)            PayloadDecodeStates.object_gettimestamp:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6441","Tag":null,"Text":"(string)                _xHasTimeStamp := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6442","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6443","Tag":null,"Text":"(string)                _uliTimestamp := dviTemp.uliDateTime;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6444","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6445","Tag":null,"Text":"(string)            PayloadDecodeStates.object_gettype:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6446","Tag":null,"Text":"(string)                _xHasDatatype := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6447","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6448","Tag":null,"Text":"(string)                _udiDatatype := dviTemp.UInt32;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6449","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6450","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getint_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6451","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.int_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6452","Tag":null,"Text":"(string)                _dzzValue := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6453","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6454","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getlong_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6455","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.long_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6456","Tag":null,"Text":"(string)                _dzzValue := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6457","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6458","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getfloat_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6459","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.float_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6460","Tag":null,"Text":"(string)                _rValue := OwnerPayload.DecodeNextFloat(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6461","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6462","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getdouble_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6463","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.double_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6464","Tag":null,"Text":"(string)                _lrValue := OwnerPayload.DecodeNextDouble(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6465","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6466","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getboolean_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6467","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.boolean_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6468","Tag":null,"Text":"(string)                _dzzValue := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6469","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6470","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getstring_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6471","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.string_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6472","Tag":null,"Text":"(string)                _sValue := OwnerPayload.DecodeNextString(); //updates i to end of the string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6473","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6474","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getsecondbyteofbytesValueProtobufId:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6475","Tag":null,"Text":"(string)                IF myProtobufBlob[ProtobufBlobIndex] = ProtobufedId.Metric_bytes_value[1] THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6476","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getbytes_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6477","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6478","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6479","Tag":null,"Text":"(string)                    eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6480","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6481","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6482","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getbytes_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6483","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.bytes_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6484","Tag":null,"Text":"(string)                OwnerPayload.DecodeNextBinaryData(numBytes => _diHasBytes,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6485","Tag":null,"Text":"(string)                    BodyStartIndex => _diStartOfBytes); //updates i to end of Body"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6486","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6487","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6488","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getsecondbyteofDatasetValueProtobufId:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6489","Tag":null,"Text":"(string)                IF myProtobufBlob[ProtobufBlobIndex] = ProtobufedId.Metric_dataset_value[1] THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6490","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getdataset_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6491","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6492","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6493","Tag":null,"Text":"(string)                    eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6494","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6495","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6496","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getdataset_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6497","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.dataset_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6498","Tag":null,"Text":"(string)                THIS^._myDataSet(xDecode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6499","Tag":null,"Text":"(string)                    xEncode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6500","Tag":null,"Text":"(string)                    protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6501","Tag":null,"Text":"(string)                    OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6502","Tag":null,"Text":"(string)                    ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6503","Tag":null,"Text":"(string)                    myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6504","Tag":null,"Text":"(string)                    xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6505","Tag":null,"Text":"(string)                    xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6506","Tag":null,"Text":"(string)                    xDecodeError => xDecodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6507","Tag":null,"Text":"(string)                    eDecodeError => eDecodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6508","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6509","Tag":null,"Text":"(string)                IF NOT xDecodeError THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6510","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6511","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6512","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6513","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6514","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getsecondbyteofTemplateValueProtobufId:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6515","Tag":null,"Text":"(string)                IF myProtobufBlob[ProtobufBlobIndex] = ProtobufedId.Metric_template_value[1] THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6516","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_gettemplate_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6517","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6518","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6519","Tag":null,"Text":"(string)                    eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6520","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6521","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6522","Tag":null,"Text":"(string)            PayloadDecodeStates.object_gettemplate_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6523","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.template_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6524","Tag":null,"Text":"(string)                THIS^._myTemplate(xDecode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6525","Tag":null,"Text":"(string)                    xEncode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6526","Tag":null,"Text":"(string)                    protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6527","Tag":null,"Text":"(string)                    OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6528","Tag":null,"Text":"(string)                    ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6529","Tag":null,"Text":"(string)                    myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6530","Tag":null,"Text":"(string)                    xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6531","Tag":null,"Text":"(string)                    xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6532","Tag":null,"Text":"(string)                    xDecodeError => xDecodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6533","Tag":null,"Text":"(string)                    eDecodeError => eDecodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6534","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6535","Tag":null,"Text":"(string)                IF NOT xDecodeError THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6536","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6537","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6538","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6539","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6540","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getis_historical:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6541","Tag":null,"Text":"(string)                _xHasIs_historical := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6542","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6543","Tag":null,"Text":"(string)                _xIs_historical := dviTemp.Boolean;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6544","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6545","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getis_transient:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6546","Tag":null,"Text":"(string)                _xHasIs_transient := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6547","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6548","Tag":null,"Text":"(string)                _xIs_transient := dviTemp.Boolean;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6549","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6550","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getis_null:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6551","Tag":null,"Text":"(string)                _xHasIs_null := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6552","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6553","Tag":null,"Text":"(string)                _xIs_null := dviTemp.Boolean;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6554","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6555","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getmetadata_length:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6556","Tag":null,"Text":"(string)                _myHasMetaData.xHasMetaData := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6557","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6558","Tag":null,"Text":"(string)                _metadataendindex := dviTemp.Int32 + ProtobufBlobIndex;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6559","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6560","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6561","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6562","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6563","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6564","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6565","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getmetadata_member:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6566","Tag":null,"Text":"(string)                CASE myProtobufBlob[ProtobufBlobIndex] OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6567","Tag":null,"Text":"(string)                    16#00: //end of data? padding byte? ERROR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6568","Tag":null,"Text":"(string)                        xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6569","Tag":null,"Text":"(string)                        eDecodeError := ERROR.PayloadFound00;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6570","Tag":null,"Text":"(string)                        ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6571","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_is_multi_part:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6572","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_is_multi_part;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6573","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_content_type:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6574","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_content_type;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6575","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_size:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6576","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_size;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6577","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_seq:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6578","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_seq;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6579","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_file_name:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6580","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_file_name;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6581","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_file_type:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6582","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_file_type;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6583","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_md5:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6584","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_md5;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6585","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_description:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6586","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_description;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6587","Tag":null,"Text":"(string)                ELSE //extension... error"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6588","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6589","Tag":null,"Text":"(string)                    eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6590","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6591","Tag":null,"Text":"(string)                END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6592","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_is_multi_part:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6593","Tag":null,"Text":"(string)                _myHasMetaData.xHasIs_multi_part := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6594","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6595","Tag":null,"Text":"(string)                _myMetaData.is_multi_part := dviTemp.Boolean;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6596","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6597","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6598","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6599","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6600","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6601","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6602","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_content_type:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6603","Tag":null,"Text":"(string)                _myHasMetaData.xHasContent_type := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6604","Tag":null,"Text":"(string)                _myMetaData.content_type := OwnerPayload.DecodeNextString(); //updates i to end of the string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6605","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6606","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6607","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6608","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6609","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6610","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6611","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_size:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6612","Tag":null,"Text":"(string)                _myHasMetaData.xHasSize := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6613","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6614","Tag":null,"Text":"(string)                _myMetaData.size := dviTemp.UInt64;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6615","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6616","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6617","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6618","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6619","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6620","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6621","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_seq:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6622","Tag":null,"Text":"(string)                _myHasMetaData.xHasSeq := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6623","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6624","Tag":null,"Text":"(string)                _myMetaData.seq := dviTemp.UInt64;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6625","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6626","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6627","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6628","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6629","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6630","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6631","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_file_name:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6632","Tag":null,"Text":"(string)                _myHasMetaData.xHasFile_name := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6633","Tag":null,"Text":"(string)                _myMetaData.file_name := OwnerPayload.DecodeNextString(); //updates i to end of the string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6634","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6635","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6636","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6637","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6638","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6639","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6640","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_file_type:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6641","Tag":null,"Text":"(string)                _myHasMetaData.xHasFile_type := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6642","Tag":null,"Text":"(string)                _myMetaData.file_type := OwnerPayload.DecodeNextString(); //updates i to end of the string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6643","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6644","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6645","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6646","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6647","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6648","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6649","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_md5:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6650","Tag":null,"Text":"(string)                _myHasMetaData.xHasMd5 := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6651","Tag":null,"Text":"(string)                _myMetaData.md5 := OwnerPayload.DecodeNextString(); //updates i to end of the string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6652","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6653","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6654","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6655","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6656","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6657","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6658","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_description:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6659","Tag":null,"Text":"(string)                _myHasMetaData.xHasDescription := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6660","Tag":null,"Text":"(string)                _myMetaData.description := OwnerPayload.DecodeNextString(); //updates i to end of the string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6661","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6662","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6663","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6664","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6665","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6666","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6667","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getProperties:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6668","Tag":null,"Text":"(string)                _xHasPropertySet := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6669","Tag":null,"Text":"(string)                THIS^._myPropertySet(xDecode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6670","Tag":null,"Text":"(string)                    xEncode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6671","Tag":null,"Text":"(string)                    protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6672","Tag":null,"Text":"(string)                    ProtobufFieldNumber :=,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6673","Tag":null,"Text":"(string)                    OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6674","Tag":null,"Text":"(string)                    ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6675","Tag":null,"Text":"(string)                    myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6676","Tag":null,"Text":"(string)                    xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6677","Tag":null,"Text":"(string)                    xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6678","Tag":null,"Text":"(string)                    xDecodeError => xDecodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6679","Tag":null,"Text":"(string)                    eDecodeError => eDecodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6680","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6681","Tag":null,"Text":"(string)                IF NOT xDecodeError THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6682","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6683","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6684","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6685","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6686","Tag":null,"Text":"(string)        END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6687","Tag":null,"Text":"(string)    END_FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6688","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6689","Tag":null,"Text":"(string)    IF NOT xDecodeError THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6690","Tag":null,"Text":"(string)        ProtobufBlobIndex := ProtobufBlobIndex - 1; //i is now final byte index.\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6691","Tag":null,"Text":"(string)    END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6692","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6693","Tag":null,"Text":"(string)    eDecodeState := PayloadDecodeStates.idle;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6694","Tag":null,"Text":"(string)    xDecodeDone := NOT xDecodeError;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6695","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6696","Tag":null,"Text":"(string)END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6697","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6698","Tag":null,"Text":"(string)IF xEncodeBusy THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6699","Tag":null,"Text":"(string)    //NOTE: BLOB Data will not be initialized to 00."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6700","Tag":null,"Text":"(string)    //But we will start with a 0 byte payload."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6701","Tag":null,"Text":"(string)    //store the starting byte, because we need it right at the end"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6702","Tag":null,"Text":"(string)    startingByteOfEncodedData := ProtobufBlobIndex;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6703","Tag":null,"Text":"(string)    //Encode Name (Field Number 1)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6704","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasName THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6705","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6706","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _sName,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6707","Tag":null,"Text":"(string)            ProtobufFieldNumber := 1);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6708","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6709","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6710","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6711","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6712","Tag":null,"Text":"(string)    //Encode Alias"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6713","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasAlias THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6714","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6715","Tag":null,"Text":"(string)        dviTemp.Uint64 := _uliAlias;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6716","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6717","Tag":null,"Text":"(string)            ProtobufFieldNumber := 2);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6718","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6719","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6720","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6721","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6722","Tag":null,"Text":"(string)    //Encode Timestamp (Field Number 3)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6723","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasTimestamp THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6724","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6725","Tag":null,"Text":"(string)        dviTemp.uliDateTime := _uliTimestamp;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6726","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6727","Tag":null,"Text":"(string)            ProtobufFieldNumber := 3);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6728","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6729","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6730","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6731","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6732","Tag":null,"Text":"(string)    //Encode DataType"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6733","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasDatatype THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6734","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6735","Tag":null,"Text":"(string)        dviTemp.Uint32 := _udiDatatype;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6736","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6737","Tag":null,"Text":"(string)            ProtobufFieldNumber := 4);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6738","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6739","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6740","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6741","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6742","Tag":null,"Text":"(string)    //Encode is_historical"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6743","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasIs_historical THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6744","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6745","Tag":null,"Text":"(string)        dviTemp.Boolean := _xIs_historical;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6746","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6747","Tag":null,"Text":"(string)            ProtobufFieldNumber := 5);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6748","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6749","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6750","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6751","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6752","Tag":null,"Text":"(string)    //Encode is_transient"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6753","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasIs_transient THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6754","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6755","Tag":null,"Text":"(string)        dviTemp.Boolean := _xIs_transient;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6756","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6757","Tag":null,"Text":"(string)            ProtobufFieldNumber := 6);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6758","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6759","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6760","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6761","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6762","Tag":null,"Text":"(string)    //Encode is_null"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6763","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasIs_null THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6764","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6765","Tag":null,"Text":"(string)        dviTemp.Boolean := _xIs_null;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6766","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6767","Tag":null,"Text":"(string)            ProtobufFieldNumber := 7);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6768","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6769","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6770","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6771","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6772","Tag":null,"Text":"(string)    //Encode metadata"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6773","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasMetaData THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6774","Tag":null,"Text":"(string)        _metadatastartindex := ProtobufBlobIndex;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6775","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6776","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6777","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasIs_multi_part THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6778","Tag":null,"Text":"(string)            dviTemp.Boolean := _myMetaData.is_multi_part;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6779","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6780","Tag":null,"Text":"(string)                ProtobufFieldNumber := 1);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6781","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6782","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6783","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasContent_type THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6784","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _myMetaData.content_type,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6785","Tag":null,"Text":"(string)                ProtobufFieldNumber := 2);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6786","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6787","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6788","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasSize THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6789","Tag":null,"Text":"(string)            dviTemp.UInt64 := _myMetaData.size;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6790","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6791","Tag":null,"Text":"(string)                ProtobufFieldNumber := 3);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6792","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6793","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6794","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasSeq THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6795","Tag":null,"Text":"(string)            dviTemp.UInt64 := _myMetaData.seq;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6796","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6797","Tag":null,"Text":"(string)                ProtobufFieldNumber := 4);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6798","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6799","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6800","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasFile_name THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6801","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _myMetaData.file_name,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6802","Tag":null,"Text":"(string)                ProtobufFieldNumber := 5);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6803","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6804","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6805","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasFile_type THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6806","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _myMetaData.file_type,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6807","Tag":null,"Text":"(string)                ProtobufFieldNumber := 6);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6808","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6809","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6810","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasMd5 THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6811","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _myMetaData.md5,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6812","Tag":null,"Text":"(string)                ProtobufFieldNumber := 7);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6813","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6814","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6815","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasDescription THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6816","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _myMetaData.description,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6817","Tag":null,"Text":"(string)                ProtobufFieldNumber := 8);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6818","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6819","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6820","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6821","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.ReencodeLengthDelimited(ProtobufFieldNumber := 8,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6822","Tag":null,"Text":"(string)                startingByteOfEncodedData := _metadatastartindex);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6823","Tag":null,"Text":"(string)        END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6824","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6825","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6826","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6827","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6828","Tag":null,"Text":"(string)    //Encode PropertySet"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6829","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasPropertySet THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6830","Tag":null,"Text":"(string)        _myPropertySet(xDecode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6831","Tag":null,"Text":"(string)            xEncode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6832","Tag":null,"Text":"(string)            protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6833","Tag":null,"Text":"(string)            ProtobufFieldNumber := 9,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6834","Tag":null,"Text":"(string)            OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6835","Tag":null,"Text":"(string)            ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6836","Tag":null,"Text":"(string)            myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6837","Tag":null,"Text":"(string)            xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6838","Tag":null,"Text":"(string)            xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6839","Tag":null,"Text":"(string)            xDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6840","Tag":null,"Text":"(string)            eDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6841","Tag":null,"Text":"(string)            xEncodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6842","Tag":null,"Text":"(string)            xEncodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6843","Tag":null,"Text":"(string)            xEncodeError => xEncodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6844","Tag":null,"Text":"(string)            eEncodeError => eEncodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6845","Tag":null,"Text":"(string)    END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6846","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6847","Tag":null,"Text":"(string)    //encode Value"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6848","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6849","Tag":null,"Text":"(string)        CASE _eHasValue OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6850","Tag":null,"Text":"(string)            MetricProtobufsType.boolean_value, MetricProtobufsType.int_value, MetricProtobufsType.long_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6851","Tag":null,"Text":"(string)                IF GVL_sparkplug.IWantBuggyUInt32s AND _xHasDatatype AND (_udiDataType = MetricDataType.UInt32) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6852","Tag":null,"Text":"(string)                    // Supports Ignition with MQTT Engine 4.0.5"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6853","Tag":null,"Text":"(string)                    eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := _dzzValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6854","Tag":null,"Text":"(string)                        ProtobufFieldNumber :="}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6855","Tag":null,"Text":"(string)                            TO_BYTE(MetricProtobufsType.long_value));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6856","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6857","Tag":null,"Text":"(string)                    // Follow the SparkplugB Specification"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6858","Tag":null,"Text":"(string)                    eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := _dzzValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6859","Tag":null,"Text":"(string)                        ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6860","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6861","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6862","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6863","Tag":null,"Text":"(string)            MetricProtobufsType.float_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6864","Tag":null,"Text":"(string)                eEncodeError := OwnerPayload.EncodeNextFloat(ValueToEncode := _rValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6865","Tag":null,"Text":"(string)                    ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6866","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6867","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6868","Tag":null,"Text":"(string)            MetricProtobufsType.double_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6869","Tag":null,"Text":"(string)                eEncodeError := OwnerPayload.EncodeNextDouble(ValueToEncode := _lrValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6870","Tag":null,"Text":"(string)                    ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6871","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6872","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6873","Tag":null,"Text":"(string)            MetricProtobufsType.string_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6874","Tag":null,"Text":"(string)                eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _sValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6875","Tag":null,"Text":"(string)                    ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6876","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6877","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6878","Tag":null,"Text":"(string)            MetricProtobufsType.bytes_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6879","Tag":null,"Text":"(string)                eEncodeError := OwnerPayload.EncodeNextBinaryData(StartOfBytes := _diStartOfBytes,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6880","Tag":null,"Text":"(string)                    NumberOfBytes := _diHasBytes,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6881","Tag":null,"Text":"(string)                    ProtobufFieldNumber := TO_BYTE(_eHasValue),"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6882","Tag":null,"Text":"(string)                    ProtobufBlob := myProtobufBlob);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6883","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6884","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6885","Tag":null,"Text":"(string)            MetricProtobufsType.dataset_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6886","Tag":null,"Text":"(string)                _myDataSet(xDecode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6887","Tag":null,"Text":"(string)                    xEncode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6888","Tag":null,"Text":"(string)                    OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6889","Tag":null,"Text":"(string)                    ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6890","Tag":null,"Text":"(string)                    myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6891","Tag":null,"Text":"(string)                    xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6892","Tag":null,"Text":"(string)                    xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6893","Tag":null,"Text":"(string)                    xDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6894","Tag":null,"Text":"(string)                    eDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6895","Tag":null,"Text":"(string)                    xEncodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6896","Tag":null,"Text":"(string)                    xEncodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6897","Tag":null,"Text":"(string)                    xEncodeError => xEncodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6898","Tag":null,"Text":"(string)                    eEncodeError => eEncodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6899","Tag":null,"Text":"(string)            MetricProtobufsType.template_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6900","Tag":null,"Text":"(string)                _myTemplate(xDecode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6901","Tag":null,"Text":"(string)                    xEncode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6902","Tag":null,"Text":"(string)                    protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6903","Tag":null,"Text":"(string)                    OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6904","Tag":null,"Text":"(string)                    ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6905","Tag":null,"Text":"(string)                    myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6906","Tag":null,"Text":"(string)                    xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6907","Tag":null,"Text":"(string)                    xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6908","Tag":null,"Text":"(string)                    xDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6909","Tag":null,"Text":"(string)                    eDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6910","Tag":null,"Text":"(string)                    xEncodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6911","Tag":null,"Text":"(string)                    xEncodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6912","Tag":null,"Text":"(string)                    xEncodeError => xEncodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6913","Tag":null,"Text":"(string)                    eEncodeError => eEncodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6914","Tag":null,"Text":"(string)            MetricProtobufsType.extension_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6915","Tag":null,"Text":"(string)                eEncodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6916","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6917","Tag":null,"Text":"(string)        END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6918","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6919","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6920","Tag":null,"Text":"(string)    //Field number and length and we're done!"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6921","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6922","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6923","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.ReencodeLengthDelimited(ProtobufFieldNumber := 2,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6924","Tag":null,"Text":"(string)            startingByteOfEncodedData := startingByteOfEncodedData);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6925","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6926","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6927","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6928","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6929","Tag":null,"Text":"(string)    //DONE :)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6930","Tag":null,"Text":"(string)    xEncodeDone := NOT xEncodeError;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6931","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)644","Tag":null,"Text":"(string)END_IF;"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)6233","Tag":null,"Text":"(string)(*"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6234","Tag":null,"Text":"(string)    Allows for the representation of a Sparkplug B metric in both object form and protobufs binary blob form"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6235","Tag":null,"Text":"(string)\tAllows for the transformation of a Sparkplug B metric between object form and protobufs binary blob form"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6236","Tag":null,"Text":"(string)*)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6237","Tag":null,"Text":"(string){attribute 'hide'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6238","Tag":null,"Text":"(string){attribute 'enable_dynamic_creation'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6239","Tag":null,"Text":"(string)FUNCTION_BLOCK FB_PayloadMetric EXTENDS FBF.InstanceBase IMPLEMENTS LinkedList.IElement, __SYSTEM.IQueryInterface"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6240","Tag":null,"Text":"(string)VAR_INPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6241","Tag":null,"Text":"(string)    (*Trigers for conversion*)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6242","Tag":null,"Text":"(string)    xDecode : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6243","Tag":null,"Text":"(string)    xEncode : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6244","Tag":null,"Text":"(string)    protobufBlobMaxIndex : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6245","Tag":null,"Text":"(string)    PoolManager : IPoolManager;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6246","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6247","Tag":null,"Text":"(string)VAR_IN_OUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6248","Tag":null,"Text":"(string)    OwnerPayload : FB_Payload; //He manages the assigning of Pool Objects"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6249","Tag":null,"Text":"(string)    ProtobufBlobIndex : DINT; //For decoding, starts where the start of the Metric is, ends on the last byte of the Metric.  For Encoding, starts where the first byte of the Metric should be written to, ends on the next free byte after this metric"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6250","Tag":null,"Text":"(string)    myProtobufBlob : ARRAY[*] OF BYTE; //array of bytes containing the protobuf payload.  If the array is the whole"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6251","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6252","Tag":null,"Text":"(string)VAR_OUTPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6253","Tag":null,"Text":"(string)    xDecodeDone, xDecodeBusy, xDecodeError : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6254","Tag":null,"Text":"(string)    eDecodeError : ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6255","Tag":null,"Text":"(string)    xEncodeDone, xEncodeBusy, xEncodeError : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6256","Tag":null,"Text":"(string)    eEncodeError : ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6257","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6258","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6259","Tag":null,"Text":"(string)    (*Internal variables*)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6260","Tag":null,"Text":"(string)    dviTemp : DecodedVarInt;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6261","Tag":null,"Text":"(string)    startingByteOfEncodedData : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6262","Tag":null,"Text":"(string)    eDecodeState : PayloadDecodeStates;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6263","Tag":null,"Text":"(string)    lengthOfMetric : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6264","Tag":null,"Text":"(string)    finalByteIndex : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6265","Tag":null,"Text":"(string)    (* Structured data *)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6266","Tag":null,"Text":"(string)    //     message Metric {"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6267","Tag":null,"Text":"(string)    // "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6268","Tag":null,"Text":"(string)    //         optional string   name          = 1;        // Metric name - should only be included on birth"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6269","Tag":null,"Text":"(string)    _xHasName : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6270","Tag":null,"Text":"(string)    _sName : WSTRING;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6271","Tag":null,"Text":"(string)    //         optional uint64   alias         = 2;        // Metric alias - tied to name on birth and included in all later DATA messages"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6272","Tag":null,"Text":"(string)    _xHasAlias : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6273","Tag":null,"Text":"(string)    _uliAlias : ULINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6274","Tag":null,"Text":"(string)    //         optional uint64   timestamp     = 3;        // Timestamp associated with data acquisition time"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6275","Tag":null,"Text":"(string)    _xHasTimestamp : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6276","Tag":null,"Text":"(string)    _uliTimestamp : T_DateTime;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6277","Tag":null,"Text":"(string)    //         optional uint32   datatype      = 4;        // DataType of the metric/tag value"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6278","Tag":null,"Text":"(string)    _xHasDatatype : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6279","Tag":null,"Text":"(string)    _udiDatatype : MetricDataType;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6280","Tag":null,"Text":"(string)    //         optional bool     is_historical = 5;        // If this is historical data and should not update real time tag"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6281","Tag":null,"Text":"(string)    _xHasIs_historical : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6282","Tag":null,"Text":"(string)    _xIs_historical : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6283","Tag":null,"Text":"(string)    //         optional bool     is_transient  = 6;        // Tells conNumberOfMetricsing clients such as MQTT Engine to not store this as a tag"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6284","Tag":null,"Text":"(string)    _xHasIs_transient : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6285","Tag":null,"Text":"(string)    _xIs_transient : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6286","Tag":null,"Text":"(string)    //         optional bool     is_null       = 7;        // If this is null - explicitly say so rather than using -1, false, etc for some datatypes."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6287","Tag":null,"Text":"(string)    _xHasIs_null : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6288","Tag":null,"Text":"(string)    _xIs_null : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6289","Tag":null,"Text":"(string)    //         optional MetaData metadata      = 8;        // Metadata for the payload"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6290","Tag":null,"Text":"(string)    _myHasMetaData : HasMetaData;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6291","Tag":null,"Text":"(string)    _myMetaData : MetaData;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6292","Tag":null,"Text":"(string)    _metadatastartindex : DINT; //encode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6293","Tag":null,"Text":"(string)    _metadataendindex : DINT; //decode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6294","Tag":null,"Text":"(string)    //         optional PropertySet properties = 9;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6295","Tag":null,"Text":"(string)    _xHasPropertySet : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6296","Tag":null,"Text":"(string)    _myPropertySet : FB_PayloadPropertySet;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6297","Tag":null,"Text":"(string)    // "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6298","Tag":null,"Text":"(string)    //         IC: note, oneof means \"either zero or one of\""}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6299","Tag":null,"Text":"(string)    //         oneof value {"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6300","Tag":null,"Text":"(string)    _eHasValue : MetricProtobufsType;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6301","Tag":null,"Text":"(string)    //             uint32   int_value                      = 10;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6302","Tag":null,"Text":"(string)    //             uint64   long_value                     = 11;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6303","Tag":null,"Text":"(string)    //             bool     boolean_value                  = 14;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6304","Tag":null,"Text":"(string)    _dzzValue : DecodedVarInt;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6305","Tag":null,"Text":"(string)    //             float    float_value                    = 12;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6306","Tag":null,"Text":"(string)    _rValue : REAL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6307","Tag":null,"Text":"(string)    //             double   double_value                   = 13;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6308","Tag":null,"Text":"(string)    _lrValue : LREAL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6309","Tag":null,"Text":"(string)    //             string   string_value                   = 15;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6310","Tag":null,"Text":"(string)    _sValue : WSTRING;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6311","Tag":null,"Text":"(string)    //             bytes    bytes_value                    = 16;       // Bytes, File"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6312","Tag":null,"Text":"(string)    _diHasBytes : DINT; // there's only at most 1 body, but this number represents how many bytes"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6313","Tag":null,"Text":"(string)    _diStartOfBytes : DINT; // Array Index to the start position in FB_Payload.myBodyPool[] make up the \"body\""}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6314","Tag":null,"Text":"(string)    //             DataSet  dataset_value                  = 17;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6315","Tag":null,"Text":"(string)    _myDataSet : FB_PayloadDataSet;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6316","Tag":null,"Text":"(string)    //             Template template_value                 = 18;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6317","Tag":null,"Text":"(string)    _myTemplate : FB_PayloadTemplate;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6318","Tag":null,"Text":"(string)    // NO EXTENSIONS"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6319","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6320","Tag":null,"Text":"(string)    // LinkedList.IElement"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6321","Tag":null,"Text":"(string)    _itfPrev : LinkedList.IElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6322","Tag":null,"Text":"(string)    _itfNext : LinkedList.IElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6323","Tag":null,"Text":"(string)    _itfList : LinkedList.IList;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1","Tag":null,"Text":"(string)END_VAR"}}]}}}}},"UniqueIdGenerator":"(string)6931","POULevel":{"@Type":"8e575c5b:Enum","@Value":"Standard"},"ChildObjectGuids":{"@Type":"ArrayList:IList","@Value":[]},"AddAttributeSubsequent":"(bool)False"}},"TypeInfos":{"0db3d7bb":"{0db3d7bb-cde0-4416-9a7b-ce49a0124323}","3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","6f9dac99":"{6f9dac99-8de1-4efc-8465-68ac443b7d08}","8e575c5b":"{8e575c5b-1d37-49c6-941b-5c0ec7874787}","a5de0b0b":"{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","ArrayList":"System.Collections.ArrayList","bool":"System.Boolean","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","long":"System.Int64","string":"System.String"}}},"FormatVersion":"1.0"}
1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)a0221364-93b8-41c0-8a3e-4376086113a9","ParentGuid":"(Guid)00000000-0000-0000-0000-000000000000","Name":"(string)FB_PayloadMetric","Properties":{"@Type":"2c41fa04:IDictionary","@Value":[{"@Key":"(Guid)829a18f2-c514-4f6e-9634-1df173429203","@Value":{"@Type":"829a18f2","@Value":{"ParentObjects":{"@Type":"fa2ee218:IDictionary","@Value":[{"@Key":"(Guid)21af5390-2942-461a-bf89-951aaf6999f1","@Value":"(Guid)ad205903-8508-4926-9d55-99ed8855a066"}]}}}}]},"TypeGuid":"(Guid)6f9dac99-8de1-4efc-8465-68ac443b7d08","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","829a18f2":"{829a18f2-c514-4f6e-9634-1df173429203}","fa2ee218":"{fa2ee218-a39b-4b6d-b249-49dbddbd168a}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"6f9dac99","@Value":{"SpecialFunc":{"@Type":"0db3d7bb:Enum","@Value":"None"},"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)6324","Tag":null,"Text":"(string)//Call SUPER to allow dynamic creation of FBs"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6325","Tag":null,"Text":"(string)SUPER^();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6326","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6327","Tag":null,"Text":"(string)(* This is an FB and not a struct, because it may be possible for a payload to partially or fully encode itself *)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6328","Tag":null,"Text":"(string)//This IF statement"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6329","Tag":null,"Text":"(string)IF xDecode AND xEncode THEN //ERROR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6330","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6331","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6332","Tag":null,"Text":"(string)    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6333","Tag":null,"Text":"(string)    eDecodeError := ERROR.PayloadYouCantDoBothAtOnce;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6334","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6335","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6336","Tag":null,"Text":"(string)    xEncodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6337","Tag":null,"Text":"(string)    eEncodeError := ERROR.PayloadYouCantDoBothAtOnce;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6338","Tag":null,"Text":"(string)ELSIF NOT xDecode AND NOT xEncode THEN //DO NOTHING, ALL OUTPUTS OFF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6339","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6340","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6341","Tag":null,"Text":"(string)    xDecodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6342","Tag":null,"Text":"(string)    eDecodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6343","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6344","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6345","Tag":null,"Text":"(string)    xEncodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6346","Tag":null,"Text":"(string)    eEncodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6347","Tag":null,"Text":"(string)ELSIF xDecode AND NOT xEncode THEN //Decode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6348","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6349","Tag":null,"Text":"(string)    xDecodeBusy := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6350","Tag":null,"Text":"(string)    xDecodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6351","Tag":null,"Text":"(string)    eDecodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6352","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6353","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6354","Tag":null,"Text":"(string)    xEncodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6355","Tag":null,"Text":"(string)    eEncodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6356","Tag":null,"Text":"(string)ELSIF NOT xDecode AND xEncode THEN //Encode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6357","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6358","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6359","Tag":null,"Text":"(string)    xDecodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6360","Tag":null,"Text":"(string)    eDecodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6361","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6362","Tag":null,"Text":"(string)    xEncodeBusy := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6363","Tag":null,"Text":"(string)    xEncodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6364","Tag":null,"Text":"(string)    eEncodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6365","Tag":null,"Text":"(string)END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6366","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6367","Tag":null,"Text":"(string)IF xDecodeBusy THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6368","Tag":null,"Text":"(string)    InitializeStructure();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6369","Tag":null,"Text":"(string)    eDecodeState := PayloadDecodeStates.object_getlength;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6370","Tag":null,"Text":"(string)    //decode length"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6371","Tag":null,"Text":"(string)    dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6372","Tag":null,"Text":"(string)    lengthOfMetric := dviTemp.int32;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6373","Tag":null,"Text":"(string)    finalByteIndex := ProtobufBlobIndex + lengthOfMetric;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6374","Tag":null,"Text":"(string)    ProtobufBlobIndex := ProtobufBlobIndex + 1;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6375","Tag":null,"Text":"(string)    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6376","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6377","Tag":null,"Text":"(string)    //for i to i + length - 1"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6378","Tag":null,"Text":"(string)    FOR ProtobufBlobIndex := ProtobufBlobIndex TO finalByteIndex DO"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6379","Tag":null,"Text":"(string)        CASE eDecodeState OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6380","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getmember:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6381","Tag":null,"Text":"(string)                CASE myProtobufBlob[ProtobufBlobIndex] OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6382","Tag":null,"Text":"(string)                    16#00: //end of data? padding byte? ERROR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6383","Tag":null,"Text":"(string)                        xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6384","Tag":null,"Text":"(string)                        eDecodeError := ERROR.PayloadFound00;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6385","Tag":null,"Text":"(string)                        ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6386","Tag":null,"Text":"(string)                    ProtobufedId.Metric_name:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6387","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getname;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6388","Tag":null,"Text":"(string)                    ProtobufedId.Metric_alias:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6389","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getalias;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6390","Tag":null,"Text":"(string)                    ProtobufedId.Metric_timestamp:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6391","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_gettimestamp;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6392","Tag":null,"Text":"(string)                    ProtobufedId.Metric_datatype:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6393","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_gettype;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6394","Tag":null,"Text":"(string)                    ProtobufedId.Metric_is_historical:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6395","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getis_historical;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6396","Tag":null,"Text":"(string)                    ProtobufedId.Metric_is_transient:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6397","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getis_transient;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6398","Tag":null,"Text":"(string)                    ProtobufedId.Metric_is_null:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6399","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getis_null;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6400","Tag":null,"Text":"(string)                    ProtobufedId.Metric_metadata:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6401","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getmetadata_length;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6402","Tag":null,"Text":"(string)                    ProtobufedId.Metric_properties:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6403","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getProperties;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6404","Tag":null,"Text":"(string)                    ProtobufedId.Metric_int_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6405","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getint_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6406","Tag":null,"Text":"(string)                    ProtobufedId.Metric_long_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6407","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getlong_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6408","Tag":null,"Text":"(string)                    ProtobufedId.Metric_float_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6409","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getfloat_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6410","Tag":null,"Text":"(string)                    ProtobufedId.Metric_double_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6411","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getdouble_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6412","Tag":null,"Text":"(string)                    ProtobufedId.Metric_boolean_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6413","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getboolean_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6414","Tag":null,"Text":"(string)                    ProtobufedId.Metric_string_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6415","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getstring_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6416","Tag":null,"Text":"(string)                    ProtobufedId.Metric_bytes_value[0]:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6417","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getsecondbyteofbytesValueProtobufId;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6418","Tag":null,"Text":"(string)                    ProtobufedId.Metric_dataset_value[0]:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6419","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getsecondbyteofDatasetValueProtobufId;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6420","Tag":null,"Text":"(string)                    ProtobufedId.Metric_template_value[0]:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6421","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getsecondbyteofTemplateValueProtobufId;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6422","Tag":null,"Text":"(string)                    ProtobufedId.Metric_extension_value[0]:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6423","Tag":null,"Text":"(string)                        xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6424","Tag":null,"Text":"(string)                        eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6425","Tag":null,"Text":"(string)                        ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6426","Tag":null,"Text":"(string)                ELSE //extension... error"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6427","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6428","Tag":null,"Text":"(string)                    eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6429","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6430","Tag":null,"Text":"(string)                END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6431","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getname:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6432","Tag":null,"Text":"(string)                _xHasName := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6433","Tag":null,"Text":"(string)                _sname := OwnerPayload.DecodeNextString(); //updates i to end of string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6434","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6435","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getalias:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6436","Tag":null,"Text":"(string)                _xHasAlias := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6437","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6438","Tag":null,"Text":"(string)                _uliAlias := dviTemp.Uint64;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6439","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6440","Tag":null,"Text":"(string)            PayloadDecodeStates.object_gettimestamp:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6441","Tag":null,"Text":"(string)                _xHasTimeStamp := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6442","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6443","Tag":null,"Text":"(string)                _uliTimestamp := dviTemp.uliDateTime;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6444","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6445","Tag":null,"Text":"(string)            PayloadDecodeStates.object_gettype:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6446","Tag":null,"Text":"(string)                _xHasDatatype := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6447","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6448","Tag":null,"Text":"(string)                _udiDatatype := dviTemp.UInt32;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6449","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6450","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getint_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6451","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.int_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6452","Tag":null,"Text":"(string)                _dzzValue := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6453","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6454","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getlong_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6455","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.long_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6456","Tag":null,"Text":"(string)                _dzzValue := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6457","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6458","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getfloat_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6459","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.float_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6460","Tag":null,"Text":"(string)                _rValue := OwnerPayload.DecodeNextFloat(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6461","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6462","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getdouble_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6463","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.double_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6464","Tag":null,"Text":"(string)                _lrValue := OwnerPayload.DecodeNextDouble(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6465","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6466","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getboolean_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6467","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.boolean_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6468","Tag":null,"Text":"(string)                _dzzValue := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6469","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6470","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getstring_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6471","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.string_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6472","Tag":null,"Text":"(string)                _sValue := OwnerPayload.DecodeNextString(); //updates i to end of the string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6473","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6474","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getsecondbyteofbytesValueProtobufId:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6475","Tag":null,"Text":"(string)                IF myProtobufBlob[ProtobufBlobIndex] = ProtobufedId.Metric_bytes_value[1] THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6476","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getbytes_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6477","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6478","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6479","Tag":null,"Text":"(string)                    eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6480","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6481","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6482","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getbytes_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6483","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.bytes_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6484","Tag":null,"Text":"(string)                OwnerPayload.DecodeNextBinaryData(numBytes => _diHasBytes,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6485","Tag":null,"Text":"(string)                    BodyStartIndex => _diStartOfBytes); //updates i to end of Body"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6486","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6487","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6488","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getsecondbyteofDatasetValueProtobufId:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6489","Tag":null,"Text":"(string)                IF myProtobufBlob[ProtobufBlobIndex] = ProtobufedId.Metric_dataset_value[1] THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6490","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getdataset_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6491","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6492","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6493","Tag":null,"Text":"(string)                    eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6494","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6495","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6496","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getdataset_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6497","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.dataset_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6498","Tag":null,"Text":"(string)                THIS^._myDataSet(xDecode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6499","Tag":null,"Text":"(string)                    xEncode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6500","Tag":null,"Text":"(string)                    protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6501","Tag":null,"Text":"(string)                    OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6502","Tag":null,"Text":"(string)                    ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6503","Tag":null,"Text":"(string)                    myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6504","Tag":null,"Text":"(string)                    xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6505","Tag":null,"Text":"(string)                    xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6506","Tag":null,"Text":"(string)                    xDecodeError => xDecodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6507","Tag":null,"Text":"(string)                    eDecodeError => eDecodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6508","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6509","Tag":null,"Text":"(string)                IF NOT xDecodeError THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6510","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6511","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6512","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6513","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6514","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getsecondbyteofTemplateValueProtobufId:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6515","Tag":null,"Text":"(string)                IF myProtobufBlob[ProtobufBlobIndex] = ProtobufedId.Metric_template_value[1] THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6516","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_gettemplate_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6517","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6518","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6519","Tag":null,"Text":"(string)                    eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6520","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6521","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6522","Tag":null,"Text":"(string)            PayloadDecodeStates.object_gettemplate_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6523","Tag":null,"Text":"(string)                _eHasValue := MetricProtobufsType.template_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6524","Tag":null,"Text":"(string)                THIS^._myTemplate(xDecode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6525","Tag":null,"Text":"(string)                    xEncode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6526","Tag":null,"Text":"(string)                    protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6527","Tag":null,"Text":"(string)                    OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6528","Tag":null,"Text":"(string)                    ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6529","Tag":null,"Text":"(string)                    myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6530","Tag":null,"Text":"(string)                    xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6531","Tag":null,"Text":"(string)                    xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6532","Tag":null,"Text":"(string)                    xDecodeError => xDecodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6533","Tag":null,"Text":"(string)                    eDecodeError => eDecodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6534","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6535","Tag":null,"Text":"(string)                IF NOT xDecodeError THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6536","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6537","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6538","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6539","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6540","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getis_historical:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6541","Tag":null,"Text":"(string)                _xHasIs_historical := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6542","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6543","Tag":null,"Text":"(string)                _xIs_historical := dviTemp.Boolean;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6544","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6545","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getis_transient:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6546","Tag":null,"Text":"(string)                _xHasIs_transient := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6547","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6548","Tag":null,"Text":"(string)                _xIs_transient := dviTemp.Boolean;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6549","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6550","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getis_null:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6551","Tag":null,"Text":"(string)                _xHasIs_null := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6552","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6553","Tag":null,"Text":"(string)                _xIs_null := dviTemp.Boolean;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6554","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6555","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getmetadata_length:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6556","Tag":null,"Text":"(string)                _myHasMetaData.xHasMetaData := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6557","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6558","Tag":null,"Text":"(string)                _metadataendindex := dviTemp.Int32 + ProtobufBlobIndex;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6559","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6560","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6561","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6562","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6563","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6564","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6565","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getmetadata_member:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6566","Tag":null,"Text":"(string)                CASE myProtobufBlob[ProtobufBlobIndex] OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6567","Tag":null,"Text":"(string)                    16#00: //end of data? padding byte? ERROR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6568","Tag":null,"Text":"(string)                        xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6569","Tag":null,"Text":"(string)                        eDecodeError := ERROR.PayloadFound00;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6570","Tag":null,"Text":"(string)                        ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6571","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_is_multi_part:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6572","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_is_multi_part;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6573","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_content_type:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6574","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_content_type;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6575","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_size:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6576","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_size;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6577","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_seq:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6578","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_seq;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6579","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_file_name:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6580","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_file_name;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6581","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_file_type:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6582","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_file_type;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6583","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_md5:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6584","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_md5;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6585","Tag":null,"Text":"(string)                    ProtobufedId.MetaData_description:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6586","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getMetaData_description;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6587","Tag":null,"Text":"(string)                ELSE //extension... error"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6588","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6589","Tag":null,"Text":"(string)                    eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6590","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6591","Tag":null,"Text":"(string)                END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6592","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_is_multi_part:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6593","Tag":null,"Text":"(string)                _myHasMetaData.xHasIs_multi_part := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6594","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6595","Tag":null,"Text":"(string)                _myMetaData.is_multi_part := dviTemp.Boolean;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6596","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6597","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6598","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6599","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6600","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6601","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6602","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_content_type:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6603","Tag":null,"Text":"(string)                _myHasMetaData.xHasContent_type := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6604","Tag":null,"Text":"(string)                _myMetaData.content_type := OwnerPayload.DecodeNextString(); //updates i to end of the string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6605","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6606","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6607","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6608","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6609","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6610","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6611","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_size:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6612","Tag":null,"Text":"(string)                _myHasMetaData.xHasSize := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6613","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6614","Tag":null,"Text":"(string)                _myMetaData.size := dviTemp.UInt64;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6615","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6616","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6617","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6618","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6619","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6620","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6621","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_seq:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6622","Tag":null,"Text":"(string)                _myHasMetaData.xHasSeq := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6623","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6624","Tag":null,"Text":"(string)                _myMetaData.seq := dviTemp.UInt64;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6625","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6626","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6627","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6628","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6629","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6630","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6631","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_file_name:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6632","Tag":null,"Text":"(string)                _myHasMetaData.xHasFile_name := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6633","Tag":null,"Text":"(string)                _myMetaData.file_name := OwnerPayload.DecodeNextString(); //updates i to end of the string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6634","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6635","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6636","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6637","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6638","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6639","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6640","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_file_type:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6641","Tag":null,"Text":"(string)                _myHasMetaData.xHasFile_type := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6642","Tag":null,"Text":"(string)                _myMetaData.file_type := OwnerPayload.DecodeNextString(); //updates i to end of the string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6643","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6644","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6645","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6646","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6647","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6648","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6649","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_md5:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6650","Tag":null,"Text":"(string)                _myHasMetaData.xHasMd5 := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6651","Tag":null,"Text":"(string)                _myMetaData.md5 := OwnerPayload.DecodeNextString(); //updates i to end of the string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6652","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6653","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6654","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6655","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6656","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6657","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6658","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getMetaData_description:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6659","Tag":null,"Text":"(string)                _myHasMetaData.xHasDescription := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6660","Tag":null,"Text":"(string)                _myMetaData.description := OwnerPayload.DecodeNextString(); //updates i to end of the string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6661","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6662","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _metadataendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6663","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmetadata_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6664","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6665","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6666","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6667","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getProperties:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6668","Tag":null,"Text":"(string)                _xHasPropertySet := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6669","Tag":null,"Text":"(string)                THIS^._myPropertySet(xDecode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6670","Tag":null,"Text":"(string)                    xEncode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6671","Tag":null,"Text":"(string)                    protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6672","Tag":null,"Text":"(string)                    ProtobufFieldNumber :=,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6673","Tag":null,"Text":"(string)                    OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6674","Tag":null,"Text":"(string)                    ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6675","Tag":null,"Text":"(string)                    myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6676","Tag":null,"Text":"(string)                    xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6677","Tag":null,"Text":"(string)                    xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6678","Tag":null,"Text":"(string)                    xDecodeError => xDecodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6679","Tag":null,"Text":"(string)                    eDecodeError => eDecodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6680","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6681","Tag":null,"Text":"(string)                IF NOT xDecodeError THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6682","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6683","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6684","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6685","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6686","Tag":null,"Text":"(string)        END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6687","Tag":null,"Text":"(string)    END_FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6688","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6689","Tag":null,"Text":"(string)    IF NOT xDecodeError THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6690","Tag":null,"Text":"(string)        ProtobufBlobIndex := ProtobufBlobIndex - 1; //i is now final byte index.\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6691","Tag":null,"Text":"(string)    END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6692","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6693","Tag":null,"Text":"(string)    eDecodeState := PayloadDecodeStates.idle;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6694","Tag":null,"Text":"(string)    xDecodeDone := NOT xDecodeError;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6695","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6696","Tag":null,"Text":"(string)END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6697","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6698","Tag":null,"Text":"(string)IF xEncodeBusy THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6699","Tag":null,"Text":"(string)    //NOTE: BLOB Data will not be initialized to 00."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6700","Tag":null,"Text":"(string)    //But we will start with a 0 byte payload."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6701","Tag":null,"Text":"(string)    //store the starting byte, because we need it right at the end"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6702","Tag":null,"Text":"(string)    startingByteOfEncodedData := ProtobufBlobIndex;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6703","Tag":null,"Text":"(string)    //Encode Name (Field Number 1)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6704","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasName THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6705","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6706","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _sName,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6707","Tag":null,"Text":"(string)            ProtobufFieldNumber := 1);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6708","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6709","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6710","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6711","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6712","Tag":null,"Text":"(string)    //Encode Alias"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6713","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasAlias THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6714","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6715","Tag":null,"Text":"(string)        dviTemp.Uint64 := _uliAlias;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6716","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6717","Tag":null,"Text":"(string)            ProtobufFieldNumber := 2);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6718","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6719","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6720","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6721","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6722","Tag":null,"Text":"(string)    //Encode Timestamp (Field Number 3)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6723","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasTimestamp THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6724","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6725","Tag":null,"Text":"(string)        dviTemp.uliDateTime := _uliTimestamp;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6726","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6727","Tag":null,"Text":"(string)            ProtobufFieldNumber := 3);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6728","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6729","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6730","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6731","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6732","Tag":null,"Text":"(string)    //Encode DataType"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6733","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasDatatype THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6734","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6735","Tag":null,"Text":"(string)        dviTemp.Uint32 := _udiDatatype;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6736","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6737","Tag":null,"Text":"(string)            ProtobufFieldNumber := 4);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6738","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6739","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6740","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6741","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6742","Tag":null,"Text":"(string)    //Encode is_historical"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6743","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasIs_historical THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6744","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6745","Tag":null,"Text":"(string)        dviTemp.Boolean := _xIs_historical;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6746","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6747","Tag":null,"Text":"(string)            ProtobufFieldNumber := 5);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6748","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6749","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6750","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6751","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6752","Tag":null,"Text":"(string)    //Encode is_transient"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6753","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasIs_transient THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6754","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6755","Tag":null,"Text":"(string)        dviTemp.Boolean := _xIs_transient;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6756","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6757","Tag":null,"Text":"(string)            ProtobufFieldNumber := 6);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6758","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6759","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6760","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6761","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6762","Tag":null,"Text":"(string)    //Encode is_null"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6763","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasIs_null THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6764","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6765","Tag":null,"Text":"(string)        dviTemp.Boolean := _xIs_null;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6766","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6767","Tag":null,"Text":"(string)            ProtobufFieldNumber := 7);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6768","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6769","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6770","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6771","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6772","Tag":null,"Text":"(string)    //Encode metadata"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6773","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasMetaData THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6774","Tag":null,"Text":"(string)        _metadatastartindex := ProtobufBlobIndex;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6775","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6776","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6777","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasIs_multi_part THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6778","Tag":null,"Text":"(string)            dviTemp.Boolean := _myMetaData.is_multi_part;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6779","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6780","Tag":null,"Text":"(string)                ProtobufFieldNumber := 1);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6781","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6782","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6783","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasContent_type THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6784","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _myMetaData.content_type,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6785","Tag":null,"Text":"(string)                ProtobufFieldNumber := 2);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6786","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6787","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6788","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasSize THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6789","Tag":null,"Text":"(string)            dviTemp.UInt64 := _myMetaData.size;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6790","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6791","Tag":null,"Text":"(string)                ProtobufFieldNumber := 3);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6792","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6793","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6794","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasSeq THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6795","Tag":null,"Text":"(string)            dviTemp.UInt64 := _myMetaData.seq;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6796","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6797","Tag":null,"Text":"(string)                ProtobufFieldNumber := 4);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6798","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6799","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6800","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasFile_name THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6801","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _myMetaData.file_name,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6802","Tag":null,"Text":"(string)                ProtobufFieldNumber := 5);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6803","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6804","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6805","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasFile_type THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6806","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _myMetaData.file_type,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6807","Tag":null,"Text":"(string)                ProtobufFieldNumber := 6);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6808","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6809","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6810","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasMd5 THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6811","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _myMetaData.md5,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6812","Tag":null,"Text":"(string)                ProtobufFieldNumber := 7);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6813","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6814","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6815","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR AND _myHasMetaData.xHasDescription THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6816","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _myMetaData.description,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6817","Tag":null,"Text":"(string)                ProtobufFieldNumber := 8);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6818","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6819","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6820","Tag":null,"Text":"(string)        IF eEncodeError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6821","Tag":null,"Text":"(string)            eEncodeError := OwnerPayload.ReencodeLengthDelimited(ProtobufFieldNumber := 8,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6822","Tag":null,"Text":"(string)                startingByteOfEncodedData := _metadatastartindex);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6823","Tag":null,"Text":"(string)        END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6824","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6825","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6826","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6827","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6828","Tag":null,"Text":"(string)    //Encode PropertySet"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6829","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasPropertySet THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6830","Tag":null,"Text":"(string)        _myPropertySet(xDecode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6831","Tag":null,"Text":"(string)            xEncode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6832","Tag":null,"Text":"(string)            protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6833","Tag":null,"Text":"(string)            ProtobufFieldNumber := 9,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6834","Tag":null,"Text":"(string)            OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6835","Tag":null,"Text":"(string)            ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6836","Tag":null,"Text":"(string)            myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6837","Tag":null,"Text":"(string)            xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6838","Tag":null,"Text":"(string)            xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6839","Tag":null,"Text":"(string)            xDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6840","Tag":null,"Text":"(string)            eDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6841","Tag":null,"Text":"(string)            xEncodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6842","Tag":null,"Text":"(string)            xEncodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6843","Tag":null,"Text":"(string)            xEncodeError => xEncodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6844","Tag":null,"Text":"(string)            eEncodeError => eEncodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6845","Tag":null,"Text":"(string)    END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6846","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6847","Tag":null,"Text":"(string)    //encode Value"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6848","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6849","Tag":null,"Text":"(string)        CASE _eHasValue OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6850","Tag":null,"Text":"(string)            MetricProtobufsType.boolean_value, MetricProtobufsType.int_value, MetricProtobufsType.long_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6851","Tag":null,"Text":"(string)                IF GVL_sparkplug.IWantBuggyUInt32s AND _xHasDatatype AND (_udiDataType = MetricDataType.UInt32) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6852","Tag":null,"Text":"(string)                    // Supports Ignition with MQTT Engine 4.0.5"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6853","Tag":null,"Text":"(string)                    eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := _dzzValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6854","Tag":null,"Text":"(string)                        ProtobufFieldNumber :="}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6855","Tag":null,"Text":"(string)                            TO_BYTE(MetricProtobufsType.long_value));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6856","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6857","Tag":null,"Text":"(string)                    // Follow the SparkplugB Specification"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6858","Tag":null,"Text":"(string)                    eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := _dzzValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6859","Tag":null,"Text":"(string)                        ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6860","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6861","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6862","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6863","Tag":null,"Text":"(string)            MetricProtobufsType.float_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6864","Tag":null,"Text":"(string)                eEncodeError := OwnerPayload.EncodeNextFloat(ValueToEncode := _rValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6865","Tag":null,"Text":"(string)                    ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6866","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6867","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6868","Tag":null,"Text":"(string)            MetricProtobufsType.double_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6869","Tag":null,"Text":"(string)                eEncodeError := OwnerPayload.EncodeNextDouble(ValueToEncode := _lrValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6870","Tag":null,"Text":"(string)                    ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6871","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6872","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6873","Tag":null,"Text":"(string)            MetricProtobufsType.string_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6874","Tag":null,"Text":"(string)                eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _sValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6875","Tag":null,"Text":"(string)                    ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6876","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6877","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6878","Tag":null,"Text":"(string)            MetricProtobufsType.bytes_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6879","Tag":null,"Text":"(string)                eEncodeError := OwnerPayload.EncodeNextBinaryData(StartOfBytes := _diStartOfBytes,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6880","Tag":null,"Text":"(string)                    NumberOfBytes := _diHasBytes,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6881","Tag":null,"Text":"(string)                    ProtobufFieldNumber := TO_BYTE(_eHasValue),"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6882","Tag":null,"Text":"(string)                    ProtobufBlob := myProtobufBlob);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6883","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6884","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6885","Tag":null,"Text":"(string)            MetricProtobufsType.dataset_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6886","Tag":null,"Text":"(string)                _myDataSet(xDecode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6887","Tag":null,"Text":"(string)                    xEncode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6888","Tag":null,"Text":"(string)                    OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6889","Tag":null,"Text":"(string)                    ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6890","Tag":null,"Text":"(string)                    myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6891","Tag":null,"Text":"(string)                    xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6892","Tag":null,"Text":"(string)                    xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6893","Tag":null,"Text":"(string)                    xDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6894","Tag":null,"Text":"(string)                    eDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6895","Tag":null,"Text":"(string)                    xEncodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6896","Tag":null,"Text":"(string)                    xEncodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6897","Tag":null,"Text":"(string)                    xEncodeError => xEncodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6898","Tag":null,"Text":"(string)                    eEncodeError => eEncodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6899","Tag":null,"Text":"(string)            MetricProtobufsType.template_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6900","Tag":null,"Text":"(string)                _myTemplate(xDecode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6901","Tag":null,"Text":"(string)                    xEncode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6902","Tag":null,"Text":"(string)                    protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6903","Tag":null,"Text":"(string)                    OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6904","Tag":null,"Text":"(string)                    ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6905","Tag":null,"Text":"(string)                    myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6906","Tag":null,"Text":"(string)                    xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6907","Tag":null,"Text":"(string)                    xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6908","Tag":null,"Text":"(string)                    xDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6909","Tag":null,"Text":"(string)                    eDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6910","Tag":null,"Text":"(string)                    xEncodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6911","Tag":null,"Text":"(string)                    xEncodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6912","Tag":null,"Text":"(string)                    xEncodeError => xEncodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6913","Tag":null,"Text":"(string)                    eEncodeError => eEncodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6914","Tag":null,"Text":"(string)            MetricProtobufsType.extension_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6915","Tag":null,"Text":"(string)                eEncodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6916","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6917","Tag":null,"Text":"(string)        END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6918","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6919","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6920","Tag":null,"Text":"(string)    //Field number and length and we're done!"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6921","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6922","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6923","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.ReencodeLengthDelimited(ProtobufFieldNumber := 2,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6924","Tag":null,"Text":"(string)            startingByteOfEncodedData := startingByteOfEncodedData);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6925","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6926","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6927","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6928","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6929","Tag":null,"Text":"(string)    //DONE :)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6930","Tag":null,"Text":"(string)    xEncodeDone := NOT xEncodeError;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6931","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)644","Tag":null,"Text":"(string)END_IF;"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)6233","Tag":null,"Text":"(string)(*"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6234","Tag":null,"Text":"(string)    Allows for the representation of a Sparkplug B metric in both object form and protobufs binary blob form"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6235","Tag":null,"Text":"(string)\tAllows for the transformation of a Sparkplug B metric between object form and protobufs binary blob form"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6236","Tag":null,"Text":"(string)*)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6237","Tag":null,"Text":"(string){attribute 'hide'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6238","Tag":null,"Text":"(string){attribute 'enable_dynamic_creation'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6932","Tag":null,"Text":"(string){attribute 'no_assign'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6239","Tag":null,"Text":"(string)FUNCTION_BLOCK FB_PayloadMetric EXTENDS FBF.InstanceBase IMPLEMENTS LinkedList.IElement, __SYSTEM.IQueryInterface"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6240","Tag":null,"Text":"(string)VAR_INPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6241","Tag":null,"Text":"(string)    (*Trigers for conversion*)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6242","Tag":null,"Text":"(string)    xDecode : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6243","Tag":null,"Text":"(string)    xEncode : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6244","Tag":null,"Text":"(string)    protobufBlobMaxIndex : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6245","Tag":null,"Text":"(string)    PoolManager : IPoolManager;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6246","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6247","Tag":null,"Text":"(string)VAR_IN_OUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6248","Tag":null,"Text":"(string)    OwnerPayload : FB_Payload; //He manages the assigning of Pool Objects"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6249","Tag":null,"Text":"(string)    ProtobufBlobIndex : DINT; //For decoding, starts where the start of the Metric is, ends on the last byte of the Metric.  For Encoding, starts where the first byte of the Metric should be written to, ends on the next free byte after this metric"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6250","Tag":null,"Text":"(string)    myProtobufBlob : ARRAY[*] OF BYTE; //array of bytes containing the protobuf payload.  If the array is the whole"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6251","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6252","Tag":null,"Text":"(string)VAR_OUTPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6253","Tag":null,"Text":"(string)    xDecodeDone, xDecodeBusy, xDecodeError : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6254","Tag":null,"Text":"(string)    eDecodeError : ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6255","Tag":null,"Text":"(string)    xEncodeDone, xEncodeBusy, xEncodeError : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6256","Tag":null,"Text":"(string)    eEncodeError : ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6257","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6258","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6259","Tag":null,"Text":"(string)    (*Internal variables*)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6260","Tag":null,"Text":"(string)    dviTemp : DecodedVarInt;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6261","Tag":null,"Text":"(string)    startingByteOfEncodedData : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6262","Tag":null,"Text":"(string)    eDecodeState : PayloadDecodeStates;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6263","Tag":null,"Text":"(string)    lengthOfMetric : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6264","Tag":null,"Text":"(string)    finalByteIndex : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6265","Tag":null,"Text":"(string)    (* Structured data *)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6266","Tag":null,"Text":"(string)    //     message Metric {"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6267","Tag":null,"Text":"(string)    // "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6268","Tag":null,"Text":"(string)    //         optional string   name          = 1;        // Metric name - should only be included on birth"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6269","Tag":null,"Text":"(string)    _xHasName : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6270","Tag":null,"Text":"(string)    _sName : WSTRING;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6271","Tag":null,"Text":"(string)    //         optional uint64   alias         = 2;        // Metric alias - tied to name on birth and included in all later DATA messages"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6272","Tag":null,"Text":"(string)    _xHasAlias : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6273","Tag":null,"Text":"(string)    _uliAlias : ULINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6274","Tag":null,"Text":"(string)    //         optional uint64   timestamp     = 3;        // Timestamp associated with data acquisition time"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6275","Tag":null,"Text":"(string)    _xHasTimestamp : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6276","Tag":null,"Text":"(string)    _uliTimestamp : T_DateTime;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6277","Tag":null,"Text":"(string)    //         optional uint32   datatype      = 4;        // DataType of the metric/tag value"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6278","Tag":null,"Text":"(string)    _xHasDatatype : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6279","Tag":null,"Text":"(string)    _udiDatatype : MetricDataType;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6280","Tag":null,"Text":"(string)    //         optional bool     is_historical = 5;        // If this is historical data and should not update real time tag"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6281","Tag":null,"Text":"(string)    _xHasIs_historical : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6282","Tag":null,"Text":"(string)    _xIs_historical : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6283","Tag":null,"Text":"(string)    //         optional bool     is_transient  = 6;        // Tells conNumberOfMetricsing clients such as MQTT Engine to not store this as a tag"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6284","Tag":null,"Text":"(string)    _xHasIs_transient : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6285","Tag":null,"Text":"(string)    _xIs_transient : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6286","Tag":null,"Text":"(string)    //         optional bool     is_null       = 7;        // If this is null - explicitly say so rather than using -1, false, etc for some datatypes."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6287","Tag":null,"Text":"(string)    _xHasIs_null : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6288","Tag":null,"Text":"(string)    _xIs_null : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6289","Tag":null,"Text":"(string)    //         optional MetaData metadata      = 8;        // Metadata for the payload"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6290","Tag":null,"Text":"(string)    _myHasMetaData : HasMetaData;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6291","Tag":null,"Text":"(string)    _myMetaData : MetaData;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6292","Tag":null,"Text":"(string)    _metadatastartindex : DINT; //encode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6293","Tag":null,"Text":"(string)    _metadataendindex : DINT; //decode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6294","Tag":null,"Text":"(string)    //         optional PropertySet properties = 9;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6295","Tag":null,"Text":"(string)    _xHasPropertySet : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6296","Tag":null,"Text":"(string)    _myPropertySet : FB_PayloadPropertySet;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6297","Tag":null,"Text":"(string)    // "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6298","Tag":null,"Text":"(string)    //         IC: note, oneof means \"either zero or one of\""}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6299","Tag":null,"Text":"(string)    //         oneof value {"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6300","Tag":null,"Text":"(string)    _eHasValue : MetricProtobufsType;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6301","Tag":null,"Text":"(string)    //             uint32   int_value                      = 10;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6302","Tag":null,"Text":"(string)    //             uint64   long_value                     = 11;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6303","Tag":null,"Text":"(string)    //             bool     boolean_value                  = 14;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6304","Tag":null,"Text":"(string)    _dzzValue : DecodedVarInt;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6305","Tag":null,"Text":"(string)    //             float    float_value                    = 12;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6306","Tag":null,"Text":"(string)    _rValue : REAL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6307","Tag":null,"Text":"(string)    //             double   double_value                   = 13;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6308","Tag":null,"Text":"(string)    _lrValue : LREAL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6309","Tag":null,"Text":"(string)    //             string   string_value                   = 15;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6310","Tag":null,"Text":"(string)    _sValue : WSTRING;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6311","Tag":null,"Text":"(string)    //             bytes    bytes_value                    = 16;       // Bytes, File"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6312","Tag":null,"Text":"(string)    _diHasBytes : DINT; // there's only at most 1 body, but this number represents how many bytes"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6313","Tag":null,"Text":"(string)    _diStartOfBytes : DINT; // Array Index to the start position in FB_Payload.myBodyPool[] make up the \"body\""}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6314","Tag":null,"Text":"(string)    //             DataSet  dataset_value                  = 17;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6315","Tag":null,"Text":"(string)    _myDataSet : FB_PayloadDataSet;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6316","Tag":null,"Text":"(string)    //             Template template_value                 = 18;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6317","Tag":null,"Text":"(string)    _myTemplate : FB_PayloadTemplate;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6318","Tag":null,"Text":"(string)    // NO EXTENSIONS"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6319","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6320","Tag":null,"Text":"(string)    // LinkedList.IElement"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6321","Tag":null,"Text":"(string)    _itfPrev : LinkedList.IElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6322","Tag":null,"Text":"(string)    _itfNext : LinkedList.IElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)6323","Tag":null,"Text":"(string)    _itfList : LinkedList.IList;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1","Tag":null,"Text":"(string)END_VAR"}}]}}}}},"UniqueIdGenerator":"(string)6932","POULevel":{"@Type":"8e575c5b:Enum","@Value":"Standard"},"ChildObjectGuids":{"@Type":"ArrayList:IList","@Value":[]},"AddAttributeSubsequent":"(bool)False"}},"TypeInfos":{"0db3d7bb":"{0db3d7bb-cde0-4416-9a7b-ce49a0124323}","3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","6f9dac99":"{6f9dac99-8de1-4efc-8465-68ac443b7d08}","8e575c5b":"{8e575c5b-1d37-49c6-941b-5c0ec7874787}","a5de0b0b":"{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","ArrayList":"System.Collections.ArrayList","bool":"System.Boolean","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","long":"System.Int64","string":"System.String"}}},"FormatVersion":"1.0"}