Interface TransitionAttributesOrBuilder (1.7.0)

publicinterface TransitionAttributesOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getCost()

publicabstractdoublegetCost()

Specifies a cost for performing this transition. This is in the same unit as all other costs in the model and must not be negative. It is applied on top of all other existing costs.

double cost = 5;

Returns
Type Description
double

The cost.

getCostPerKilometer()

publicabstractdoublegetCostPerKilometer()

Specifies a cost per kilometer applied to the distance traveled while performing this transition. It adds up to any Vehicle.cost_per_kilometer specified on vehicles.

double cost_per_kilometer = 6;

Returns
Type Description
double

The costPerKilometer.

getDelay()

publicabstractDurationgetDelay()

Specifies a delay incurred when performing this transition. This delay always occurs after finishing the source visit and before starting the destination visit.

.google.protobuf.Duration delay = 8;

Returns
Type Description
Duration

The delay.

getDelayOrBuilder()

publicabstractDurationOrBuildergetDelayOrBuilder()

Specifies a delay incurred when performing this transition. This delay always occurs after finishing the source visit and before starting the destination visit.

.google.protobuf.Duration delay = 8;

Returns
Type Description

getDistanceLimit()

publicabstractDistanceLimitgetDistanceLimit()

Specifies a limit on the distance traveled while performing this transition. As of 2021/06, only soft limits are supported.

.google.cloud.optimization.v1.DistanceLimit distance_limit = 7;

Returns
Type Description
DistanceLimit

The distanceLimit.

getDistanceLimitOrBuilder()

publicabstractDistanceLimitOrBuildergetDistanceLimitOrBuilder()

Specifies a limit on the distance traveled while performing this transition. As of 2021/06, only soft limits are supported.

.google.cloud.optimization.v1.DistanceLimit distance_limit = 7;

Returns
Type Description

getDstTag()

publicabstractStringgetDstTag()

A destination visit or vehicle end matches iff its VisitRequest.tags or Vehicle.end_tags either contains dst_tag or does not contain excluded_dst_tag (depending on which of these two fields is non-empty).

string dst_tag = 3;

Returns
Type Description
String

The dstTag.

getDstTagBytes()

publicabstractByteStringgetDstTagBytes()

A destination visit or vehicle end matches iff its VisitRequest.tags or Vehicle.end_tags either contains dst_tag or does not contain excluded_dst_tag (depending on which of these two fields is non-empty).

string dst_tag = 3;

Returns
Type Description
ByteString

The bytes for dstTag.

getExcludedDstTag()

publicabstractStringgetExcludedDstTag()

See dst_tag. Exactly one of dst_tag and excluded_dst_tag must be non-empty.

string excluded_dst_tag = 4;

Returns
Type Description
String

The excludedDstTag.

getExcludedDstTagBytes()

publicabstractByteStringgetExcludedDstTagBytes()

See dst_tag. Exactly one of dst_tag and excluded_dst_tag must be non-empty.

string excluded_dst_tag = 4;

Returns
Type Description
ByteString

The bytes for excludedDstTag.

getExcludedSrcTag()

publicabstractStringgetExcludedSrcTag()

See src_tag. Exactly one of src_tag and excluded_src_tag must be non-empty.

string excluded_src_tag = 2;

Returns
Type Description
String

The excludedSrcTag.

getExcludedSrcTagBytes()

publicabstractByteStringgetExcludedSrcTagBytes()

See src_tag. Exactly one of src_tag and excluded_src_tag must be non-empty.

string excluded_src_tag = 2;

Returns
Type Description
ByteString

The bytes for excludedSrcTag.

getSrcTag()

publicabstractStringgetSrcTag()

Tags defining the set of (src->dst) transitions these attributes apply to. A source visit or vehicle start matches iff its VisitRequest.tags or Vehicle.start_tags either contains src_tag or does not contain excluded_src_tag (depending on which of these two fields is non-empty).

string src_tag = 1;

Returns
Type Description
String

The srcTag.

getSrcTagBytes()

publicabstractByteStringgetSrcTagBytes()

Tags defining the set of (src->dst) transitions these attributes apply to. A source visit or vehicle start matches iff its VisitRequest.tags or Vehicle.start_tags either contains src_tag or does not contain excluded_src_tag (depending on which of these two fields is non-empty).

string src_tag = 1;

Returns
Type Description
ByteString

The bytes for srcTag.

hasDelay()

publicabstractbooleanhasDelay()

Specifies a delay incurred when performing this transition. This delay always occurs after finishing the source visit and before starting the destination visit.

.google.protobuf.Duration delay = 8;

Returns
Type Description
boolean

Whether the delay field is set.

hasDistanceLimit()

publicabstractbooleanhasDistanceLimit()

Specifies a limit on the distance traveled while performing this transition. As of 2021/06, only soft limits are supported.

.google.cloud.optimization.v1.DistanceLimit distance_limit = 7;

Returns
Type Description
boolean

Whether the distanceLimit field is set.

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年10月30日 UTC.