public static final class AddressInfo.Builder extends GeneratedMessage.Builder<AddressInfo.Builder> implements AddressInfoOrBuilderAddress information for the user.
Protobuf type google.ads.datamanager.v1.AddressInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AddressInfo.BuilderImplements
AddressInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AddressInfo build()| Returns | |
|---|---|
| Type | Description |
AddressInfo |
|
buildPartial()
public AddressInfo buildPartial()| Returns | |
|---|---|
| Type | Description |
AddressInfo |
|
clear()
public AddressInfo.Builder clear()| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
|
clearAddressLine()
public AddressInfo.Builder clearAddressLine()Optional. The street and number of the user's address. Used only for Google Analytics. This field is hashed and possibly encrypted.
Normalize the value before hashing:
- Remove symbol characters
- Convert to lowercase
- Remove leading and trailing whitespace
string address_line = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
clearAdministrativeArea()
public AddressInfo.Builder clearAdministrativeArea()Optional. The administrative area (state/province) of the user's address. Used only for Google Analytics.
The value should be normalized as such:
- Remove symbol characters
- Convert to lowercase
- Remove leading and trailing whitespace
string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
clearCity()
public AddressInfo.Builder clearCity()Optional. The city of the user's address. Used only for Google Analytics.
The value should be normalized as such:
- Remove symbol characters
- Convert to lowercase
- Remove leading and trailing whitespace
string city = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
clearFamilyName()
public AddressInfo.Builder clearFamilyName()Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
string family_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
clearGivenName()
public AddressInfo.Builder clearGivenName()Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
string given_name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
clearPostalCode()
public AddressInfo.Builder clearPostalCode()Required. The postal code of the user's address.
string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
clearRegionCode()
public AddressInfo.Builder clearRegionCode()Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's address.
string region_code = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
getAddressLine()
public String getAddressLine()Optional. The street and number of the user's address. Used only for Google Analytics. This field is hashed and possibly encrypted.
Normalize the value before hashing:
- Remove symbol characters
- Convert to lowercase
- Remove leading and trailing whitespace
string address_line = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The addressLine. |
getAddressLineBytes()
public ByteString getAddressLineBytes()Optional. The street and number of the user's address. Used only for Google Analytics. This field is hashed and possibly encrypted.
Normalize the value before hashing:
- Remove symbol characters
- Convert to lowercase
- Remove leading and trailing whitespace
string address_line = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for addressLine. |
getAdministrativeArea()
public String getAdministrativeArea()Optional. The administrative area (state/province) of the user's address. Used only for Google Analytics.
The value should be normalized as such:
- Remove symbol characters
- Convert to lowercase
- Remove leading and trailing whitespace
string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The administrativeArea. |
getAdministrativeAreaBytes()
public ByteString getAdministrativeAreaBytes()Optional. The administrative area (state/province) of the user's address. Used only for Google Analytics.
The value should be normalized as such:
- Remove symbol characters
- Convert to lowercase
- Remove leading and trailing whitespace
string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for administrativeArea. |
getCity()
public String getCity()Optional. The city of the user's address. Used only for Google Analytics.
The value should be normalized as such:
- Remove symbol characters
- Convert to lowercase
- Remove leading and trailing whitespace
string city = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The city. |
getCityBytes()
public ByteString getCityBytes()Optional. The city of the user's address. Used only for Google Analytics.
The value should be normalized as such:
- Remove symbol characters
- Convert to lowercase
- Remove leading and trailing whitespace
string city = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for city. |
getDefaultInstanceForType()
public AddressInfo getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AddressInfo |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFamilyName()
public String getFamilyName()Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
string family_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The familyName. |
getFamilyNameBytes()
public ByteString getFamilyNameBytes()Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
string family_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for familyName. |
getGivenName()
public String getGivenName()Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
string given_name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The givenName. |
getGivenNameBytes()
public ByteString getGivenNameBytes()Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
string given_name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for givenName. |
getPostalCode()
public String getPostalCode()Required. The postal code of the user's address.
string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The postalCode. |
getPostalCodeBytes()
public ByteString getPostalCodeBytes()Required. The postal code of the user's address.
string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for postalCode. |
getRegionCode()
public String getRegionCode()Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's address.
string region_code = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The regionCode. |
getRegionCodeBytes()
public ByteString getRegionCodeBytes()Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's address.
string region_code = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for regionCode. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AddressInfo other)
public AddressInfo.Builder mergeFrom(AddressInfo other)| Parameter | |
|---|---|
| Name | Description |
other |
AddressInfo |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AddressInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AddressInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
|
setAddressLine(String value)
public AddressInfo.Builder setAddressLine(String value)Optional. The street and number of the user's address. Used only for Google Analytics. This field is hashed and possibly encrypted.
Normalize the value before hashing:
- Remove symbol characters
- Convert to lowercase
- Remove leading and trailing whitespace
string address_line = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe addressLine to set. |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
setAddressLineBytes(ByteString value)
public AddressInfo.Builder setAddressLineBytes(ByteString value)Optional. The street and number of the user's address. Used only for Google Analytics. This field is hashed and possibly encrypted.
Normalize the value before hashing:
- Remove symbol characters
- Convert to lowercase
- Remove leading and trailing whitespace
string address_line = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for addressLine to set. |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
setAdministrativeArea(String value)
public AddressInfo.Builder setAdministrativeArea(String value)Optional. The administrative area (state/province) of the user's address. Used only for Google Analytics.
The value should be normalized as such:
- Remove symbol characters
- Convert to lowercase
- Remove leading and trailing whitespace
string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe administrativeArea to set. |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
setAdministrativeAreaBytes(ByteString value)
public AddressInfo.Builder setAdministrativeAreaBytes(ByteString value)Optional. The administrative area (state/province) of the user's address. Used only for Google Analytics.
The value should be normalized as such:
- Remove symbol characters
- Convert to lowercase
- Remove leading and trailing whitespace
string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for administrativeArea to set. |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
setCity(String value)
public AddressInfo.Builder setCity(String value)Optional. The city of the user's address. Used only for Google Analytics.
The value should be normalized as such:
- Remove symbol characters
- Convert to lowercase
- Remove leading and trailing whitespace
string city = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe city to set. |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
setCityBytes(ByteString value)
public AddressInfo.Builder setCityBytes(ByteString value)Optional. The city of the user's address. Used only for Google Analytics.
The value should be normalized as such:
- Remove symbol characters
- Convert to lowercase
- Remove leading and trailing whitespace
string city = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for city to set. |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
setFamilyName(String value)
public AddressInfo.Builder setFamilyName(String value)Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
string family_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe familyName to set. |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
setFamilyNameBytes(ByteString value)
public AddressInfo.Builder setFamilyNameBytes(ByteString value)Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
string family_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for familyName to set. |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
setGivenName(String value)
public AddressInfo.Builder setGivenName(String value)Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
string given_name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe givenName to set. |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
setGivenNameBytes(ByteString value)
public AddressInfo.Builder setGivenNameBytes(ByteString value)Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
string given_name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for givenName to set. |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
setPostalCode(String value)
public AddressInfo.Builder setPostalCode(String value)Required. The postal code of the user's address.
string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe postalCode to set. |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
setPostalCodeBytes(ByteString value)
public AddressInfo.Builder setPostalCodeBytes(ByteString value)Required. The postal code of the user's address.
string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for postalCode to set. |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
setRegionCode(String value)
public AddressInfo.Builder setRegionCode(String value)Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's address.
string region_code = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe regionCode to set. |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |
setRegionCodeBytes(ByteString value)
public AddressInfo.Builder setRegionCodeBytes(ByteString value)Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's address.
string region_code = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for regionCode to set. |
| Returns | |
|---|---|
| Type | Description |
AddressInfo.Builder |
This builder for chaining. |