public static final class CostProjection.Builder extends GeneratedMessageV3.Builder<CostProjection.Builder> implements CostProjectionOrBuilder
Contains metadata about how much money a recommendation can save or incur.
Protobuf type google.cloud.recommender.v1.CostProjection
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CostProjection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CostProjection build()
buildPartial()
public CostProjection buildPartial()
clear()
public CostProjection.Builder clear()
Overrides
clearCost()
public CostProjection.Builder clearCost()
An approximate projection on amount saved or amount incurred. Negative cost
units indicate cost savings and positive cost units indicate increase.
See google.type.Money documentation for positive/negative units.
A user's permissions may affect whether the cost is computed using list
prices or custom contract prices.
.google.type.Money cost = 1;
clearDuration()
public CostProjection.Builder clearDuration()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
clearField(Descriptors.FieldDescriptor field)
public CostProjection.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CostProjection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public CostProjection.Builder clone()
Overrides
getCost()
An approximate projection on amount saved or amount incurred. Negative cost
units indicate cost savings and positive cost units indicate increase.
See google.type.Money documentation for positive/negative units.
A user's permissions may affect whether the cost is computed using list
prices or custom contract prices.
.google.type.Money cost = 1;
Returns |
---|
Type | Description |
com.google.type.Money | The cost.
|
getCostBuilder()
public Money.Builder getCostBuilder()
An approximate projection on amount saved or amount incurred. Negative cost
units indicate cost savings and positive cost units indicate increase.
See google.type.Money documentation for positive/negative units.
A user's permissions may affect whether the cost is computed using list
prices or custom contract prices.
.google.type.Money cost = 1;
Returns |
---|
Type | Description |
com.google.type.Money.Builder | |
getCostOrBuilder()
public MoneyOrBuilder getCostOrBuilder()
An approximate projection on amount saved or amount incurred. Negative cost
units indicate cost savings and positive cost units indicate increase.
See google.type.Money documentation for positive/negative units.
A user's permissions may affect whether the cost is computed using list
prices or custom contract prices.
.google.type.Money cost = 1;
Returns |
---|
Type | Description |
com.google.type.MoneyOrBuilder | |
getDefaultInstanceForType()
public CostProjection getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getDuration()
public Duration getDuration()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
Returns |
---|
Type | Description |
Duration | The duration.
|
getDurationBuilder()
public Duration.Builder getDurationBuilder()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
getDurationOrBuilder()
public DurationOrBuilder getDurationOrBuilder()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
hasCost()
An approximate projection on amount saved or amount incurred. Negative cost
units indicate cost savings and positive cost units indicate increase.
See google.type.Money documentation for positive/negative units.
A user's permissions may affect whether the cost is computed using list
prices or custom contract prices.
.google.type.Money cost = 1;
Returns |
---|
Type | Description |
boolean | Whether the cost field is set.
|
hasDuration()
public boolean hasDuration()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
Returns |
---|
Type | Description |
boolean | Whether the duration field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeCost(Money value)
public CostProjection.Builder mergeCost(Money value)
An approximate projection on amount saved or amount incurred. Negative cost
units indicate cost savings and positive cost units indicate increase.
See google.type.Money documentation for positive/negative units.
A user's permissions may affect whether the cost is computed using list
prices or custom contract prices.
.google.type.Money cost = 1;
Parameter |
---|
Name | Description |
value | com.google.type.Money
|
mergeDuration(Duration value)
public CostProjection.Builder mergeDuration(Duration value)
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
mergeFrom(CostProjection other)
public CostProjection.Builder mergeFrom(CostProjection other)
public CostProjection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CostProjection.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CostProjection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setCost(Money value)
public CostProjection.Builder setCost(Money value)
An approximate projection on amount saved or amount incurred. Negative cost
units indicate cost savings and positive cost units indicate increase.
See google.type.Money documentation for positive/negative units.
A user's permissions may affect whether the cost is computed using list
prices or custom contract prices.
.google.type.Money cost = 1;
Parameter |
---|
Name | Description |
value | com.google.type.Money
|
setCost(Money.Builder builderForValue)
public CostProjection.Builder setCost(Money.Builder builderForValue)
An approximate projection on amount saved or amount incurred. Negative cost
units indicate cost savings and positive cost units indicate increase.
See google.type.Money documentation for positive/negative units.
A user's permissions may affect whether the cost is computed using list
prices or custom contract prices.
.google.type.Money cost = 1;
Parameter |
---|
Name | Description |
builderForValue | com.google.type.Money.Builder
|
setDuration(Duration value)
public CostProjection.Builder setDuration(Duration value)
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
setDuration(Duration.Builder builderForValue)
public CostProjection.Builder setDuration(Duration.Builder builderForValue)
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
Parameter |
---|
Name | Description |
builderForValue | Builder
|
setField(Descriptors.FieldDescriptor field, Object value)
public CostProjection.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CostProjection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CostProjection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides