Class ListLocationsResponse.Builder (2.5.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.5.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   static   final   class  ListLocationsResponse . Builder   extends   GeneratedMessageV3 . Builder<ListLocationsResponse . Builder >  implements   ListLocationsResponseOrBuilder  
  
  
  
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  Returns 
  
  Methods
   
  addAllLocations(Iterable<? extends Location> arg0) 
  
    
public   ListLocationsResponse . Builder   addAllLocations ( Iterable <?   extends   Location >  arg0 )  
  Parameter 
  
    
      
        Name Description  
      
        arg0 Iterable <? extends com.google.cloud.location.Location > 
     
  
  Returns 
  
  addLocations(Location arg0) 
  
    
public   ListLocationsResponse . Builder   addLocations ( Location   arg0 )  
  Parameter 
  
  Returns 
  
  addLocations(Location.Builder arg0) 
  
    
public   ListLocationsResponse . Builder   addLocations ( Location . Builder   arg0 )  
  Parameter 
  
  Returns 
  
  addLocations(int arg0, Location arg1) 
  
    
public   ListLocationsResponse . Builder   addLocations ( int   arg0 ,   Location   arg1 )  
  Parameters 
  
  Returns 
  
  addLocations(int arg0, Location.Builder arg1) 
  
    
public   ListLocationsResponse . Builder   addLocations ( int   arg0 ,   Location . Builder   arg1 )  
  Parameters 
  
  Returns 
  
  addLocationsBuilder() 
  
    
public   Location . Builder   addLocationsBuilder ()  
  Returns 
  
  addLocationsBuilder(int arg0) 
  
    
public   Location . Builder   addLocationsBuilder ( int   arg0 )  
  Parameter 
  
    
      
        Name Description  
      
        arg0 int  
     
  
  Returns 
  
  addRepeatedField(Descriptors.FieldDescriptor arg0, Object arg1) 
  
    
public   ListLocationsResponse . Builder   addRepeatedField ( Descriptors . FieldDescriptor   arg0 ,   Object   arg1 )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  build() 
  
    
public   ListLocationsResponse   build ()  
  Returns 
  
  buildPartial() 
  
    
public   ListLocationsResponse   buildPartial ()  
  Returns 
  
  clear() 
  
    
public   ListLocationsResponse . Builder   clear ()  
  Returns 
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor arg0) 
  
    
public   ListLocationsResponse . Builder   clearField ( Descriptors . FieldDescriptor   arg0 )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  clearLocations() 
  
    
public   ListLocationsResponse . Builder   clearLocations ()  
  Returns 
  
  clearNextPageToken() 
  
    
public   ListLocationsResponse . Builder   clearNextPageToken ()  
  Returns 
  
  clearOneof(Descriptors.OneofDescriptor arg0) 
  
    
public   ListLocationsResponse . Builder   clearOneof ( Descriptors . OneofDescriptor   arg0 )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  clone() 
  
    
public   ListLocationsResponse . Builder   clone ()  
  Returns 
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   ListLocationsResponse   getDefaultInstanceForType ()  
  Returns 
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  Returns 
  
  Overrides 
  
  getLocations(int arg0) 
  
    
public   Location   getLocations ( int   arg0 )  
  Parameter 
  
    
      
        Name Description  
      
        arg0 int  
     
  
  Returns 
  
  getLocationsBuilder(int arg0) 
  
    
public   Location . Builder   getLocationsBuilder ( int   arg0 )  
  Parameter 
  
    
      
        Name Description  
      
        arg0 int  
     
  
  Returns 
  
  getLocationsBuilderList() 
  
    
public   List<Location . Builder >  getLocationsBuilderList ()  
  Returns 
  
  getLocationsCount() 
  
    
public   int   getLocationsCount ()  
  Returns 
  
  getLocationsList() 
  
    
public   List<Location>   getLocationsList ()  
  Returns 
  
  getLocationsOrBuilder(int arg0) 
  
    
public   LocationOrBuilder   getLocationsOrBuilder ( int   arg0 )  
  Parameter 
  
    
      
        Name Description  
      
        arg0 int  
     
  
  Returns 
  
  getLocationsOrBuilderList() 
  
    
public   List <?   extends   LocationOrBuilder >  getLocationsOrBuilderList ()  
  Returns 
  
    
      
        Type Description  
      
        List <? extends com.google.cloud.location.LocationOrBuilder > 
     
  
  getNextPageToken() 
  
    
public   String   getNextPageToken ()  
  Returns 
  
  getNextPageTokenBytes() 
  
    
public   ByteString   getNextPageTokenBytes ()  
  Returns 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  Returns 
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  Returns 
  
  Overrides 
  
  mergeFrom(ListLocationsResponse arg0) 
  
    
public   ListLocationsResponse . Builder   mergeFrom ( ListLocationsResponse   arg0 )  
  Parameter 
  
  Returns 
  
  
    
public   ListLocationsResponse . Builder   mergeFrom ( CodedInputStream   arg0 ,   ExtensionRegistryLite   arg1 )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  Exceptions 
  
  mergeFrom(Message arg0) 
  
    
public   ListLocationsResponse . Builder   mergeFrom ( Message   arg0 )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet arg0) 
  
    
public   final   ListLocationsResponse . Builder   mergeUnknownFields ( UnknownFieldSet   arg0 )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  removeLocations(int arg0) 
  
    
public   ListLocationsResponse . Builder   removeLocations ( int   arg0 )  
  Parameter 
  
    
      
        Name Description  
      
        arg0 int  
     
  
  Returns 
  
  setField(Descriptors.FieldDescriptor arg0, Object arg1) 
  
    
public   ListLocationsResponse . Builder   setField ( Descriptors . FieldDescriptor   arg0 ,   Object   arg1 )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  setLocations(int arg0, Location arg1) 
  
    
public   ListLocationsResponse . Builder   setLocations ( int   arg0 ,   Location   arg1 )  
  Parameters 
  
  Returns 
  
  setLocations(int arg0, Location.Builder arg1) 
  
    
public   ListLocationsResponse . Builder   setLocations ( int   arg0 ,   Location . Builder   arg1 )  
  Parameters 
  
  Returns 
  
  setNextPageToken(String arg0) 
  
    
public   ListLocationsResponse . Builder   setNextPageToken ( String   arg0 )  
  Parameter 
  
  Returns 
  
  setNextPageTokenBytes(ByteString arg0) 
  
    
public   ListLocationsResponse . Builder   setNextPageTokenBytes ( ByteString   arg0 )  
  Parameter 
  
  Returns 
  
  setRepeatedField(Descriptors.FieldDescriptor arg0, int arg1, Object arg2) 
  
    
public   ListLocationsResponse . Builder   setRepeatedField ( Descriptors . FieldDescriptor   arg0 ,   int   arg1 ,   Object   arg2 )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet arg0) 
  
    
public   final   ListLocationsResponse . Builder   setUnknownFields ( UnknownFieldSet   arg0 )  
  Parameter 
  
  Returns 
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]