Class Impact.Builder (2.57.0)

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.v1beta1.Impact

Implements

ImpactOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Impact.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Impact.Builder
Overrides

build()

public Impact build()
Returns
Type Description
Impact

buildPartial()

public Impact buildPartial()
Returns
Type Description
Impact

clear()

public Impact.Builder clear()
Returns
Type Description
Impact.Builder
Overrides

clearCategory()

public Impact.Builder clearCategory()

Category that is being targeted.

.google.cloud.recommender.v1beta1.Impact.Category category = 1;

Returns
Type Description
Impact.Builder

This builder for chaining.

clearCostProjection()

public Impact.Builder clearCostProjection()

Use with CategoryType.COST

.google.cloud.recommender.v1beta1.CostProjection cost_projection = 100;

Returns
Type Description
Impact.Builder

clearField(Descriptors.FieldDescriptor field)

public Impact.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Impact.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Impact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Impact.Builder
Overrides

clearProjection()

public Impact.Builder clearProjection()
Returns
Type Description
Impact.Builder

clearSecurityProjection()

public Impact.Builder clearSecurityProjection()

Use with CategoryType.SECURITY

.google.cloud.recommender.v1beta1.SecurityProjection security_projection = 101;

Returns
Type Description
Impact.Builder

clearSustainabilityProjection()

public Impact.Builder clearSustainabilityProjection()

Use with CategoryType.SUSTAINABILITY

.google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;

Returns
Type Description
Impact.Builder

clone()

public Impact.Builder clone()
Returns
Type Description
Impact.Builder
Overrides

getCategory()

public Impact.Category getCategory()

Category that is being targeted.

.google.cloud.recommender.v1beta1.Impact.Category category = 1;

Returns
Type Description
Impact.Category

The category.

getCategoryValue()

public int getCategoryValue()

Category that is being targeted.

.google.cloud.recommender.v1beta1.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.v1beta1.CostProjection cost_projection = 100;

Returns
Type Description
CostProjection

The costProjection.

getCostProjectionBuilder()

public CostProjection.Builder getCostProjectionBuilder()

Use with CategoryType.COST

.google.cloud.recommender.v1beta1.CostProjection cost_projection = 100;

Returns
Type Description
CostProjection.Builder

getCostProjectionOrBuilder()

public CostProjectionOrBuilder getCostProjectionOrBuilder()

Use with CategoryType.COST

.google.cloud.recommender.v1beta1.CostProjection cost_projection = 100;

Returns
Type Description
CostProjectionOrBuilder

getDefaultInstanceForType()

public Impact getDefaultInstanceForType()
Returns
Type Description
Impact

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getProjectionCase()

public Impact.ProjectionCase getProjectionCase()
Returns
Type Description
Impact.ProjectionCase

getSecurityProjection()

public SecurityProjection getSecurityProjection()

Use with CategoryType.SECURITY

.google.cloud.recommender.v1beta1.SecurityProjection security_projection = 101;

Returns
Type Description
SecurityProjection

The securityProjection.

getSecurityProjectionBuilder()

public SecurityProjection.Builder getSecurityProjectionBuilder()

Use with CategoryType.SECURITY

.google.cloud.recommender.v1beta1.SecurityProjection security_projection = 101;

Returns
Type Description
SecurityProjection.Builder

getSecurityProjectionOrBuilder()

public SecurityProjectionOrBuilder getSecurityProjectionOrBuilder()

Use with CategoryType.SECURITY

.google.cloud.recommender.v1beta1.SecurityProjection security_projection = 101;

Returns
Type Description
SecurityProjectionOrBuilder

getSustainabilityProjection()

public SustainabilityProjection getSustainabilityProjection()

Use with CategoryType.SUSTAINABILITY

.google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;

Returns
Type Description
SustainabilityProjection

The sustainabilityProjection.

getSustainabilityProjectionBuilder()

public SustainabilityProjection.Builder getSustainabilityProjectionBuilder()

Use with CategoryType.SUSTAINABILITY

.google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;

Returns
Type Description
SustainabilityProjection.Builder

getSustainabilityProjectionOrBuilder()

public SustainabilityProjectionOrBuilder getSustainabilityProjectionOrBuilder()

Use with CategoryType.SUSTAINABILITY

.google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;

Returns
Type Description
SustainabilityProjectionOrBuilder

hasCostProjection()

public boolean hasCostProjection()

Use with CategoryType.COST

.google.cloud.recommender.v1beta1.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.v1beta1.SecurityProjection security_projection = 101;

Returns
Type Description
boolean

Whether the securityProjection field is set.

hasSustainabilityProjection()

public boolean hasSustainabilityProjection()

Use with CategoryType.SUSTAINABILITY

.google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;

Returns
Type Description
boolean

Whether the sustainabilityProjection field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCostProjection(CostProjection value)

public Impact.Builder mergeCostProjection(CostProjection value)

Use with CategoryType.COST

.google.cloud.recommender.v1beta1.CostProjection cost_projection = 100;

Parameter
Name Description
value CostProjection
Returns
Type Description
Impact.Builder

mergeFrom(Impact other)

public Impact.Builder mergeFrom(Impact other)
Parameter
Name Description
other Impact
Returns
Type Description
Impact.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Impact.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Impact.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Impact.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Impact.Builder
Overrides

mergeSecurityProjection(SecurityProjection value)

public Impact.Builder mergeSecurityProjection(SecurityProjection value)

Use with CategoryType.SECURITY

.google.cloud.recommender.v1beta1.SecurityProjection security_projection = 101;

Parameter
Name Description
value SecurityProjection
Returns
Type Description
Impact.Builder

mergeSustainabilityProjection(SustainabilityProjection value)

public Impact.Builder mergeSustainabilityProjection(SustainabilityProjection value)

Use with CategoryType.SUSTAINABILITY

.google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;

Parameter
Name Description
value SustainabilityProjection
Returns
Type Description
Impact.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Impact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Impact.Builder
Overrides

setCategory(Impact.Category value)

public Impact.Builder setCategory(Impact.Category value)

Category that is being targeted.

.google.cloud.recommender.v1beta1.Impact.Category category = 1;

Parameter
Name Description
value Impact.Category

The category to set.

Returns
Type Description
Impact.Builder

This builder for chaining.

setCategoryValue(int value)

public Impact.Builder setCategoryValue(int value)

Category that is being targeted.

.google.cloud.recommender.v1beta1.Impact.Category category = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for category to set.

Returns
Type Description
Impact.Builder

This builder for chaining.

setCostProjection(CostProjection value)

public Impact.Builder setCostProjection(CostProjection value)

Use with CategoryType.COST

.google.cloud.recommender.v1beta1.CostProjection cost_projection = 100;

Parameter
Name Description
value CostProjection
Returns
Type Description
Impact.Builder

setCostProjection(CostProjection.Builder builderForValue)

public Impact.Builder setCostProjection(CostProjection.Builder builderForValue)

Use with CategoryType.COST

.google.cloud.recommender.v1beta1.CostProjection cost_projection = 100;

Parameter
Name Description
builderForValue CostProjection.Builder
Returns
Type Description
Impact.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Impact.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Impact.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Impact.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Impact.Builder
Overrides

setSecurityProjection(SecurityProjection value)

public Impact.Builder setSecurityProjection(SecurityProjection value)

Use with CategoryType.SECURITY

.google.cloud.recommender.v1beta1.SecurityProjection security_projection = 101;

Parameter
Name Description
value SecurityProjection
Returns
Type Description
Impact.Builder

setSecurityProjection(SecurityProjection.Builder builderForValue)

public Impact.Builder setSecurityProjection(SecurityProjection.Builder builderForValue)

Use with CategoryType.SECURITY

.google.cloud.recommender.v1beta1.SecurityProjection security_projection = 101;

Parameter
Name Description
builderForValue SecurityProjection.Builder
Returns
Type Description
Impact.Builder

setSustainabilityProjection(SustainabilityProjection value)

public Impact.Builder setSustainabilityProjection(SustainabilityProjection value)

Use with CategoryType.SUSTAINABILITY

.google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;

Parameter
Name Description
value SustainabilityProjection
Returns
Type Description
Impact.Builder

setSustainabilityProjection(SustainabilityProjection.Builder builderForValue)

public Impact.Builder setSustainabilityProjection(SustainabilityProjection.Builder builderForValue)

Use with CategoryType.SUSTAINABILITY

.google.cloud.recommender.v1beta1.SustainabilityProjection sustainability_projection = 102;

Parameter
Name Description
builderForValue SustainabilityProjection.Builder
Returns
Type Description
Impact.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Impact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Impact.Builder
Overrides