Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class Address.
Structured address format for billing and shipping addresses.
Generated from protobuf message google.cloud.recaptchaenterprise.v1.TransactionData.Address
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ recipient |
string
The recipient name, potentially including information such as "care of". |
↳ address |
array
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. |
↳ locality |
string
The town/city of the address. |
↳ administrative_area |
string
The state, province, or otherwise administrative area of the address. |
↳ region_code |
string
The CLDR country/region of the address. |
↳ postal_code |
string
The postal or ZIP code of the address. |
getRecipient
The recipient name, potentially including information such as "care of".
Returns | |
---|---|
Type | Description |
string |
setRecipient
The recipient name, potentially including information such as "care of".
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAddress
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 | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setAddress
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.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getLocality
The town/city of the address.
Returns | |
---|---|
Type | Description |
string |
setLocality
The town/city of the address.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAdministrativeArea
The state, province, or otherwise administrative area of the address.
Returns | |
---|---|
Type | Description |
string |
setAdministrativeArea
The state, province, or otherwise administrative area of the address.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getRegionCode
The CLDR country/region of the address.
Returns | |
---|---|
Type | Description |
string |
setRegionCode
The CLDR country/region of the address.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getPostalCode
The postal or ZIP code of the address.
Returns | |
---|---|
Type | Description |
string |
setPostalCode
The postal or ZIP code of the address.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |