Class ThreeDModelParser
java.lang.Object
com.cognite.client.servicesV1.parser.ThreeDModelParser
This class contains a set of methods to help parsing file objects between Cognite api representations
(json and proto) and typed objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreeDModelparseThreeDModel(String json) Parses an 3D Models json string toThreeDModelproto object.static List<ThreeDModel>parseThreeDModelToList(String json) Parses an 3D Models json string to ListThreeDModelproto object.toRequestInsertItem(ThreeDModel element) Builds a request insert item object fromThreeDModel.toRequestReplaceItem(ThreeDModel element) Builds a request replace item object fromThreeDModel.toRequestUpdateItem(ThreeDModel element) Builds a request update item object fromThreeDModel.
-
Constructor Details
-
ThreeDModelParser
public ThreeDModelParser()
-
-
Method Details
-
parseThreeDModel
Parses an 3D Models json string toThreeDModelproto object.- Parameters:
json-- Returns:
- Throws:
Exception
-
parseThreeDModelToList
Parses an 3D Models json string to ListThreeDModelproto object.- Parameters:
json-- Returns:
- Throws:
Exception
-
toRequestInsertItem
Builds a request insert item object fromThreeDModel. An insert item object creates a new 3D Models object in the Cognite system.- Parameters:
element-- Returns:
- Throws:
Exception
-
toRequestUpdateItem
Builds a request update item object fromThreeDModel. 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
Builds a request replace item object fromThreeDModel. 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:
-