Class Impact.Builder (2.37.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.v1.Impact

Implements

ImpactOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Impact.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Impact.Builder
Overrides

build()

public Impact build()
Returns
TypeDescription
Impact

buildPartial()

public Impact buildPartial()
Returns
TypeDescription
Impact

clear()

public Impact.Builder clear()
Returns
TypeDescription
Impact.Builder
Overrides

clearCategory()

public Impact.Builder clearCategory()

Category that is being targeted.

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

Returns
TypeDescription
Impact.Builder

This builder for chaining.

clearCostProjection()

public Impact.Builder clearCostProjection()

Use with CategoryType.COST

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

Returns
TypeDescription
Impact.Builder

clearField(Descriptors.FieldDescriptor field)

public Impact.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Impact.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Impact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Impact.Builder
Overrides

clearProjection()

public Impact.Builder clearProjection()
Returns
TypeDescription
Impact.Builder

clearReliabilityProjection()

public Impact.Builder clearReliabilityProjection()

Use with CategoryType.RELIABILITY

.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;

Returns
TypeDescription
Impact.Builder

clearSecurityProjection()

public Impact.Builder clearSecurityProjection()

Use with CategoryType.SECURITY

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

Returns
TypeDescription
Impact.Builder

clearSustainabilityProjection()

public Impact.Builder clearSustainabilityProjection()

Use with CategoryType.SUSTAINABILITY

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

Returns
TypeDescription
Impact.Builder

clone()

public Impact.Builder clone()
Returns
TypeDescription
Impact.Builder
Overrides

getCategory()

public Impact.Category getCategory()

Category that is being targeted.

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

Returns
TypeDescription
Impact.Category

The category.

getCategoryValue()

public int getCategoryValue()

Category that is being targeted.

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

Returns
TypeDescription
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
TypeDescription
CostProjection

The costProjection.

getCostProjectionBuilder()

public CostProjection.Builder getCostProjectionBuilder()

Use with CategoryType.COST

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

Returns
TypeDescription
CostProjection.Builder

getCostProjectionOrBuilder()

public CostProjectionOrBuilder getCostProjectionOrBuilder()

Use with CategoryType.COST

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

Returns
TypeDescription
CostProjectionOrBuilder

getDefaultInstanceForType()

public Impact getDefaultInstanceForType()
Returns
TypeDescription
Impact

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProjectionCase()

public Impact.ProjectionCase getProjectionCase()
Returns
TypeDescription
Impact.ProjectionCase

getReliabilityProjection()

public ReliabilityProjection getReliabilityProjection()

Use with CategoryType.RELIABILITY

.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;

Returns
TypeDescription
ReliabilityProjection

The reliabilityProjection.

getReliabilityProjectionBuilder()

public ReliabilityProjection.Builder getReliabilityProjectionBuilder()

Use with CategoryType.RELIABILITY

.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;

Returns
TypeDescription
ReliabilityProjection.Builder

getReliabilityProjectionOrBuilder()

public ReliabilityProjectionOrBuilder getReliabilityProjectionOrBuilder()

Use with CategoryType.RELIABILITY

.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;

Returns
TypeDescription
ReliabilityProjectionOrBuilder

getSecurityProjection()

public SecurityProjection getSecurityProjection()

Use with CategoryType.SECURITY

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

Returns
TypeDescription
SecurityProjection

The securityProjection.

getSecurityProjectionBuilder()

public SecurityProjection.Builder getSecurityProjectionBuilder()

Use with CategoryType.SECURITY

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

Returns
TypeDescription
SecurityProjection.Builder

getSecurityProjectionOrBuilder()

public SecurityProjectionOrBuilder getSecurityProjectionOrBuilder()

Use with CategoryType.SECURITY

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

Returns
TypeDescription
SecurityProjectionOrBuilder

getSustainabilityProjection()

public SustainabilityProjection getSustainabilityProjection()

Use with CategoryType.SUSTAINABILITY

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

Returns
TypeDescription
SustainabilityProjection

The sustainabilityProjection.

getSustainabilityProjectionBuilder()

public SustainabilityProjection.Builder getSustainabilityProjectionBuilder()

Use with CategoryType.SUSTAINABILITY

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

Returns
TypeDescription
SustainabilityProjection.Builder

getSustainabilityProjectionOrBuilder()

public SustainabilityProjectionOrBuilder getSustainabilityProjectionOrBuilder()

Use with CategoryType.SUSTAINABILITY

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

Returns
TypeDescription
SustainabilityProjectionOrBuilder

hasCostProjection()

public boolean hasCostProjection()

Use with CategoryType.COST

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

Returns
TypeDescription
boolean

Whether the costProjection field is set.

hasReliabilityProjection()

public boolean hasReliabilityProjection()

Use with CategoryType.RELIABILITY

.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;

Returns
TypeDescription
boolean

Whether the reliabilityProjection field is set.

hasSecurityProjection()

public boolean hasSecurityProjection()

Use with CategoryType.SECURITY

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

Returns
TypeDescription
boolean

Whether the securityProjection field is set.

hasSustainabilityProjection()

public boolean hasSustainabilityProjection()

Use with CategoryType.SUSTAINABILITY

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

Returns
TypeDescription
boolean

Whether the sustainabilityProjection field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCostProjection(CostProjection value)

public Impact.Builder mergeCostProjection(CostProjection value)

Use with CategoryType.COST

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

Parameter
NameDescription
valueCostProjection
Returns
TypeDescription
Impact.Builder

mergeFrom(Impact other)

public Impact.Builder mergeFrom(Impact other)
Parameter
NameDescription
otherImpact
Returns
TypeDescription
Impact.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Impact.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Impact.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Impact.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Impact.Builder
Overrides

mergeReliabilityProjection(ReliabilityProjection value)

public Impact.Builder mergeReliabilityProjection(ReliabilityProjection value)

Use with CategoryType.RELIABILITY

.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;

Parameter
NameDescription
valueReliabilityProjection
Returns
TypeDescription
Impact.Builder

mergeSecurityProjection(SecurityProjection value)

public Impact.Builder mergeSecurityProjection(SecurityProjection value)

Use with CategoryType.SECURITY

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

Parameter
NameDescription
valueSecurityProjection
Returns
TypeDescription
Impact.Builder

mergeSustainabilityProjection(SustainabilityProjection value)

public Impact.Builder mergeSustainabilityProjection(SustainabilityProjection value)

Use with CategoryType.SUSTAINABILITY

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

Parameter
NameDescription
valueSustainabilityProjection
Returns
TypeDescription
Impact.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Impact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Impact.Builder
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
NameDescription
valueImpact.Category

The category to set.

Returns
TypeDescription
Impact.Builder

This builder for chaining.

setCategoryValue(int value)

public Impact.Builder setCategoryValue(int value)

Category that is being targeted.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Impact.Builder

This builder for chaining.

setCostProjection(CostProjection value)

public Impact.Builder setCostProjection(CostProjection value)

Use with CategoryType.COST

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

Parameter
NameDescription
valueCostProjection
Returns
TypeDescription
Impact.Builder

setCostProjection(CostProjection.Builder builderForValue)

public Impact.Builder setCostProjection(CostProjection.Builder builderForValue)

Use with CategoryType.COST

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

Parameter
NameDescription
builderForValueCostProjection.Builder
Returns
TypeDescription
Impact.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Impact.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Impact.Builder
Overrides

setReliabilityProjection(ReliabilityProjection value)

public Impact.Builder setReliabilityProjection(ReliabilityProjection value)

Use with CategoryType.RELIABILITY

.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;

Parameter
NameDescription
valueReliabilityProjection
Returns
TypeDescription
Impact.Builder

setReliabilityProjection(ReliabilityProjection.Builder builderForValue)

public Impact.Builder setReliabilityProjection(ReliabilityProjection.Builder builderForValue)

Use with CategoryType.RELIABILITY

.google.cloud.recommender.v1.ReliabilityProjection reliability_projection = 103;

Parameter
NameDescription
builderForValueReliabilityProjection.Builder
Returns
TypeDescription
Impact.Builder

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

public Impact.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Impact.Builder
Overrides

setSecurityProjection(SecurityProjection value)

public Impact.Builder setSecurityProjection(SecurityProjection value)

Use with CategoryType.SECURITY

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

Parameter
NameDescription
valueSecurityProjection
Returns
TypeDescription
Impact.Builder

setSecurityProjection(SecurityProjection.Builder builderForValue)

public Impact.Builder setSecurityProjection(SecurityProjection.Builder builderForValue)

Use with CategoryType.SECURITY

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

Parameter
NameDescription
builderForValueSecurityProjection.Builder
Returns
TypeDescription
Impact.Builder

setSustainabilityProjection(SustainabilityProjection value)

public Impact.Builder setSustainabilityProjection(SustainabilityProjection value)

Use with CategoryType.SUSTAINABILITY

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

Parameter
NameDescription
valueSustainabilityProjection
Returns
TypeDescription
Impact.Builder

setSustainabilityProjection(SustainabilityProjection.Builder builderForValue)

public Impact.Builder setSustainabilityProjection(SustainabilityProjection.Builder builderForValue)

Use with CategoryType.SUSTAINABILITY

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

Parameter
NameDescription
builderForValueSustainabilityProjection.Builder
Returns
TypeDescription
Impact.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Impact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Impact.Builder
Overrides