Package com.google.cloud.optimization.v1
Class Waypoint.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.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 typegoogle.cloud.optimization.v1.Waypoint
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Waypoint.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Waypointbuild()WaypointbuildPartial()Waypoint.Builderclear()Waypoint.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Waypoint.BuilderclearLocation()A point specified using geographic coordinates, including an optional heading.Waypoint.BuilderclearLocationType()Waypoint.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Waypoint.BuilderclearPlaceId()The POI Place ID associated with the waypoint.Waypoint.BuilderclearSideOfRoad()Indicates that the location of this waypoint is meant to have a preference for the vehicle to stop at a particular side of road.Waypoint.Builderclone()WaypointgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()LocationgetLocation()A point specified using geographic coordinates, including an optional heading.Location.BuildergetLocationBuilder()A point specified using geographic coordinates, including an optional heading.LocationOrBuildergetLocationOrBuilder()A point specified using geographic coordinates, including an optional heading.Waypoint.LocationTypeCasegetLocationTypeCase()StringgetPlaceId()The POI Place ID associated with the waypoint.com.google.protobuf.ByteStringgetPlaceIdBytes()The POI Place ID associated with the waypoint.booleangetSideOfRoad()Indicates that the location of this waypoint is meant to have a preference for the vehicle to stop at a particular side of road.booleanhasLocation()A point specified using geographic coordinates, including an optional heading.booleanhasPlaceId()The POI Place ID associated with the waypoint.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Waypoint.BuildermergeFrom(Waypoint other)Waypoint.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Waypoint.BuildermergeFrom(com.google.protobuf.Message other)Waypoint.BuildermergeLocation(Location value)A point specified using geographic coordinates, including an optional heading.Waypoint.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Waypoint.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Waypoint.BuildersetLocation(Location value)A point specified using geographic coordinates, including an optional heading.Waypoint.BuildersetLocation(Location.Builder builderForValue)A point specified using geographic coordinates, including an optional heading.Waypoint.BuildersetPlaceId(String value)The POI Place ID associated with the waypoint.Waypoint.BuildersetPlaceIdBytes(com.google.protobuf.ByteString value)The POI Place ID associated with the waypoint.Waypoint.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Waypoint.BuildersetSideOfRoad(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.Waypoint.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Waypoint.Builder>
-
clear
public Waypoint.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Waypoint.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Waypoint.Builder>
-
getDefaultInstanceForType
public Waypoint getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Waypoint build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Waypoint buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Waypoint.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Waypoint.Builder>
-
setField
public Waypoint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Waypoint.Builder>
-
clearField
public Waypoint.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Waypoint.Builder>
-
clearOneof
public Waypoint.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Waypoint.Builder>
-
setRepeatedField
public Waypoint.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Waypoint.Builder>
-
addRepeatedField
public Waypoint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Waypoint.Builder>
-
mergeFrom
public Waypoint.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Waypoint.Builder>
-
mergeFrom
public Waypoint.Builder mergeFrom(Waypoint other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Waypoint.Builder>
-
mergeFrom
public Waypoint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Waypoint.Builder>- Throws:
IOException
-
getLocationTypeCase
public Waypoint.LocationTypeCase getLocationTypeCase()
- Specified by:
getLocationTypeCasein interfaceWaypointOrBuilder
-
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:
hasLocationin interfaceWaypointOrBuilder- 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:
getLocationin interfaceWaypointOrBuilder- 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:
getLocationOrBuilderin interfaceWaypointOrBuilder
-
hasPlaceId
public boolean hasPlaceId()
The POI Place ID associated with the waypoint.
string place_id = 2;- Specified by:
hasPlaceIdin interfaceWaypointOrBuilder- 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:
getPlaceIdin interfaceWaypointOrBuilder- Returns:
- The placeId.
-
getPlaceIdBytes
public com.google.protobuf.ByteString getPlaceIdBytes()
The POI Place ID associated with the waypoint.
string place_id = 2;- Specified by:
getPlaceIdBytesin interfaceWaypointOrBuilder- 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:
getSideOfRoadin interfaceWaypointOrBuilder- 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.
-
setUnknownFields
public final Waypoint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Waypoint.Builder>
-
mergeUnknownFields
public final Waypoint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Waypoint.Builder>
-
-