public static final class Address.Builder extends GeneratedMessageV3.Builder<Address.Builder> implements AddressOrBuilder
Shipping address of the warehouse.
Protobuf type google.shopping.merchant.accounts.v1beta.Address
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Address.BuilderImplements
AddressOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Address.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Address.Builder |
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 |
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. |
clearField(Descriptors.FieldDescriptor field)
public Address.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Address.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Address.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Address.Builder |
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. |
clone()
public Address.Builder clone()
Returns | |
---|---|
Type | Description |
Address.Builder |
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 |
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Address.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Address.Builder |
mergeFrom(Address other)
public Address.Builder mergeFrom(Address other)
Parameter | |
---|---|
Name | Description |
other |
Address |
Returns | |
---|---|
Type | Description |
Address.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Address.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
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. |
setField(Descriptors.FieldDescriptor field, Object value)
public Address.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Address.Builder |
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. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Address.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Address.Builder |
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. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Address.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Address.Builder |