Class Address (0.5.0)

public final class Address extends GeneratedMessageV3 implements AddressOrBuilder

Shipping address of the warehouse.

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

Implements

AddressOrBuilder

Static Fields

ADMINISTRATIVE_AREA_FIELD_NUMBER

public static final int ADMINISTRATIVE_AREA_FIELD_NUMBER
Field Value
Type Description
int

CITY_FIELD_NUMBER

public static final int CITY_FIELD_NUMBER
Field Value
Type Description
int

POSTAL_CODE_FIELD_NUMBER

public static final int POSTAL_CODE_FIELD_NUMBER
Field Value
Type Description
int

REGION_CODE_FIELD_NUMBER

public static final int REGION_CODE_FIELD_NUMBER
Field Value
Type Description
int

STREET_ADDRESS_FIELD_NUMBER

public static final int STREET_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Address getDefaultInstance()
Returns
Type Description
Address

getDescriptor()

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

newBuilder()

public static Address.Builder newBuilder()
Returns
Type Description
Address.Builder

newBuilder(Address prototype)

public static Address.Builder newBuilder(Address prototype)
Parameter
Name Description
prototype Address
Returns
Type Description
Address.Builder

parseDelimitedFrom(InputStream input)

public static Address parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Address
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Address parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Address
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Address parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Address
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Address parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Address
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Address parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Address
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Address parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Address
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Address parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Address
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Address parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Address
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Address parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Address
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Address parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Address
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Address parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Address
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Address parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Address
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Address> parser()
Returns
Type Description
Parser<Address>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

getParserForType()

public Parser<Address> getParserForType()
Returns
Type Description
Parser<Address>
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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Address.Builder newBuilderForType()
Returns
Type Description
Address.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Address.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Address.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Address.Builder toBuilder()
Returns
Type Description
Address.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException