Class ModelEvaluation.BiasConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>
-
- com.google.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig.Builder
-
- All Implemented Interfaces:
ModelEvaluation.BiasConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ModelEvaluation.BiasConfig
public static final class ModelEvaluation.BiasConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder> implements ModelEvaluation.BiasConfigOrBuilder
Configuration for bias detection.
Protobuf typegoogle.cloud.aiplatform.v1beta1.ModelEvaluation.BiasConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelEvaluation.BiasConfig.BuilderaddAllLabels(Iterable<String> values)Positive labels selection on the target field.ModelEvaluation.BiasConfig.BuilderaddLabels(String value)Positive labels selection on the target field.ModelEvaluation.BiasConfig.BuilderaddLabelsBytes(com.google.protobuf.ByteString value)Positive labels selection on the target field.ModelEvaluation.BiasConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ModelEvaluation.BiasConfigbuild()ModelEvaluation.BiasConfigbuildPartial()ModelEvaluation.BiasConfig.Builderclear()ModelEvaluation.BiasConfig.BuilderclearBiasSlices()Specification for how the data should be sliced for bias.ModelEvaluation.BiasConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ModelEvaluation.BiasConfig.BuilderclearLabels()Positive labels selection on the target field.ModelEvaluation.BiasConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ModelEvaluation.BiasConfig.Builderclone()ModelEvaluationSlice.Slice.SliceSpecgetBiasSlices()Specification for how the data should be sliced for bias.ModelEvaluationSlice.Slice.SliceSpec.BuildergetBiasSlicesBuilder()Specification for how the data should be sliced for bias.ModelEvaluationSlice.Slice.SliceSpecOrBuildergetBiasSlicesOrBuilder()Specification for how the data should be sliced for bias.ModelEvaluation.BiasConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetLabels(int index)Positive labels selection on the target field.com.google.protobuf.ByteStringgetLabelsBytes(int index)Positive labels selection on the target field.intgetLabelsCount()Positive labels selection on the target field.com.google.protobuf.ProtocolStringListgetLabelsList()Positive labels selection on the target field.booleanhasBiasSlices()Specification for how the data should be sliced for bias.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ModelEvaluation.BiasConfig.BuildermergeBiasSlices(ModelEvaluationSlice.Slice.SliceSpec value)Specification for how the data should be sliced for bias.ModelEvaluation.BiasConfig.BuildermergeFrom(ModelEvaluation.BiasConfig other)ModelEvaluation.BiasConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ModelEvaluation.BiasConfig.BuildermergeFrom(com.google.protobuf.Message other)ModelEvaluation.BiasConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ModelEvaluation.BiasConfig.BuildersetBiasSlices(ModelEvaluationSlice.Slice.SliceSpec value)Specification for how the data should be sliced for bias.ModelEvaluation.BiasConfig.BuildersetBiasSlices(ModelEvaluationSlice.Slice.SliceSpec.Builder builderForValue)Specification for how the data should be sliced for bias.ModelEvaluation.BiasConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ModelEvaluation.BiasConfig.BuildersetLabels(int index, String value)Positive labels selection on the target field.ModelEvaluation.BiasConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ModelEvaluation.BiasConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>
-
clear
public ModelEvaluation.BiasConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>
-
getDefaultInstanceForType
public ModelEvaluation.BiasConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ModelEvaluation.BiasConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ModelEvaluation.BiasConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ModelEvaluation.BiasConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>
-
setField
public ModelEvaluation.BiasConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>
-
clearField
public ModelEvaluation.BiasConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>
-
clearOneof
public ModelEvaluation.BiasConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>
-
setRepeatedField
public ModelEvaluation.BiasConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>
-
addRepeatedField
public ModelEvaluation.BiasConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>
-
mergeFrom
public ModelEvaluation.BiasConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ModelEvaluation.BiasConfig.Builder>
-
mergeFrom
public ModelEvaluation.BiasConfig.Builder mergeFrom(ModelEvaluation.BiasConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>
-
mergeFrom
public ModelEvaluation.BiasConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ModelEvaluation.BiasConfig.Builder>- Throws:
IOException
-
hasBiasSlices
public 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;- Specified by:
hasBiasSlicesin interfaceModelEvaluation.BiasConfigOrBuilder- Returns:
- Whether the biasSlices field is set.
-
getBiasSlices
public 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;- Specified by:
getBiasSlicesin interfaceModelEvaluation.BiasConfigOrBuilder- Returns:
- The biasSlices.
-
setBiasSlices
public 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;
-
setBiasSlices
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;
-
mergeBiasSlices
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;
-
clearBiasSlices
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;
-
getBiasSlicesBuilder
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;
-
getBiasSlicesOrBuilder
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;- Specified by:
getBiasSlicesOrBuilderin interfaceModelEvaluation.BiasConfigOrBuilder
-
getLabelsList
public com.google.protobuf.ProtocolStringList getLabelsList()
Positive labels selection on the target field.
repeated string labels = 2;- Specified by:
getLabelsListin interfaceModelEvaluation.BiasConfigOrBuilder- Returns:
- A list containing the labels.
-
getLabelsCount
public int getLabelsCount()
Positive labels selection on the target field.
repeated string labels = 2;- Specified by:
getLabelsCountin interfaceModelEvaluation.BiasConfigOrBuilder- Returns:
- The count of labels.
-
getLabels
public String getLabels(int index)
Positive labels selection on the target field.
repeated string labels = 2;- Specified by:
getLabelsin interfaceModelEvaluation.BiasConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The labels at the given index.
-
getLabelsBytes
public com.google.protobuf.ByteString getLabelsBytes(int index)
Positive labels selection on the target field.
repeated string labels = 2;- Specified by:
getLabelsBytesin interfaceModelEvaluation.BiasConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the labels at the given index.
-
setLabels
public ModelEvaluation.BiasConfig.Builder setLabels(int index, String value)
Positive labels selection on the target field.
repeated string labels = 2;- Parameters:
index- The index to set the value at.value- The labels to set.- Returns:
- This builder for chaining.
-
addLabels
public ModelEvaluation.BiasConfig.Builder addLabels(String value)
Positive labels selection on the target field.
repeated string labels = 2;- Parameters:
value- The labels to add.- Returns:
- This builder for chaining.
-
addAllLabels
public ModelEvaluation.BiasConfig.Builder addAllLabels(Iterable<String> values)
Positive labels selection on the target field.
repeated string labels = 2;- Parameters:
values- The labels to add.- Returns:
- This builder for chaining.
-
clearLabels
public ModelEvaluation.BiasConfig.Builder clearLabels()
Positive labels selection on the target field.
repeated string labels = 2;- Returns:
- This builder for chaining.
-
addLabelsBytes
public ModelEvaluation.BiasConfig.Builder addLabelsBytes(com.google.protobuf.ByteString value)
Positive labels selection on the target field.
repeated string labels = 2;- Parameters:
value- The bytes of the labels to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ModelEvaluation.BiasConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>
-
mergeUnknownFields
public final ModelEvaluation.BiasConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelEvaluation.BiasConfig.Builder>
-
-