Class ReliabilityProjection.Builder (2.49.0)

public static final class ReliabilityProjection.Builder extends GeneratedMessageV3.Builder<ReliabilityProjection.Builder> implements ReliabilityProjectionOrBuilder

Contains information on the impact of a reliability recommendation.

Protobuf type google.cloud.recommender.v1.ReliabilityProjection

Static Methods

getDescriptor()

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

Methods

addAllRisks(Iterable<? extends ReliabilityProjection.RiskType> values)

public ReliabilityProjection.Builder addAllRisks(Iterable<? extends ReliabilityProjection.RiskType> values)

Reliability risks mitigated by this recommendation.

repeated .google.cloud.recommender.v1.ReliabilityProjection.RiskType risks = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.recommender.v1.ReliabilityProjection.RiskType>

The risks to add.

Returns
Type Description
ReliabilityProjection.Builder

This builder for chaining.

addAllRisksValue(Iterable<Integer> values)

public ReliabilityProjection.Builder addAllRisksValue(Iterable<Integer> values)

Reliability risks mitigated by this recommendation.

repeated .google.cloud.recommender.v1.ReliabilityProjection.RiskType risks = 1;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for risks to add.

Returns
Type Description
ReliabilityProjection.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRisks(ReliabilityProjection.RiskType value)

public ReliabilityProjection.Builder addRisks(ReliabilityProjection.RiskType value)

Reliability risks mitigated by this recommendation.

repeated .google.cloud.recommender.v1.ReliabilityProjection.RiskType risks = 1;

Parameter
Name Description
value ReliabilityProjection.RiskType

The risks to add.

Returns
Type Description
ReliabilityProjection.Builder

This builder for chaining.

addRisksValue(int value)

public ReliabilityProjection.Builder addRisksValue(int value)

Reliability risks mitigated by this recommendation.

repeated .google.cloud.recommender.v1.ReliabilityProjection.RiskType risks = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for risks to add.

Returns
Type Description
ReliabilityProjection.Builder

This builder for chaining.

build()

public ReliabilityProjection build()
Returns
Type Description
ReliabilityProjection

buildPartial()

public ReliabilityProjection buildPartial()
Returns
Type Description
ReliabilityProjection

clear()

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

clearDetails()

public ReliabilityProjection.Builder clearDetails()

Per-recommender projection.

.google.protobuf.Struct details = 2;

Returns
Type Description
ReliabilityProjection.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRisks()

public ReliabilityProjection.Builder clearRisks()

Reliability risks mitigated by this recommendation.

repeated .google.cloud.recommender.v1.ReliabilityProjection.RiskType risks = 1;

Returns
Type Description
ReliabilityProjection.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ReliabilityProjection getDefaultInstanceForType()
Returns
Type Description
ReliabilityProjection

getDescriptorForType()

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

getDetails()

public Struct getDetails()

Per-recommender projection.

.google.protobuf.Struct details = 2;

Returns
Type Description
Struct

The details.

getDetailsBuilder()

public Struct.Builder getDetailsBuilder()

Per-recommender projection.

.google.protobuf.Struct details = 2;

Returns
Type Description
Builder

getDetailsOrBuilder()

public StructOrBuilder getDetailsOrBuilder()

Per-recommender projection.

.google.protobuf.Struct details = 2;

Returns
Type Description
StructOrBuilder

getRisks(int index)

public ReliabilityProjection.RiskType getRisks(int index)

Reliability risks mitigated by this recommendation.

repeated .google.cloud.recommender.v1.ReliabilityProjection.RiskType risks = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ReliabilityProjection.RiskType

The risks at the given index.

getRisksCount()

public int getRisksCount()

Reliability risks mitigated by this recommendation.

repeated .google.cloud.recommender.v1.ReliabilityProjection.RiskType risks = 1;

Returns
Type Description
int

The count of risks.

getRisksList()

public List<ReliabilityProjection.RiskType> getRisksList()

Reliability risks mitigated by this recommendation.

repeated .google.cloud.recommender.v1.ReliabilityProjection.RiskType risks = 1;

Returns
Type Description
List<RiskType>

A list containing the risks.

getRisksValue(int index)

public int getRisksValue(int index)

Reliability risks mitigated by this recommendation.

repeated .google.cloud.recommender.v1.ReliabilityProjection.RiskType risks = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of risks at the given index.

getRisksValueList()

public List<Integer> getRisksValueList()

Reliability risks mitigated by this recommendation.

repeated .google.cloud.recommender.v1.ReliabilityProjection.RiskType risks = 1;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for risks.

hasDetails()

public boolean hasDetails()

Per-recommender projection.

.google.protobuf.Struct details = 2;

Returns
Type Description
boolean

Whether the details field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDetails(Struct value)

public ReliabilityProjection.Builder mergeDetails(Struct value)

Per-recommender projection.

.google.protobuf.Struct details = 2;

Parameter
Name Description
value Struct
Returns
Type Description
ReliabilityProjection.Builder

mergeFrom(ReliabilityProjection other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDetails(Struct value)

public ReliabilityProjection.Builder setDetails(Struct value)

Per-recommender projection.

.google.protobuf.Struct details = 2;

Parameter
Name Description
value Struct
Returns
Type Description
ReliabilityProjection.Builder

setDetails(Struct.Builder builderForValue)

public ReliabilityProjection.Builder setDetails(Struct.Builder builderForValue)

Per-recommender projection.

.google.protobuf.Struct details = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ReliabilityProjection.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRisks(int index, ReliabilityProjection.RiskType value)

public ReliabilityProjection.Builder setRisks(int index, ReliabilityProjection.RiskType value)

Reliability risks mitigated by this recommendation.

repeated .google.cloud.recommender.v1.ReliabilityProjection.RiskType risks = 1;

Parameters
Name Description
index int

The index to set the value at.

value ReliabilityProjection.RiskType

The risks to set.

Returns
Type Description
ReliabilityProjection.Builder

This builder for chaining.

setRisksValue(int index, int value)

public ReliabilityProjection.Builder setRisksValue(int index, int value)

Reliability risks mitigated by this recommendation.

repeated .google.cloud.recommender.v1.ReliabilityProjection.RiskType risks = 1;

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
ReliabilityProjection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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