Class ModelEvaluationSlice.Slice.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.v1beta1.AnnotationSpec.display_name]
             equals to
             [value][google.cloud.aiplatform.v1beta1.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.v1beta1.AnnotationSpec.display_name]
             equals to
             [value][google.cloud.aiplatform.v1beta1.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.v1beta1.AnnotationSpec.display_name]
             equals to
             [value][google.cloud.aiplatform.v1beta1.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.v1beta1.AnnotationSpec.display_name]
             equals to
             [value][google.cloud.aiplatform.v1beta1.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.v1beta1.AnnotationSpec.display_name]
             equals to
             [value][google.cloud.aiplatform.v1beta1.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

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

        public ModelEvaluationSlice.Slice.Builder clearSliceSpec()
         Output only. Specification for how the data was sliced.
         
        .google.cloud.aiplatform.v1beta1.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.v1beta1.ModelEvaluationSlice.Slice.SliceSpec slice_spec = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUnknownFields

        public final ModelEvaluationSlice.Slice.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluationSlice.Slice.Builder>
      • mergeUnknownFields

        public final ModelEvaluationSlice.Slice.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluationSlice.Slice.Builder>