Class MetricxInstance.Builder

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

public static final class MetricxInstance.Builder extends com.google.protobuf.GeneratedMessage.Builder<MetricxInstance.Builder> implements MetricxInstanceOrBuilder
 Spec for MetricX instance - The fields used for evaluation are dependent on
 the MetricX version.
 
Protobuf type google.cloud.aiplatform.v1.MetricxInstance
  • 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<MetricxInstance.Builder>
    • clear

      public MetricxInstance.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<MetricxInstance.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<MetricxInstance.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public MetricxInstance.Builder mergeFrom(MetricxInstance other)
    • isInitialized

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

      public MetricxInstance.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<MetricxInstance.Builder>
      Throws:
      IOException
    • hasPrediction

      public boolean hasPrediction()
       Required. Output of the evaluated model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPrediction in interface MetricxInstanceOrBuilder
      Returns:
      Whether the prediction field is set.
    • getPrediction

      public String getPrediction()
       Required. Output of the evaluated model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrediction in interface MetricxInstanceOrBuilder
      Returns:
      The prediction.
    • getPredictionBytes

      public com.google.protobuf.ByteString getPredictionBytes()
       Required. Output of the evaluated model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPredictionBytes in interface MetricxInstanceOrBuilder
      Returns:
      The bytes for prediction.
    • setPrediction

      public MetricxInstance.Builder setPrediction(String value)
       Required. Output of the evaluated model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The prediction to set.
      Returns:
      This builder for chaining.
    • clearPrediction

      public MetricxInstance.Builder clearPrediction()
       Required. Output of the evaluated model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPredictionBytes

      public MetricxInstance.Builder setPredictionBytes(com.google.protobuf.ByteString value)
       Required. Output of the evaluated model.
       
      optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for prediction to set.
      Returns:
      This builder for chaining.
    • hasReference

      public boolean hasReference()
       Optional. Ground truth used to compare against the prediction.
       
      optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasReference in interface MetricxInstanceOrBuilder
      Returns:
      Whether the reference field is set.
    • getReference

      public String getReference()
       Optional. Ground truth used to compare against the prediction.
       
      optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReference in interface MetricxInstanceOrBuilder
      Returns:
      The reference.
    • getReferenceBytes

      public com.google.protobuf.ByteString getReferenceBytes()
       Optional. Ground truth used to compare against the prediction.
       
      optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReferenceBytes in interface MetricxInstanceOrBuilder
      Returns:
      The bytes for reference.
    • setReference

      public MetricxInstance.Builder setReference(String value)
       Optional. Ground truth used to compare against the prediction.
       
      optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The reference to set.
      Returns:
      This builder for chaining.
    • clearReference

      public MetricxInstance.Builder clearReference()
       Optional. Ground truth used to compare against the prediction.
       
      optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setReferenceBytes

      public MetricxInstance.Builder setReferenceBytes(com.google.protobuf.ByteString value)
       Optional. Ground truth used to compare against the prediction.
       
      optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for reference to set.
      Returns:
      This builder for chaining.
    • hasSource

      public boolean hasSource()
       Optional. Source text in original language.
       
      optional string source = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSource in interface MetricxInstanceOrBuilder
      Returns:
      Whether the source field is set.
    • getSource

      public String getSource()
       Optional. Source text in original language.
       
      optional string source = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSource in interface MetricxInstanceOrBuilder
      Returns:
      The source.
    • getSourceBytes

      public com.google.protobuf.ByteString getSourceBytes()
       Optional. Source text in original language.
       
      optional string source = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourceBytes in interface MetricxInstanceOrBuilder
      Returns:
      The bytes for source.
    • setSource

      public MetricxInstance.Builder setSource(String value)
       Optional. Source text in original language.
       
      optional string source = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The source to set.
      Returns:
      This builder for chaining.
    • clearSource

      public MetricxInstance.Builder clearSource()
       Optional. Source text in original language.
       
      optional string source = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setSourceBytes

      public MetricxInstance.Builder setSourceBytes(com.google.protobuf.ByteString value)
       Optional. Source text in original language.
       
      optional string source = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for source to set.
      Returns:
      This builder for chaining.