Identifier. The resource name of the terms of service version.
Format: accounts/{account}/termsOfServiceAgreementState/{identifier}
The identifier format is:
{TermsOfServiceKind}-{country}
For example, an identifier could be: MERCHANT_CENTER-EU or
MERCHANT_CENTER-US.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Identifier. The resource name of the terms of service version.
Format: accounts/{account}/termsOfServiceAgreementState/{identifier}
The identifier format is:
{TermsOfServiceKind}-{country}
For example, an identifier could be: MERCHANT_CENTER-EU or
MERCHANT_CENTER-US.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
[[["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 TermsOfServiceAgreementStateOrBuilder (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.TermsOfServiceAgreementStateOrBuilder)\n- [0.26.0](/java/docs/reference/google-shopping-merchant-accounts/0.26.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.24.0](/java/docs/reference/google-shopping-merchant-accounts/0.24.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.23.0](/java/docs/reference/google-shopping-merchant-accounts/0.23.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.20.0](/java/docs/reference/google-shopping-merchant-accounts/0.20.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.19.0](/java/docs/reference/google-shopping-merchant-accounts/0.19.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.18.0](/java/docs/reference/google-shopping-merchant-accounts/0.18.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.16.0](/java/docs/reference/google-shopping-merchant-accounts/0.16.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.15.0](/java/docs/reference/google-shopping-merchant-accounts/0.15.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.14.0](/java/docs/reference/google-shopping-merchant-accounts/0.14.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.13.0](/java/docs/reference/google-shopping-merchant-accounts/0.13.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.12.0](/java/docs/reference/google-shopping-merchant-accounts/0.12.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.11.0](/java/docs/reference/google-shopping-merchant-accounts/0.11.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.10.0](/java/docs/reference/google-shopping-merchant-accounts/0.10.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.9.0](/java/docs/reference/google-shopping-merchant-accounts/0.9.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.8.0](/java/docs/reference/google-shopping-merchant-accounts/0.8.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.7.0](/java/docs/reference/google-shopping-merchant-accounts/0.7.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.5.0](/java/docs/reference/google-shopping-merchant-accounts/0.5.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.4.0](/java/docs/reference/google-shopping-merchant-accounts/0.4.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.3.0](/java/docs/reference/google-shopping-merchant-accounts/0.3.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.2.0](/java/docs/reference/google-shopping-merchant-accounts/0.2.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder)\n- [0.1.0](/java/docs/reference/google-shopping-merchant-accounts/0.1.0/com.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateOrBuilder) \n\n public interface TermsOfServiceAgreementStateOrBuilder 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### getAccepted()\n\n public abstract Accepted getAccepted()\n\nOptional. The accepted terms of service of this kind and for the associated\nregion_code\n\n`\noptional .google.shopping.merchant.accounts.v1.Accepted accepted = 4 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getAcceptedOrBuilder()\n\n public abstract AcceptedOrBuilder getAcceptedOrBuilder()\n\nOptional. The accepted terms of service of this kind and for the associated\nregion_code\n\n`\noptional .google.shopping.merchant.accounts.v1.Accepted accepted = 4 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getName()\n\n public abstract String getName()\n\nIdentifier. The resource name of the terms of service version.\nFormat: `accounts/{account}/termsOfServiceAgreementState/{identifier}`\nThe identifier format is:\n`{`TermsOfServiceKind`}-{country}`\nFor example, an identifier could be: `MERCHANT_CENTER-EU` or\n`MERCHANT_CENTER-US`.\n\n`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`\n\n### getNameBytes()\n\n public abstract ByteString getNameBytes()\n\nIdentifier. The resource name of the terms of service version.\nFormat: `accounts/{account}/termsOfServiceAgreementState/{identifier}`\nThe identifier format is:\n`{`TermsOfServiceKind`}-{country}`\nFor example, an identifier could be: `MERCHANT_CENTER-EU` or\n`MERCHANT_CENTER-US`.\n\n`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`\n\n### getRegionCode()\n\n public abstract String getRegionCode()\n\nRequired. Region code as defined by \u003chttps://cldr.unicode.org/\u003e. This is the\ncountry the current state applies to.\n\n`string region_code = 2 [(.google.api.field_behavior) = REQUIRED];`\n\n### getRegionCodeBytes()\n\n public abstract ByteString getRegionCodeBytes()\n\nRequired. Region code as defined by \u003chttps://cldr.unicode.org/\u003e. This is the\ncountry the current state applies to.\n\n`string region_code = 2 [(.google.api.field_behavior) = REQUIRED];`\n\n### getRequired()\n\n public abstract Required getRequired()\n\nOptional. The required terms of service\n\n`\noptional .google.shopping.merchant.accounts.v1.Required required = 5 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getRequiredOrBuilder()\n\n public abstract RequiredOrBuilder getRequiredOrBuilder()\n\nOptional. The required terms of service\n\n`\noptional .google.shopping.merchant.accounts.v1.Required required = 5 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getTermsOfServiceKind()\n\n public abstract TermsOfServiceKind getTermsOfServiceKind()\n\nRequired. Terms of Service kind associated with the particular version.\n\n`\n.google.shopping.merchant.accounts.v1.TermsOfServiceKind terms_of_service_kind = 3 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getTermsOfServiceKindValue()\n\n public abstract int getTermsOfServiceKindValue()\n\nRequired. Terms of Service kind associated with the particular version.\n\n`\n.google.shopping.merchant.accounts.v1.TermsOfServiceKind terms_of_service_kind = 3 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### hasAccepted()\n\n public abstract boolean hasAccepted()\n\nOptional. The accepted terms of service of this kind and for the associated\nregion_code\n\n`\noptional .google.shopping.merchant.accounts.v1.Accepted accepted = 4 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### hasRequired()\n\n public abstract boolean hasRequired()\n\nOptional. The required terms of service\n\n`\noptional .google.shopping.merchant.accounts.v1.Required required = 5 [(.google.api.field_behavior) = OPTIONAL];\n`"]]