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.v1beta1.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.v1beta1.CostProjection
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CostProjection.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CostProjection
build()
CostProjection
buildPartial()
CostProjection.Builder
clear()
CostProjection.Builder
clearCost()
An approximate projection on amount saved or amount incurred.CostProjection.Builder
clearDuration()
Duration for which this cost applies.CostProjection.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CostProjection.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CostProjection.Builder
clone()
com.google.type.Money
getCost()
An approximate projection on amount saved or amount incurred.com.google.type.Money.Builder
getCostBuilder()
An approximate projection on amount saved or amount incurred.com.google.type.MoneyOrBuilder
getCostOrBuilder()
An approximate projection on amount saved or amount incurred.CostProjection
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Duration
getDuration()
Duration for which this cost applies.com.google.protobuf.Duration.Builder
getDurationBuilder()
Duration for which this cost applies.com.google.protobuf.DurationOrBuilder
getDurationOrBuilder()
Duration for which this cost applies.boolean
hasCost()
An approximate projection on amount saved or amount incurred.boolean
hasDuration()
Duration for which this cost applies.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CostProjection.Builder
mergeCost(com.google.type.Money value)
An approximate projection on amount saved or amount incurred.CostProjection.Builder
mergeDuration(com.google.protobuf.Duration value)
Duration for which this cost applies.CostProjection.Builder
mergeFrom(CostProjection other)
CostProjection.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CostProjection.Builder
mergeFrom(com.google.protobuf.Message other)
CostProjection.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CostProjection.Builder
setCost(com.google.type.Money value)
An approximate projection on amount saved or amount incurred.CostProjection.Builder
setCost(com.google.type.Money.Builder builderForValue)
An approximate projection on amount saved or amount incurred.CostProjection.Builder
setDuration(com.google.protobuf.Duration value)
Duration for which this cost applies.CostProjection.Builder
setDuration(com.google.protobuf.Duration.Builder builderForValue)
Duration for which this cost applies.CostProjection.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CostProjection.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CostProjection.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
clear
public CostProjection.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
getDefaultInstanceForType
public CostProjection getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CostProjection build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CostProjection buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CostProjection.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
setField
public CostProjection.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
clearField
public CostProjection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
clearOneof
public CostProjection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
setRepeatedField
public CostProjection.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
addRepeatedField
public CostProjection.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
mergeFrom
public CostProjection.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CostProjection.Builder>
-
mergeFrom
public CostProjection.Builder mergeFrom(CostProjection other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasCost
in 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:
getCost
in 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:
getCostOrBuilder
in interfaceCostProjectionOrBuilder
-
hasDuration
public boolean hasDuration()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
- Specified by:
hasDuration
in 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:
getDuration
in 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:
getDurationOrBuilder
in interfaceCostProjectionOrBuilder
-
setUnknownFields
public final CostProjection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
mergeUnknownFields
public final CostProjection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>
-
-