Class MetricResult.Builder

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

public static final class MetricResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<MetricResult.Builder> implements MetricResultOrBuilder
 Result for a single metric on a single instance.
 
Protobuf type google.cloud.aiplatform.v1.MetricResult
  • 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<MetricResult.Builder>
    • clear

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

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

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

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

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

      public MetricResult.Builder mergeFrom(MetricResult other)
    • isInitialized

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

      public MetricResult.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<MetricResult.Builder>
      Throws:
      IOException
    • hasScore

      public boolean hasScore()
       Output only. The score for the metric.
       Please refer to each metric's documentation for the meaning of the score.
       
      optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasScore in interface MetricResultOrBuilder
      Returns:
      Whether the score field is set.
    • getScore

      public float getScore()
       Output only. The score for the metric.
       Please refer to each metric's documentation for the meaning of the score.
       
      optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getScore in interface MetricResultOrBuilder
      Returns:
      The score.
    • setScore

      public MetricResult.Builder setScore(float value)
       Output only. The score for the metric.
       Please refer to each metric's documentation for the meaning of the score.
       
      optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The score to set.
      Returns:
      This builder for chaining.
    • clearScore

      public MetricResult.Builder clearScore()
       Output only. The score for the metric.
       Please refer to each metric's documentation for the meaning of the score.
       
      optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasExplanation

      public boolean hasExplanation()
       Output only. The explanation for the metric result.
       
      optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasExplanation in interface MetricResultOrBuilder
      Returns:
      Whether the explanation field is set.
    • getExplanation

      public String getExplanation()
       Output only. The explanation for the metric result.
       
      optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExplanation in interface MetricResultOrBuilder
      Returns:
      The explanation.
    • getExplanationBytes

      public com.google.protobuf.ByteString getExplanationBytes()
       Output only. The explanation for the metric result.
       
      optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExplanationBytes in interface MetricResultOrBuilder
      Returns:
      The bytes for explanation.
    • setExplanation

      public MetricResult.Builder setExplanation(String value)
       Output only. The explanation for the metric result.
       
      optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The explanation to set.
      Returns:
      This builder for chaining.
    • clearExplanation

      public MetricResult.Builder clearExplanation()
       Output only. The explanation for the metric result.
       
      optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setExplanationBytes

      public MetricResult.Builder setExplanationBytes(com.google.protobuf.ByteString value)
       Output only. The explanation for the metric result.
       
      optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for explanation to set.
      Returns:
      This builder for chaining.
    • hasError

      public boolean hasError()
       Output only. The error status for the metric result.
       
      optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasError in interface MetricResultOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public Status getError()
       Output only. The error status for the metric result.
       
      optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getError in interface MetricResultOrBuilder
      Returns:
      The error.
    • setError

      public MetricResult.Builder setError(Status value)
       Output only. The error status for the metric result.
       
      optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setError

      public MetricResult.Builder setError(Status.Builder builderForValue)
       Output only. The error status for the metric result.
       
      optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeError

      public MetricResult.Builder mergeError(Status value)
       Output only. The error status for the metric result.
       
      optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearError

      public MetricResult.Builder clearError()
       Output only. The error status for the metric result.
       
      optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getErrorBuilder

      public Status.Builder getErrorBuilder()
       Output only. The error status for the metric result.
       
      optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getErrorOrBuilder

      public StatusOrBuilder getErrorOrBuilder()
       Output only. The error status for the metric result.
       
      optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getErrorOrBuilder in interface MetricResultOrBuilder