Class SummarizationQualitySpec.Builder (3.41.0)

public static final class SummarizationQualitySpec.Builder extends GeneratedMessageV3.Builder<SummarizationQualitySpec.Builder> implements SummarizationQualitySpecOrBuilder

Spec for summarization quality score metric.

Protobuf type google.cloud.aiplatform.v1beta1.SummarizationQualitySpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SummarizationQualitySpec build()
Returns
TypeDescription
SummarizationQualitySpec

buildPartial()

public SummarizationQualitySpec buildPartial()
Returns
TypeDescription
SummarizationQualitySpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUseReference()

public SummarizationQualitySpec.Builder clearUseReference()

Optional. Whether to use instance.reference to compute summarization quality.

bool use_reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SummarizationQualitySpec.Builder

This builder for chaining.

clearVersion()

public SummarizationQualitySpec.Builder clearVersion()

Optional. Which version to use for evaluation.

int32 version = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SummarizationQualitySpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SummarizationQualitySpec getDefaultInstanceForType()
Returns
TypeDescription
SummarizationQualitySpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUseReference()

public boolean getUseReference()

Optional. Whether to use instance.reference to compute summarization quality.

bool use_reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The useReference.

getVersion()

public int getVersion()

Optional. Which version to use for evaluation.

int32 version = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SummarizationQualitySpec other)

public SummarizationQualitySpec.Builder mergeFrom(SummarizationQualitySpec other)
Parameter
NameDescription
otherSummarizationQualitySpec
Returns
TypeDescription
SummarizationQualitySpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUseReference(boolean value)

public SummarizationQualitySpec.Builder setUseReference(boolean value)

Optional. Whether to use instance.reference to compute summarization quality.

bool use_reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The useReference to set.

Returns
TypeDescription
SummarizationQualitySpec.Builder

This builder for chaining.

setVersion(int value)

public SummarizationQualitySpec.Builder setVersion(int value)

Optional. Which version to use for evaluation.

int32 version = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The version to set.

Returns
TypeDescription
SummarizationQualitySpec.Builder

This builder for chaining.