Confidence of the currentLayoutwithin context of the object this layout is for. e.g. confidence can be for a single token, a table, a visual element, etc. depending on context. Range[0, 1].
Confidence of the currentLayoutwithin
context of the object this layout is for. e.g. confidence can be for a
single token, a table, a visual element, etc. depending on context.
Range[0, 1].
Returns
Type
Description
float
setConfidence
Confidence of the currentLayoutwithin
context of the object this layout is for. e.g. confidence can be for a
single token, a table, a visual element, etc. depending on context.
[[["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,["# Google Cloud Document Ai V1 Client - Class Layout (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-document-ai/latest/V1.Document.Page.Layout)\n- [2.2.2](/php/docs/reference/cloud-document-ai/2.2.2/V1.Document.Page.Layout)\n- [2.1.3](/php/docs/reference/cloud-document-ai/2.1.3/V1.Document.Page.Layout)\n- [2.0.0](/php/docs/reference/cloud-document-ai/2.0.0/V1.Document.Page.Layout)\n- [1.14.0](/php/docs/reference/cloud-document-ai/1.14.0/V1.Document.Page.Layout)\n- [1.13.1](/php/docs/reference/cloud-document-ai/1.13.1/V1.Document.Page.Layout)\n- [1.12.2](/php/docs/reference/cloud-document-ai/1.12.2/V1.Document.Page.Layout)\n- [1.9.0](/php/docs/reference/cloud-document-ai/1.9.0/V1.Document.Page.Layout)\n- [1.8.2](/php/docs/reference/cloud-document-ai/1.8.2/V1.Document.Page.Layout)\n- [1.7.0](/php/docs/reference/cloud-document-ai/1.7.0/V1.Document.Page.Layout)\n- [1.6.0](/php/docs/reference/cloud-document-ai/1.6.0/V1.Document.Page.Layout)\n- [1.5.0](/php/docs/reference/cloud-document-ai/1.5.0/V1.Document.Page.Layout)\n- [1.4.0](/php/docs/reference/cloud-document-ai/1.4.0/V1.Document.Page.Layout)\n- [1.3.0](/php/docs/reference/cloud-document-ai/1.3.0/V1.Document.Page.Layout)\n- [1.2.2](/php/docs/reference/cloud-document-ai/1.2.2/V1.Document.Page.Layout)\n- [1.1.1](/php/docs/reference/cloud-document-ai/1.1.1/V1.Document.Page.Layout)\n- [1.0.1](/php/docs/reference/cloud-document-ai/1.0.1/V1.Document.Page.Layout) \nReference documentation and code samples for the Google Cloud Document Ai V1 Client class Layout.\n\nVisual element describing a layout unit on a page.\n\nGenerated from protobuf message `google.cloud.documentai.v1.Document.Page.Layout`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DocumentAI \\\\ V1 \\\\ Document \\\\ Page\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTextAnchor\n\nText anchor indexing into the\n[Document.text](/php/docs/reference/cloud-document-ai/latest/V1.Document#_Google_Cloud_DocumentAI_V1_Document__getText__).\n\n### hasTextAnchor\n\n### clearTextAnchor\n\n### setTextAnchor\n\nText anchor indexing into the\n[Document.text](/php/docs/reference/cloud-document-ai/latest/V1.Document#_Google_Cloud_DocumentAI_V1_Document__getText__).\n\n### getConfidence\n\nConfidence of the current\n[Layout](/php/docs/reference/cloud-document-ai/latest/V1.Document.Page.Layout) within\ncontext of the object this layout is for. e.g. confidence can be for a\nsingle token, a table, a visual element, etc. depending on context.\n\nRange `[0, 1]`.\n\n### setConfidence\n\nConfidence of the current\n[Layout](/php/docs/reference/cloud-document-ai/latest/V1.Document.Page.Layout) within\ncontext of the object this layout is for. e.g. confidence can be for a\nsingle token, a table, a visual element, etc. depending on context.\n\nRange `[0, 1]`.\n\n### getBoundingPoly\n\nThe bounding polygon for the\n[Layout](/php/docs/reference/cloud-document-ai/latest/V1.Document.Page.Layout).\n\n### hasBoundingPoly\n\n### clearBoundingPoly\n\n### setBoundingPoly\n\nThe bounding polygon for the\n[Layout](/php/docs/reference/cloud-document-ai/latest/V1.Document.Page.Layout).\n\n### getOrientation\n\nDetected orientation for the\n[Layout](/php/docs/reference/cloud-document-ai/latest/V1.Document.Page.Layout).\n\n### setOrientation\n\nDetected orientation for the\n[Layout](/php/docs/reference/cloud-document-ai/latest/V1.Document.Page.Layout)."]]