Class Waypoint.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Waypoint.Builder>
com.google.cloud.optimization.v1.Waypoint.Builder
All Implemented Interfaces:
WaypointOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Waypoint

public static final class Waypoint.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    A point specified using geographic coordinates, including an optional heading.
     
    The POI Place ID associated with the waypoint.
    Indicates that the location of this waypoint is meant to have a preference for the vehicle to stop at a particular side of road.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    A point specified using geographic coordinates, including an optional heading.
    A point specified using geographic coordinates, including an optional heading.
    A point specified using geographic coordinates, including an optional heading.
     
    The POI Place ID associated with the waypoint.
    com.google.protobuf.ByteString
    The POI Place ID associated with the waypoint.
    boolean
    Indicates that the location of this waypoint is meant to have a preference for the vehicle to stop at a particular side of road.
    boolean
    A point specified using geographic coordinates, including an optional heading.
    boolean
    The POI Place ID associated with the waypoint.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    A point specified using geographic coordinates, including an optional heading.
    A point specified using geographic coordinates, including an optional heading.
    setLocation(Location.Builder builderForValue)
    A point specified using geographic coordinates, including an optional heading.
    The POI Place ID associated with the waypoint.
    setPlaceIdBytes(com.google.protobuf.ByteString value)
    The POI Place ID associated with the waypoint.
    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.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Waypoint.Builder>
    • clear

      public Waypoint.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Waypoint.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Waypoint.Builder>
    • getDefaultInstanceForType

      public Waypoint getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Waypoint build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Waypoint buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Waypoint.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Waypoint.Builder>
    • mergeFrom

      public Waypoint.Builder mergeFrom(Waypoint other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Waypoint.Builder>
    • mergeFrom

      public Waypoint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Waypoint.Builder>
      Throws:
      IOException
    • getLocationTypeCase

      public Waypoint.LocationTypeCase getLocationTypeCase()
      Specified by:
      getLocationTypeCase in interface WaypointOrBuilder
    • clearLocationType

      public Waypoint.Builder clearLocationType()
    • hasLocation

      public boolean hasLocation()
       A point specified using geographic coordinates, including an optional
       heading.
       
      .google.cloud.optimization.v1.Location location = 1;
      Specified by:
      hasLocation in interface WaypointOrBuilder
      Returns:
      Whether the location field is set.
    • getLocation

      public Location getLocation()
       A point specified using geographic coordinates, including an optional
       heading.
       
      .google.cloud.optimization.v1.Location location = 1;
      Specified by:
      getLocation in interface WaypointOrBuilder
      Returns:
      The location.
    • setLocation

      public Waypoint.Builder setLocation(Location value)
       A point specified using geographic coordinates, including an optional
       heading.
       
      .google.cloud.optimization.v1.Location location = 1;
    • setLocation

      public Waypoint.Builder setLocation(Location.Builder builderForValue)
       A point specified using geographic coordinates, including an optional
       heading.
       
      .google.cloud.optimization.v1.Location location = 1;
    • mergeLocation

      public Waypoint.Builder mergeLocation(Location value)
       A point specified using geographic coordinates, including an optional
       heading.
       
      .google.cloud.optimization.v1.Location location = 1;
    • clearLocation

      public Waypoint.Builder clearLocation()
       A point specified using geographic coordinates, including an optional
       heading.
       
      .google.cloud.optimization.v1.Location location = 1;
    • 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;
      Specified by:
      getLocationOrBuilder in interface WaypointOrBuilder
    • hasPlaceId

      public boolean hasPlaceId()
       The POI Place ID associated with the waypoint.
       
      string place_id = 2;
      Specified by:
      hasPlaceId in interface WaypointOrBuilder
      Returns:
      Whether the placeId field is set.
    • getPlaceId

      public String getPlaceId()
       The POI Place ID associated with the waypoint.
       
      string place_id = 2;
      Specified by:
      getPlaceId in interface WaypointOrBuilder
      Returns:
      The placeId.
    • getPlaceIdBytes

      public com.google.protobuf.ByteString getPlaceIdBytes()
       The POI Place ID associated with the waypoint.
       
      string place_id = 2;
      Specified by:
      getPlaceIdBytes in interface WaypointOrBuilder
      Returns:
      The bytes for placeId.
    • setPlaceId

      public Waypoint.Builder setPlaceId(String value)
       The POI Place ID associated with the waypoint.
       
      string place_id = 2;
      Parameters:
      value - The placeId to set.
      Returns:
      This builder for chaining.
    • clearPlaceId

      public Waypoint.Builder clearPlaceId()
       The POI Place ID associated with the waypoint.
       
      string place_id = 2;
      Returns:
      This builder for chaining.
    • setPlaceIdBytes

      public Waypoint.Builder setPlaceIdBytes(com.google.protobuf.ByteString value)
       The POI Place ID associated with the waypoint.
       
      string place_id = 2;
      Parameters:
      value - The bytes for placeId to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getSideOfRoad in interface WaypointOrBuilder
      Returns:
      The sideOfRoad.
    • setSideOfRoad

      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;
      Parameters:
      value - The sideOfRoad to set.
      Returns:
      This builder for chaining.
    • 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;
      Returns:
      This builder for chaining.