publicstaticfinalclass Location.BuilderextendsGeneratedMessageV3.Builder<Location.Builder>implementsLocationOrBuilder
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()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicLocation.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
build()
buildPartial()
publicLocationbuildPartial()
clear()
publicLocation.Builderclear()
Overrides
clearField(Descriptors.FieldDescriptor field)
publicLocation.BuilderclearField(Descriptors.FieldDescriptorfield)
Overrides
clearHeading()
publicLocation.BuilderclearHeading()
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()
publicLocation.BuilderclearLatLng()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
publicLocation.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Overrides
clone()
publicLocation.Builderclone()
Overrides
getDefaultInstanceForType()
publicLocationgetDefaultInstanceForType()
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()
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()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
| Returns |
| Type |
Description |
com.google.type.LatLng |
The latLng.
|
getLatLngBuilder()
publicLatLng.BuildergetLatLngBuilder()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
| Returns |
| Type |
Description |
com.google.type.LatLng.Builder |
getLatLngOrBuilder()
publicLatLngOrBuildergetLatLngOrBuilder()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
| Returns |
| Type |
Description |
com.google.type.LatLngOrBuilder |
hasHeading()
publicbooleanhasHeading()
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()
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
| Returns |
| Type |
Description |
boolean |
Whether the latLng field is set.
|
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
mergeFrom(Location other)
publicLocation.BuildermergeFrom(Locationother)
| Parameter |
| Name |
Description |
other |
Location
|
publicLocation.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Overrides
mergeFrom(Message other)
publicLocation.BuildermergeFrom(Messageother)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeLatLng(LatLng value)
publicLocation.BuildermergeLatLng(LatLngvalue)
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
| Parameter |
| Name |
Description |
value |
com.google.type.LatLng
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalLocation.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
publicLocation.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
setHeading(int value)
publicLocation.BuildersetHeading(intvalue)
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)
publicLocation.BuildersetLatLng(LatLngvalue)
The waypoint's geographic coordinates.
.google.type.LatLng lat_lng = 1;
| Parameter |
| Name |
Description |
value |
com.google.type.LatLng
|
setLatLng(LatLng.Builder builderForValue)
publicLocation.BuildersetLatLng(LatLng.BuilderbuilderForValue)
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)
publicLocation.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalLocation.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Overrides