Class TransitionAttributes (1.9.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 1.76.0 (latest)
- 1.74.0
- 1.73.0
- 1.72.0
- 1.71.0
- 1.70.0
- 1.68.0
- 1.66.0
- 1.65.0
- 1.62.0
- 1.61.0
- 1.60.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.14
- 0.1.2
publicfinalclass TransitionAttributesextendsGeneratedMessageV3implementsTransitionAttributesOrBuilder Specifies attributes of transitions between two consecutive visits on a
route. Several TransitionAttributes may apply to the same transition: in
that case, all extra costs add up and the strictest constraint or limit
applies (following natural "AND" semantics).
Protobuf type google.cloud.optimization.v1.TransitionAttributes
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > TransitionAttributesImplements
TransitionAttributesOrBuilderInherited Members
Static Fields
COST_FIELD_NUMBER
publicstaticfinalintCOST_FIELD_NUMBERCOST_PER_KILOMETER_FIELD_NUMBER
publicstaticfinalintCOST_PER_KILOMETER_FIELD_NUMBERDELAY_FIELD_NUMBER
publicstaticfinalintDELAY_FIELD_NUMBERDISTANCE_LIMIT_FIELD_NUMBER
publicstaticfinalintDISTANCE_LIMIT_FIELD_NUMBERDST_TAG_FIELD_NUMBER
publicstaticfinalintDST_TAG_FIELD_NUMBEREXCLUDED_DST_TAG_FIELD_NUMBER
publicstaticfinalintEXCLUDED_DST_TAG_FIELD_NUMBEREXCLUDED_SRC_TAG_FIELD_NUMBER
publicstaticfinalintEXCLUDED_SRC_TAG_FIELD_NUMBERSRC_TAG_FIELD_NUMBER
publicstaticfinalintSRC_TAG_FIELD_NUMBERStatic Methods
getDefaultInstance()
publicstaticTransitionAttributesgetDefaultInstance()getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()newBuilder()
publicstaticTransitionAttributes.BuildernewBuilder()newBuilder(TransitionAttributes prototype)
publicstaticTransitionAttributes.BuildernewBuilder(TransitionAttributesprototype)parseDelimitedFrom(InputStream input)
publicstaticTransitionAttributesparseDelimitedFrom(InputStreaminput)parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticTransitionAttributesparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(byte[] data)
publicstaticTransitionAttributesparseFrom(byte[]data)data
byte[]parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticTransitionAttributesparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)data
byte[]parseFrom(ByteString data)
publicstaticTransitionAttributesparseFrom(ByteStringdata)parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticTransitionAttributesparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)parseFrom(CodedInputStream input)
publicstaticTransitionAttributesparseFrom(CodedInputStreaminput)parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticTransitionAttributesparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(InputStream input)
publicstaticTransitionAttributesparseFrom(InputStreaminput)parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticTransitionAttributesparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(ByteBuffer data)
publicstaticTransitionAttributesparseFrom(ByteBufferdata)parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticTransitionAttributesparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)parser()
publicstaticParser<TransitionAttributes>parser()Methods
equals(Object obj)
publicbooleanequals(Objectobj)getCost()
publicdoublegetCost()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;
double
The cost.
getCostPerKilometer()
publicdoublegetCostPerKilometer()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;
double
The costPerKilometer.
getDefaultInstanceForType()
publicTransitionAttributesgetDefaultInstanceForType()getDelay()
publicDurationgetDelay()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;
Duration
The delay.
getDelayOrBuilder()
publicDurationOrBuildergetDelayOrBuilder()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;
getDistanceLimit()
publicDistanceLimitgetDistanceLimit()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;
DistanceLimit
The distanceLimit.
getDistanceLimitOrBuilder()
publicDistanceLimitOrBuildergetDistanceLimitOrBuilder()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;
getDstTag()
publicStringgetDstTag() 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;
String
The dstTag.
getDstTagBytes()
publicByteStringgetDstTagBytes() 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;
ByteString
The bytes for dstTag.
getExcludedDstTag()
publicStringgetExcludedDstTag() See dst_tag. Exactly one of dst_tag and excluded_dst_tag must be
non-empty.
string excluded_dst_tag = 4;
String
The excludedDstTag.
getExcludedDstTagBytes()
publicByteStringgetExcludedDstTagBytes() See dst_tag. Exactly one of dst_tag and excluded_dst_tag must be
non-empty.
string excluded_dst_tag = 4;
ByteString
The bytes for excludedDstTag.
getExcludedSrcTag()
publicStringgetExcludedSrcTag() See src_tag. Exactly one of src_tag and excluded_src_tag must be
non-empty.
string excluded_src_tag = 2;
String
The excludedSrcTag.
getExcludedSrcTagBytes()
publicByteStringgetExcludedSrcTagBytes() See src_tag. Exactly one of src_tag and excluded_src_tag must be
non-empty.
string excluded_src_tag = 2;
ByteString
The bytes for excludedSrcTag.
getParserForType()
publicParser<TransitionAttributes>getParserForType()getSerializedSize()
publicintgetSerializedSize()getSrcTag()
publicStringgetSrcTag() 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;
String
The srcTag.
getSrcTagBytes()
publicByteStringgetSrcTagBytes() 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;
ByteString
The bytes for srcTag.
getUnknownFields()
publicfinalUnknownFieldSetgetUnknownFields()hasDelay()
publicbooleanhasDelay()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;
boolean
Whether the delay field is set.
hasDistanceLimit()
publicbooleanhasDistanceLimit()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;
boolean
Whether the distanceLimit field is set.
hashCode()
publicinthashCode()internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()isInitialized()
publicfinalbooleanisInitialized()newBuilderForType()
publicTransitionAttributes.BuildernewBuilderForType()newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedTransitionAttributes.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)toBuilder()
publicTransitionAttributes.BuildertoBuilder()writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)