Class EvaluationParserConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EvaluationParserConfig.Builder>
com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.Builder
All Implemented Interfaces:
EvaluationParserConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
EvaluationParserConfig

public static final class EvaluationParserConfig.Builder extends com.google.protobuf.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<EvaluationParserConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<EvaluationParserConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<EvaluationParserConfig.Builder>
    • getDefaultInstanceForType

      public EvaluationParserConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public EvaluationParserConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public EvaluationParserConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public EvaluationParserConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EvaluationParserConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<EvaluationParserConfig.Builder>
    • mergeFrom

      public EvaluationParserConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EvaluationParserConfig.Builder>
      Throws:
      IOException
    • getParserCase

      public EvaluationParserConfig.ParserCase getParserCase()
      Specified by:
      getParserCase in interface EvaluationParserConfigOrBuilder
    • clearParser

      public EvaluationParserConfig.Builder clearParser()
    • 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];
      Specified by:
      hasCustomCodeParserConfig in interface EvaluationParserConfigOrBuilder
      Returns:
      Whether the customCodeParserConfig field is set.
    • 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];
      Specified by:
      getCustomCodeParserConfig in interface EvaluationParserConfigOrBuilder
      Returns:
      The customCodeParserConfig.
    • setCustomCodeParserConfig

       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];
    • setCustomCodeParserConfig

       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];
    • mergeCustomCodeParserConfig

       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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getCustomCodeParserConfigOrBuilder in interface EvaluationParserConfigOrBuilder