Class ModelEvaluationSlice.Slice.Builder

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

public static final class ModelEvaluationSlice.Slice.Builder extends com.google.protobuf.GeneratedMessage.Builder<ModelEvaluationSlice.Slice.Builder> implements ModelEvaluationSlice.SliceOrBuilder
 Definition of a slice.
 
Protobuf type google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice
  • 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<ModelEvaluationSlice.Slice.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<ModelEvaluationSlice.Slice.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<ModelEvaluationSlice.Slice.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public ModelEvaluationSlice.Slice.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<ModelEvaluationSlice.Slice.Builder>
      Throws:
      IOException
    • getDimension

      public String getDimension()
       Output only. The dimension of the slice.
       Well-known dimensions are:
       * `annotationSpec`: This slice is on the test data that has either
       ground truth or prediction with
       [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name]
       equals to
       [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value].
       * `slice`: This slice is a user customized slice defined by its
       SliceSpec.
       
      string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDimension in interface ModelEvaluationSlice.SliceOrBuilder
      Returns:
      The dimension.
    • getDimensionBytes

      public com.google.protobuf.ByteString getDimensionBytes()
       Output only. The dimension of the slice.
       Well-known dimensions are:
       * `annotationSpec`: This slice is on the test data that has either
       ground truth or prediction with
       [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name]
       equals to
       [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value].
       * `slice`: This slice is a user customized slice defined by its
       SliceSpec.
       
      string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDimensionBytes in interface ModelEvaluationSlice.SliceOrBuilder
      Returns:
      The bytes for dimension.
    • setDimension

      public ModelEvaluationSlice.Slice.Builder setDimension(String value)
       Output only. The dimension of the slice.
       Well-known dimensions are:
       * `annotationSpec`: This slice is on the test data that has either
       ground truth or prediction with
       [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name]
       equals to
       [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value].
       * `slice`: This slice is a user customized slice defined by its
       SliceSpec.
       
      string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The dimension to set.
      Returns:
      This builder for chaining.
    • clearDimension

      public ModelEvaluationSlice.Slice.Builder clearDimension()
       Output only. The dimension of the slice.
       Well-known dimensions are:
       * `annotationSpec`: This slice is on the test data that has either
       ground truth or prediction with
       [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name]
       equals to
       [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value].
       * `slice`: This slice is a user customized slice defined by its
       SliceSpec.
       
      string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDimensionBytes

      public ModelEvaluationSlice.Slice.Builder setDimensionBytes(com.google.protobuf.ByteString value)
       Output only. The dimension of the slice.
       Well-known dimensions are:
       * `annotationSpec`: This slice is on the test data that has either
       ground truth or prediction with
       [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name]
       equals to
       [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value].
       * `slice`: This slice is a user customized slice defined by its
       SliceSpec.
       
      string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for dimension to set.
      Returns:
      This builder for chaining.
    • getValue

      public String getValue()
       Output only. The value of the dimension in this slice.
       
      string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getValue in interface ModelEvaluationSlice.SliceOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       Output only. The value of the dimension in this slice.
       
      string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getValueBytes in interface ModelEvaluationSlice.SliceOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public ModelEvaluationSlice.Slice.Builder setValue(String value)
       Output only. The value of the dimension in this slice.
       
      string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

       Output only. The value of the dimension in this slice.
       
      string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setValueBytes

      public ModelEvaluationSlice.Slice.Builder setValueBytes(com.google.protobuf.ByteString value)
       Output only. The value of the dimension in this slice.
       
      string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.
    • hasSliceSpec

      public boolean hasSliceSpec()
       Output only. Specification for how the data was sliced.
       
      .google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasSliceSpec in interface ModelEvaluationSlice.SliceOrBuilder
      Returns:
      Whether the sliceSpec field is set.
    • getSliceSpec

      public ModelEvaluationSlice.Slice.SliceSpec getSliceSpec()
       Output only. Specification for how the data was sliced.
       
      .google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSliceSpec in interface ModelEvaluationSlice.SliceOrBuilder
      Returns:
      The sliceSpec.
    • setSliceSpec

       Output only. Specification for how the data was sliced.
       
      .google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setSliceSpec

       Output only. Specification for how the data was sliced.
       
      .google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeSliceSpec

       Output only. Specification for how the data was sliced.
       
      .google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearSliceSpec

      public ModelEvaluationSlice.Slice.Builder clearSliceSpec()
       Output only. Specification for how the data was sliced.
       
      .google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSliceSpecBuilder

      public ModelEvaluationSlice.Slice.SliceSpec.Builder getSliceSpecBuilder()
       Output only. Specification for how the data was sliced.
       
      .google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getSliceSpecOrBuilder

      public ModelEvaluationSlice.Slice.SliceSpecOrBuilder getSliceSpecOrBuilder()
       Output only. Specification for how the data was sliced.
       
      .google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSliceSpecOrBuilder in interface ModelEvaluationSlice.SliceOrBuilder