Class ReliabilityProjection (2.31.0)

public final class ReliabilityProjection extends GeneratedMessageV3 implements ReliabilityProjectionOrBuilder

Contains information on the impact of a reliability recommendation.

Protobuf type google.cloud.recommender.v1.ReliabilityProjection

Static Fields

DETAILS_FIELD_NUMBER

public static final int DETAILS_FIELD_NUMBER
Field Value
TypeDescription
int

RISKS_FIELD_NUMBER

public static final int RISKS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ReliabilityProjection getDefaultInstance()
Returns
TypeDescription
ReliabilityProjection

getDescriptor()

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

newBuilder()

public static ReliabilityProjection.Builder newBuilder()
Returns
TypeDescription
ReliabilityProjection.Builder

newBuilder(ReliabilityProjection prototype)

public static ReliabilityProjection.Builder newBuilder(ReliabilityProjection prototype)
Parameter
NameDescription
prototypeReliabilityProjection
Returns
TypeDescription
ReliabilityProjection.Builder

parseDelimitedFrom(InputStream input)

public static ReliabilityProjection parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ReliabilityProjection
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReliabilityProjection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReliabilityProjection
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ReliabilityProjection parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ReliabilityProjection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ReliabilityProjection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReliabilityProjection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ReliabilityProjection parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ReliabilityProjection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ReliabilityProjection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReliabilityProjection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ReliabilityProjection parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ReliabilityProjection
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ReliabilityProjection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReliabilityProjection
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ReliabilityProjection parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ReliabilityProjection
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReliabilityProjection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReliabilityProjection
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ReliabilityProjection parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ReliabilityProjection
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ReliabilityProjection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReliabilityProjection
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ReliabilityProjection> parser()
Returns
TypeDescription
Parser<ReliabilityProjection>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ReliabilityProjection getDefaultInstanceForType()
Returns
TypeDescription
ReliabilityProjection

getDetails()

public Struct getDetails()

Per-recommender projection.

.google.protobuf.Struct details = 2;

Returns
TypeDescription
Struct

The details.

getDetailsOrBuilder()

public StructOrBuilder getDetailsOrBuilder()

Per-recommender projection.

.google.protobuf.Struct details = 2;

Returns
TypeDescription
StructOrBuilder

getParserForType()

public Parser<ReliabilityProjection> getParserForType()
Returns
TypeDescription
Parser<ReliabilityProjection>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasDetails()

public boolean hasDetails()

Per-recommender projection.

.google.protobuf.Struct details = 2;

Returns
TypeDescription
boolean

Whether the details field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ReliabilityProjection.Builder newBuilderForType()
Returns
TypeDescription
ReliabilityProjection.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ReliabilityProjection.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ReliabilityProjection.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ReliabilityProjection.Builder toBuilder()
Returns
TypeDescription
ReliabilityProjection.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException