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 type
google.maps.routing.v2.Location| Modifier and Type | Method and Description |
|---|---|
Location.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Location |
build() |
Location |
buildPartial() |
Location.Builder |
clear() |
Location.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Location.Builder |
clearHeading()
The compass heading associated with the direction of the flow of traffic.
|
Location.Builder |
clearLatLng()
The waypoint's geographic coordinates.
|
Location.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Location.Builder |
clone() |
Location |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Int32Value |
getHeading()
The compass heading associated with the direction of the flow of traffic.
|
com.google.protobuf.Int32Value.Builder |
getHeadingBuilder()
The compass heading associated with the direction of the flow of traffic.
|
com.google.protobuf.Int32ValueOrBuilder |
getHeadingOrBuilder()
The compass heading associated with the direction of the flow of traffic.
|
com.google.type.LatLng |
getLatLng()
The waypoint's geographic coordinates.
|
com.google.type.LatLng.Builder |
getLatLngBuilder()
The waypoint's geographic coordinates.
|
com.google.type.LatLngOrBuilder |
getLatLngOrBuilder()
The waypoint's geographic coordinates.
|
boolean |
hasHeading()
The compass heading associated with the direction of the flow of traffic.
|
boolean |
hasLatLng()
The waypoint's geographic coordinates.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Location.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Location.Builder |
mergeFrom(Location other) |
Location.Builder |
mergeFrom(com.google.protobuf.Message other) |
Location.Builder |
mergeHeading(com.google.protobuf.Int32Value value)
The compass heading associated with the direction of the flow of traffic.
|
Location.Builder |
mergeLatLng(com.google.type.LatLng value)
The waypoint's geographic coordinates.
|
Location.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Location.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Location.Builder |
setHeading(com.google.protobuf.Int32Value.Builder builderForValue)
The compass heading associated with the direction of the flow of traffic.
|
Location.Builder |
setHeading(com.google.protobuf.Int32Value value)
The compass heading associated with the direction of the flow of traffic.
|
Location.Builder |
setLatLng(com.google.type.LatLng.Builder builderForValue)
The waypoint's geographic coordinates.
|
Location.Builder |
setLatLng(com.google.type.LatLng value)
The waypoint's geographic coordinates.
|
Location.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Location.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Location build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Location buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Location.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Location.Builder>public Location.Builder mergeFrom(Location other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Location.Builder>IOExceptionpublic boolean hasLatLng()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;hasLatLng in interface LocationOrBuilderpublic com.google.type.LatLng getLatLng()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;getLatLng in interface LocationOrBuilderpublic Location.Builder setLatLng(com.google.type.LatLng value)
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;public Location.Builder setLatLng(com.google.type.LatLng.Builder builderForValue)
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;public Location.Builder mergeLatLng(com.google.type.LatLng value)
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;public Location.Builder clearLatLng()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;public com.google.type.LatLng.Builder getLatLngBuilder()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;public com.google.type.LatLngOrBuilder getLatLngOrBuilder()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;getLatLngOrBuilder in interface LocationOrBuilderpublic 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;hasHeading in interface LocationOrBuilderpublic 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;getHeading in interface LocationOrBuilderpublic 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;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;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;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;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;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;getHeadingOrBuilder in interface LocationOrBuilderpublic final Location.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public final Location.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>Copyright © 2025 Google LLC. All rights reserved.