[[["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 Shopping Merchant Products V1beta Client - Class ProductWeight (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-products/latest/V1beta.ProductWeight)\n- [0.7.0](/php/docs/reference/shopping-merchant-products/0.7.0/V1beta.ProductWeight)\n- [0.6.1](/php/docs/reference/shopping-merchant-products/0.6.1/V1beta.ProductWeight)\n- [0.5.0](/php/docs/reference/shopping-merchant-products/0.5.0/V1beta.ProductWeight)\n- [0.4.0](/php/docs/reference/shopping-merchant-products/0.4.0/V1beta.ProductWeight)\n- [0.3.0](/php/docs/reference/shopping-merchant-products/0.3.0/V1beta.ProductWeight)\n- [0.2.1](/php/docs/reference/shopping-merchant-products/0.2.1/V1beta.ProductWeight)\n- [0.1.1](/php/docs/reference/shopping-merchant-products/0.1.1/V1beta.ProductWeight) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Shopping Merchant Products V1beta Client class ProductWeight.\n\nThe weight of the product.\n\nGenerated from protobuf message `google.shopping.merchant.products.v1beta.ProductWeight`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ Products \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getValue\n\nRequired. The weight represented as a number. The weight can have a maximum\nprecision of four decimal places.\n\n### setValue\n\nRequired. The weight represented as a number. The weight can have a maximum\nprecision of four decimal places.\n\n### getUnit\n\nRequired. The weight unit.\n\nAcceptable values are:\n\n- \"`g`\"\n- \"`kg`\"\n- \"`oz`\"\n- \"`lb`\"\n\n### setUnit\n\nRequired. The weight unit.\n\nAcceptable values are:\n\n- \"`g`\"\n- \"`kg`\"\n- \"`oz`\"\n- \"`lb`\""]]