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.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(Location other)
Location.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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 value)
The compass heading associated with the direction of the flow of traffic.Location.Builder
setHeading(com.google.protobuf.Int32Value.Builder builderForValue)
The compass heading associated with the direction of the flow of traffic.Location.Builder
setLatLng(com.google.type.LatLng value)
The waypoint's geographic coordinates.Location.Builder
setLatLng(com.google.type.LatLng.Builder builderForValue)
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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clear
public Location.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
getDefaultInstanceForType
public Location getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Location build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Location buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Location.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setField
public Location.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearField
public Location.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearOneof
public Location.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setRepeatedField
public Location.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
addRepeatedField
public Location.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(Location other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasLatLng
in 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:
getLatLng
in 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:
getLatLngOrBuilder
in 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:
hasHeading
in 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:
getHeading
in 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:
getHeadingOrBuilder
in interfaceLocationOrBuilder
-
setUnknownFields
public final Location.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeUnknownFields
public final Location.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
-