[[["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-08-16 UTC."],[],[],null,["# Interface ValueOrBuilder (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/java/docs/reference/google-shopping-merchant-accounts/latest/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.26.0](/java/docs/reference/google-shopping-merchant-accounts/0.26.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.24.0](/java/docs/reference/google-shopping-merchant-accounts/0.24.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.23.0](/java/docs/reference/google-shopping-merchant-accounts/0.23.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.20.0](/java/docs/reference/google-shopping-merchant-accounts/0.20.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.19.0](/java/docs/reference/google-shopping-merchant-accounts/0.19.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.18.0](/java/docs/reference/google-shopping-merchant-accounts/0.18.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.16.0](/java/docs/reference/google-shopping-merchant-accounts/0.16.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.15.0](/java/docs/reference/google-shopping-merchant-accounts/0.15.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.14.0](/java/docs/reference/google-shopping-merchant-accounts/0.14.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.13.0](/java/docs/reference/google-shopping-merchant-accounts/0.13.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.12.0](/java/docs/reference/google-shopping-merchant-accounts/0.12.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.11.0](/java/docs/reference/google-shopping-merchant-accounts/0.11.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.10.0](/java/docs/reference/google-shopping-merchant-accounts/0.10.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.9.0](/java/docs/reference/google-shopping-merchant-accounts/0.9.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.8.0](/java/docs/reference/google-shopping-merchant-accounts/0.8.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.7.0](/java/docs/reference/google-shopping-merchant-accounts/0.7.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.5.0](/java/docs/reference/google-shopping-merchant-accounts/0.5.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.4.0](/java/docs/reference/google-shopping-merchant-accounts/0.4.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.3.0](/java/docs/reference/google-shopping-merchant-accounts/0.3.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.2.0](/java/docs/reference/google-shopping-merchant-accounts/0.2.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder)\n- [0.1.0](/java/docs/reference/google-shopping-merchant-accounts/0.1.0/com.google.shopping.merchant.accounts.v1.ValueOrBuilder) \n\n public interface ValueOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getCarrierRate()\n\n public abstract String getCarrierRate()\n\nThe name of a carrier rate referring to a carrier rate defined in the\nsame rate group. Can only be set if all other fields are not set.\n\n`optional string carrier_rate = 4;`\n\n### getCarrierRateBytes()\n\n public abstract ByteString getCarrierRateBytes()\n\nThe name of a carrier rate referring to a carrier rate defined in the\nsame rate group. Can only be set if all other fields are not set.\n\n`optional string carrier_rate = 4;`\n\n### getFlatRate()\n\n public abstract Price getFlatRate()\n\nA flat rate. Can only be set if all other fields are not set.\n\n`optional .google.shopping.type.Price flat_rate = 2;`\n\n### getFlatRateOrBuilder()\n\n public abstract PriceOrBuilder getFlatRateOrBuilder()\n\nA flat rate. Can only be set if all other fields are not set.\n\n`optional .google.shopping.type.Price flat_rate = 2;`\n\n### getNoShipping()\n\n public abstract boolean getNoShipping()\n\nIf true, then the product can't be shipped. Must be true when set, can only\nbe set if all other fields are not set.\n\n`optional bool no_shipping = 1;`\n\n### getPricePercentage()\n\n public abstract String getPricePercentage()\n\nA percentage of the price represented as a number in decimal notation\n(For example, `\"5.4\"`). Can only be set if all other fields are not\nset.\n\n`optional string price_percentage = 3;`\n\n### getPricePercentageBytes()\n\n public abstract ByteString getPricePercentageBytes()\n\nA percentage of the price represented as a number in decimal notation\n(For example, `\"5.4\"`). Can only be set if all other fields are not\nset.\n\n`optional string price_percentage = 3;`\n\n### getSubtable()\n\n public abstract String getSubtable()\n\nThe name of a subtable. Can only be set in table cells (For example, not\nfor single values), and only if all other fields are not set.\n\n`optional string subtable = 5;`\n\n### getSubtableBytes()\n\n public abstract ByteString getSubtableBytes()\n\nThe name of a subtable. Can only be set in table cells (For example, not\nfor single values), and only if all other fields are not set.\n\n`optional string subtable = 5;`\n\n### hasCarrierRate()\n\n public abstract boolean hasCarrierRate()\n\nThe name of a carrier rate referring to a carrier rate defined in the\nsame rate group. Can only be set if all other fields are not set.\n\n`optional string carrier_rate = 4;`\n\n### hasFlatRate()\n\n public abstract boolean hasFlatRate()\n\nA flat rate. Can only be set if all other fields are not set.\n\n`optional .google.shopping.type.Price flat_rate = 2;`\n\n### hasNoShipping()\n\n public abstract boolean hasNoShipping()\n\nIf true, then the product can't be shipped. Must be true when set, can only\nbe set if all other fields are not set.\n\n`optional bool no_shipping = 1;`\n\n### hasPricePercentage()\n\n public abstract boolean hasPricePercentage()\n\nA percentage of the price represented as a number in decimal notation\n(For example, `\"5.4\"`). Can only be set if all other fields are not\nset.\n\n`optional string price_percentage = 3;`\n\n### hasSubtable()\n\n public abstract boolean hasSubtable()\n\nThe name of a subtable. Can only be set in table cells (For example, not\nfor single values), and only if all other fields are not set.\n\n`optional string subtable = 5;`"]]