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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
clearSecurityProjection()
public Impact.Builder clearSecurityProjection()
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getProjectionCase()
public Impact.ProjectionCase getProjectionCase()
Returns
getSecurityProjection()
public SecurityProjection getSecurityProjection()
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
Returns
getSecurityProjectionBuilder()
public SecurityProjection.Builder getSecurityProjectionBuilder()
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
Returns
getSecurityProjectionOrBuilder()
public SecurityProjectionOrBuilder getSecurityProjectionOrBuilder()
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
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.
|
hasSecurityProjection()
public boolean hasSecurityProjection()
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
Returns
Type | Description |
boolean | Whether the securityProjection 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
mergeSecurityProjection(SecurityProjection value)
public Impact.Builder mergeSecurityProjection(SecurityProjection value)
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
Parameter
Returns
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
setSecurityProjection(SecurityProjection value)
public Impact.Builder setSecurityProjection(SecurityProjection value)
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
Parameter
Returns
setSecurityProjection(SecurityProjection.Builder builderForValue)
public Impact.Builder setSecurityProjection(SecurityProjection.Builder builderForValue)
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Impact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides