Class Waypoint.Builder (1.74.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 1.74.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  Waypoint . Builder   extends   GeneratedMessageV3 . Builder<Waypoint . Builder >  implements   WaypointOrBuilder  
   Encapsulates a waypoint. Waypoints mark arrival and departure locations of
 VisitRequests, and start and end locations of Vehicles.
 Protobuf type google.cloud.optimization.v1.Waypoint
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      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 ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   Waypoint . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
  
  buildPartial() 
  
    
public   Waypoint   buildPartial ()  
  
  clear() 
  
    
public   Waypoint . Builder   clear ()  
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   Waypoint . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearLocation() 
  
    
public   Waypoint . Builder   clearLocation ()  
   A point specified using geographic coordinates, including an optional
 heading.
 .google.cloud.optimization.v1.Location location = 1;
clearLocationType() 
  
    
public   Waypoint . Builder   clearLocationType ()  
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   Waypoint . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clearPlaceId() 
  
    
public   Waypoint . Builder   clearPlaceId ()  
   The POI Place ID associated with the waypoint.
 string place_id = 2;
clearSideOfRoad() 
  
    
public   Waypoint . Builder   clearSideOfRoad ()  
   Indicates that the location of this waypoint is meant to have a preference
 for the vehicle to stop at a particular side of road. When you set this
 value, the route will pass through the location so that the vehicle can
 stop at the side of road that the location is biased towards from the
 center of the road. This option works only for the 'DRIVING' travel mode,
 and when the 'location_type' is set to 'location'.
 bool side_of_road = 3;
clone() 
  
    
public   Waypoint . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   Waypoint   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getLocation() 
  
    
public   Location   getLocation ()  
   A point specified using geographic coordinates, including an optional
 heading.
 .google.cloud.optimization.v1.Location location = 1;
    
      
        Returns  
      
        Type Description  
      
        Location The location.
 
     
  
  getLocationBuilder() 
  
    
public   Location . Builder   getLocationBuilder ()  
   A point specified using geographic coordinates, including an optional
 heading.
 .google.cloud.optimization.v1.Location location = 1;
getLocationOrBuilder() 
  
    
public   LocationOrBuilder   getLocationOrBuilder ()  
   A point specified using geographic coordinates, including an optional
 heading.
 .google.cloud.optimization.v1.Location location = 1;
getLocationTypeCase() 
  
    
public   Waypoint . LocationTypeCase   getLocationTypeCase ()  
  
  getPlaceId() 
  
    
public   String   getPlaceId ()  
   The POI Place ID associated with the waypoint.
 string place_id = 2;
    
      
        Returns  
      
        Type Description  
      
        String The placeId.
 
     
  
  getPlaceIdBytes() 
  
    
public   ByteString   getPlaceIdBytes ()  
   The POI Place ID associated with the waypoint.
 string place_id = 2;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for placeId.
 
     
  
  getSideOfRoad() 
  
    
public   boolean   getSideOfRoad ()  
   Indicates that the location of this waypoint is meant to have a preference
 for the vehicle to stop at a particular side of road. When you set this
 value, the route will pass through the location so that the vehicle can
 stop at the side of road that the location is biased towards from the
 center of the road. This option works only for the 'DRIVING' travel mode,
 and when the 'location_type' is set to 'location'.
 bool side_of_road = 3;
    
      
        Returns  
      
        Type Description  
      
        boolean The sideOfRoad.
 
     
  
  hasLocation() 
  
    
public   boolean   hasLocation ()  
   A point specified using geographic coordinates, including an optional
 heading.
 .google.cloud.optimization.v1.Location location = 1;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the location field is set.
 
     
  
  hasPlaceId() 
  
    
public   boolean   hasPlaceId ()  
   The POI Place ID associated with the waypoint.
 string place_id = 2;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the placeId field is set.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(Waypoint other) 
  
    
public   Waypoint . Builder   mergeFrom ( Waypoint   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherWaypoint  
     
  
  
  
    
public   Waypoint . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   Waypoint . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeLocation(Location value) 
  
    
public   Waypoint . Builder   mergeLocation ( Location   value )  
   A point specified using geographic coordinates, including an optional
 heading.
 .google.cloud.optimization.v1.Location location = 1;
    
      
        Parameter  
      
        Name Description  
      
        valueLocation  
     
  
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   Waypoint . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   Waypoint . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setLocation(Location value) 
  
    
public   Waypoint . Builder   setLocation ( Location   value )  
   A point specified using geographic coordinates, including an optional
 heading.
 .google.cloud.optimization.v1.Location location = 1;
    
      
        Parameter  
      
        Name Description  
      
        valueLocation  
     
  
  
  setLocation(Location.Builder builderForValue) 
  
    
public   Waypoint . Builder   setLocation ( Location . Builder   builderForValue )  
   A point specified using geographic coordinates, including an optional
 heading.
 .google.cloud.optimization.v1.Location location = 1;
setPlaceId(String value) 
  
    
public   Waypoint . Builder   setPlaceId ( String   value )  
   The POI Place ID associated with the waypoint.
 string place_id = 2;
    
      
        Parameter  
      
        Name Description  
      
        valueString The placeId to set.
 
     
  
  
  setPlaceIdBytes(ByteString value) 
  
    
public   Waypoint . Builder   setPlaceIdBytes ( ByteString   value )  
   The POI Place ID associated with the waypoint.
 string place_id = 2;
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for placeId to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   Waypoint . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setSideOfRoad(boolean value) 
  
    
public   Waypoint . Builder   setSideOfRoad ( boolean   value )  
   Indicates that the location of this waypoint is meant to have a preference
 for the vehicle to stop at a particular side of road. When you set this
 value, the route will pass through the location so that the vehicle can
 stop at the side of road that the location is biased towards from the
 center of the road. This option works only for the 'DRIVING' travel mode,
 and when the 'location_type' is set to 'location'.
 bool side_of_road = 3;
    
      
        Parameter  
      
        Name Description  
      
        valueboolean The sideOfRoad to set.
 
     
  
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   Waypoint . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  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."],[],[]]