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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Impact.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Impact buildPartial()
clear()
public Impact.Builder clear()
Overrides
clearCategory()
public Impact.Builder clearCategory()
Category that is being targeted.
.google.cloud.recommender.v1.Impact.Category category = 1;
clearCostProjection()
public Impact.Builder clearCostProjection()
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
clearField(Descriptors.FieldDescriptor field)
public Impact.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Impact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearProjection()
public Impact.Builder clearProjection()
clearSecurityProjection()
public Impact.Builder clearSecurityProjection()
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
clone()
public Impact.Builder clone()
Overrides
getCategory()
public Impact.Category getCategory()
Category that is being targeted.
.google.cloud.recommender.v1.Impact.Category category = 1;
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;
getCostProjectionBuilder()
public CostProjection.Builder getCostProjectionBuilder()
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
getCostProjectionOrBuilder()
public CostProjectionOrBuilder getCostProjectionOrBuilder()
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
getDefaultInstanceForType()
public Impact getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getProjectionCase()
public Impact.ProjectionCase getProjectionCase()
getSecurityProjection()
public SecurityProjection getSecurityProjection()
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
getSecurityProjectionBuilder()
public SecurityProjection.Builder getSecurityProjectionBuilder()
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
getSecurityProjectionOrBuilder()
public SecurityProjectionOrBuilder getSecurityProjectionOrBuilder()
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeCostProjection(CostProjection value)
public Impact.Builder mergeCostProjection(CostProjection value)
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
mergeFrom(Impact other)
public Impact.Builder mergeFrom(Impact other)
Parameter |
---|
Name | Description |
other | Impact
|
public Impact.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Impact.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeSecurityProjection(SecurityProjection value)
public Impact.Builder mergeSecurityProjection(SecurityProjection value)
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Impact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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.
|
setCostProjection(CostProjection value)
public Impact.Builder setCostProjection(CostProjection value)
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
setCostProjection(CostProjection.Builder builderForValue)
public Impact.Builder setCostProjection(CostProjection.Builder builderForValue)
Use with CategoryType.COST
.google.cloud.recommender.v1.CostProjection cost_projection = 100;
setField(Descriptors.FieldDescriptor field, Object value)
public Impact.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Impact.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSecurityProjection(SecurityProjection value)
public Impact.Builder setSecurityProjection(SecurityProjection value)
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
setSecurityProjection(SecurityProjection.Builder builderForValue)
public Impact.Builder setSecurityProjection(SecurityProjection.Builder builderForValue)
Use with CategoryType.SECURITY
.google.cloud.recommender.v1.SecurityProjection security_projection = 101;
setUnknownFields(UnknownFieldSet unknownFields)
public final Impact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides