Class PointwiseMetricInstance.Builder

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

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

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

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

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

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

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

      public PointwiseMetricInstance.InstanceCase getInstanceCase()
      Specified by:
      getInstanceCase in interface PointwiseMetricInstanceOrBuilder
    • clearInstance

      public PointwiseMetricInstance.Builder clearInstance()
    • hasJsonInstance

      public boolean hasJsonInstance()
       Instance specified as a json string. String key-value pairs are expected
       in the json_instance to render
       PointwiseMetricSpec.instance_prompt_template.
       
      string json_instance = 1;
      Specified by:
      hasJsonInstance in interface PointwiseMetricInstanceOrBuilder
      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
       PointwiseMetricSpec.instance_prompt_template.
       
      string json_instance = 1;
      Specified by:
      getJsonInstance in interface PointwiseMetricInstanceOrBuilder
      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
       PointwiseMetricSpec.instance_prompt_template.
       
      string json_instance = 1;
      Specified by:
      getJsonInstanceBytes in interface PointwiseMetricInstanceOrBuilder
      Returns:
      The bytes for jsonInstance.
    • setJsonInstance

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

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

      public PointwiseMetricInstance.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
       PointwiseMetricSpec.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 PointwiseMetricInstanceOrBuilder
      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 PointwiseMetricInstanceOrBuilder
      Returns:
      The contentMapInstance.
    • setContentMapInstance

      public PointwiseMetricInstance.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 PointwiseMetricInstance.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 PointwiseMetricInstance.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 PointwiseMetricInstance.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 PointwiseMetricInstanceOrBuilder