Send feedback
  
   
 
  
    
      Class Address (1.4.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  Address   extends   GeneratedMessageV3   implements   AddressOrBuilder  
   Shipping address of the warehouse.
 Protobuf type google.shopping.merchant.accounts.v1.Address
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  
  
    
public   static   final   int   ADMINISTRATIVE_AREA_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
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  
     
  
  
  
    
public   static   final   int   REGION_CODE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   STREET_ADDRESS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  
    
public   static   Address   getDefaultInstance ()  
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  
    
public   static   Address . Builder   newBuilder ()  
  
  
    
public   static   Address . Builder   newBuilder ( Address   prototype )  
  
    
      
        Parameter  
      
        Name Description  
      
        prototypeAddress  
     
  
  
  
    
public   static   Address   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   Address   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Address   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  
    
public   static   Address   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Address   parseFrom ( ByteString   data )  
  
  
  
  
    
public   static   Address   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Address   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   Address   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Address   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   Address   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Address   parseFrom ( ByteBuffer   data )  
  
  
  
  
    
public   static   Address   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Parser<Address>   parser ()  
  
  Methods
   
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  
    
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.
 
     
  
  
    
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.
 
     
  
   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.
 
     
  
  
    
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.
 
     
  
  
    
public   Address   getDefaultInstanceForType ()  
  
  
    
public   Parser<Address>   getParserForType ()  
  
  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.
 
     
  
  
    
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.
 
     
  
  
    
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.
 
     
  
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
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.
 
     
  
  
    
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.
 
     
  
  
    
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.
 
     
  
   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.
 
     
  
  
    
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.
 
     
  
  
    
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.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   Address . Builder   newBuilderForType ()  
  
  
    
protected   Address . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  
    
public   Address . Builder   toBuilder ()  
  
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]