Send feedback
Class Location.Builder (1.46.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.46.0 keyboard_arrow_down
public static final class Location . Builder extends GeneratedMessageV3 . Builder<Location . Builder > implements LocationOrBuilder
Encapsulates a location (a geographic point, and an optional heading).
Protobuf type google.cloud.optimization.v1.Location
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Location . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
buildPartial()
public Location buildPartial ()
clear()
public Location . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Location . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearHeading()
public Location . Builder clearHeading ()
The compass heading associated with the direction of the flow of traffic.
This value is used to specify the side of the road to use 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, etc.
optional int32 heading = 2;
clearLatLng()
public Location . Builder clearLatLng ()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public Location . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public Location . Builder clone ()
Overrides
getDefaultInstanceForType()
public Location getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getHeading()
The compass heading associated with the direction of the flow of traffic.
This value is used to specify the side of the road to use 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, etc.
optional int32 heading = 2;
Returns
Type
Description
int
The heading.
getLatLng()
public LatLng getLatLng ()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
Returns
Type
Description
com.google.type.LatLng
The latLng.
getLatLngBuilder()
public LatLng . Builder getLatLngBuilder ()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
Returns
Type
Description
com.google.type.LatLng.Builder
getLatLngOrBuilder()
public LatLngOrBuilder getLatLngOrBuilder ()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
Returns
Type
Description
com.google.type.LatLngOrBuilder
hasHeading()
public boolean hasHeading ()
The compass heading associated with the direction of the flow of traffic.
This value is used to specify the side of the road to use 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, etc.
optional int32 heading = 2;
Returns
Type
Description
boolean
Whether the heading field is set.
hasLatLng()
public boolean hasLatLng ()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
Returns
Type
Description
boolean
Whether the latLng field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(Location other)
public Location . Builder mergeFrom ( Location other )
Parameter
Name
Description
other
Location
public Location . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public Location . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeLatLng(LatLng value)
public Location . Builder mergeLatLng ( LatLng value )
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
Parameter
Name
Description
value
com.google.type.LatLng
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Location . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Location . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setHeading(int value)
public Location . Builder setHeading ( int value )
The compass heading associated with the direction of the flow of traffic.
This value is used to specify the side of the road to use 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, etc.
optional int32 heading = 2;
Parameter
Name
Description
value
int
The heading to set.
setLatLng(LatLng value)
public Location . Builder setLatLng ( LatLng value )
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
Parameter
Name
Description
value
com.google.type.LatLng
setLatLng(LatLng.Builder builderForValue)
public Location . Builder setLatLng ( LatLng . Builder builderForValue )
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
Parameter
Name
Description
builderForValue
com.google.type.LatLng.Builder
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Location . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Location . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]