Class Address.Builder (1.11.0)

public static final class Address.Builder extends GeneratedMessage.Builder<Address.Builder> implements AddressOrBuilder

Shipping address of the warehouse.

Protobuf type google.shopping.merchant.accounts.v1beta.Address

Implements

AddressOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Address build()
Returns
Type Description
Address

buildPartial()

public Address buildPartial()
Returns
Type Description
Address

clear()

public Address.Builder clear()
Returns
Type Description
Address.Builder
Overrides

clearAdministrativeArea()

public Address.Builder clearAdministrativeArea()

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
Address.Builder

This builder for chaining.

clearCity()

public Address.Builder clearCity()

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
Address.Builder

This builder for chaining.

clearPostalCode()

public Address.Builder clearPostalCode()

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

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

Returns
Type Description
Address.Builder

This builder for chaining.

clearRegionCode()

public Address.Builder clearRegionCode()

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

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

Returns
Type Description
Address.Builder

This builder for chaining.

clearStreetAddress()

public Address.Builder clearStreetAddress()

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

optional string street_address = 1;

Returns
Type Description
Address.Builder

This builder for chaining.

getAdministrativeArea()

public 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 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 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 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.

getDefaultInstanceForType()

public Address getDefaultInstanceForType()
Returns
Type Description
Address

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPostalCode()

public 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 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 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 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 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 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 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 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 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 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Address.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Address.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Address.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Address.Builder
Overrides

mergeFrom(Address other)

public Address.Builder mergeFrom(Address other)
Parameter
Name Description
other Address
Returns
Type Description
Address.Builder

setAdministrativeArea(String value)

public Address.Builder setAdministrativeArea(String value)

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];

Parameter
Name Description
value String

The administrativeArea to set.

Returns
Type Description
Address.Builder

This builder for chaining.

setAdministrativeAreaBytes(ByteString value)

public Address.Builder setAdministrativeAreaBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for administrativeArea to set.

Returns
Type Description
Address.Builder

This builder for chaining.

setCity(String value)

public Address.Builder setCity(String value)

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];

Parameter
Name Description
value String

The city to set.

Returns
Type Description
Address.Builder

This builder for chaining.

setCityBytes(ByteString value)

public Address.Builder setCityBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for city to set.

Returns
Type Description
Address.Builder

This builder for chaining.

setPostalCode(String value)

public Address.Builder setPostalCode(String value)

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

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

Parameter
Name Description
value String

The postalCode to set.

Returns
Type Description
Address.Builder

This builder for chaining.

setPostalCodeBytes(ByteString value)

public Address.Builder setPostalCodeBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for postalCode to set.

Returns
Type Description
Address.Builder

This builder for chaining.

setRegionCode(String value)

public Address.Builder setRegionCode(String value)

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

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

Parameter
Name Description
value String

The regionCode to set.

Returns
Type Description
Address.Builder

This builder for chaining.

setRegionCodeBytes(ByteString value)

public Address.Builder setRegionCodeBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for regionCode to set.

Returns
Type Description
Address.Builder

This builder for chaining.

setStreetAddress(String value)

public Address.Builder setStreetAddress(String value)

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

optional string street_address = 1;

Parameter
Name Description
value String

The streetAddress to set.

Returns
Type Description
Address.Builder

This builder for chaining.

setStreetAddressBytes(ByteString value)

public Address.Builder setStreetAddressBytes(ByteString value)

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

optional string street_address = 1;

Parameter
Name Description
value ByteString

The bytes for streetAddress to set.

Returns
Type Description
Address.Builder

This builder for chaining.