Class LabelParser


  • public class LabelParser
    extends Object
    This class contains a set of methods to help parsing file objects between Cognite api representations (json and proto) and typed objects.
    • Constructor Detail

      • LabelParser

        public LabelParser()
    • Method Detail

      • parseLabel

        public static com.cognite.client.dto.Label parseLabel​(String json)
                                                       throws Exception
        Parses an event json string to Label proto object.
        Parameters:
        json -
        Returns:
        Throws:
        Exception
      • toRequestInsertItem

        public static Map<String,​Object> toRequestInsertItem​(com.cognite.client.dto.Label element)
        Builds a request insert item object from Label. An insert item object creates a new asset data object in the Cognite system.
        Parameters:
        element -
        Returns: