Class MetricMetadata.ScoreRange.Builder

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

public static final class MetricMetadata.ScoreRange.Builder extends com.google.protobuf.GeneratedMessage.Builder<MetricMetadata.ScoreRange.Builder> implements MetricMetadata.ScoreRangeOrBuilder
 The range of possible scores for this metric, used for plotting.
 
Protobuf type google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange
  • 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<MetricMetadata.ScoreRange.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<MetricMetadata.ScoreRange.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<MetricMetadata.ScoreRange.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public MetricMetadata.ScoreRange.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<MetricMetadata.ScoreRange.Builder>
      Throws:
      IOException
    • hasMin

      public boolean hasMin()
       Required. The minimum value of the score range (inclusive).
       
      optional double min = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasMin in interface MetricMetadata.ScoreRangeOrBuilder
      Returns:
      Whether the min field is set.
    • getMin

      public double getMin()
       Required. The minimum value of the score range (inclusive).
       
      optional double min = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMin in interface MetricMetadata.ScoreRangeOrBuilder
      Returns:
      The min.
    • setMin

      public MetricMetadata.ScoreRange.Builder setMin(double value)
       Required. The minimum value of the score range (inclusive).
       
      optional double min = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The min to set.
      Returns:
      This builder for chaining.
    • clearMin

       Required. The minimum value of the score range (inclusive).
       
      optional double min = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasMax

      public boolean hasMax()
       Required. The maximum value of the score range (inclusive).
       
      optional double max = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasMax in interface MetricMetadata.ScoreRangeOrBuilder
      Returns:
      Whether the max field is set.
    • getMax

      public double getMax()
       Required. The maximum value of the score range (inclusive).
       
      optional double max = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMax in interface MetricMetadata.ScoreRangeOrBuilder
      Returns:
      The max.
    • setMax

      public MetricMetadata.ScoreRange.Builder setMax(double value)
       Required. The maximum value of the score range (inclusive).
       
      optional double max = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The max to set.
      Returns:
      This builder for chaining.
    • clearMax

       Required. The maximum value of the score range (inclusive).
       
      optional double max = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasStep

      public boolean hasStep()
       Optional. The distance between discrete steps in the range.
       If unset, the range is assumed to be continuous.
       
      optional double step = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasStep in interface MetricMetadata.ScoreRangeOrBuilder
      Returns:
      Whether the step field is set.
    • getStep

      public double getStep()
       Optional. The distance between discrete steps in the range.
       If unset, the range is assumed to be continuous.
       
      optional double step = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStep in interface MetricMetadata.ScoreRangeOrBuilder
      Returns:
      The step.
    • setStep

      public MetricMetadata.ScoreRange.Builder setStep(double value)
       Optional. The distance between discrete steps in the range.
       If unset, the range is assumed to be continuous.
       
      optional double step = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The step to set.
      Returns:
      This builder for chaining.
    • clearStep

       Optional. The distance between discrete steps in the range.
       If unset, the range is assumed to be continuous.
       
      optional double step = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. The description of the score explaining the directionality etc.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface MetricMetadata.ScoreRangeOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. The description of the score explaining the directionality etc.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface MetricMetadata.ScoreRangeOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public MetricMetadata.ScoreRange.Builder setDescription(String value)
       Optional. The description of the score explaining the directionality etc.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public MetricMetadata.ScoreRange.Builder clearDescription()
       Optional. The description of the score explaining the directionality etc.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public MetricMetadata.ScoreRange.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. The description of the score explaining the directionality etc.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.