Package com.google.cloud.optimization.v1
Interface TransitionAttributesOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TransitionAttributes
,TransitionAttributes.Builder
public interface TransitionAttributesOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getCost()
Specifies a cost for performing this transition.double
getCostPerKilometer()
Specifies a cost per kilometer applied to the distance traveled while performing this transition.com.google.protobuf.Duration
getDelay()
Specifies a delay incurred when performing this transition.com.google.protobuf.DurationOrBuilder
getDelayOrBuilder()
Specifies a delay incurred when performing this transition.DistanceLimit
getDistanceLimit()
Specifies a limit on the distance traveled while performing this transition.DistanceLimitOrBuilder
getDistanceLimitOrBuilder()
Specifies a limit on the distance traveled while performing this transition.String
getDstTag()
A destination visit or vehicle end matches iff its [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.end_tags][google.cloud.optimization.v1.Vehicle.end_tags] either contains `dst_tag` or does not contain `excluded_dst_tag` (depending on which of these two fields is non-empty).com.google.protobuf.ByteString
getDstTagBytes()
A destination visit or vehicle end matches iff its [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.end_tags][google.cloud.optimization.v1.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
getExcludedDstTag()
See `dst_tag`.com.google.protobuf.ByteString
getExcludedDstTagBytes()
See `dst_tag`.String
getExcludedSrcTag()
See `src_tag`.com.google.protobuf.ByteString
getExcludedSrcTagBytes()
See `src_tag`.String
getSrcTag()
Tags defining the set of (src->dst) transitions these attributes apply to.com.google.protobuf.ByteString
getSrcTagBytes()
Tags defining the set of (src->dst) transitions these attributes apply to.boolean
hasDelay()
Specifies a delay incurred when performing this transition.boolean
hasDistanceLimit()
Specifies a limit on the distance traveled while performing this transition.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getSrcTag
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][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.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:
- The srcTag.
-
getSrcTagBytes
com.google.protobuf.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][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.start_tags][google.cloud.optimization.v1.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:
- The bytes for srcTag.
-
getExcludedSrcTag
String getExcludedSrcTag()
See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be non-empty.
string excluded_src_tag = 2;
- Returns:
- The excludedSrcTag.
-
getExcludedSrcTagBytes
com.google.protobuf.ByteString getExcludedSrcTagBytes()
See `src_tag`. Exactly one of `src_tag` and `excluded_src_tag` must be non-empty.
string excluded_src_tag = 2;
- Returns:
- The bytes for excludedSrcTag.
-
getDstTag
String getDstTag()
A destination visit or vehicle end matches iff its [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.end_tags][google.cloud.optimization.v1.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:
- The dstTag.
-
getDstTagBytes
com.google.protobuf.ByteString getDstTagBytes()
A destination visit or vehicle end matches iff its [VisitRequest.tags][google.cloud.optimization.v1.Shipment.VisitRequest.tags] or [Vehicle.end_tags][google.cloud.optimization.v1.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:
- The bytes for dstTag.
-
getExcludedDstTag
String getExcludedDstTag()
See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be non-empty.
string excluded_dst_tag = 4;
- Returns:
- The excludedDstTag.
-
getExcludedDstTagBytes
com.google.protobuf.ByteString getExcludedDstTagBytes()
See `dst_tag`. Exactly one of `dst_tag` and `excluded_dst_tag` must be non-empty.
string excluded_dst_tag = 4;
- Returns:
- The bytes for excludedDstTag.
-
getCost
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:
- The cost.
-
getCostPerKilometer
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][google.cloud.optimization.v1.Vehicle.cost_per_kilometer] specified on vehicles.
double cost_per_kilometer = 6;
- Returns:
- The costPerKilometer.
-
hasDistanceLimit
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:
- Whether the distanceLimit field is set.
-
getDistanceLimit
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:
- The distanceLimit.
-
getDistanceLimitOrBuilder
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;
-
hasDelay
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:
- Whether the delay field is set.
-
getDelay
com.google.protobuf.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:
- The delay.
-
getDelayOrBuilder
com.google.protobuf.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;
-
-