Class EvaluationParserConfig.Builder (3.94.0)

public static final class EvaluationParserConfig.Builder extends GeneratedMessage.Builder<EvaluationParserConfig.Builder> implements EvaluationParserConfigOrBuilder

Config for parsing LLM responses. It can be used to parse the LLM response to be evaluated, or the LLM response from LLM-based metrics/Autoraters.

Protobuf type google.cloud.aiplatform.v1beta1.EvaluationParserConfig

Static Methods

getDescriptor()

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

Methods

build()

public EvaluationParserConfig build()
Returns
Type Description
EvaluationParserConfig

buildPartial()

public EvaluationParserConfig buildPartial()
Returns
Type Description
EvaluationParserConfig

clear()

public EvaluationParserConfig.Builder clear()
Returns
Type Description
EvaluationParserConfig.Builder
Overrides

clearCustomCodeParserConfig()

public EvaluationParserConfig.Builder clearCustomCodeParserConfig()

Optional. Use custom code to parse the LLM response.

.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationParserConfig.Builder

clearParser()

public EvaluationParserConfig.Builder clearParser()
Returns
Type Description
EvaluationParserConfig.Builder

getCustomCodeParserConfig()

public EvaluationParserConfig.CustomCodeParserConfig getCustomCodeParserConfig()

Optional. Use custom code to parse the LLM response.

.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationParserConfig.CustomCodeParserConfig

The customCodeParserConfig.

getCustomCodeParserConfigBuilder()

public EvaluationParserConfig.CustomCodeParserConfig.Builder getCustomCodeParserConfigBuilder()

Optional. Use custom code to parse the LLM response.

.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationParserConfig.CustomCodeParserConfig.Builder

getCustomCodeParserConfigOrBuilder()

public EvaluationParserConfig.CustomCodeParserConfigOrBuilder getCustomCodeParserConfigOrBuilder()

Optional. Use custom code to parse the LLM response.

.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationParserConfig.CustomCodeParserConfigOrBuilder

getDefaultInstanceForType()

public EvaluationParserConfig getDefaultInstanceForType()
Returns
Type Description
EvaluationParserConfig

getDescriptorForType()

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

getParserCase()

public EvaluationParserConfig.ParserCase getParserCase()
Returns
Type Description
EvaluationParserConfig.ParserCase

hasCustomCodeParserConfig()

public boolean hasCustomCodeParserConfig()

Optional. Use custom code to parse the LLM response.

.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the customCodeParserConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomCodeParserConfig(EvaluationParserConfig.CustomCodeParserConfig value)

public EvaluationParserConfig.Builder mergeCustomCodeParserConfig(EvaluationParserConfig.CustomCodeParserConfig value)

Optional. Use custom code to parse the LLM response.

.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value EvaluationParserConfig.CustomCodeParserConfig
Returns
Type Description
EvaluationParserConfig.Builder

mergeFrom(EvaluationParserConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCustomCodeParserConfig(EvaluationParserConfig.CustomCodeParserConfig value)

public EvaluationParserConfig.Builder setCustomCodeParserConfig(EvaluationParserConfig.CustomCodeParserConfig value)

Optional. Use custom code to parse the LLM response.

.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value EvaluationParserConfig.CustomCodeParserConfig
Returns
Type Description
EvaluationParserConfig.Builder

setCustomCodeParserConfig(EvaluationParserConfig.CustomCodeParserConfig.Builder builderForValue)

public EvaluationParserConfig.Builder setCustomCodeParserConfig(EvaluationParserConfig.CustomCodeParserConfig.Builder builderForValue)

Optional. Use custom code to parse the LLM response.

.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue EvaluationParserConfig.CustomCodeParserConfig.Builder
Returns
Type Description
EvaluationParserConfig.Builder