Package com.google.cloud.recommender.v1
Class CostProjection.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
- com.google.cloud.recommender.v1.CostProjection.Builder
-
- All Implemented Interfaces:
CostProjectionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CostProjection
public static final class CostProjection.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder> implements CostProjectionOrBuilder
Contains metadata about how much money a recommendation can save or incur.
Protobuf typegoogle.cloud.recommender.v1.CostProjection
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CostProjection.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CostProjectionbuild()CostProjectionbuildPartial()CostProjection.Builderclear()CostProjection.BuilderclearCost()An approximate projection on amount saved or amount incurred.CostProjection.BuilderclearDuration()Duration for which this cost applies.CostProjection.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CostProjection.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CostProjection.Builderclone()com.google.type.MoneygetCost()An approximate projection on amount saved or amount incurred.com.google.type.Money.BuildergetCostBuilder()An approximate projection on amount saved or amount incurred.com.google.type.MoneyOrBuildergetCostOrBuilder()An approximate projection on amount saved or amount incurred.CostProjectiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.DurationgetDuration()Duration for which this cost applies.com.google.protobuf.Duration.BuildergetDurationBuilder()Duration for which this cost applies.com.google.protobuf.DurationOrBuildergetDurationOrBuilder()Duration for which this cost applies.booleanhasCost()An approximate projection on amount saved or amount incurred.booleanhasDuration()Duration for which this cost applies.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CostProjection.BuildermergeCost(com.google.type.Money value)An approximate projection on amount saved or amount incurred.CostProjection.BuildermergeDuration(com.google.protobuf.Duration value)Duration for which this cost applies.CostProjection.BuildermergeFrom(CostProjection other)CostProjection.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CostProjection.BuildermergeFrom(com.google.protobuf.Message other)CostProjection.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CostProjection.BuildersetCost(com.google.type.Money value)An approximate projection on amount saved or amount incurred.CostProjection.BuildersetCost(com.google.type.Money.Builder builderForValue)An approximate projection on amount saved or amount incurred.CostProjection.BuildersetDuration(com.google.protobuf.Duration value)Duration for which this cost applies.CostProjection.BuildersetDuration(com.google.protobuf.Duration.Builder builderForValue)Duration for which this cost applies.CostProjection.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CostProjection.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CostProjection.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
clear
public CostProjection.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
getDefaultInstanceForType
public CostProjection getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CostProjection build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CostProjection buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CostProjection.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
setField
public CostProjection.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
clearField
public CostProjection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
clearOneof
public CostProjection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
setRepeatedField
public CostProjection.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
addRepeatedField
public CostProjection.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
mergeFrom
public CostProjection.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CostProjection.Builder>
-
mergeFrom
public CostProjection.Builder mergeFrom(CostProjection other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
mergeFrom
public CostProjection.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CostProjection.Builder>- Throws:
IOException
-
hasCost
public boolean 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;- Specified by:
hasCostin interfaceCostProjectionOrBuilder- Returns:
- Whether the cost field is set.
-
getCost
public com.google.type.Money 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;- Specified by:
getCostin interfaceCostProjectionOrBuilder- Returns:
- The cost.
-
setCost
public CostProjection.Builder setCost(com.google.type.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;
-
setCost
public CostProjection.Builder setCost(com.google.type.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;
-
mergeCost
public CostProjection.Builder mergeCost(com.google.type.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;
-
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;
-
getCostBuilder
public com.google.type.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;
-
getCostOrBuilder
public com.google.type.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;- Specified by:
getCostOrBuilderin interfaceCostProjectionOrBuilder
-
hasDuration
public boolean hasDuration()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;- Specified by:
hasDurationin interfaceCostProjectionOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
public com.google.protobuf.Duration getDuration()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;- Specified by:
getDurationin interfaceCostProjectionOrBuilder- Returns:
- The duration.
-
setDuration
public CostProjection.Builder setDuration(com.google.protobuf.Duration value)
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
-
setDuration
public CostProjection.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
-
mergeDuration
public CostProjection.Builder mergeDuration(com.google.protobuf.Duration value)
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
-
clearDuration
public CostProjection.Builder clearDuration()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
-
getDurationBuilder
public com.google.protobuf.Duration.Builder getDurationBuilder()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
-
getDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;- Specified by:
getDurationOrBuilderin interfaceCostProjectionOrBuilder
-
setUnknownFields
public final CostProjection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
mergeUnknownFields
public final CostProjection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
-