Package com.google.maps.routing.v2
Class Location.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
- com.google.maps.routing.v2.Location.Builder
-
- All Implemented Interfaces:
LocationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Location
public static final class Location.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder> implements LocationOrBuilder
Encapsulates a location (a geographic point, and an optional heading).
Protobuf typegoogle.maps.routing.v2.Location
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Location.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Locationbuild()LocationbuildPartial()Location.Builderclear()Location.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Location.BuilderclearHeading()The compass heading associated with the direction of the flow of traffic.Location.BuilderclearLatLng()The waypoint's geographic coordinates.Location.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Location.Builderclone()LocationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.Int32ValuegetHeading()The compass heading associated with the direction of the flow of traffic.com.google.protobuf.Int32Value.BuildergetHeadingBuilder()The compass heading associated with the direction of the flow of traffic.com.google.protobuf.Int32ValueOrBuildergetHeadingOrBuilder()The compass heading associated with the direction of the flow of traffic.com.google.type.LatLnggetLatLng()The waypoint's geographic coordinates.com.google.type.LatLng.BuildergetLatLngBuilder()The waypoint's geographic coordinates.com.google.type.LatLngOrBuildergetLatLngOrBuilder()The waypoint's geographic coordinates.booleanhasHeading()The compass heading associated with the direction of the flow of traffic.booleanhasLatLng()The waypoint's geographic coordinates.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Location.BuildermergeFrom(Location other)Location.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Location.BuildermergeFrom(com.google.protobuf.Message other)Location.BuildermergeHeading(com.google.protobuf.Int32Value value)The compass heading associated with the direction of the flow of traffic.Location.BuildermergeLatLng(com.google.type.LatLng value)The waypoint's geographic coordinates.Location.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Location.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Location.BuildersetHeading(com.google.protobuf.Int32Value value)The compass heading associated with the direction of the flow of traffic.Location.BuildersetHeading(com.google.protobuf.Int32Value.Builder builderForValue)The compass heading associated with the direction of the flow of traffic.Location.BuildersetLatLng(com.google.type.LatLng value)The waypoint's geographic coordinates.Location.BuildersetLatLng(com.google.type.LatLng.Builder builderForValue)The waypoint's geographic coordinates.Location.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Location.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<Location.Builder>
-
clear
public Location.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<Location.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<Location.Builder>
-
getDefaultInstanceForType
public Location getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Location build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Location buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Location.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<Location.Builder>
-
setField
public Location.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<Location.Builder>
-
clearField
public Location.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearOneof
public Location.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setRepeatedField
public Location.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<Location.Builder>
-
addRepeatedField
public Location.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<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(Location other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeFrom
public Location.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<Location.Builder>- Throws:
IOException
-
hasLatLng
public boolean hasLatLng()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;- Specified by:
hasLatLngin interfaceLocationOrBuilder- Returns:
- Whether the latLng field is set.
-
getLatLng
public com.google.type.LatLng getLatLng()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;- Specified by:
getLatLngin interfaceLocationOrBuilder- Returns:
- The latLng.
-
setLatLng
public Location.Builder setLatLng(com.google.type.LatLng value)
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
-
setLatLng
public Location.Builder setLatLng(com.google.type.LatLng.Builder builderForValue)
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
-
mergeLatLng
public Location.Builder mergeLatLng(com.google.type.LatLng value)
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
-
clearLatLng
public Location.Builder clearLatLng()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
-
getLatLngBuilder
public com.google.type.LatLng.Builder getLatLngBuilder()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
-
getLatLngOrBuilder
public com.google.type.LatLngOrBuilder getLatLngOrBuilder()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;- Specified by:
getLatLngOrBuilderin interfaceLocationOrBuilder
-
hasHeading
public boolean hasHeading()
The compass heading associated with the direction of the flow of traffic. This value specifies the side of the road for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, and so on. You can use this field only for `DRIVE` and `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
.google.protobuf.Int32Value heading = 2;- Specified by:
hasHeadingin interfaceLocationOrBuilder- Returns:
- Whether the heading field is set.
-
getHeading
public com.google.protobuf.Int32Value getHeading()
The compass heading associated with the direction of the flow of traffic. This value specifies the side of the road for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, and so on. You can use this field only for `DRIVE` and `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
.google.protobuf.Int32Value heading = 2;- Specified by:
getHeadingin interfaceLocationOrBuilder- Returns:
- The heading.
-
setHeading
public Location.Builder setHeading(com.google.protobuf.Int32Value value)
The compass heading associated with the direction of the flow of traffic. This value specifies the side of the road for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, and so on. You can use this field only for `DRIVE` and `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
.google.protobuf.Int32Value heading = 2;
-
setHeading
public Location.Builder setHeading(com.google.protobuf.Int32Value.Builder builderForValue)
The compass heading associated with the direction of the flow of traffic. This value specifies the side of the road for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, and so on. You can use this field only for `DRIVE` and `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
.google.protobuf.Int32Value heading = 2;
-
mergeHeading
public Location.Builder mergeHeading(com.google.protobuf.Int32Value value)
The compass heading associated with the direction of the flow of traffic. This value specifies the side of the road for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, and so on. You can use this field only for `DRIVE` and `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
.google.protobuf.Int32Value heading = 2;
-
clearHeading
public Location.Builder clearHeading()
The compass heading associated with the direction of the flow of traffic. This value specifies the side of the road for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, and so on. You can use this field only for `DRIVE` and `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
.google.protobuf.Int32Value heading = 2;
-
getHeadingBuilder
public com.google.protobuf.Int32Value.Builder getHeadingBuilder()
The compass heading associated with the direction of the flow of traffic. This value specifies the side of the road for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, and so on. You can use this field only for `DRIVE` and `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
.google.protobuf.Int32Value heading = 2;
-
getHeadingOrBuilder
public com.google.protobuf.Int32ValueOrBuilder getHeadingOrBuilder()
The compass heading associated with the direction of the flow of traffic. This value specifies the side of the road for pickup and drop-off. Heading values can be from 0 to 360, where 0 specifies a heading of due North, 90 specifies a heading of due East, and so on. You can use this field only for `DRIVE` and `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
.google.protobuf.Int32Value heading = 2;- Specified by:
getHeadingOrBuilderin interfaceLocationOrBuilder
-
setUnknownFields
public final Location.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeUnknownFields
public final Location.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
-