public final class CostProjection extends com.google.protobuf.GeneratedMessageV3 implements CostProjectionOrBuilder
Contains metadata about how much money a recommendation can save or incur.Protobuf type
google.cloud.recommender.v1.CostProjection| Modifier and Type | Class and Description |
|---|---|
static class |
CostProjection.Builder
Contains metadata about how much money a recommendation can save or incur.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
COST_FIELD_NUMBER |
static int |
COST_IN_LOCAL_CURRENCY_FIELD_NUMBER |
static int |
DURATION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.type.Money |
getCost()
An approximate projection on amount saved or amount incurred.
|
com.google.type.Money |
getCostInLocalCurrency()
The approximate cost savings in the billing account's local currency.
|
com.google.type.MoneyOrBuilder |
getCostInLocalCurrencyOrBuilder()
The approximate cost savings in the billing account's local currency.
|
com.google.type.MoneyOrBuilder |
getCostOrBuilder()
An approximate projection on amount saved or amount incurred.
|
static CostProjection |
getDefaultInstance() |
CostProjection |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Duration |
getDuration()
Duration for which this cost applies.
|
com.google.protobuf.DurationOrBuilder |
getDurationOrBuilder()
Duration for which this cost applies.
|
com.google.protobuf.Parser<CostProjection> |
getParserForType() |
int |
getSerializedSize() |
boolean |
hasCost()
An approximate projection on amount saved or amount incurred.
|
boolean |
hasCostInLocalCurrency()
The approximate cost savings in the billing account's local currency.
|
boolean |
hasDuration()
Duration for which this cost applies.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static CostProjection.Builder |
newBuilder() |
static CostProjection.Builder |
newBuilder(CostProjection prototype) |
CostProjection.Builder |
newBuilderForType() |
protected CostProjection.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CostProjection |
parseDelimitedFrom(InputStream input) |
static CostProjection |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CostProjection |
parseFrom(byte[] data) |
static CostProjection |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CostProjection |
parseFrom(ByteBuffer data) |
static CostProjection |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CostProjection |
parseFrom(com.google.protobuf.ByteString data) |
static CostProjection |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CostProjection |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CostProjection |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CostProjection |
parseFrom(InputStream input) |
static CostProjection |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CostProjection> |
parser() |
CostProjection.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int COST_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
public static final int COST_IN_LOCAL_CURRENCY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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;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. A user's permissions may affect whether the cost is computed using list prices or custom contract prices.
.google.type.Money cost = 1;getCost in interface CostProjectionOrBuilderpublic 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;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 com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;getDurationOrBuilder in interface CostProjectionOrBuilderpublic boolean hasCostInLocalCurrency()
The approximate cost savings in the billing account's local currency.
.google.type.Money cost_in_local_currency = 3;hasCostInLocalCurrency in interface CostProjectionOrBuilderpublic com.google.type.Money getCostInLocalCurrency()
The approximate cost savings in the billing account's local currency.
.google.type.Money cost_in_local_currency = 3;getCostInLocalCurrency in interface CostProjectionOrBuilderpublic com.google.type.MoneyOrBuilder getCostInLocalCurrencyOrBuilder()
The approximate cost savings in the billing account's local currency.
.google.type.Money cost_in_local_currency = 3;getCostInLocalCurrencyOrBuilder in interface CostProjectionOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static CostProjection parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CostProjection parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CostProjection parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CostProjection parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CostProjection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CostProjection parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CostProjection parseFrom(InputStream input) throws IOException
IOExceptionpublic static CostProjection parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CostProjection parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CostProjection parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CostProjection parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CostProjection parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CostProjection.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CostProjection.Builder newBuilder()
public static CostProjection.Builder newBuilder(CostProjection prototype)
public CostProjection.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CostProjection.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CostProjection getDefaultInstance()
public static com.google.protobuf.Parser<CostProjection> parser()
public com.google.protobuf.Parser<CostProjection> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CostProjection getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.