partMetadata

public abstract Part.Builder partMetadata(Map<String, Object> partMetadata)

Setter for partMetadata.

partMetadata: Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams. This field is not supported in Vertex AI.