publicfinalclass CostProjectionextendsGeneratedMessageV3implementsCostProjectionOrBuilder
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.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
COST_FIELD_NUMBER
publicstaticfinalintCOST_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
COST_IN_LOCAL_CURRENCY_FIELD_NUMBER
publicstaticfinalintCOST_IN_LOCAL_CURRENCY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
DURATION_FIELD_NUMBER
publicstaticfinalintDURATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticCostProjectiongetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticCostProjection.BuildernewBuilder()
newBuilder(CostProjection prototype)
publicstaticCostProjection.BuildernewBuilder(CostProjectionprototype)
publicstaticCostProjectionparseDelimitedFrom(InputStreaminput)
publicstaticCostProjectionparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticCostProjectionparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticCostProjectionparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticCostProjectionparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticCostProjectionparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticCostProjectionparseFrom(CodedInputStreaminput)
publicstaticCostProjectionparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticCostProjectionparseFrom(InputStreaminput)
publicstaticCostProjectionparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticCostProjectionparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticCostProjectionparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<CostProjection>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
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.
|
getCostInLocalCurrency()
publicMoneygetCostInLocalCurrency()
The approximate cost savings in the billing account's local currency.
.google.type.Money cost_in_local_currency = 3;
| Returns |
| Type |
Description |
com.google.type.Money |
The costInLocalCurrency.
|
getCostInLocalCurrencyOrBuilder()
publicMoneyOrBuildergetCostInLocalCurrencyOrBuilder()
The approximate cost savings in the billing account's local currency.
.google.type.Money cost_in_local_currency = 3;
| Returns |
| Type |
Description |
com.google.type.MoneyOrBuilder |
getCostOrBuilder()
publicMoneyOrBuildergetCostOrBuilder()
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()
publicCostProjectiongetDefaultInstanceForType()
getDuration()
publicDurationgetDuration()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
| Returns |
| Type |
Description |
Duration |
The duration.
|
getDurationOrBuilder()
publicDurationOrBuildergetDurationOrBuilder()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
getParserForType()
publicParser<CostProjection>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
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.
|
hasCostInLocalCurrency()
publicbooleanhasCostInLocalCurrency()
The approximate cost savings in the billing account's local currency.
.google.type.Money cost_in_local_currency = 3;
| Returns |
| Type |
Description |
boolean |
Whether the costInLocalCurrency field is set.
|
hasDuration()
publicbooleanhasDuration()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
| Returns |
| Type |
Description |
boolean |
Whether the duration field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicCostProjection.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedCostProjection.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicCostProjection.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides