Class ReliabilityProjection.Builder (2.43.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.recommender.v1.ReliabilityProjection.RiskType>

The risks to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
ReliabilityProjection.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReliabilityProjection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueReliabilityProjection.RiskType

The risks to add.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ReliabilityProjection.Builder

This builder for chaining.

build()

public ReliabilityProjection build()
Returns
TypeDescription
ReliabilityProjection

buildPartial()

public ReliabilityProjection buildPartial()
Returns
TypeDescription
ReliabilityProjection

clear()

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

clearDetails()

public ReliabilityProjection.Builder clearDetails()

Per-recommender projection.

.google.protobuf.Struct details = 2;

Returns
TypeDescription
ReliabilityProjection.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRisks()

public ReliabilityProjection.Builder clearRisks()

Reliability risks mitigated by this recommendation.

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

Returns
TypeDescription
ReliabilityProjection.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ReliabilityProjection getDefaultInstanceForType()
Returns
TypeDescription
ReliabilityProjection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetails()

public Struct getDetails()

Per-recommender projection.

.google.protobuf.Struct details = 2;

Returns
TypeDescription
Struct

The details.

getDetailsBuilder()

public Struct.Builder getDetailsBuilder()

Per-recommender projection.

.google.protobuf.Struct details = 2;

Returns
TypeDescription
Builder

getDetailsOrBuilder()

public StructOrBuilder getDetailsOrBuilder()

Per-recommender projection.

.google.protobuf.Struct details = 2;

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the value to return.

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

Whether the details field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDetails(Struct value)

public ReliabilityProjection.Builder mergeDetails(Struct value)

Per-recommender projection.

.google.protobuf.Struct details = 2;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
ReliabilityProjection.Builder

mergeFrom(ReliabilityProjection other)

public ReliabilityProjection.Builder mergeFrom(ReliabilityProjection other)
Parameter
NameDescription
otherReliabilityProjection
Returns
TypeDescription
ReliabilityProjection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReliabilityProjection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReliabilityProjection.Builder
Overrides

setDetails(Struct value)

public ReliabilityProjection.Builder setDetails(Struct value)

Per-recommender projection.

.google.protobuf.Struct details = 2;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
ReliabilityProjection.Builder

setDetails(Struct.Builder builderForValue)

public ReliabilityProjection.Builder setDetails(Struct.Builder builderForValue)

Per-recommender projection.

.google.protobuf.Struct details = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ReliabilityProjection.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ReliabilityProjection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueReliabilityProjection.RiskType

The risks to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
ReliabilityProjection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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