a/project/sparkplug™_mqtt_edge_and_host-stack_b9741afd/function_blocks_8ad6e219/fb_payload_ad205903/fb_payloadpropertyvalue_0d6f9a00/0d6f9a0061ee4333b00b654945dde230.object b/project/sparkplug™_mqtt_edge_and_host-stack_b9741afd/function_blocks_8ad6e219/fb_payload_ad205903/fb_payloadpropertyvalue_0d6f9a00/0d6f9a0061ee4333b00b654945dde230.object
1
{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)0d6f9a00-61ee-4333-b00b-654945dde230","ParentGuid":"(Guid)00000000-0000-0000-0000-000000000000","Name":"(string)FB_PayloadPropertyValue","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)2984","Tag":null,"Text":"(string)//This IF statement"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2985","Tag":null,"Text":"(string)IF xDecode AND xEncode THEN //ERROR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2986","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2987","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2988","Tag":null,"Text":"(string)    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2989","Tag":null,"Text":"(string)    eDecodeError := ERROR.PayloadYouCantDoBothAtOnce;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2990","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2991","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2992","Tag":null,"Text":"(string)    xEncodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2993","Tag":null,"Text":"(string)    eEncodeError := ERROR.PayloadYouCantDoBothAtOnce;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2994","Tag":null,"Text":"(string)ELSIF NOT xDecode AND NOT xEncode THEN //DO NOTHING, ALL OUTPUTS OFF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2995","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2996","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2997","Tag":null,"Text":"(string)    xDecodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2998","Tag":null,"Text":"(string)    eDecodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2999","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3000","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3001","Tag":null,"Text":"(string)    xEncodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3002","Tag":null,"Text":"(string)    eEncodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3003","Tag":null,"Text":"(string)ELSIF xDecode AND NOT xEncode THEN //Decode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3004","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3005","Tag":null,"Text":"(string)    xDecodeBusy := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3006","Tag":null,"Text":"(string)    xDecodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3007","Tag":null,"Text":"(string)    eDecodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3008","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3009","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3010","Tag":null,"Text":"(string)    xEncodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3011","Tag":null,"Text":"(string)    eEncodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3012","Tag":null,"Text":"(string)ELSIF NOT xDecode AND xEncode THEN //Encode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3013","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3014","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3015","Tag":null,"Text":"(string)    xDecodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3016","Tag":null,"Text":"(string)    eDecodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3017","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3018","Tag":null,"Text":"(string)    xEncodeBusy := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3019","Tag":null,"Text":"(string)    xEncodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3020","Tag":null,"Text":"(string)    eEncodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3021","Tag":null,"Text":"(string)END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3022","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3023","Tag":null,"Text":"(string)IF xDecodeBusy THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3024","Tag":null,"Text":"(string)    InitializeStructure();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3025","Tag":null,"Text":"(string)    eDecodeState := PayloadDecodeStates.object_getlength;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3026","Tag":null,"Text":"(string)    //decode length"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3027","Tag":null,"Text":"(string)    dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3028","Tag":null,"Text":"(string)    lengthOfObject := dviTemp.int32;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3029","Tag":null,"Text":"(string)    finalByteIndex := ProtobufBlobIndex + lengthOfObject;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3030","Tag":null,"Text":"(string)    ProtobufBlobIndex := ProtobufBlobIndex + 1;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3031","Tag":null,"Text":"(string)    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3032","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3033","Tag":null,"Text":"(string)    //for i to i + length - 1"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3034","Tag":null,"Text":"(string)    FOR ProtobufBlobIndex := ProtobufBlobIndex TO finalByteIndex DO"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3035","Tag":null,"Text":"(string)        CASE eDecodeState OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3036","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getmember:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3037","Tag":null,"Text":"(string)                CASE myProtobufBlob[ProtobufBlobIndex] OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3038","Tag":null,"Text":"(string)                    16#00: //end of data? padding byte? ERROR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3039","Tag":null,"Text":"(string)                        xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3040","Tag":null,"Text":"(string)                        eDecodeError := ERROR.PayloadFound00;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3041","Tag":null,"Text":"(string)                        ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3042","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_type:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3043","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_gettype;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3044","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_is_null:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3045","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getis_null;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3046","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_int_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3047","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getint_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3048","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_long_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3049","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getlong_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3050","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_float_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3051","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getfloat_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3052","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_double_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3053","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getdouble_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3054","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_boolean_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3055","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getboolean_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3056","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_string_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3057","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getstring_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3058","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_propertyset_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3059","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getProperties;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3060","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_propertysets_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3061","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getPropertyList_length;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3062","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_extension_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3063","Tag":null,"Text":"(string)                        xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3064","Tag":null,"Text":"(string)                        eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3065","Tag":null,"Text":"(string)                        ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3066","Tag":null,"Text":"(string)                ELSE //extension... error"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3067","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3068","Tag":null,"Text":"(string)                    eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3069","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3070","Tag":null,"Text":"(string)                END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3071","Tag":null,"Text":"(string)            PayloadDecodeStates.object_gettype:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3072","Tag":null,"Text":"(string)                _xHasType := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3073","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3074","Tag":null,"Text":"(string)                _eType := dviTemp.UInt32;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3075","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3076","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getis_null:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3077","Tag":null,"Text":"(string)                _xHasIs_null := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3078","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3079","Tag":null,"Text":"(string)                _xIs_null := dviTemp.Boolean;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3080","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3081","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getint_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3082","Tag":null,"Text":"(string)                _eHasValue := PropertyProtobufsType.int_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3083","Tag":null,"Text":"(string)                _dzzValue := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3084","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3085","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getlong_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3086","Tag":null,"Text":"(string)                _eHasValue := PropertyProtobufsType.long_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3087","Tag":null,"Text":"(string)                _dzzValue := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3088","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3089","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getfloat_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3090","Tag":null,"Text":"(string)                _eHasValue := PropertyProtobufsType.float_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3091","Tag":null,"Text":"(string)                _rValue := OwnerPayload.DecodeNextFloat(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3092","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3093","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getdouble_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3094","Tag":null,"Text":"(string)                _eHasValue := PropertyProtobufsType.double_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3095","Tag":null,"Text":"(string)                _lrValue := OwnerPayload.DecodeNextDouble(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3096","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3097","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getboolean_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3098","Tag":null,"Text":"(string)                _eHasValue := PropertyProtobufsType.boolean_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3099","Tag":null,"Text":"(string)                _dzzValue := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3100","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3101","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getstring_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3102","Tag":null,"Text":"(string)                _eHasValue := PropertyProtobufsType.string_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3103","Tag":null,"Text":"(string)                _sValue := OwnerPayload.DecodeNextString(); //updates i to end of the string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3104","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3105","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getProperties:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3106","Tag":null,"Text":"(string)                _eHasValue := PropertyProtobufsType.propertyset_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3107","Tag":null,"Text":"(string)                THIS^._myPropertySet(xDecode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3108","Tag":null,"Text":"(string)                    xEncode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3109","Tag":null,"Text":"(string)                    protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3110","Tag":null,"Text":"(string)                    ProtobufFieldNumber :=,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3111","Tag":null,"Text":"(string)                    OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3112","Tag":null,"Text":"(string)                    ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3113","Tag":null,"Text":"(string)                    myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3114","Tag":null,"Text":"(string)                    xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3115","Tag":null,"Text":"(string)                    xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3116","Tag":null,"Text":"(string)                    xDecodeError => xDecodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3117","Tag":null,"Text":"(string)                    eDecodeError => eDecodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3118","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3119","Tag":null,"Text":"(string)                IF NOT xDecodeError THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3120","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3121","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3122","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3123","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3124","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getPropertyList_length:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3125","Tag":null,"Text":"(string)                SetValueToPropertySetListEmpty();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3126","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3127","Tag":null,"Text":"(string)                _myPropertySetListendindex := dviTemp.Int32 + ProtobufBlobIndex;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3128","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3129","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _myPropertySetListendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3130","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getPropertyList_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3131","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3132","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3133","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3134","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getPropertyList_member:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3135","Tag":null,"Text":"(string)                CASE myProtobufBlob[ProtobufBlobIndex] OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3136","Tag":null,"Text":"(string)                    16#00: //end of data? padding byte? ERROR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3137","Tag":null,"Text":"(string)                        xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3138","Tag":null,"Text":"(string)                        eDecodeError := ERROR.PayloadFound00;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3139","Tag":null,"Text":"(string)                        ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3140","Tag":null,"Text":"(string)                    ProtobufedId.PropertySetList_propertyset:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3141","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getPropertyList_PropertiesSet;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3142","Tag":null,"Text":"(string)                ELSE //extension... error"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3143","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3144","Tag":null,"Text":"(string)                    eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3145","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3146","Tag":null,"Text":"(string)                END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3147","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getPropertyList_PropertiesSet:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3148","Tag":null,"Text":"(string)                recentlyClaimedPropertySet REF= AddPropertySetToListBlank(OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3149","Tag":null,"Text":"(string)                    eError => eDecodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3150","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3151","Tag":null,"Text":"(string)                IF eDecodeError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3152","Tag":null,"Text":"(string)                    //i starts off now pointing to the first byte of the object"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3153","Tag":null,"Text":"(string)                    THIS^.recentlyClaimedPropertySet(xDecode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3154","Tag":null,"Text":"(string)                        xEncode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3155","Tag":null,"Text":"(string)                        protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3156","Tag":null,"Text":"(string)                        ProtobufFieldNumber :=,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3157","Tag":null,"Text":"(string)                        OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3158","Tag":null,"Text":"(string)                        ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3159","Tag":null,"Text":"(string)                        myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3160","Tag":null,"Text":"(string)                        xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3161","Tag":null,"Text":"(string)                        xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3162","Tag":null,"Text":"(string)                        xDecodeError => xDecodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3163","Tag":null,"Text":"(string)                        eDecodeError => eDecodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3164","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3165","Tag":null,"Text":"(string)                    IF recentlyClaimedPropertySet.xDecodeDone THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3166","Tag":null,"Text":"(string)                        //SUCCESS! the latest object has now been decoded"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3167","Tag":null,"Text":"(string)                        //i is now pointing to the very last byte of the object"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3168","Tag":null,"Text":"(string)                        IF ProtobufBlobIndex < _myPropertySetListendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3169","Tag":null,"Text":"(string)                            eDecodeState := PayloadDecodeStates.object_getPropertyList_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3170","Tag":null,"Text":"(string)                        ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3171","Tag":null,"Text":"(string)                            eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3172","Tag":null,"Text":"(string)                        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3173","Tag":null,"Text":"(string)                    ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3174","Tag":null,"Text":"(string)                        ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3175","Tag":null,"Text":"(string)                    END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3176","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3177","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3178","Tag":null,"Text":"(string)                    //eDecodeError := ERROR.Can't Claim Metric;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3179","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3180","Tag":null,"Text":"(string)                END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3181","Tag":null,"Text":"(string)        END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3182","Tag":null,"Text":"(string)    END_FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3183","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3184","Tag":null,"Text":"(string)    IF NOT xDecodeError THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3185","Tag":null,"Text":"(string)        ProtobufBlobIndex := ProtobufBlobIndex - 1; //i is now final byte index.\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3186","Tag":null,"Text":"(string)    END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3187","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3188","Tag":null,"Text":"(string)    eDecodeState := PayloadDecodeStates.idle;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3189","Tag":null,"Text":"(string)    xDecodeDone := NOT xDecodeError;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3190","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3191","Tag":null,"Text":"(string)END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3192","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3193","Tag":null,"Text":"(string)IF xEncodeBusy THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3194","Tag":null,"Text":"(string)    //NOTE: BLOB Data will not be initialized to 00."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3195","Tag":null,"Text":"(string)    //But we will start with a 0 byte payload."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3196","Tag":null,"Text":"(string)    //store the starting byte, because we need it right at the end"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3197","Tag":null,"Text":"(string)    startingByteOfEncodedData := ProtobufBlobIndex;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3198","Tag":null,"Text":"(string)    //Encode DataType"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3199","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasType THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3200","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3201","Tag":null,"Text":"(string)        dviTemp.Uint32 := _eType;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3202","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3203","Tag":null,"Text":"(string)            ProtobufFieldNumber := 1);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3204","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3205","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3206","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3207","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3208","Tag":null,"Text":"(string)    //Encode is_null"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3209","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasIs_null THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3210","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3211","Tag":null,"Text":"(string)        dviTemp.Boolean := _xIs_null;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3212","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3213","Tag":null,"Text":"(string)            ProtobufFieldNumber := 2);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3214","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3215","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3216","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3217","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3218","Tag":null,"Text":"(string)    //encode Value"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3219","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3220","Tag":null,"Text":"(string)        CASE _eHasValue OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3221","Tag":null,"Text":"(string)            PropertyProtobufsType.boolean_value, PropertyProtobufsType.int_value, PropertyProtobufsType.long_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3222","Tag":null,"Text":"(string)                IF GVL_sparkplug.IWantBuggyUInt32s AND _xHasType AND (_eType = PropertyDataType.UInt32) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3223","Tag":null,"Text":"(string)                    // Supports Ignition with MQTT Engine 4.0.5"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3224","Tag":null,"Text":"(string)                    eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := _dzzValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3225","Tag":null,"Text":"(string)                        ProtobufFieldNumber :="}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3226","Tag":null,"Text":"(string)                            TO_BYTE(PropertyProtobufsType.long_value));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3227","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3228","Tag":null,"Text":"(string)                    // Follow the SparkplugB Specification"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3229","Tag":null,"Text":"(string)                    eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := _dzzValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3230","Tag":null,"Text":"(string)                        ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3231","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3232","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3233","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3234","Tag":null,"Text":"(string)            PropertyProtobufsType.float_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3235","Tag":null,"Text":"(string)                eEncodeError := OwnerPayload.EncodeNextFloat(ValueToEncode := _rValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3236","Tag":null,"Text":"(string)                    ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3237","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3238","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3239","Tag":null,"Text":"(string)            PropertyProtobufsType.double_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3240","Tag":null,"Text":"(string)                eEncodeError := OwnerPayload.EncodeNextDouble(ValueToEncode := _lrValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3241","Tag":null,"Text":"(string)                    ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3242","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3243","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3244","Tag":null,"Text":"(string)            PropertyProtobufsType.string_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3245","Tag":null,"Text":"(string)                eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _sValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3246","Tag":null,"Text":"(string)                    ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3247","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3248","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3249","Tag":null,"Text":"(string)            PropertyProtobufsType.propertyset_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3250","Tag":null,"Text":"(string)                THIS^._myPropertySet(xDecode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3251","Tag":null,"Text":"(string)                    xEncode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3252","Tag":null,"Text":"(string)                    protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3253","Tag":null,"Text":"(string)                    ProtobufFieldNumber := 9,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3254","Tag":null,"Text":"(string)                    OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3255","Tag":null,"Text":"(string)                    ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3256","Tag":null,"Text":"(string)                    myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3257","Tag":null,"Text":"(string)                    xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3258","Tag":null,"Text":"(string)                    xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3259","Tag":null,"Text":"(string)                    xDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3260","Tag":null,"Text":"(string)                    eDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3261","Tag":null,"Text":"(string)                    xEncodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3262","Tag":null,"Text":"(string)                    xEncodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3263","Tag":null,"Text":"(string)                    xEncodeError => xEncodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3264","Tag":null,"Text":"(string)                    eEncodeError => eEncodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3265","Tag":null,"Text":"(string)            PropertyProtobufsType.propertysets_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3266","Tag":null,"Text":"(string)                // So this is actually an object called PropertySetList, which has a repeated element of PropertySet"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3267","Tag":null,"Text":"(string)                _myPropertySetListstartindex := ProtobufBlobIndex;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3268","Tag":null,"Text":"(string)                // Encode each member of the List"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3269","Tag":null,"Text":"(string)                _myPropertySetList.ItterateRestart(HasNext => _COL_HasNext);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3270","Tag":null,"Text":"(string)                WHILE _COL_HasNext AND (eEncodeError = ERROR.NO_ERROR) DO"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3271","Tag":null,"Text":"(string)                    _myPropertySetList.ItterateNext(itfElement => _COL_Element,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3272","Tag":null,"Text":"(string)                        HasNext => _COL_HasNext);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3273","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3274","Tag":null,"Text":"(string)                    IF __QUERYPOINTER(_COL_Element,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3275","Tag":null,"Text":"(string)                        nextPropertySetToEncode) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3276","Tag":null,"Text":"(string)                        nextPropertySetToEncode^(xDecode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3277","Tag":null,"Text":"(string)                            xEncode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3278","Tag":null,"Text":"(string)                            protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3279","Tag":null,"Text":"(string)                            ProtobufFieldNumber := 1,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3280","Tag":null,"Text":"(string)                            OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3281","Tag":null,"Text":"(string)                            ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3282","Tag":null,"Text":"(string)                            myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3283","Tag":null,"Text":"(string)                            xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3284","Tag":null,"Text":"(string)                            xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3285","Tag":null,"Text":"(string)                            xDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3286","Tag":null,"Text":"(string)                            eDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3287","Tag":null,"Text":"(string)                            xEncodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3288","Tag":null,"Text":"(string)                            xEncodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3289","Tag":null,"Text":"(string)                            xEncodeError => xEncodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3290","Tag":null,"Text":"(string)                            eEncodeError => eEncodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3291","Tag":null,"Text":"(string)                    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3292","Tag":null,"Text":"(string)                END_WHILE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3293","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3294","Tag":null,"Text":"(string)                // Now all the Property sets are encoded, shift it and add the Field Number"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3295","Tag":null,"Text":"(string)                IF eEncodeError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3296","Tag":null,"Text":"(string)                    eEncodeError := OwnerPayload.ReencodeLengthDelimited(ProtobufFieldNumber := 10,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3297","Tag":null,"Text":"(string)                        startingByteOfEncodedData :="}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3298","Tag":null,"Text":"(string)                            _myPropertySetListstartindex);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3299","Tag":null,"Text":"(string)                END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3300","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3301","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3302","Tag":null,"Text":"(string)            PropertyProtobufsType.extension_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3303","Tag":null,"Text":"(string)                eEncodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3304","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3305","Tag":null,"Text":"(string)        END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3306","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3307","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3308","Tag":null,"Text":"(string)    //Field number and length and we're done!"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3309","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3310","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3311","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.ReencodeLengthDelimited(ProtobufFieldNumber := 2,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3312","Tag":null,"Text":"(string)            startingByteOfEncodedData := startingByteOfEncodedData);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3313","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3314","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3315","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3316","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3317","Tag":null,"Text":"(string)    //DONE :)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3318","Tag":null,"Text":"(string)    xEncodeDone := NOT xEncodeError;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3319","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)9","Tag":null,"Text":"(string)END_IF;"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)2912","Tag":null,"Text":"(string){attribute 'hide'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2913","Tag":null,"Text":"(string){attribute 'enable_dynamic_creation'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2914","Tag":null,"Text":"(string)FUNCTION_BLOCK FB_PayloadPropertyValue EXTENDS FBF.InstanceBase IMPLEMENTS LinkedList.IElement, __SYSTEM.IQueryInterface"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2915","Tag":null,"Text":"(string)VAR_INPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2916","Tag":null,"Text":"(string)    (*Trigers for conversion*)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2917","Tag":null,"Text":"(string)    xDecode : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2918","Tag":null,"Text":"(string)    xEncode : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2919","Tag":null,"Text":"(string)    protobufBlobMaxIndex : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2920","Tag":null,"Text":"(string)    PoolManager : IPoolManager;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2921","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2922","Tag":null,"Text":"(string)VAR_IN_OUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2923","Tag":null,"Text":"(string)    OwnerPayload : FB_Payload; //He manages the assigning of Pool Objects"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2924","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)2925","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)2926","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2927","Tag":null,"Text":"(string)VAR_OUTPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2928","Tag":null,"Text":"(string)    xDecodeDone, xDecodeBusy, xDecodeError : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2929","Tag":null,"Text":"(string)    eDecodeError : ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2930","Tag":null,"Text":"(string)    xEncodeDone, xEncodeBusy, xEncodeError : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2931","Tag":null,"Text":"(string)    eEncodeError : ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2932","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2933","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2934","Tag":null,"Text":"(string)    (*Internal variables*)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2935","Tag":null,"Text":"(string)    dviTemp : DecodedVarInt;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2936","Tag":null,"Text":"(string)    startingByteOfEncodedData : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2937","Tag":null,"Text":"(string)    eDecodeState : PayloadDecodeStates;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2938","Tag":null,"Text":"(string)    lengthOfObject : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2939","Tag":null,"Text":"(string)    finalByteIndex : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2940","Tag":null,"Text":"(string)    recentlyClaimedPropertySet : REFERENCE TO FB_PayloadPropertySet;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2941","Tag":null,"Text":"(string)    nextPropertySetToEncode : POINTER TO FB_PayloadPropertySet;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2942","Tag":null,"Text":"(string)    // \t    message PropertyValue {"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2943","Tag":null,"Text":"(string)    // "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2944","Tag":null,"Text":"(string)    //         optional uint32     type                    = 1;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2945","Tag":null,"Text":"(string)    _xHasType : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2946","Tag":null,"Text":"(string)    _eType : PropertyDataType;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2947","Tag":null,"Text":"(string)    //         optional bool       is_null                 = 2; "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2948","Tag":null,"Text":"(string)    _xHasIs_null : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2949","Tag":null,"Text":"(string)    _xIs_null : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2950","Tag":null,"Text":"(string)    // "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2951","Tag":null,"Text":"(string)    //         oneof value {"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2952","Tag":null,"Text":"(string)    _eHasValue : PropertyProtobufsType;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2953","Tag":null,"Text":"(string)    //             uint32          int_value               = 3;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2954","Tag":null,"Text":"(string)    //             uint64          long_value              = 4;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2955","Tag":null,"Text":"(string)    //             bool            boolean_value           = 7;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2956","Tag":null,"Text":"(string)    _dzzValue : DecodedVarInt;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2957","Tag":null,"Text":"(string)    //             float           float_value             = 5;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2958","Tag":null,"Text":"(string)    _rValue : REAL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2959","Tag":null,"Text":"(string)    //             double          double_value            = 6;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2960","Tag":null,"Text":"(string)    _lrValue : LREAL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2961","Tag":null,"Text":"(string)    //             string          string_value            = 8;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2962","Tag":null,"Text":"(string)    _sValue : WSTRING;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2963","Tag":null,"Text":"(string)    //             PropertySet     propertyset_value       = 9;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2964","Tag":null,"Text":"(string)    _myPropertySet : FB_PayloadPropertySet;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2965","Tag":null,"Text":"(string)    //             PropertySetList propertysets_value      = 10;      // List of Property Values"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2966","Tag":null,"Text":"(string)    _myPropertySetList : LinkedList.List; // OF FB_PayloadPropertySet"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2967","Tag":null,"Text":"(string)    _myPropertySetListstartindex : DINT; //encode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2968","Tag":null,"Text":"(string)    _myPropertySetListendindex : DINT; //decode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2969","Tag":null,"Text":"(string)    //             PropertyValueExtension extension_value  = 11;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2970","Tag":null,"Text":"(string)    //         }"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2971","Tag":null,"Text":"(string)    // "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2972","Tag":null,"Text":"(string)    //         message PropertyValueExtension {"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2973","Tag":null,"Text":"(string)    //             extensions                             1 to max;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2974","Tag":null,"Text":"(string)    //         }"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2975","Tag":null,"Text":"(string)    //     }"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2976","Tag":null,"Text":"(string)    // NO EXTENSIONS"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2977","Tag":null,"Text":"(string)    _COL_HasNext : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2978","Tag":null,"Text":"(string)    _COL_Element : LinkedList.IElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2979","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2980","Tag":null,"Text":"(string)    // LinkedList.IElement"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2981","Tag":null,"Text":"(string)    _itfPrev : LinkedList.IElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2982","Tag":null,"Text":"(string)    _itfNext : LinkedList.IElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2983","Tag":null,"Text":"(string)    _itfList : LinkedList.IList;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1","Tag":null,"Text":"(string)END_VAR"}}]}}}}},"UniqueIdGenerator":"(string)3319","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)0d6f9a00-61ee-4333-b00b-654945dde230","ParentGuid":"(Guid)00000000-0000-0000-0000-000000000000","Name":"(string)FB_PayloadPropertyValue","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)2984","Tag":null,"Text":"(string)//This IF statement"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2985","Tag":null,"Text":"(string)IF xDecode AND xEncode THEN //ERROR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2986","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2987","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2988","Tag":null,"Text":"(string)    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2989","Tag":null,"Text":"(string)    eDecodeError := ERROR.PayloadYouCantDoBothAtOnce;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2990","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2991","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2992","Tag":null,"Text":"(string)    xEncodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2993","Tag":null,"Text":"(string)    eEncodeError := ERROR.PayloadYouCantDoBothAtOnce;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2994","Tag":null,"Text":"(string)ELSIF NOT xDecode AND NOT xEncode THEN //DO NOTHING, ALL OUTPUTS OFF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2995","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2996","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2997","Tag":null,"Text":"(string)    xDecodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2998","Tag":null,"Text":"(string)    eDecodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2999","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3000","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3001","Tag":null,"Text":"(string)    xEncodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3002","Tag":null,"Text":"(string)    eEncodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3003","Tag":null,"Text":"(string)ELSIF xDecode AND NOT xEncode THEN //Decode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3004","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3005","Tag":null,"Text":"(string)    xDecodeBusy := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3006","Tag":null,"Text":"(string)    xDecodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3007","Tag":null,"Text":"(string)    eDecodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3008","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3009","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3010","Tag":null,"Text":"(string)    xEncodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3011","Tag":null,"Text":"(string)    eEncodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3012","Tag":null,"Text":"(string)ELSIF NOT xDecode AND xEncode THEN //Encode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3013","Tag":null,"Text":"(string)    xDecodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3014","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3015","Tag":null,"Text":"(string)    xDecodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3016","Tag":null,"Text":"(string)    eDecodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3017","Tag":null,"Text":"(string)    xEncodeDone := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3018","Tag":null,"Text":"(string)    xEncodeBusy := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3019","Tag":null,"Text":"(string)    xEncodeError := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3020","Tag":null,"Text":"(string)    eEncodeError := ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3021","Tag":null,"Text":"(string)END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3022","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3023","Tag":null,"Text":"(string)IF xDecodeBusy THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3024","Tag":null,"Text":"(string)    InitializeStructure();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3025","Tag":null,"Text":"(string)    eDecodeState := PayloadDecodeStates.object_getlength;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3026","Tag":null,"Text":"(string)    //decode length"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3027","Tag":null,"Text":"(string)    dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3028","Tag":null,"Text":"(string)    lengthOfObject := dviTemp.int32;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3029","Tag":null,"Text":"(string)    finalByteIndex := ProtobufBlobIndex + lengthOfObject;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3030","Tag":null,"Text":"(string)    ProtobufBlobIndex := ProtobufBlobIndex + 1;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3031","Tag":null,"Text":"(string)    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3032","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3033","Tag":null,"Text":"(string)    //for i to i + length - 1"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3034","Tag":null,"Text":"(string)    FOR ProtobufBlobIndex := ProtobufBlobIndex TO finalByteIndex DO"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3035","Tag":null,"Text":"(string)        CASE eDecodeState OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3036","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getmember:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3037","Tag":null,"Text":"(string)                CASE myProtobufBlob[ProtobufBlobIndex] OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3038","Tag":null,"Text":"(string)                    16#00: //end of data? padding byte? ERROR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3039","Tag":null,"Text":"(string)                        xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3040","Tag":null,"Text":"(string)                        eDecodeError := ERROR.PayloadFound00;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3041","Tag":null,"Text":"(string)                        ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3042","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_type:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3043","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_gettype;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3044","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_is_null:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3045","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getis_null;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3046","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_int_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3047","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getint_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3048","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_long_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3049","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getlong_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3050","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_float_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3051","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getfloat_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3052","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_double_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3053","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getdouble_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3054","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_boolean_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3055","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getboolean_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3056","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_string_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3057","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getstring_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3058","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_propertyset_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3059","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getProperties;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3060","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_propertysets_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3061","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getPropertyList_length;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3062","Tag":null,"Text":"(string)                    ProtobufedId.PropertyValue_extension_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3063","Tag":null,"Text":"(string)                        xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3064","Tag":null,"Text":"(string)                        eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3065","Tag":null,"Text":"(string)                        ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3066","Tag":null,"Text":"(string)                ELSE //extension... error"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3067","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3068","Tag":null,"Text":"(string)                    eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3069","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3070","Tag":null,"Text":"(string)                END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3071","Tag":null,"Text":"(string)            PayloadDecodeStates.object_gettype:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3072","Tag":null,"Text":"(string)                _xHasType := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3073","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3074","Tag":null,"Text":"(string)                _eType := dviTemp.UInt32;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3075","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3076","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getis_null:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3077","Tag":null,"Text":"(string)                _xHasIs_null := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3078","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3079","Tag":null,"Text":"(string)                _xIs_null := dviTemp.Boolean;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3080","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3081","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getint_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3082","Tag":null,"Text":"(string)                _eHasValue := PropertyProtobufsType.int_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3083","Tag":null,"Text":"(string)                _dzzValue := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3084","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3085","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getlong_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3086","Tag":null,"Text":"(string)                _eHasValue := PropertyProtobufsType.long_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3087","Tag":null,"Text":"(string)                _dzzValue := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3088","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3089","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getfloat_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3090","Tag":null,"Text":"(string)                _eHasValue := PropertyProtobufsType.float_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3091","Tag":null,"Text":"(string)                _rValue := OwnerPayload.DecodeNextFloat(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3092","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3093","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getdouble_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3094","Tag":null,"Text":"(string)                _eHasValue := PropertyProtobufsType.double_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3095","Tag":null,"Text":"(string)                _lrValue := OwnerPayload.DecodeNextDouble(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3096","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3097","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getboolean_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3098","Tag":null,"Text":"(string)                _eHasValue := PropertyProtobufsType.boolean_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3099","Tag":null,"Text":"(string)                _dzzValue := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3100","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3101","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getstring_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3102","Tag":null,"Text":"(string)                _eHasValue := PropertyProtobufsType.string_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3103","Tag":null,"Text":"(string)                _sValue := OwnerPayload.DecodeNextString(); //updates i to end of the string"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3104","Tag":null,"Text":"(string)                eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3105","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getProperties:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3106","Tag":null,"Text":"(string)                _eHasValue := PropertyProtobufsType.propertyset_value;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3107","Tag":null,"Text":"(string)                THIS^._myPropertySet(xDecode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3108","Tag":null,"Text":"(string)                    xEncode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3109","Tag":null,"Text":"(string)                    protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3110","Tag":null,"Text":"(string)                    ProtobufFieldNumber :=,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3111","Tag":null,"Text":"(string)                    OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3112","Tag":null,"Text":"(string)                    ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3113","Tag":null,"Text":"(string)                    myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3114","Tag":null,"Text":"(string)                    xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3115","Tag":null,"Text":"(string)                    xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3116","Tag":null,"Text":"(string)                    xDecodeError => xDecodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3117","Tag":null,"Text":"(string)                    eDecodeError => eDecodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3118","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3119","Tag":null,"Text":"(string)                IF NOT xDecodeError THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3120","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3121","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3122","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3123","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3124","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getPropertyList_length:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3125","Tag":null,"Text":"(string)                SetValueToPropertySetListEmpty();"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3126","Tag":null,"Text":"(string)                dviTemp := OwnerPayload.DecodeNextVarInt(); //updates i to end of the varint"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3127","Tag":null,"Text":"(string)                _myPropertySetListendindex := dviTemp.Int32 + ProtobufBlobIndex;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3128","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3129","Tag":null,"Text":"(string)                IF ProtobufBlobIndex < _myPropertySetListendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3130","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getPropertyList_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3131","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3132","Tag":null,"Text":"(string)                    eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3133","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3134","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getPropertyList_member:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3135","Tag":null,"Text":"(string)                CASE myProtobufBlob[ProtobufBlobIndex] OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3136","Tag":null,"Text":"(string)                    16#00: //end of data? padding byte? ERROR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3137","Tag":null,"Text":"(string)                        xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3138","Tag":null,"Text":"(string)                        eDecodeError := ERROR.PayloadFound00;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3139","Tag":null,"Text":"(string)                        ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3140","Tag":null,"Text":"(string)                    ProtobufedId.PropertySetList_propertyset:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3141","Tag":null,"Text":"(string)                        eDecodeState := PayloadDecodeStates.object_getPropertyList_PropertiesSet;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3142","Tag":null,"Text":"(string)                ELSE //extension... error"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3143","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3144","Tag":null,"Text":"(string)                    eDecodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3145","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3146","Tag":null,"Text":"(string)                END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3147","Tag":null,"Text":"(string)            PayloadDecodeStates.object_getPropertyList_PropertiesSet:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3148","Tag":null,"Text":"(string)                recentlyClaimedPropertySet REF= AddPropertySetToListBlank(OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3149","Tag":null,"Text":"(string)                    eError => eDecodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3150","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3151","Tag":null,"Text":"(string)                IF eDecodeError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3152","Tag":null,"Text":"(string)                    //i starts off now pointing to the first byte of the object"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3153","Tag":null,"Text":"(string)                    THIS^.recentlyClaimedPropertySet(xDecode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3154","Tag":null,"Text":"(string)                        xEncode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3155","Tag":null,"Text":"(string)                        protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3156","Tag":null,"Text":"(string)                        ProtobufFieldNumber :=,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3157","Tag":null,"Text":"(string)                        OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3158","Tag":null,"Text":"(string)                        ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3159","Tag":null,"Text":"(string)                        myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3160","Tag":null,"Text":"(string)                        xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3161","Tag":null,"Text":"(string)                        xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3162","Tag":null,"Text":"(string)                        xDecodeError => xDecodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3163","Tag":null,"Text":"(string)                        eDecodeError => eDecodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3164","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3165","Tag":null,"Text":"(string)                    IF recentlyClaimedPropertySet.xDecodeDone THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3166","Tag":null,"Text":"(string)                        //SUCCESS! the latest object has now been decoded"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3167","Tag":null,"Text":"(string)                        //i is now pointing to the very last byte of the object"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3168","Tag":null,"Text":"(string)                        IF ProtobufBlobIndex < _myPropertySetListendindex THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3169","Tag":null,"Text":"(string)                            eDecodeState := PayloadDecodeStates.object_getPropertyList_member;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3170","Tag":null,"Text":"(string)                        ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3171","Tag":null,"Text":"(string)                            eDecodeState := PayloadDecodeStates.object_getmember;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3172","Tag":null,"Text":"(string)                        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3173","Tag":null,"Text":"(string)                    ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3174","Tag":null,"Text":"(string)                        ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3175","Tag":null,"Text":"(string)                    END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3176","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3177","Tag":null,"Text":"(string)                    xDecodeError := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3178","Tag":null,"Text":"(string)                    //eDecodeError := ERROR.Can't Claim Metric;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3179","Tag":null,"Text":"(string)                    ProtobufBlobIndex := protobufBlobMaxIndex; //break out of FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3180","Tag":null,"Text":"(string)                END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3181","Tag":null,"Text":"(string)        END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3182","Tag":null,"Text":"(string)    END_FOR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3183","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3184","Tag":null,"Text":"(string)    IF NOT xDecodeError THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3185","Tag":null,"Text":"(string)        ProtobufBlobIndex := ProtobufBlobIndex - 1; //i is now final byte index.\t"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3186","Tag":null,"Text":"(string)    END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3187","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3188","Tag":null,"Text":"(string)    eDecodeState := PayloadDecodeStates.idle;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3189","Tag":null,"Text":"(string)    xDecodeDone := NOT xDecodeError;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3190","Tag":null,"Text":"(string)    xDecodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3191","Tag":null,"Text":"(string)END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3192","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3193","Tag":null,"Text":"(string)IF xEncodeBusy THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3194","Tag":null,"Text":"(string)    //NOTE: BLOB Data will not be initialized to 00."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3195","Tag":null,"Text":"(string)    //But we will start with a 0 byte payload."}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3196","Tag":null,"Text":"(string)    //store the starting byte, because we need it right at the end"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3197","Tag":null,"Text":"(string)    startingByteOfEncodedData := ProtobufBlobIndex;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3198","Tag":null,"Text":"(string)    //Encode DataType"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3199","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasType THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3200","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3201","Tag":null,"Text":"(string)        dviTemp.Uint32 := _eType;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3202","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3203","Tag":null,"Text":"(string)            ProtobufFieldNumber := 1);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3204","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3205","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3206","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3207","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3208","Tag":null,"Text":"(string)    //Encode is_null"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3209","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR AND _xHasIs_null THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3210","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3211","Tag":null,"Text":"(string)        dviTemp.Boolean := _xIs_null;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3212","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := dviTemp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3213","Tag":null,"Text":"(string)            ProtobufFieldNumber := 2);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3214","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3215","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3216","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3217","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3218","Tag":null,"Text":"(string)    //encode Value"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3219","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3220","Tag":null,"Text":"(string)        CASE _eHasValue OF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3221","Tag":null,"Text":"(string)            PropertyProtobufsType.boolean_value, PropertyProtobufsType.int_value, PropertyProtobufsType.long_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3222","Tag":null,"Text":"(string)                IF GVL_sparkplug.IWantBuggyUInt32s AND _xHasType AND (_eType = PropertyDataType.UInt32) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3223","Tag":null,"Text":"(string)                    // Supports Ignition with MQTT Engine 4.0.5"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3224","Tag":null,"Text":"(string)                    eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := _dzzValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3225","Tag":null,"Text":"(string)                        ProtobufFieldNumber :="}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3226","Tag":null,"Text":"(string)                            TO_BYTE(PropertyProtobufsType.long_value));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3227","Tag":null,"Text":"(string)                ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3228","Tag":null,"Text":"(string)                    // Follow the SparkplugB Specification"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3229","Tag":null,"Text":"(string)                    eEncodeError := OwnerPayload.EncodeNextVarInt(ValueToEncode := _dzzValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3230","Tag":null,"Text":"(string)                        ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3231","Tag":null,"Text":"(string)                END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3232","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3233","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3234","Tag":null,"Text":"(string)            PropertyProtobufsType.float_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3235","Tag":null,"Text":"(string)                eEncodeError := OwnerPayload.EncodeNextFloat(ValueToEncode := _rValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3236","Tag":null,"Text":"(string)                    ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3237","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3238","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3239","Tag":null,"Text":"(string)            PropertyProtobufsType.double_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3240","Tag":null,"Text":"(string)                eEncodeError := OwnerPayload.EncodeNextDouble(ValueToEncode := _lrValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3241","Tag":null,"Text":"(string)                    ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3242","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3243","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3244","Tag":null,"Text":"(string)            PropertyProtobufsType.string_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3245","Tag":null,"Text":"(string)                eEncodeError := OwnerPayload.EncodeNextString(ValueToEncode := _sValue,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3246","Tag":null,"Text":"(string)                    ProtobufFieldNumber := TO_BYTE(_eHasValue));"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3247","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3248","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3249","Tag":null,"Text":"(string)            PropertyProtobufsType.propertyset_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3250","Tag":null,"Text":"(string)                THIS^._myPropertySet(xDecode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3251","Tag":null,"Text":"(string)                    xEncode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3252","Tag":null,"Text":"(string)                    protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3253","Tag":null,"Text":"(string)                    ProtobufFieldNumber := 9,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3254","Tag":null,"Text":"(string)                    OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3255","Tag":null,"Text":"(string)                    ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3256","Tag":null,"Text":"(string)                    myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3257","Tag":null,"Text":"(string)                    xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3258","Tag":null,"Text":"(string)                    xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3259","Tag":null,"Text":"(string)                    xDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3260","Tag":null,"Text":"(string)                    eDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3261","Tag":null,"Text":"(string)                    xEncodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3262","Tag":null,"Text":"(string)                    xEncodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3263","Tag":null,"Text":"(string)                    xEncodeError => xEncodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3264","Tag":null,"Text":"(string)                    eEncodeError => eEncodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3265","Tag":null,"Text":"(string)            PropertyProtobufsType.propertysets_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3266","Tag":null,"Text":"(string)                // So this is actually an object called PropertySetList, which has a repeated element of PropertySet"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3267","Tag":null,"Text":"(string)                _myPropertySetListstartindex := ProtobufBlobIndex;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3268","Tag":null,"Text":"(string)                // Encode each member of the List"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3269","Tag":null,"Text":"(string)                _myPropertySetList.ItterateRestart(HasNext => _COL_HasNext);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3270","Tag":null,"Text":"(string)                WHILE _COL_HasNext AND (eEncodeError = ERROR.NO_ERROR) DO"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3271","Tag":null,"Text":"(string)                    _myPropertySetList.ItterateNext(itfElement => _COL_Element,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3272","Tag":null,"Text":"(string)                        HasNext => _COL_HasNext);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3273","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3274","Tag":null,"Text":"(string)                    IF __QUERYPOINTER(_COL_Element,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3275","Tag":null,"Text":"(string)                        nextPropertySetToEncode) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3276","Tag":null,"Text":"(string)                        nextPropertySetToEncode^(xDecode := FALSE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3277","Tag":null,"Text":"(string)                            xEncode := TRUE,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3278","Tag":null,"Text":"(string)                            protobufBlobMaxIndex := protobufBlobMaxIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3279","Tag":null,"Text":"(string)                            ProtobufFieldNumber := 1,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3280","Tag":null,"Text":"(string)                            OwnerPayload := OwnerPayload,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3281","Tag":null,"Text":"(string)                            ProtobufBlobIndex := ProtobufBlobIndex,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3282","Tag":null,"Text":"(string)                            myProtobufBlob := myProtobufBlob,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3283","Tag":null,"Text":"(string)                            xDecodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3284","Tag":null,"Text":"(string)                            xDecodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3285","Tag":null,"Text":"(string)                            xDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3286","Tag":null,"Text":"(string)                            eDecodeError =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3287","Tag":null,"Text":"(string)                            xEncodeDone =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3288","Tag":null,"Text":"(string)                            xEncodeBusy =>,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3289","Tag":null,"Text":"(string)                            xEncodeError => xEncodeError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3290","Tag":null,"Text":"(string)                            eEncodeError => eEncodeError);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3291","Tag":null,"Text":"(string)                    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3292","Tag":null,"Text":"(string)                END_WHILE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3293","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3294","Tag":null,"Text":"(string)                // Now all the Property sets are encoded, shift it and add the Field Number"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3295","Tag":null,"Text":"(string)                IF eEncodeError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3296","Tag":null,"Text":"(string)                    eEncodeError := OwnerPayload.ReencodeLengthDelimited(ProtobufFieldNumber := 10,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3297","Tag":null,"Text":"(string)                        startingByteOfEncodedData :="}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3298","Tag":null,"Text":"(string)                            _myPropertySetListstartindex);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3299","Tag":null,"Text":"(string)                END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3300","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3301","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3302","Tag":null,"Text":"(string)            PropertyProtobufsType.extension_value:"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3303","Tag":null,"Text":"(string)                eEncodeError := ERROR.PayloadFoundExtensions;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3304","Tag":null,"Text":"(string)                xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3305","Tag":null,"Text":"(string)        END_CASE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3306","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3307","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3308","Tag":null,"Text":"(string)    //Field number and length and we're done!"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3309","Tag":null,"Text":"(string)    IF eEncodeError = ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3310","Tag":null,"Text":"(string)        //{info 'todo: i-campbell Make these field numbers a GVL'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3311","Tag":null,"Text":"(string)        eEncodeError := OwnerPayload.ReencodeLengthDelimited(ProtobufFieldNumber := 2,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3312","Tag":null,"Text":"(string)            startingByteOfEncodedData := startingByteOfEncodedData);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3313","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3314","Tag":null,"Text":"(string)        xEncodeError := eEncodeError <> ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3315","Tag":null,"Text":"(string)    END_IF;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3316","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3317","Tag":null,"Text":"(string)    //DONE :)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3318","Tag":null,"Text":"(string)    xEncodeDone := NOT xEncodeError;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3319","Tag":null,"Text":"(string)    xEncodeBusy := FALSE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)9","Tag":null,"Text":"(string)END_IF;"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)2912","Tag":null,"Text":"(string){attribute 'hide'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2913","Tag":null,"Text":"(string){attribute 'enable_dynamic_creation'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)3320","Tag":null,"Text":"(string){attribute 'no_assign'}"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2914","Tag":null,"Text":"(string)FUNCTION_BLOCK FB_PayloadPropertyValue EXTENDS FBF.InstanceBase IMPLEMENTS LinkedList.IElement, __SYSTEM.IQueryInterface"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2915","Tag":null,"Text":"(string)VAR_INPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2916","Tag":null,"Text":"(string)    (*Trigers for conversion*)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2917","Tag":null,"Text":"(string)    xDecode : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2918","Tag":null,"Text":"(string)    xEncode : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2919","Tag":null,"Text":"(string)    protobufBlobMaxIndex : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2920","Tag":null,"Text":"(string)    PoolManager : IPoolManager;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2921","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2922","Tag":null,"Text":"(string)VAR_IN_OUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2923","Tag":null,"Text":"(string)    OwnerPayload : FB_Payload; //He manages the assigning of Pool Objects"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2924","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)2925","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)2926","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2927","Tag":null,"Text":"(string)VAR_OUTPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2928","Tag":null,"Text":"(string)    xDecodeDone, xDecodeBusy, xDecodeError : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2929","Tag":null,"Text":"(string)    eDecodeError : ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2930","Tag":null,"Text":"(string)    xEncodeDone, xEncodeBusy, xEncodeError : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2931","Tag":null,"Text":"(string)    eEncodeError : ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2932","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2933","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2934","Tag":null,"Text":"(string)    (*Internal variables*)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2935","Tag":null,"Text":"(string)    dviTemp : DecodedVarInt;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2936","Tag":null,"Text":"(string)    startingByteOfEncodedData : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2937","Tag":null,"Text":"(string)    eDecodeState : PayloadDecodeStates;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2938","Tag":null,"Text":"(string)    lengthOfObject : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2939","Tag":null,"Text":"(string)    finalByteIndex : DINT;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2940","Tag":null,"Text":"(string)    recentlyClaimedPropertySet : REFERENCE TO FB_PayloadPropertySet;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2941","Tag":null,"Text":"(string)    nextPropertySetToEncode : POINTER TO FB_PayloadPropertySet;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2942","Tag":null,"Text":"(string)    // \t    message PropertyValue {"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2943","Tag":null,"Text":"(string)    // "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2944","Tag":null,"Text":"(string)    //         optional uint32     type                    = 1;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2945","Tag":null,"Text":"(string)    _xHasType : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2946","Tag":null,"Text":"(string)    _eType : PropertyDataType;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2947","Tag":null,"Text":"(string)    //         optional bool       is_null                 = 2; "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2948","Tag":null,"Text":"(string)    _xHasIs_null : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2949","Tag":null,"Text":"(string)    _xIs_null : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2950","Tag":null,"Text":"(string)    // "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2951","Tag":null,"Text":"(string)    //         oneof value {"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2952","Tag":null,"Text":"(string)    _eHasValue : PropertyProtobufsType;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2953","Tag":null,"Text":"(string)    //             uint32          int_value               = 3;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2954","Tag":null,"Text":"(string)    //             uint64          long_value              = 4;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2955","Tag":null,"Text":"(string)    //             bool            boolean_value           = 7;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2956","Tag":null,"Text":"(string)    _dzzValue : DecodedVarInt;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2957","Tag":null,"Text":"(string)    //             float           float_value             = 5;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2958","Tag":null,"Text":"(string)    _rValue : REAL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2959","Tag":null,"Text":"(string)    //             double          double_value            = 6;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2960","Tag":null,"Text":"(string)    _lrValue : LREAL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2961","Tag":null,"Text":"(string)    //             string          string_value            = 8;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2962","Tag":null,"Text":"(string)    _sValue : WSTRING;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2963","Tag":null,"Text":"(string)    //             PropertySet     propertyset_value       = 9;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2964","Tag":null,"Text":"(string)    _myPropertySet : FB_PayloadPropertySet;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2965","Tag":null,"Text":"(string)    //             PropertySetList propertysets_value      = 10;      // List of Property Values"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2966","Tag":null,"Text":"(string)    _myPropertySetList : LinkedList.List; // OF FB_PayloadPropertySet"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2967","Tag":null,"Text":"(string)    _myPropertySetListstartindex : DINT; //encode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2968","Tag":null,"Text":"(string)    _myPropertySetListendindex : DINT; //decode"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2969","Tag":null,"Text":"(string)    //             PropertyValueExtension extension_value  = 11;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2970","Tag":null,"Text":"(string)    //         }"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2971","Tag":null,"Text":"(string)    // "}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2972","Tag":null,"Text":"(string)    //         message PropertyValueExtension {"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2973","Tag":null,"Text":"(string)    //             extensions                             1 to max;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2974","Tag":null,"Text":"(string)    //         }"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2975","Tag":null,"Text":"(string)    //     }"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2976","Tag":null,"Text":"(string)    // NO EXTENSIONS"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2977","Tag":null,"Text":"(string)    _COL_HasNext : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2978","Tag":null,"Text":"(string)    _COL_Element : LinkedList.IElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2979","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2980","Tag":null,"Text":"(string)    // LinkedList.IElement"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2981","Tag":null,"Text":"(string)    _itfPrev : LinkedList.IElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2982","Tag":null,"Text":"(string)    _itfNext : LinkedList.IElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)2983","Tag":null,"Text":"(string)    _itfList : LinkedList.IList;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)1","Tag":null,"Text":"(string)END_VAR"}}]}}}}},"UniqueIdGenerator":"(string)3320","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"}