public static final class ModelEvaluation.BiasConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder> implements ModelEvaluation.BiasConfigOrBuilder
Configuration for bias detection.Protobuf type
google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig| Modifier and Type | Method and Description |
|---|---|
ModelEvaluation.BiasConfig.Builder |
addAllLabels(Iterable<String> values)
Positive labels selection on the target field.
|
ModelEvaluation.BiasConfig.Builder |
addLabels(String value)
Positive labels selection on the target field.
|
ModelEvaluation.BiasConfig.Builder |
addLabelsBytes(com.google.protobuf.ByteString value)
Positive labels selection on the target field.
|
ModelEvaluation.BiasConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ModelEvaluation.BiasConfig |
build() |
ModelEvaluation.BiasConfig |
buildPartial() |
ModelEvaluation.BiasConfig.Builder |
clear() |
ModelEvaluation.BiasConfig.Builder |
clearBiasSlices()
Specification for how the data should be sliced for bias.
|
ModelEvaluation.BiasConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ModelEvaluation.BiasConfig.Builder |
clearLabels()
Positive labels selection on the target field.
|
ModelEvaluation.BiasConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ModelEvaluation.BiasConfig.Builder |
clone() |
ModelEvaluationSlice.Slice.SliceSpec |
getBiasSlices()
Specification for how the data should be sliced for bias.
|
ModelEvaluationSlice.Slice.SliceSpec.Builder |
getBiasSlicesBuilder()
Specification for how the data should be sliced for bias.
|
ModelEvaluationSlice.Slice.SliceSpecOrBuilder |
getBiasSlicesOrBuilder()
Specification for how the data should be sliced for bias.
|
ModelEvaluation.BiasConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getLabels(int index)
Positive labels selection on the target field.
|
com.google.protobuf.ByteString |
getLabelsBytes(int index)
Positive labels selection on the target field.
|
int |
getLabelsCount()
Positive labels selection on the target field.
|
com.google.protobuf.ProtocolStringList |
getLabelsList()
Positive labels selection on the target field.
|
boolean |
hasBiasSlices()
Specification for how the data should be sliced for bias.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ModelEvaluation.BiasConfig.Builder |
mergeBiasSlices(ModelEvaluationSlice.Slice.SliceSpec value)
Specification for how the data should be sliced for bias.
|
ModelEvaluation.BiasConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ModelEvaluation.BiasConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
ModelEvaluation.BiasConfig.Builder |
mergeFrom(ModelEvaluation.BiasConfig other) |
ModelEvaluation.BiasConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ModelEvaluation.BiasConfig.Builder |
setBiasSlices(ModelEvaluationSlice.Slice.SliceSpec.Builder builderForValue)
Specification for how the data should be sliced for bias.
|
ModelEvaluation.BiasConfig.Builder |
setBiasSlices(ModelEvaluationSlice.Slice.SliceSpec value)
Specification for how the data should be sliced for bias.
|
ModelEvaluation.BiasConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ModelEvaluation.BiasConfig.Builder |
setLabels(int index,
String value)
Positive labels selection on the target field.
|
ModelEvaluation.BiasConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ModelEvaluation.BiasConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>public ModelEvaluation.BiasConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>public ModelEvaluation.BiasConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ModelEvaluation.BiasConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ModelEvaluation.BiasConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ModelEvaluation.BiasConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>public ModelEvaluation.BiasConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>public ModelEvaluation.BiasConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>public ModelEvaluation.BiasConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>public ModelEvaluation.BiasConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>public ModelEvaluation.BiasConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>public ModelEvaluation.BiasConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ModelEvaluation.BiasConfig.Builder>public ModelEvaluation.BiasConfig.Builder mergeFrom(ModelEvaluation.BiasConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>public ModelEvaluation.BiasConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ModelEvaluation.BiasConfig.Builder>IOExceptionpublic boolean hasBiasSlices()
Specification for how the data should be sliced for bias. It contains a
list of slices, with limitation of two slices. The first slice of data
will be the slice_a. The second slice in the list (slice_b) will be
compared against the first slice. If only a single slice is provided,
then slice_a will be compared against "not slice_a".
Below are examples with feature "education" with value "low", "medium",
"high" in the dataset:
Example 1:
bias_slices = [{'education': 'low'}]
A single slice provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'medium' or 'high'.
Example 2:
bias_slices = [{'education': 'low'},
{'education': 'high'}]
Two slices provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'high'.
.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec bias_slices = 1;
hasBiasSlices in interface ModelEvaluation.BiasConfigOrBuilderpublic ModelEvaluationSlice.Slice.SliceSpec getBiasSlices()
Specification for how the data should be sliced for bias. It contains a
list of slices, with limitation of two slices. The first slice of data
will be the slice_a. The second slice in the list (slice_b) will be
compared against the first slice. If only a single slice is provided,
then slice_a will be compared against "not slice_a".
Below are examples with feature "education" with value "low", "medium",
"high" in the dataset:
Example 1:
bias_slices = [{'education': 'low'}]
A single slice provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'medium' or 'high'.
Example 2:
bias_slices = [{'education': 'low'},
{'education': 'high'}]
Two slices provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'high'.
.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec bias_slices = 1;
getBiasSlices in interface ModelEvaluation.BiasConfigOrBuilderpublic ModelEvaluation.BiasConfig.Builder setBiasSlices(ModelEvaluationSlice.Slice.SliceSpec value)
Specification for how the data should be sliced for bias. It contains a
list of slices, with limitation of two slices. The first slice of data
will be the slice_a. The second slice in the list (slice_b) will be
compared against the first slice. If only a single slice is provided,
then slice_a will be compared against "not slice_a".
Below are examples with feature "education" with value "low", "medium",
"high" in the dataset:
Example 1:
bias_slices = [{'education': 'low'}]
A single slice provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'medium' or 'high'.
Example 2:
bias_slices = [{'education': 'low'},
{'education': 'high'}]
Two slices provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'high'.
.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec bias_slices = 1;
public ModelEvaluation.BiasConfig.Builder setBiasSlices(ModelEvaluationSlice.Slice.SliceSpec.Builder builderForValue)
Specification for how the data should be sliced for bias. It contains a
list of slices, with limitation of two slices. The first slice of data
will be the slice_a. The second slice in the list (slice_b) will be
compared against the first slice. If only a single slice is provided,
then slice_a will be compared against "not slice_a".
Below are examples with feature "education" with value "low", "medium",
"high" in the dataset:
Example 1:
bias_slices = [{'education': 'low'}]
A single slice provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'medium' or 'high'.
Example 2:
bias_slices = [{'education': 'low'},
{'education': 'high'}]
Two slices provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'high'.
.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec bias_slices = 1;
public ModelEvaluation.BiasConfig.Builder mergeBiasSlices(ModelEvaluationSlice.Slice.SliceSpec value)
Specification for how the data should be sliced for bias. It contains a
list of slices, with limitation of two slices. The first slice of data
will be the slice_a. The second slice in the list (slice_b) will be
compared against the first slice. If only a single slice is provided,
then slice_a will be compared against "not slice_a".
Below are examples with feature "education" with value "low", "medium",
"high" in the dataset:
Example 1:
bias_slices = [{'education': 'low'}]
A single slice provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'medium' or 'high'.
Example 2:
bias_slices = [{'education': 'low'},
{'education': 'high'}]
Two slices provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'high'.
.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec bias_slices = 1;
public ModelEvaluation.BiasConfig.Builder clearBiasSlices()
Specification for how the data should be sliced for bias. It contains a
list of slices, with limitation of two slices. The first slice of data
will be the slice_a. The second slice in the list (slice_b) will be
compared against the first slice. If only a single slice is provided,
then slice_a will be compared against "not slice_a".
Below are examples with feature "education" with value "low", "medium",
"high" in the dataset:
Example 1:
bias_slices = [{'education': 'low'}]
A single slice provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'medium' or 'high'.
Example 2:
bias_slices = [{'education': 'low'},
{'education': 'high'}]
Two slices provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'high'.
.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec bias_slices = 1;
public ModelEvaluationSlice.Slice.SliceSpec.Builder getBiasSlicesBuilder()
Specification for how the data should be sliced for bias. It contains a
list of slices, with limitation of two slices. The first slice of data
will be the slice_a. The second slice in the list (slice_b) will be
compared against the first slice. If only a single slice is provided,
then slice_a will be compared against "not slice_a".
Below are examples with feature "education" with value "low", "medium",
"high" in the dataset:
Example 1:
bias_slices = [{'education': 'low'}]
A single slice provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'medium' or 'high'.
Example 2:
bias_slices = [{'education': 'low'},
{'education': 'high'}]
Two slices provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'high'.
.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec bias_slices = 1;
public ModelEvaluationSlice.Slice.SliceSpecOrBuilder getBiasSlicesOrBuilder()
Specification for how the data should be sliced for bias. It contains a
list of slices, with limitation of two slices. The first slice of data
will be the slice_a. The second slice in the list (slice_b) will be
compared against the first slice. If only a single slice is provided,
then slice_a will be compared against "not slice_a".
Below are examples with feature "education" with value "low", "medium",
"high" in the dataset:
Example 1:
bias_slices = [{'education': 'low'}]
A single slice provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'medium' or 'high'.
Example 2:
bias_slices = [{'education': 'low'},
{'education': 'high'}]
Two slices provided. In this case, slice_a is the collection of data
with 'education' equals 'low', and slice_b is the collection of data with
'education' equals 'high'.
.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec bias_slices = 1;
getBiasSlicesOrBuilder in interface ModelEvaluation.BiasConfigOrBuilderpublic com.google.protobuf.ProtocolStringList getLabelsList()
Positive labels selection on the target field.
repeated string labels = 2;getLabelsList in interface ModelEvaluation.BiasConfigOrBuilderpublic int getLabelsCount()
Positive labels selection on the target field.
repeated string labels = 2;getLabelsCount in interface ModelEvaluation.BiasConfigOrBuilderpublic String getLabels(int index)
Positive labels selection on the target field.
repeated string labels = 2;getLabels in interface ModelEvaluation.BiasConfigOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getLabelsBytes(int index)
Positive labels selection on the target field.
repeated string labels = 2;getLabelsBytes in interface ModelEvaluation.BiasConfigOrBuilderindex - The index of the value to return.public ModelEvaluation.BiasConfig.Builder setLabels(int index, String value)
Positive labels selection on the target field.
repeated string labels = 2;index - The index to set the value at.value - The labels to set.public ModelEvaluation.BiasConfig.Builder addLabels(String value)
Positive labels selection on the target field.
repeated string labels = 2;value - The labels to add.public ModelEvaluation.BiasConfig.Builder addAllLabels(Iterable<String> values)
Positive labels selection on the target field.
repeated string labels = 2;values - The labels to add.public ModelEvaluation.BiasConfig.Builder clearLabels()
Positive labels selection on the target field.
repeated string labels = 2;public ModelEvaluation.BiasConfig.Builder addLabelsBytes(com.google.protobuf.ByteString value)
Positive labels selection on the target field.
repeated string labels = 2;value - The bytes of the labels to add.public final ModelEvaluation.BiasConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>public final ModelEvaluation.BiasConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>Copyright © 2025 Google LLC. All rights reserved.