Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class InStock.
Collection of information related to InStock.
Generated from protobuf messagegoogle.shopping.merchant.accounts.v1beta.InStock
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1beta
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ uri
string
Optional. Product landing page URI. It is only used for the review of MHLSF in-stock serving. This URI domain should match with the business's homepage. Required to be empty if the lsf_type is GHLSF, and required when the lsf_type is MHLSF_FULL or MHLSF_BASIC.
↳ state
int
Output only. The state of the in-stock serving.
getUri
Optional. Product landing page URI. It is only used for the review of MHLSF
in-stock serving. This URI domain should match with the business's
homepage. Required to be empty if the lsf_type is GHLSF, and required when
the lsf_type is MHLSF_FULL or MHLSF_BASIC.
Returns
Type
Description
string
setUri
Optional. Product landing page URI. It is only used for the review of MHLSF
in-stock serving. This URI domain should match with the business's
homepage. Required to be empty if the lsf_type is GHLSF, and required when
the lsf_type is MHLSF_FULL or MHLSF_BASIC.
[[["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 Accounts V1beta Client - Class InStock (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-accounts/latest/V1beta.InStock)\n- [0.10.0](/php/docs/reference/shopping-merchant-accounts/0.10.0/V1beta.InStock)\n- [0.9.1](/php/docs/reference/shopping-merchant-accounts/0.9.1/V1beta.InStock)\n- [0.8.0](/php/docs/reference/shopping-merchant-accounts/0.8.0/V1beta.InStock)\n- [0.7.0](/php/docs/reference/shopping-merchant-accounts/0.7.0/V1beta.InStock)\n- [0.6.0](/php/docs/reference/shopping-merchant-accounts/0.6.0/V1beta.InStock)\n- [0.5.0](/php/docs/reference/shopping-merchant-accounts/0.5.0/V1beta.InStock)\n- [0.4.0](/php/docs/reference/shopping-merchant-accounts/0.4.0/V1beta.InStock)\n- [0.3.3](/php/docs/reference/shopping-merchant-accounts/0.3.3/V1beta.InStock)\n- [0.2.0](/php/docs/reference/shopping-merchant-accounts/0.2.0/V1beta.InStock)\n- [0.1.0](/php/docs/reference/shopping-merchant-accounts/0.1.0/V1beta.InStock) \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 Accounts V1beta Client class InStock.\n\nCollection of information related to InStock.\n\nGenerated from protobuf message `google.shopping.merchant.accounts.v1beta.InStock`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ Accounts \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getUri\n\nOptional. Product landing page URI. It is only used for the review of MHLSF\nin-stock serving. This URI domain should match with the business's\nhomepage. Required to be empty if the lsf_type is GHLSF, and required when\nthe lsf_type is MHLSF_FULL or MHLSF_BASIC.\n\n### setUri\n\nOptional. Product landing page URI. It is only used for the review of MHLSF\nin-stock serving. This URI domain should match with the business's\nhomepage. Required to be empty if the lsf_type is GHLSF, and required when\nthe lsf_type is MHLSF_FULL or MHLSF_BASIC.\n\n### getState\n\nOutput only. The state of the in-stock serving.\n\n### setState\n\nOutput only. The state of the in-stock serving."]]