Reference documentation and code samples for the reCAPTCHA Enterprise V1 API class Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address.
Structured address format for billing and shipping addresses.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#address
defaddress()->::Array<::String>
Returns
(::Array<::String>) — Optional. The first lines of the address. The first line generally
contains the street name and number, and further lines may include
information such as an apartment number.
#address=
defaddress=(value)->::Array<::String>
Parameter
value (::Array<::String>) — Optional. The first lines of the address. The first line generally
contains the street name and number, and further lines may include
information such as an apartment number.
Returns
(::Array<::String>) — Optional. The first lines of the address. The first line generally
contains the street name and number, and further lines may include
information such as an apartment number.
#administrative_area
defadministrative_area()->::String
Returns
(::String) — Optional. The state, province, or otherwise administrative area of the
address.
#administrative_area=
defadministrative_area=(value)->::String
Parameter
value (::String) — Optional. The state, province, or otherwise administrative area of the
address.
Returns
(::String) — Optional. The state, province, or otherwise administrative area of the
address.
#locality
deflocality()->::String
Returns
(::String) — Optional. The town/city of the address.
#locality=
deflocality=(value)->::String
Parameter
value (::String) — Optional. The town/city of the address.
Returns
(::String) — Optional. The town/city of the address.
#postal_code
defpostal_code()->::String
Returns
(::String) — Optional. The postal or ZIP code of the address.
#postal_code=
defpostal_code=(value)->::String
Parameter
value (::String) — Optional. The postal or ZIP code of the address.
Returns
(::String) — Optional. The postal or ZIP code of the address.
#recipient
defrecipient()->::String
Returns
(::String) — Optional. The recipient name, potentially including information such as
"care of".
#recipient=
defrecipient=(value)->::String
Parameter
value (::String) — Optional. The recipient name, potentially including information such as
"care of".
Returns
(::String) — Optional. The recipient name, potentially including information such as
"care of".
#region_code
defregion_code()->::String
Returns
(::String) — Optional. The CLDR country/region of the address.
#region_code=
defregion_code=(value)->::String
Parameter
value (::String) — Optional. The CLDR country/region of the address.
Returns
(::String) — Optional. The CLDR country/region of the address.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# reCAPTCHA Enterprise V1 API - Class Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address (v1.8.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.8.0 (latest)](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [1.7.1](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/1.7.1/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [1.6.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/1.6.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [1.5.1](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/1.5.1/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [1.4.1](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/1.4.1/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [1.3.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/1.3.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [1.2.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/1.2.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [1.1.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/1.1.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [1.0.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/1.0.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.22.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.22.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.21.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.21.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.20.1](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.20.1/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.19.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.19.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.18.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.18.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.17.3](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.17.3/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.16.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.16.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.15.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.15.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.14.1](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.14.1/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.13.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.13.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.12.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.12.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.11.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.11.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.10.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.10.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.9.1](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.9.1/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.8.0](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.8.0/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address)\n- [0.7.1](/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/0.7.1/Google-Cloud-RecaptchaEnterprise-V1-TransactionData-Address) \nReference documentation and code samples for the reCAPTCHA Enterprise V1 API class Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address.\n\nStructured address format for billing and shipping addresses. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #address\n\n def address() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Optional. The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.\n\n### #address=\n\n def address=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) --- Optional. The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Optional. The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.\n\n### #administrative_area\n\n def administrative_area() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The state, province, or otherwise administrative area of the address.\n\n### #administrative_area=\n\n def administrative_area=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The state, province, or otherwise administrative area of the address. \n**Returns**\n\n- (::String) --- Optional. The state, province, or otherwise administrative area of the address.\n\n### #locality\n\n def locality() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The town/city of the address.\n\n### #locality=\n\n def locality=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The town/city of the address. \n**Returns**\n\n- (::String) --- Optional. The town/city of the address.\n\n### #postal_code\n\n def postal_code() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The postal or ZIP code of the address.\n\n### #postal_code=\n\n def postal_code=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The postal or ZIP code of the address. \n**Returns**\n\n- (::String) --- Optional. The postal or ZIP code of the address.\n\n### #recipient\n\n def recipient() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The recipient name, potentially including information such as \"care of\".\n\n### #recipient=\n\n def recipient=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The recipient name, potentially including information such as \"care of\". \n**Returns**\n\n- (::String) --- Optional. The recipient name, potentially including information such as \"care of\".\n\n### #region_code\n\n def region_code() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The CLDR country/region of the address.\n\n### #region_code=\n\n def region_code=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The CLDR country/region of the address. \n**Returns**\n\n- (::String) --- Optional. The CLDR country/region of the address."]]