Class AggregatedMetrics.HallucinationMetrics.Builder (0.3.0)

public static final class AggregatedMetrics.HallucinationMetrics.Builder extends GeneratedMessage.Builder<AggregatedMetrics.HallucinationMetrics.Builder> implements AggregatedMetrics.HallucinationMetricsOrBuilder

Metrics for hallucination results.

Protobuf type google.cloud.ces.v1beta.AggregatedMetrics.HallucinationMetrics

Static Methods

getDescriptor()

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

Methods

build()

public AggregatedMetrics.HallucinationMetrics build()
Returns
Type Description
AggregatedMetrics.HallucinationMetrics

buildPartial()

public AggregatedMetrics.HallucinationMetrics buildPartial()
Returns
Type Description
AggregatedMetrics.HallucinationMetrics

clear()

public AggregatedMetrics.HallucinationMetrics.Builder clear()
Returns
Type Description
AggregatedMetrics.HallucinationMetrics.Builder
Overrides

clearScore()

public AggregatedMetrics.HallucinationMetrics.Builder clearScore()

Output only. The average hallucination score (0 to 1).

float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AggregatedMetrics.HallucinationMetrics.Builder

This builder for chaining.

getDefaultInstanceForType()

public AggregatedMetrics.HallucinationMetrics getDefaultInstanceForType()
Returns
Type Description
AggregatedMetrics.HallucinationMetrics

getDescriptorForType()

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

getScore()

public float getScore()

Output only. The average hallucination score (0 to 1).

float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
float

The score.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AggregatedMetrics.HallucinationMetrics other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setScore(float value)

public AggregatedMetrics.HallucinationMetrics.Builder setScore(float value)

Output only. The average hallucination score (0 to 1).

float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value float

The score to set.

Returns
Type Description
AggregatedMetrics.HallucinationMetrics.Builder

This builder for chaining.