Class RougeSpec.Builder (3.40.0)

public static final class RougeSpec.Builder extends GeneratedMessageV3.Builder<RougeSpec.Builder> implements RougeSpecOrBuilder

Spec for rouge score metric - calculates the recall of n-grams in prediction as compared to reference - returns a score ranging between 0 and 1.

Protobuf type google.cloud.aiplatform.v1beta1.RougeSpec

Implements

RougeSpecOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RougeSpec build()
Returns
TypeDescription
RougeSpec

buildPartial()

public RougeSpec buildPartial()
Returns
TypeDescription
RougeSpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRougeType()

public RougeSpec.Builder clearRougeType()

Optional. Supported rouge types are rougen[1-9], rougeL and rougeLsum.

string rouge_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RougeSpec.Builder

This builder for chaining.

clearSplitSummaries()

public RougeSpec.Builder clearSplitSummaries()

Optional. Whether to split summaries while using rougeLsum.

bool split_summaries = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RougeSpec.Builder

This builder for chaining.

clearUseStemmer()

public RougeSpec.Builder clearUseStemmer()

Optional. Whether to use stemmer to compute rouge score.

bool use_stemmer = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RougeSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RougeSpec getDefaultInstanceForType()
Returns
TypeDescription
RougeSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRougeType()

public String getRougeType()

Optional. Supported rouge types are rougen[1-9], rougeL and rougeLsum.

string rouge_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The rougeType.

getRougeTypeBytes()

public ByteString getRougeTypeBytes()

Optional. Supported rouge types are rougen[1-9], rougeL and rougeLsum.

string rouge_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for rougeType.

getSplitSummaries()

public boolean getSplitSummaries()

Optional. Whether to split summaries while using rougeLsum.

bool split_summaries = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The splitSummaries.

getUseStemmer()

public boolean getUseStemmer()

Optional. Whether to use stemmer to compute rouge score.

bool use_stemmer = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The useStemmer.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RougeSpec other)

public RougeSpec.Builder mergeFrom(RougeSpec other)
Parameter
NameDescription
otherRougeSpec
Returns
TypeDescription
RougeSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRougeType(String value)

public RougeSpec.Builder setRougeType(String value)

Optional. Supported rouge types are rougen[1-9], rougeL and rougeLsum.

string rouge_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The rougeType to set.

Returns
TypeDescription
RougeSpec.Builder

This builder for chaining.

setRougeTypeBytes(ByteString value)

public RougeSpec.Builder setRougeTypeBytes(ByteString value)

Optional. Supported rouge types are rougen[1-9], rougeL and rougeLsum.

string rouge_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for rougeType to set.

Returns
TypeDescription
RougeSpec.Builder

This builder for chaining.

setSplitSummaries(boolean value)

public RougeSpec.Builder setSplitSummaries(boolean value)

Optional. Whether to split summaries while using rougeLsum.

bool split_summaries = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The splitSummaries to set.

Returns
TypeDescription
RougeSpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUseStemmer(boolean value)

public RougeSpec.Builder setUseStemmer(boolean value)

Optional. Whether to use stemmer to compute rouge score.

bool use_stemmer = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The useStemmer to set.

Returns
TypeDescription
RougeSpec.Builder

This builder for chaining.