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 type
google.cloud.recommender.v1.CostProjection| Modifier and Type | Method and 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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CostProjection.Builder |
mergeFrom(CostProjection other) |
CostProjection.Builder |
mergeFrom(com.google.protobuf.Message other) |
CostProjection.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CostProjection.Builder |
setCost(com.google.type.Money.Builder builderForValue)
An approximate projection on amount saved or amount incurred.
|
CostProjection.Builder |
setCost(com.google.type.Money value)
An approximate projection on amount saved or amount incurred.
|
CostProjection.Builder |
setDuration(com.google.protobuf.Duration.Builder builderForValue)
Duration for which this cost applies.
|
CostProjection.Builder |
setDuration(com.google.protobuf.Duration value)
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) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>public CostProjection.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>public CostProjection getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CostProjection build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CostProjection buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CostProjection.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>public CostProjection.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>public CostProjection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>public CostProjection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>public CostProjection.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>public CostProjection.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>public CostProjection.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CostProjection.Builder>public CostProjection.Builder mergeFrom(CostProjection other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>public CostProjection.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CostProjection.Builder>IOExceptionpublic 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.
.google.type.Money cost = 1;hasCost in interface CostProjectionOrBuilderpublic 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.
.google.type.Money cost = 1;getCost in interface CostProjectionOrBuilderpublic 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.
.google.type.Money cost = 1;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.
.google.type.Money cost = 1;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.
.google.type.Money cost = 1;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.
.google.type.Money cost = 1;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.
.google.type.Money cost = 1;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.
.google.type.Money cost = 1;getCostOrBuilder in interface CostProjectionOrBuilderpublic boolean hasDuration()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;hasDuration in interface CostProjectionOrBuilderpublic com.google.protobuf.Duration getDuration()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;getDuration in interface CostProjectionOrBuilderpublic CostProjection.Builder setDuration(com.google.protobuf.Duration value)
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;public CostProjection.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;public CostProjection.Builder mergeDuration(com.google.protobuf.Duration value)
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;public CostProjection.Builder clearDuration()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;public com.google.protobuf.Duration.Builder getDurationBuilder()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;getDurationOrBuilder in interface CostProjectionOrBuilderpublic final CostProjection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>public final CostProjection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CostProjection.Builder>Copyright © 2020 Google LLC. All rights reserved.