Class ThreeDModelParser

java.lang.Object
com.cognite.client.servicesV1.parser.ThreeDModelParser

public class ThreeDModelParser 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 Details

    • ThreeDModelParser

      public ThreeDModelParser()
  • Method Details

    • parseThreeDModel

      public static ThreeDModel parseThreeDModel(String json) throws Exception
      Parses an 3D Models json string to ThreeDModel proto object.
      Parameters:
      json -
      Returns:
      Throws:
      Exception
    • parseThreeDModelToList

      public static List<ThreeDModel> parseThreeDModelToList(String json) throws Exception
      Parses an 3D Models json string to List ThreeDModel proto object.
      Parameters:
      json -
      Returns:
      Throws:
      Exception
    • toRequestInsertItem

      public static Map<String,Object> toRequestInsertItem(ThreeDModel element) throws Exception
      Builds a request insert item object from ThreeDModel. An insert item object creates a new 3D Models object in the Cognite system.
      Parameters:
      element -
      Returns:
      Throws:
      Exception
    • toRequestUpdateItem

      public static Map<String,Object> toRequestUpdateItem(ThreeDModel element) throws Exception
      Builds a request update item object from ThreeDModel. An update item object updates an existing 3D Models object with new values for all provided fields. Fields that are not in the update object retain their original value.
      Parameters:
      element -
      Returns:
      Throws:
      Exception
    • toRequestReplaceItem

      public static Map<String,Object> toRequestReplaceItem(ThreeDModel element)
      Builds a request replace item object from ThreeDModel. A replace item object replaces an existing 3D Models object with new values for all provided fields. Fields that are not in the update object are set to null.
      Parameters:
      element -
      Returns: