Send feedback
Class Impact.Builder (2.1.5)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.1.5 keyboard_arrow_down
public static final class Impact . Builder extends GeneratedMessageV3 . Builder<Impact . Builder > implements ImpactOrBuilder
Contains the impact a recommendation can have for a given category.
Protobuf type google.cloud.recommender.v1.Impact
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Impact . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Impact buildPartial ()
Returns
clear()
public Impact . Builder clear ()
Returns
Overrides
clearCategory()
public Impact . Builder clearCategory ()
Category that is being targeted.
.google.cloud.recommender.v1.Impact.Category category = 1;
Returns
clearCostProjection()
public Impact . Builder clearCostProjection ()
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
Returns
clearField(Descriptors.FieldDescriptor field)
public Impact . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Impact . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearProjection()
public Impact . Builder clearProjection ()
Returns
clone()
public Impact . Builder clone ()
Returns
Overrides
getCategory()
public Impact . Category getCategory ()
Category that is being targeted.
.google.cloud.recommender.v1.Impact.Category category = 1;
Returns
getCategoryValue()
public int getCategoryValue ()
Category that is being targeted.
.google.cloud.recommender.v1.Impact.Category category = 1;
Returns
Type Description int The enum numeric value on the wire for category.
getCostProjection()
public CostProjection getCostProjection ()
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
Returns
getCostProjectionBuilder()
public CostProjection . Builder getCostProjectionBuilder ()
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
Returns
getCostProjectionOrBuilder()
public CostProjectionOrBuilder getCostProjectionOrBuilder ()
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
Returns
getDefaultInstanceForType()
public Impact getDefaultInstanceForType ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getProjectionCase()
public Impact . ProjectionCase getProjectionCase ()
Returns
hasCostProjection()
public boolean hasCostProjection ()
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
Returns
Type Description boolean Whether the costProjection field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeCostProjection(CostProjection value)
public Impact . Builder mergeCostProjection ( CostProjection value )
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
Parameter
Returns
mergeFrom(Impact other)
public Impact . Builder mergeFrom ( Impact other )
Parameter
Returns
public Impact . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Impact . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Impact . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setCategory(Impact.Category value)
public Impact . Builder setCategory ( Impact . Category value )
Category that is being targeted.
.google.cloud.recommender.v1.Impact.Category category = 1;
Parameter
Returns
setCategoryValue(int value)
public Impact . Builder setCategoryValue ( int value )
Category that is being targeted.
.google.cloud.recommender.v1.Impact.Category category = 1;
Parameter
Name Description value int
The enum numeric value on the wire for category to set.
Returns
setCostProjection(CostProjection value)
public Impact . Builder setCostProjection ( CostProjection value )
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
Parameter
Returns
setCostProjection(CostProjection.Builder builderForValue)
public Impact . Builder setCostProjection ( CostProjection . Builder builderForValue )
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Impact . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Impact . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Impact . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]