Class PairwiseMetricInstance.Builder

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

public static final class PairwiseMetricInstance.Builder extends com.google.protobuf.GeneratedMessage.Builder<PairwiseMetricInstance.Builder> implements PairwiseMetricInstanceOrBuilder
 Pairwise metric instance. Usually one instance corresponds to one row in an
 evaluation dataset.
 
Protobuf type google.cloud.aiplatform.v1.PairwiseMetricInstance
  • 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<PairwiseMetricInstance.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<PairwiseMetricInstance.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<PairwiseMetricInstance.Builder>
    • getDefaultInstanceForType

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

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

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

      public PairwiseMetricInstance.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<PairwiseMetricInstance.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<PairwiseMetricInstance.Builder>
    • mergeFrom

      public PairwiseMetricInstance.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<PairwiseMetricInstance.Builder>
      Throws:
      IOException
    • getInstanceCase

      public PairwiseMetricInstance.InstanceCase getInstanceCase()
      Specified by:
      getInstanceCase in interface PairwiseMetricInstanceOrBuilder
    • clearInstance

      public PairwiseMetricInstance.Builder clearInstance()
    • hasJsonInstance

      public boolean hasJsonInstance()
       Instance specified as a json string. String key-value pairs are expected
       in the json_instance to render
       PairwiseMetricSpec.instance_prompt_template.
       
      string json_instance = 1;
      Specified by:
      hasJsonInstance in interface PairwiseMetricInstanceOrBuilder
      Returns:
      Whether the jsonInstance field is set.
    • getJsonInstance

      public String getJsonInstance()
       Instance specified as a json string. String key-value pairs are expected
       in the json_instance to render
       PairwiseMetricSpec.instance_prompt_template.
       
      string json_instance = 1;
      Specified by:
      getJsonInstance in interface PairwiseMetricInstanceOrBuilder
      Returns:
      The jsonInstance.
    • getJsonInstanceBytes

      public com.google.protobuf.ByteString getJsonInstanceBytes()
       Instance specified as a json string. String key-value pairs are expected
       in the json_instance to render
       PairwiseMetricSpec.instance_prompt_template.
       
      string json_instance = 1;
      Specified by:
      getJsonInstanceBytes in interface PairwiseMetricInstanceOrBuilder
      Returns:
      The bytes for jsonInstance.
    • setJsonInstance

      public PairwiseMetricInstance.Builder setJsonInstance(String value)
       Instance specified as a json string. String key-value pairs are expected
       in the json_instance to render
       PairwiseMetricSpec.instance_prompt_template.
       
      string json_instance = 1;
      Parameters:
      value - The jsonInstance to set.
      Returns:
      This builder for chaining.
    • clearJsonInstance

      public PairwiseMetricInstance.Builder clearJsonInstance()
       Instance specified as a json string. String key-value pairs are expected
       in the json_instance to render
       PairwiseMetricSpec.instance_prompt_template.
       
      string json_instance = 1;
      Returns:
      This builder for chaining.
    • setJsonInstanceBytes

      public PairwiseMetricInstance.Builder setJsonInstanceBytes(com.google.protobuf.ByteString value)
       Instance specified as a json string. String key-value pairs are expected
       in the json_instance to render
       PairwiseMetricSpec.instance_prompt_template.
       
      string json_instance = 1;
      Parameters:
      value - The bytes for jsonInstance to set.
      Returns:
      This builder for chaining.
    • hasContentMapInstance

      public boolean hasContentMapInstance()
       Key-value contents for the mutlimodality input, including text, image,
       video, audio, and pdf, etc. The key is placeholder in metric prompt
       template, and the value is the multimodal content.
       
      .google.cloud.aiplatform.v1.ContentMap content_map_instance = 2;
      Specified by:
      hasContentMapInstance in interface PairwiseMetricInstanceOrBuilder
      Returns:
      Whether the contentMapInstance field is set.
    • getContentMapInstance

      public ContentMap getContentMapInstance()
       Key-value contents for the mutlimodality input, including text, image,
       video, audio, and pdf, etc. The key is placeholder in metric prompt
       template, and the value is the multimodal content.
       
      .google.cloud.aiplatform.v1.ContentMap content_map_instance = 2;
      Specified by:
      getContentMapInstance in interface PairwiseMetricInstanceOrBuilder
      Returns:
      The contentMapInstance.
    • setContentMapInstance

      public PairwiseMetricInstance.Builder setContentMapInstance(ContentMap value)
       Key-value contents for the mutlimodality input, including text, image,
       video, audio, and pdf, etc. The key is placeholder in metric prompt
       template, and the value is the multimodal content.
       
      .google.cloud.aiplatform.v1.ContentMap content_map_instance = 2;
    • setContentMapInstance

      public PairwiseMetricInstance.Builder setContentMapInstance(ContentMap.Builder builderForValue)
       Key-value contents for the mutlimodality input, including text, image,
       video, audio, and pdf, etc. The key is placeholder in metric prompt
       template, and the value is the multimodal content.
       
      .google.cloud.aiplatform.v1.ContentMap content_map_instance = 2;
    • mergeContentMapInstance

      public PairwiseMetricInstance.Builder mergeContentMapInstance(ContentMap value)
       Key-value contents for the mutlimodality input, including text, image,
       video, audio, and pdf, etc. The key is placeholder in metric prompt
       template, and the value is the multimodal content.
       
      .google.cloud.aiplatform.v1.ContentMap content_map_instance = 2;
    • clearContentMapInstance

      public PairwiseMetricInstance.Builder clearContentMapInstance()
       Key-value contents for the mutlimodality input, including text, image,
       video, audio, and pdf, etc. The key is placeholder in metric prompt
       template, and the value is the multimodal content.
       
      .google.cloud.aiplatform.v1.ContentMap content_map_instance = 2;
    • getContentMapInstanceBuilder

      public ContentMap.Builder getContentMapInstanceBuilder()
       Key-value contents for the mutlimodality input, including text, image,
       video, audio, and pdf, etc. The key is placeholder in metric prompt
       template, and the value is the multimodal content.
       
      .google.cloud.aiplatform.v1.ContentMap content_map_instance = 2;
    • getContentMapInstanceOrBuilder

      public ContentMapOrBuilder getContentMapInstanceOrBuilder()
       Key-value contents for the mutlimodality input, including text, image,
       video, audio, and pdf, etc. The key is placeholder in metric prompt
       template, and the value is the multimodal content.
       
      .google.cloud.aiplatform.v1.ContentMap content_map_instance = 2;
      Specified by:
      getContentMapInstanceOrBuilder in interface PairwiseMetricInstanceOrBuilder