public final class CostProjection extends GeneratedMessageV3 implements CostProjectionOrBuilder
Contains metadata about how much money a recommendation can save or incur.
Protobuf type google.cloud.recommender.v1beta1.CostProjection
Fields
COST_FIELD_NUMBER
public static final int COST_FIELD_NUMBER
Field Value
DURATION_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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.
.google.type.Money cost = 1;
Returns
Type | Description |
com.google.type.Money | The cost.
|
getCostOrBuilder()
public 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;
Returns
Type | Description |
com.google.type.MoneyOrBuilder | |
getDefaultInstance()
public static CostProjection getDefaultInstance()
Returns
getDefaultInstanceForType()
public CostProjection getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDuration()
public Duration getDuration()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
Returns
getDurationOrBuilder()
public DurationOrBuilder getDurationOrBuilder()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
Returns
getParserForType()
public Parser<CostProjection> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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.
.google.type.Money cost = 1;
Returns
Type | Description |
boolean | Whether the cost field is set.
|
hasDuration()
public boolean hasDuration()
Duration for which this cost applies.
.google.protobuf.Duration duration = 2;
Returns
Type | Description |
boolean | Whether the duration field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static CostProjection.Builder newBuilder()
Returns
newBuilder(CostProjection prototype)
public static CostProjection.Builder newBuilder(CostProjection prototype)
Parameter
Returns
newBuilderForType()
public CostProjection.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CostProjection.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static CostProjection parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CostProjection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static CostProjection parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CostProjection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static CostProjection parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CostProjection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CostProjection parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CostProjection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CostProjection parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CostProjection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static CostProjection parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CostProjection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<CostProjection> parser()
Returns
toBuilder()
public CostProjection.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions