public static final class GroundingChunk.Maps.Route.Builder extends GeneratedMessage.Builder<GroundingChunk.Maps.Route.Builder> implements GroundingChunk.Maps.RouteOrBuilderRoute information from Google Maps.
Protobuf type google.cloud.aiplatform.v1.GroundingChunk.Maps.Route
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GroundingChunk.Maps.Route.BuilderImplements
GroundingChunk.Maps.RouteOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GroundingChunk.Maps.Route build()| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route |
|
buildPartial()
public GroundingChunk.Maps.Route buildPartial()| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route |
|
clear()
public GroundingChunk.Maps.Route.Builder clear()| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route.Builder |
|
clearDistanceMeters()
public GroundingChunk.Maps.Route.Builder clearDistanceMeters()The total distance of the route, in meters.
int32 distance_meters = 1;
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route.Builder |
This builder for chaining. |
clearDuration()
public GroundingChunk.Maps.Route.Builder clearDuration()The total duration of the route.
.google.protobuf.Duration duration = 2;
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route.Builder |
|
clearEncodedPolyline()
public GroundingChunk.Maps.Route.Builder clearEncodedPolyline()An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm
string encoded_polyline = 3;
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GroundingChunk.Maps.Route getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDistanceMeters()
public int getDistanceMeters()The total distance of the route, in meters.
int32 distance_meters = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The distanceMeters. |
getDuration()
public Duration getDuration()The total duration of the route.
.google.protobuf.Duration duration = 2;
| Returns | |
|---|---|
| Type | Description |
Duration |
The duration. |
getDurationBuilder()
public Duration.Builder getDurationBuilder()The total duration of the route.
.google.protobuf.Duration duration = 2;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getDurationOrBuilder()
public DurationOrBuilder getDurationOrBuilder()The total duration of the route.
.google.protobuf.Duration duration = 2;
| Returns | |
|---|---|
| Type | Description |
DurationOrBuilder |
|
getEncodedPolyline()
public String getEncodedPolyline()An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm
string encoded_polyline = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The encodedPolyline. |
getEncodedPolylineBytes()
public ByteString getEncodedPolylineBytes()An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm
string encoded_polyline = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for encodedPolyline. |
hasDuration()
public boolean hasDuration()The total duration of the route.
.google.protobuf.Duration duration = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the duration field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeDuration(Duration value)
public GroundingChunk.Maps.Route.Builder mergeDuration(Duration value)The total duration of the route.
.google.protobuf.Duration duration = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route.Builder |
|
mergeFrom(GroundingChunk.Maps.Route other)
public GroundingChunk.Maps.Route.Builder mergeFrom(GroundingChunk.Maps.Route other)| Parameter | |
|---|---|
| Name | Description |
other |
GroundingChunk.Maps.Route |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GroundingChunk.Maps.Route.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GroundingChunk.Maps.Route.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route.Builder |
|
setDistanceMeters(int value)
public GroundingChunk.Maps.Route.Builder setDistanceMeters(int value)The total distance of the route, in meters.
int32 distance_meters = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe distanceMeters to set. |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route.Builder |
This builder for chaining. |
setDuration(Duration value)
public GroundingChunk.Maps.Route.Builder setDuration(Duration value)The total duration of the route.
.google.protobuf.Duration duration = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route.Builder |
|
setDuration(Duration.Builder builderForValue)
public GroundingChunk.Maps.Route.Builder setDuration(Duration.Builder builderForValue)The total duration of the route.
.google.protobuf.Duration duration = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route.Builder |
|
setEncodedPolyline(String value)
public GroundingChunk.Maps.Route.Builder setEncodedPolyline(String value)An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm
string encoded_polyline = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe encodedPolyline to set. |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route.Builder |
This builder for chaining. |
setEncodedPolylineBytes(ByteString value)
public GroundingChunk.Maps.Route.Builder setEncodedPolylineBytes(ByteString value)An encoded polyline of the route. See https://developers.google.com/maps/documentation/utilities/polylinealgorithm
string encoded_polyline = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for encodedPolyline to set. |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Maps.Route.Builder |
This builder for chaining. |