Class ModelEvaluationSlice.Slice.Builder (3.10.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ModelEvaluationSlice.Slice.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder
Overrides

build()

public ModelEvaluationSlice.Slice build()
Returns
TypeDescription
ModelEvaluationSlice.Slice

buildPartial()

public ModelEvaluationSlice.Slice buildPartial()
Returns
TypeDescription
ModelEvaluationSlice.Slice

clear()

public ModelEvaluationSlice.Slice.Builder clear()
Returns
TypeDescription
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.

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

Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ModelEvaluationSlice.Slice.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ModelEvaluationSlice.Slice.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder
Overrides

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

This builder for chaining.

clone()

public ModelEvaluationSlice.Slice.Builder clone()
Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder
Overrides

getDefaultInstanceForType()

public ModelEvaluationSlice.Slice getDefaultInstanceForType()
Returns
TypeDescription
ModelEvaluationSlice.Slice

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.

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

Returns
TypeDescription
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.

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

Returns
TypeDescription
ByteString

The bytes for dimension.

getValue()

public String getValue()

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

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

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ModelEvaluationSlice.Slice other)

public ModelEvaluationSlice.Slice.Builder mergeFrom(ModelEvaluationSlice.Slice other)
Parameter
NameDescription
otherModelEvaluationSlice.Slice
Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ModelEvaluationSlice.Slice.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ModelEvaluationSlice.Slice.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ModelEvaluationSlice.Slice.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.

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

Parameter
NameDescription
valueString

The dimension to set.

Returns
TypeDescription
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.

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

Parameter
NameDescription
valueByteString

The bytes for dimension to set.

Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ModelEvaluationSlice.Slice.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ModelEvaluationSlice.Slice.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The value to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
ModelEvaluationSlice.Slice.Builder

This builder for chaining.