Class ModelEvaluationSlice.Slice.Builder (3.54.0)

public static final class ModelEvaluationSlice.Slice.Builder extends GeneratedMessageV3.Builder<ModelEvaluationSlice.Slice.Builder> implements ModelEvaluationSlice.SliceOrBuilder

Definition of a slice.

Protobuf type google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ModelEvaluationSlice.Slice.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ModelEvaluationSlice.Slice.Builder
Overrides

build()

public ModelEvaluationSlice.Slice build()
Returns
Type Description
ModelEvaluationSlice.Slice

buildPartial()

public ModelEvaluationSlice.Slice buildPartial()
Returns
Type Description
ModelEvaluationSlice.Slice

clear()

public ModelEvaluationSlice.Slice.Builder clear()
Returns
Type Description
ModelEvaluationSlice.Slice.Builder
Overrides

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 equals to value.
  • slice: This slice is a user customized slice defined by its SliceSpec.

string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ModelEvaluationSlice.Slice.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ModelEvaluationSlice.Slice.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ModelEvaluationSlice.Slice.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ModelEvaluationSlice.Slice.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ModelEvaluationSlice.Slice.Builder
Overrides

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];

Returns
Type Description
ModelEvaluationSlice.Slice.Builder

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
Type Description
ModelEvaluationSlice.Slice.Builder

This builder for chaining.

clone()

public ModelEvaluationSlice.Slice.Builder clone()
Returns
Type Description
ModelEvaluationSlice.Slice.Builder
Overrides

getDefaultInstanceForType()

public ModelEvaluationSlice.Slice getDefaultInstanceForType()
Returns
Type Description
ModelEvaluationSlice.Slice

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 equals to value.
  • slice: This slice is a user customized slice defined by its SliceSpec.

string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The dimension.

getDimensionBytes()

public 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 equals to value.
  • slice: This slice is a user customized slice defined by its SliceSpec.

string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for dimension.

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];

Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec

The sliceSpec.

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];

Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Builder

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];

Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpecOrBuilder

getValue()

public String getValue()

Output only. The value of the dimension in this slice.

string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Output only. The value of the dimension in this slice.

string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for value.

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];

Returns
Type Description
boolean

Whether the sliceSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ModelEvaluationSlice.Slice other)

public ModelEvaluationSlice.Slice.Builder mergeFrom(ModelEvaluationSlice.Slice other)
Parameter
Name Description
other ModelEvaluationSlice.Slice
Returns
Type Description
ModelEvaluationSlice.Slice.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ModelEvaluationSlice.Slice.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModelEvaluationSlice.Slice.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ModelEvaluationSlice.Slice.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ModelEvaluationSlice.Slice.Builder
Overrides

mergeSliceSpec(ModelEvaluationSlice.Slice.SliceSpec value)

public ModelEvaluationSlice.Slice.Builder mergeSliceSpec(ModelEvaluationSlice.Slice.SliceSpec value)

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];

Parameter
Name Description
value ModelEvaluationSlice.Slice.SliceSpec
Returns
Type Description
ModelEvaluationSlice.Slice.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ModelEvaluationSlice.Slice.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ModelEvaluationSlice.Slice.Builder
Overrides

setDimension(String value)

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 equals to value.
  • slice: This slice is a user customized slice defined by its SliceSpec.

string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The dimension to set.

Returns
Type Description
ModelEvaluationSlice.Slice.Builder

This builder for chaining.

setDimensionBytes(ByteString value)

public ModelEvaluationSlice.Slice.Builder setDimensionBytes(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 equals to value.
  • slice: This slice is a user customized slice defined by its SliceSpec.

string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for dimension to set.

Returns
Type Description
ModelEvaluationSlice.Slice.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ModelEvaluationSlice.Slice.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ModelEvaluationSlice.Slice.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ModelEvaluationSlice.Slice.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ModelEvaluationSlice.Slice.Builder
Overrides

setSliceSpec(ModelEvaluationSlice.Slice.SliceSpec value)

public ModelEvaluationSlice.Slice.Builder setSliceSpec(ModelEvaluationSlice.Slice.SliceSpec value)

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];

Parameter
Name Description
value ModelEvaluationSlice.Slice.SliceSpec
Returns
Type Description
ModelEvaluationSlice.Slice.Builder

setSliceSpec(ModelEvaluationSlice.Slice.SliceSpec.Builder builderForValue)

public ModelEvaluationSlice.Slice.Builder setSliceSpec(ModelEvaluationSlice.Slice.SliceSpec.Builder builderForValue)

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];

Parameter
Name Description
builderForValue ModelEvaluationSlice.Slice.SliceSpec.Builder
Returns
Type Description
ModelEvaluationSlice.Slice.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ModelEvaluationSlice.Slice.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ModelEvaluationSlice.Slice.Builder
Overrides

setValue(String value)

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];

Parameter
Name Description
value String

The value to set.

Returns
Type Description
ModelEvaluationSlice.Slice.Builder

This builder for chaining.

setValueBytes(ByteString value)

public ModelEvaluationSlice.Slice.Builder setValueBytes(ByteString value)

Output only. The value of the dimension in this slice.

string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
ModelEvaluationSlice.Slice.Builder

This builder for chaining.