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.v1beta1.ModelEvaluationSlice.Slice
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public ModelEvaluationSlice.Slice.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public ModelEvaluationSlice.Slice build()
Returns
public ModelEvaluationSlice.Slice buildPartial()
Returns
public ModelEvaluationSlice.Slice.Builder clear()
Returns
Overrides
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.
string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
public ModelEvaluationSlice.Slice.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public ModelEvaluationSlice.Slice.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
public ModelEvaluationSlice.Slice.Builder clone()
Returns
Overrides
public ModelEvaluationSlice.Slice getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.
string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The dimension.
|
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.
string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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.
|
public ByteString getValueBytes()
Output only. The value of the dimension in this slice.
string value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ModelEvaluationSlice.Slice.Builder mergeFrom(ModelEvaluationSlice.Slice other)
Parameter
Returns
public ModelEvaluationSlice.Slice.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public ModelEvaluationSlice.Slice.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final ModelEvaluationSlice.Slice.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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.
string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
value | String
The dimension to set.
|
Returns
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.
string dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
value | ByteString
The bytes for dimension to set.
|
Returns
public ModelEvaluationSlice.Slice.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public ModelEvaluationSlice.Slice.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final ModelEvaluationSlice.Slice.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
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