Whether this terms of service version is external. External terms of
service versions can only be agreed through external processes and not
directly by the merchant through UI or API.
Region code as defined by CLDR. This is either
a country where the ToS applies specifically to that country or 001 when
the same TermsOfService can be signed in any country. However note that
when signing a ToS that applies globally we still expect that a specific
country is provided (this should be merchant business country or program
country of participation).
Region code as defined by CLDR. This is either
a country where the ToS applies specifically to that country or 001 when
the same TermsOfService can be signed in any country. However note that
when signing a ToS that applies globally we still expect that a specific
country is provided (this should be merchant business country or program
country of participation).
[[["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 TermsOfServiceOrBuilder (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.TermsOfServiceOrBuilder)\n- [0.26.0](/java/docs/reference/google-shopping-merchant-accounts/0.26.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.24.0](/java/docs/reference/google-shopping-merchant-accounts/0.24.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.23.0](/java/docs/reference/google-shopping-merchant-accounts/0.23.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.20.0](/java/docs/reference/google-shopping-merchant-accounts/0.20.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.19.0](/java/docs/reference/google-shopping-merchant-accounts/0.19.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.18.0](/java/docs/reference/google-shopping-merchant-accounts/0.18.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.16.0](/java/docs/reference/google-shopping-merchant-accounts/0.16.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.15.0](/java/docs/reference/google-shopping-merchant-accounts/0.15.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.14.0](/java/docs/reference/google-shopping-merchant-accounts/0.14.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.13.0](/java/docs/reference/google-shopping-merchant-accounts/0.13.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.12.0](/java/docs/reference/google-shopping-merchant-accounts/0.12.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.11.0](/java/docs/reference/google-shopping-merchant-accounts/0.11.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.10.0](/java/docs/reference/google-shopping-merchant-accounts/0.10.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.9.0](/java/docs/reference/google-shopping-merchant-accounts/0.9.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.8.0](/java/docs/reference/google-shopping-merchant-accounts/0.8.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.7.0](/java/docs/reference/google-shopping-merchant-accounts/0.7.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.5.0](/java/docs/reference/google-shopping-merchant-accounts/0.5.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.4.0](/java/docs/reference/google-shopping-merchant-accounts/0.4.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.3.0](/java/docs/reference/google-shopping-merchant-accounts/0.3.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.2.0](/java/docs/reference/google-shopping-merchant-accounts/0.2.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder)\n- [0.1.0](/java/docs/reference/google-shopping-merchant-accounts/0.1.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceOrBuilder) \n\n public interface TermsOfServiceOrBuilder 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### getExternal()\n\n public abstract boolean getExternal()\n\nWhether this terms of service version is external. External terms of\nservice versions can only be agreed through external processes and not\ndirectly by the merchant through UI or API.\n\n`bool external = 5;`\n\n### getFileUri()\n\n public abstract String getFileUri()\n\nURI for terms of service file that needs to be displayed to signing users.\n\n`optional string file_uri = 4;`\n\n### getFileUriBytes()\n\n public abstract ByteString getFileUriBytes()\n\nURI for terms of service file that needs to be displayed to signing users.\n\n`optional string file_uri = 4;`\n\n### getKind()\n\n public abstract TermsOfServiceKind getKind()\n\nThe Kind this terms of service version applies to.\n\n`.google.shopping.merchant.accounts.v1.TermsOfServiceKind kind = 3;`\n\n### getKindValue()\n\n public abstract int getKindValue()\n\nThe Kind this terms of service version applies to.\n\n`.google.shopping.merchant.accounts.v1.TermsOfServiceKind kind = 3;`\n\n### getName()\n\n public abstract String getName()\n\nIdentifier. The resource name of the terms of service version.\nFormat: `termsOfService/{version}`\n\n`\nstring name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }\n`\n\n### getNameBytes()\n\n public abstract ByteString getNameBytes()\n\nIdentifier. The resource name of the terms of service version.\nFormat: `termsOfService/{version}`\n\n`\nstring name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }\n`\n\n### getRegionCode()\n\n public abstract String getRegionCode()\n\nRegion code as defined by [CLDR](https://cldr.unicode.org/). This is either\na country where the ToS applies specifically to that country or `001` when\nthe same `TermsOfService` can be signed in any country. However note that\nwhen signing a ToS that applies globally we still expect that a specific\ncountry is provided (this should be merchant business country or program\ncountry of participation).\n\n`string region_code = 2;`\n\n### getRegionCodeBytes()\n\n public abstract ByteString getRegionCodeBytes()\n\nRegion code as defined by [CLDR](https://cldr.unicode.org/). This is either\na country where the ToS applies specifically to that country or `001` when\nthe same `TermsOfService` can be signed in any country. However note that\nwhen signing a ToS that applies globally we still expect that a specific\ncountry is provided (this should be merchant business country or program\ncountry of participation).\n\n`string region_code = 2;`\n\n### hasFileUri()\n\n public abstract boolean hasFileUri()\n\nURI for terms of service file that needs to be displayed to signing users.\n\n`optional string file_uri = 4;`"]]