Interface AddressOrBuilder (0.10.0)

public interface AddressOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAdministrativeArea()

public abstract String getAdministrativeArea()

Required. Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC").

optional string administrative_area = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The administrativeArea.

getAdministrativeAreaBytes()

public abstract ByteString getAdministrativeAreaBytes()

Required. Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC").

optional string administrative_area = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for administrativeArea.

getCity()

public abstract String getCity()

Required. City, town or commune. May also include dependent localities or sublocalities (For example neighborhoods or suburbs).

optional string city = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The city.

getCityBytes()

public abstract ByteString getCityBytes()

Required. City, town or commune. May also include dependent localities or sublocalities (For example neighborhoods or suburbs).

optional string city = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for city.

getPostalCode()

public abstract String getPostalCode()

Required. Postal code or ZIP (For example "94043").

optional string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The postalCode.

getPostalCodeBytes()

public abstract ByteString getPostalCodeBytes()

Required. Postal code or ZIP (For example "94043").

optional string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for postalCode.

getRegionCode()

public abstract String getRegionCode()

Required. CLDR country code (For example "US").

optional string region_code = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public abstract ByteString getRegionCodeBytes()

Required. CLDR country code (For example "US").

optional string region_code = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for regionCode.

getStreetAddress()

public abstract String getStreetAddress()

Street-level part of the address. For example: 111w 31st Street.

optional string street_address = 1;

Returns
Type Description
String

The streetAddress.

getStreetAddressBytes()

public abstract ByteString getStreetAddressBytes()

Street-level part of the address. For example: 111w 31st Street.

optional string street_address = 1;

Returns
Type Description
ByteString

The bytes for streetAddress.

hasAdministrativeArea()

public abstract boolean hasAdministrativeArea()

Required. Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC").

optional string administrative_area = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the administrativeArea field is set.

hasCity()

public abstract boolean hasCity()

Required. City, town or commune. May also include dependent localities or sublocalities (For example neighborhoods or suburbs).

optional string city = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the city field is set.

hasPostalCode()

public abstract boolean hasPostalCode()

Required. Postal code or ZIP (For example "94043").

optional string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the postalCode field is set.

hasRegionCode()

public abstract boolean hasRegionCode()

Required. CLDR country code (For example "US").

optional string region_code = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the regionCode field is set.

hasStreetAddress()

public abstract boolean hasStreetAddress()

Street-level part of the address. For example: 111w 31st Street.

optional string street_address = 1;

Returns
Type Description
boolean

Whether the streetAddress field is set.