Class ErrorAnalysisAnnotation.Builder

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

public static final class ErrorAnalysisAnnotation.Builder extends com.google.protobuf.GeneratedMessage.Builder<ErrorAnalysisAnnotation.Builder> implements ErrorAnalysisAnnotationOrBuilder
 Model error analysis for each annotation.
 
Protobuf type google.cloud.aiplatform.v1.ErrorAnalysisAnnotation
  • 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<ErrorAnalysisAnnotation.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<ErrorAnalysisAnnotation.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<ErrorAnalysisAnnotation.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ErrorAnalysisAnnotation.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<ErrorAnalysisAnnotation.Builder>
      Throws:
      IOException
    • getAttributedItemsList

      public List<ErrorAnalysisAnnotation.AttributedItem> getAttributedItemsList()
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
      Specified by:
      getAttributedItemsList in interface ErrorAnalysisAnnotationOrBuilder
    • getAttributedItemsCount

      public int getAttributedItemsCount()
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
      Specified by:
      getAttributedItemsCount in interface ErrorAnalysisAnnotationOrBuilder
    • getAttributedItems

      public ErrorAnalysisAnnotation.AttributedItem getAttributedItems(int index)
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
      Specified by:
      getAttributedItems in interface ErrorAnalysisAnnotationOrBuilder
    • setAttributedItems

      public ErrorAnalysisAnnotation.Builder setAttributedItems(int index, ErrorAnalysisAnnotation.AttributedItem value)
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
    • setAttributedItems

      public ErrorAnalysisAnnotation.Builder setAttributedItems(int index, ErrorAnalysisAnnotation.AttributedItem.Builder builderForValue)
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
    • addAttributedItems

       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
    • addAttributedItems

      public ErrorAnalysisAnnotation.Builder addAttributedItems(int index, ErrorAnalysisAnnotation.AttributedItem value)
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
    • addAttributedItems

       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
    • addAttributedItems

      public ErrorAnalysisAnnotation.Builder addAttributedItems(int index, ErrorAnalysisAnnotation.AttributedItem.Builder builderForValue)
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
    • addAllAttributedItems

      public ErrorAnalysisAnnotation.Builder addAllAttributedItems(Iterable<? extends ErrorAnalysisAnnotation.AttributedItem> values)
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
    • clearAttributedItems

      public ErrorAnalysisAnnotation.Builder clearAttributedItems()
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
    • removeAttributedItems

      public ErrorAnalysisAnnotation.Builder removeAttributedItems(int index)
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
    • getAttributedItemsBuilder

      public ErrorAnalysisAnnotation.AttributedItem.Builder getAttributedItemsBuilder(int index)
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
    • getAttributedItemsOrBuilder

      public ErrorAnalysisAnnotation.AttributedItemOrBuilder getAttributedItemsOrBuilder(int index)
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
      Specified by:
      getAttributedItemsOrBuilder in interface ErrorAnalysisAnnotationOrBuilder
    • getAttributedItemsOrBuilderList

      public List<? extends ErrorAnalysisAnnotation.AttributedItemOrBuilder> getAttributedItemsOrBuilderList()
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
      Specified by:
      getAttributedItemsOrBuilderList in interface ErrorAnalysisAnnotationOrBuilder
    • addAttributedItemsBuilder

      public ErrorAnalysisAnnotation.AttributedItem.Builder addAttributedItemsBuilder()
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
    • addAttributedItemsBuilder

      public ErrorAnalysisAnnotation.AttributedItem.Builder addAttributedItemsBuilder(int index)
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
    • getAttributedItemsBuilderList

      public List<ErrorAnalysisAnnotation.AttributedItem.Builder> getAttributedItemsBuilderList()
       Attributed items for a given annotation, typically representing neighbors
       from the training sets constrained by the query type.
       
      repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem attributed_items = 1;
    • getQueryTypeValue

      public int getQueryTypeValue()
       The query type used for finding the attributed items.
       
      .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType query_type = 2;
      Specified by:
      getQueryTypeValue in interface ErrorAnalysisAnnotationOrBuilder
      Returns:
      The enum numeric value on the wire for queryType.
    • setQueryTypeValue

      public ErrorAnalysisAnnotation.Builder setQueryTypeValue(int value)
       The query type used for finding the attributed items.
       
      .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType query_type = 2;
      Parameters:
      value - The enum numeric value on the wire for queryType to set.
      Returns:
      This builder for chaining.
    • getQueryType

      public ErrorAnalysisAnnotation.QueryType getQueryType()
       The query type used for finding the attributed items.
       
      .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType query_type = 2;
      Specified by:
      getQueryType in interface ErrorAnalysisAnnotationOrBuilder
      Returns:
      The queryType.
    • setQueryType

       The query type used for finding the attributed items.
       
      .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType query_type = 2;
      Parameters:
      value - The queryType to set.
      Returns:
      This builder for chaining.
    • clearQueryType

      public ErrorAnalysisAnnotation.Builder clearQueryType()
       The query type used for finding the attributed items.
       
      .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType query_type = 2;
      Returns:
      This builder for chaining.
    • getOutlierScore

      public double getOutlierScore()
       The outlier score of this annotated item. Usually defined as the min of all
       distances from attributed items.
       
      double outlier_score = 3;
      Specified by:
      getOutlierScore in interface ErrorAnalysisAnnotationOrBuilder
      Returns:
      The outlierScore.
    • setOutlierScore

      public ErrorAnalysisAnnotation.Builder setOutlierScore(double value)
       The outlier score of this annotated item. Usually defined as the min of all
       distances from attributed items.
       
      double outlier_score = 3;
      Parameters:
      value - The outlierScore to set.
      Returns:
      This builder for chaining.
    • clearOutlierScore

      public ErrorAnalysisAnnotation.Builder clearOutlierScore()
       The outlier score of this annotated item. Usually defined as the min of all
       distances from attributed items.
       
      double outlier_score = 3;
      Returns:
      This builder for chaining.
    • getOutlierThreshold

      public double getOutlierThreshold()
       The threshold used to determine if this annotation is an outlier or not.
       
      double outlier_threshold = 4;
      Specified by:
      getOutlierThreshold in interface ErrorAnalysisAnnotationOrBuilder
      Returns:
      The outlierThreshold.
    • setOutlierThreshold

      public ErrorAnalysisAnnotation.Builder setOutlierThreshold(double value)
       The threshold used to determine if this annotation is an outlier or not.
       
      double outlier_threshold = 4;
      Parameters:
      value - The outlierThreshold to set.
      Returns:
      This builder for chaining.
    • clearOutlierThreshold

      public ErrorAnalysisAnnotation.Builder clearOutlierThreshold()
       The threshold used to determine if this annotation is an outlier or not.
       
      double outlier_threshold = 4;
      Returns:
      This builder for chaining.