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.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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Location.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Location buildPartial()
Returns
clear()
public Location.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Location.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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;
Returns
clearLatLng()
public Location.Builder clearLatLng()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Location.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Location.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Location getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Location other)
public Location.Builder mergeFrom(Location other)
Parameter
Returns
public Location.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Location.Builder mergeFrom(Message other)
Parameter
Returns
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
|
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Location.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Location.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
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
|
Returns
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
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Location.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Location.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides