{
  "synLogic": "$api($1, $2, $3, $4, $5, $6);",
  "help": "The ns_protobuf_decode is used to decode the encoded data which are encoded by protobuf",
  "notes": "",
  "returns": "void",
  "arguments": "\u003ctable class\u003d\"newGuiTable\" style\u003d\"width:100%\" \u003e \u003ctr\u003e \u003cth\u003e Argument \u003c/th\u003e 	\u003cth\u003e Description \u003c/th\u003e   \u003c/tr\u003e \u003ctr\u003e  \u003ctd\u003e Encoded Data Param \u003c/td\u003e \u003ctd\u003e This argument is either an NS parameter or buffer that contains the encoded data to be decoded. \u003c/td\u003e \u003c/tr\u003e  \u003ctr\u003e  \u003ctd\u003e Length \u003c/td\u003e	\u003ctd\u003e This argument is an integer that represents the length of the encoded data. \u003c/td\u003e	\u003c/tr\u003e	\u003ctr\u003e		\u003ctd\u003e Is Param \u003c/td\u003e \u003ctd\u003e This argument is an integer that indicates the type of the encoded_data_param argument. It can have one of three values:<br />BUFFER: The encoded data is provided in a buffer.<br />PARAM: The encoded data is provided as an NS parameter.<br />FILE: The encoded data is provided in a file.  \u003c/td\u003e	\u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Proto File Name \u003c/td\u003e \u003ctd\u003e This argument is a string that specifies the name of the protobuf file that contains the message type to be decoded. \u003c/td\u003e	\u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Message Type \u003c/td\u003e \u003ctd\u003e This argument is a string that specifies the message type of the encoded data. \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Decoded Param \u003c/td\u003e \u003ctd\u003e This argument is an NS parameter that is used to store the decoded data. \u003c/td\u003e	\u003c/tr\u003e \u003c/table\u003e",
  "parameterization": "Argument encoded_data_param  can be parametrized using standard parametrization",
  "name": "ns_protobuf_decode",
  "syntax": "void ns_protobuf_decode(char *encoded_data_param, long len, int is_param, char *proto_fname, char *msg_type, char *decoded_param)",
  "javaSyntax": "",
  "cEx": "flow()\n{\n  //For Data file\n  ns_protobuf_decode(\"/home/cavisson/work_2/scripts/Protobuf/Protobuf/Protobuf_Script/Noida.xml\", 3, 2, \"/home/cavisson/work/scripts//Protobuf/Protobuf_Script/data_2.proto\", \"Address\", \"dec_decode\");\n\n  //For data\n  ns_protobuf_decode(\"^FAsmita^R^Corg^Z^RFeatherstoneStreet\\\"^FLONDON2^GEC1Y8SY:^BUK@^K\", 4, 0, \"/home/cavisson/work/scripts//Protobuf/Protobuf_Script/data_2.proto\", \"Address\", \"dec_decode\");\n\n  //For Buffer\n  ns_protobuf_decode(\"dec_encode\", 1, 1, \"/home/cavisson/work/scripts//Protobuf/Protobuf_Script/data_2.proto\", \"Address\", \"dec_decode\");\n\n}",
  "javaEx": "",
  "insertStrC": "ns_protobuf_decode(char *encoded_data_param, long len, int is_param, char *proto_fname, char *msg_type, char *decoded_param);",
  "insertStrJava": "",
  "description": "The ns_protobuf_decode is used to decode the encoded data which are encoded by protobuf",
  "component": [
    {
      "id": "$1",
      "type": "TEXT_VAR",
      "label": "Encoded Data Param",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter XML Data",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
    {
      "id": "$2",
      "type": "TextField",
      "label": "Length",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Length",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Number",
        "required": true,
        "min": "0",
        "max": "2147483647"
      }
    },
	{
      "id": "$3",
      "type": "Dropdown",
      "label": "Is Param",
      "value": "0",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Param Type",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "list": [
        {
          "label": "BUFFER",
          "value": "0"
        },
        {
          "label": "PARAM",
          "value": "1"
        },
        {
          "label": "FILE",
          "value": "2"
        }
      ],
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
    {
      "id": "$4",
      "type": "TextField",
      "label": "Proto File Name",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Proto file name",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true 
      }
    },
	{
      "id": "$5",
      "type": "TextField",
      "label": "Message Type",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Message Type",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": false
      }
    },
	{
      "id": "$6",
      "type": "TextField",
      "label": "Decoded Param",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Decoded Param",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": false
      }
    } 
  ]
}