[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud AutoML V1 Client - Class DocumentDimensions (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-automl/latest/V1.DocumentDimensions)\n- [2.0.4](/php/docs/reference/cloud-automl/2.0.4/V1.DocumentDimensions)\n- [1.6.5](/php/docs/reference/cloud-automl/1.6.5/V1.DocumentDimensions)\n- [1.5.4](/php/docs/reference/cloud-automl/1.5.4/V1.DocumentDimensions)\n- [1.4.17](/php/docs/reference/cloud-automl/1.4.17/V1.DocumentDimensions) \nReference documentation and code samples for the Cloud AutoML V1 Client class DocumentDimensions.\n\nMessage that describes dimension of a document.\n\nGenerated from protobuf message `google.cloud.automl.v1.DocumentDimensions`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AutoMl \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getUnit\n\nUnit of the dimension.\n\n### setUnit\n\nUnit of the dimension.\n\n### getWidth\n\nWidth value of the document, works together with the unit.\n\n### setWidth\n\nWidth value of the document, works together with the unit.\n\n### getHeight\n\nHeight value of the document, works together with the unit.\n\n### setHeight\n\nHeight value of the document, works together with the unit."]]