The position of thetext_segmentin the page. Contains exactly 4normalized_verticesand they are connected by edges in the order provided, which will represent a rectangle parallel to the frame. TheNormalizedVertex-sare relative to the page. Coordinates are based on top-left as point (0,0).
Contains exactly 4normalized_verticesand they are connected by edges in the order provided, which will
represent a rectangle parallel to the frame. TheNormalizedVertex-sare
relative to the page.
Coordinates are based on top-left as point (0,0).
Contains exactly 4normalized_verticesand they are connected by edges in the order provided, which will
represent a rectangle parallel to the frame. TheNormalizedVertex-sare
relative to the page.
Coordinates are based on top-left as point (0,0).
[[["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 Layout (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-automl/latest/V1.Document.Layout)\n- [2.0.4](/php/docs/reference/cloud-automl/2.0.4/V1.Document.Layout)\n- [1.6.5](/php/docs/reference/cloud-automl/1.6.5/V1.Document.Layout)\n- [1.5.4](/php/docs/reference/cloud-automl/1.5.4/V1.Document.Layout)\n- [1.4.17](/php/docs/reference/cloud-automl/1.4.17/V1.Document.Layout) \nReference documentation and code samples for the Cloud AutoML V1 Client class Layout.\n\nDescribes the layout information of a [text_segment](/php/docs/reference/cloud-automl/latest/V1.Document.Layout#_Google_Cloud_AutoMl_V1_Document_Layout__getTextSegment__) in the document.\n\nGenerated from protobuf message `google.cloud.automl.v1.Document.Layout`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AutoMl \\\\ V1 \\\\ Document\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTextSegment\n\nText Segment that represents a segment in\ndocument_text.\n\n### hasTextSegment\n\n### clearTextSegment\n\n### setTextSegment\n\nText Segment that represents a segment in\ndocument_text.\n\n### getPageNumber\n\nPage number of the [text_segment](/php/docs/reference/cloud-automl/latest/V1.Document.Layout#_Google_Cloud_AutoMl_V1_Document_Layout__getTextSegment__) in the original document, starts\nfrom 1.\n\n### setPageNumber\n\nPage number of the [text_segment](/php/docs/reference/cloud-automl/latest/V1.Document.Layout#_Google_Cloud_AutoMl_V1_Document_Layout__getTextSegment__) in the original document, starts\nfrom 1.\n\n### getBoundingPoly\n\nThe position of the [text_segment](/php/docs/reference/cloud-automl/latest/V1.Document.Layout#_Google_Cloud_AutoMl_V1_Document_Layout__getTextSegment__) in the page.\n\nContains exactly 4\nnormalized_vertices\nand they are connected by edges in the order provided, which will\nrepresent a rectangle parallel to the frame. The\nNormalizedVertex-s are\nrelative to the page.\nCoordinates are based on top-left as point (0,0).\n\n### hasBoundingPoly\n\n### clearBoundingPoly\n\n### setBoundingPoly\n\nThe position of the [text_segment](/php/docs/reference/cloud-automl/latest/V1.Document.Layout#_Google_Cloud_AutoMl_V1_Document_Layout__getTextSegment__) in the page.\n\nContains exactly 4\nnormalized_vertices\nand they are connected by edges in the order provided, which will\nrepresent a rectangle parallel to the frame. The\nNormalizedVertex-s are\nrelative to the page.\nCoordinates are based on top-left as point (0,0).\n\n### getTextSegmentType\n\nThe type of the [text_segment](/php/docs/reference/cloud-automl/latest/V1.Document.Layout#_Google_Cloud_AutoMl_V1_Document_Layout__getTextSegment__) in document.\n\n### setTextSegmentType\n\nThe type of the [text_segment](/php/docs/reference/cloud-automl/latest/V1.Document.Layout#_Google_Cloud_AutoMl_V1_Document_Layout__getTextSegment__) in document."]]