Interface TransitionAttributesOrBuilder (1.28.0)

public interface TransitionAttributesOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCost()

public abstract double getCost()

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
TypeDescription
double

The cost.

getCostPerKilometer()

public abstract double getCostPerKilometer()

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
TypeDescription
double

The costPerKilometer.

getDelay()

public abstract Duration getDelay()

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
TypeDescription
Duration

The delay.

getDelayOrBuilder()

public abstract DurationOrBuilder getDelayOrBuilder()

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
TypeDescription
DurationOrBuilder

getDistanceLimit()

public abstract DistanceLimit getDistanceLimit()

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
TypeDescription
DistanceLimit

The distanceLimit.

getDistanceLimitOrBuilder()

public abstract DistanceLimitOrBuilder getDistanceLimitOrBuilder()

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
TypeDescription
DistanceLimitOrBuilder

getDstTag()

public abstract String getDstTag()

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
TypeDescription
String

The dstTag.

getDstTagBytes()

public abstract ByteString getDstTagBytes()

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
TypeDescription
ByteString

The bytes for dstTag.

getExcludedDstTag()

public abstract String getExcludedDstTag()

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

string excluded_dst_tag = 4;

Returns
TypeDescription
String

The excludedDstTag.

getExcludedDstTagBytes()

public abstract ByteString getExcludedDstTagBytes()

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

string excluded_dst_tag = 4;

Returns
TypeDescription
ByteString

The bytes for excludedDstTag.

getExcludedSrcTag()

public abstract String getExcludedSrcTag()

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

string excluded_src_tag = 2;

Returns
TypeDescription
String

The excludedSrcTag.

getExcludedSrcTagBytes()

public abstract ByteString getExcludedSrcTagBytes()

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

string excluded_src_tag = 2;

Returns
TypeDescription
ByteString

The bytes for excludedSrcTag.

getSrcTag()

public abstract String getSrcTag()

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
TypeDescription
String

The srcTag.

getSrcTagBytes()

public abstract ByteString getSrcTagBytes()

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
TypeDescription
ByteString

The bytes for srcTag.

hasDelay()

public abstract boolean hasDelay()

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
TypeDescription
boolean

Whether the delay field is set.

hasDistanceLimit()

public abstract boolean hasDistanceLimit()

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
TypeDescription
boolean

Whether the distanceLimit field is set.