Class ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder (3.44.0)

public static final class ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder extends GeneratedMessageV3.Builder<ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder> implements ModelMonitoringObjectiveSpec.FeatureAttributionSpecOrBuilder

Feature attribution monitoring spec.

Protobuf type google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveSpec.FeatureAttributionSpec

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

Static Methods

getDescriptor()

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

Methods

addAllFeatures(Iterable<String> values)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder addAllFeatures(Iterable<String> values)

Feature names interested in monitoring. These should be a subset of the input feature names specified in the monitoring schema. If the field is not specified all features outlied in the monitoring schema will be used.

repeated string features = 1;

Parameter
Name Description
values Iterable<String>

The features to add.

Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

This builder for chaining.

addFeatures(String value)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder addFeatures(String value)

Feature names interested in monitoring. These should be a subset of the input feature names specified in the monitoring schema. If the field is not specified all features outlied in the monitoring schema will be used.

repeated string features = 1;

Parameter
Name Description
value String

The features to add.

Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

This builder for chaining.

addFeaturesBytes(ByteString value)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder addFeaturesBytes(ByteString value)

Feature names interested in monitoring. These should be a subset of the input feature names specified in the monitoring schema. If the field is not specified all features outlied in the monitoring schema will be used.

repeated string features = 1;

Parameter
Name Description
value ByteString

The bytes of the features to add.

Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec build()
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec

buildPartial()

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec buildPartial()
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec

clear()

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder clear()
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder
Overrides

clearBatchExplanationDedicatedResources()

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder clearBatchExplanationDedicatedResources()

The config of resources used by the Model Monitoring during the batch explanation for non-AutoML models. If not set, n1-standard-2 machine type will be used by default.

.google.cloud.aiplatform.v1beta1.BatchDedicatedResources batch_explanation_dedicated_resources = 4;

Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

clearDefaultAlertCondition()

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder clearDefaultAlertCondition()

Default alert condition for all the features.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition default_alert_condition = 2;

Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

clearFeatureAlertConditions()

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder clearFeatureAlertConditions()
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

clearFeatures()

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder clearFeatures()

Feature names interested in monitoring. These should be a subset of the input feature names specified in the monitoring schema. If the field is not specified all features outlied in the monitoring schema will be used.

repeated string features = 1;

Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder
Overrides

clone()

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder clone()
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder
Overrides

containsFeatureAlertConditions(String key)

public boolean containsFeatureAlertConditions(String key)

Per feature alert condition will override default alert condition.

map<string, .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition> feature_alert_conditions = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

getBatchExplanationDedicatedResources()

public BatchDedicatedResources getBatchExplanationDedicatedResources()

The config of resources used by the Model Monitoring during the batch explanation for non-AutoML models. If not set, n1-standard-2 machine type will be used by default.

.google.cloud.aiplatform.v1beta1.BatchDedicatedResources batch_explanation_dedicated_resources = 4;

Returns
Type Description
BatchDedicatedResources

The batchExplanationDedicatedResources.

getBatchExplanationDedicatedResourcesBuilder()

public BatchDedicatedResources.Builder getBatchExplanationDedicatedResourcesBuilder()

The config of resources used by the Model Monitoring during the batch explanation for non-AutoML models. If not set, n1-standard-2 machine type will be used by default.

.google.cloud.aiplatform.v1beta1.BatchDedicatedResources batch_explanation_dedicated_resources = 4;

Returns
Type Description
BatchDedicatedResources.Builder

getBatchExplanationDedicatedResourcesOrBuilder()

public BatchDedicatedResourcesOrBuilder getBatchExplanationDedicatedResourcesOrBuilder()

The config of resources used by the Model Monitoring during the batch explanation for non-AutoML models. If not set, n1-standard-2 machine type will be used by default.

.google.cloud.aiplatform.v1beta1.BatchDedicatedResources batch_explanation_dedicated_resources = 4;

Returns
Type Description
BatchDedicatedResourcesOrBuilder

getDefaultAlertCondition()

public ModelMonitoringAlertCondition getDefaultAlertCondition()

Default alert condition for all the features.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition default_alert_condition = 2;

Returns
Type Description
ModelMonitoringAlertCondition

The defaultAlertCondition.

getDefaultAlertConditionBuilder()

public ModelMonitoringAlertCondition.Builder getDefaultAlertConditionBuilder()

Default alert condition for all the features.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition default_alert_condition = 2;

Returns
Type Description
ModelMonitoringAlertCondition.Builder

getDefaultAlertConditionOrBuilder()

public ModelMonitoringAlertConditionOrBuilder getDefaultAlertConditionOrBuilder()

Default alert condition for all the features.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition default_alert_condition = 2;

Returns
Type Description
ModelMonitoringAlertConditionOrBuilder

getDefaultInstanceForType()

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec getDefaultInstanceForType()
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec

getDescriptorForType()

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

getFeatureAlertConditions() (deprecated)

public Map<String,ModelMonitoringAlertCondition> getFeatureAlertConditions()
Returns
Type Description
Map<String,ModelMonitoringAlertCondition>

getFeatureAlertConditionsCount()

public int getFeatureAlertConditionsCount()

Per feature alert condition will override default alert condition.

map<string, .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition> feature_alert_conditions = 3;

Returns
Type Description
int

getFeatureAlertConditionsMap()

public Map<String,ModelMonitoringAlertCondition> getFeatureAlertConditionsMap()

Per feature alert condition will override default alert condition.

map<string, .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition> feature_alert_conditions = 3;

Returns
Type Description
Map<String,ModelMonitoringAlertCondition>

getFeatureAlertConditionsOrDefault(String key, ModelMonitoringAlertCondition defaultValue)

public ModelMonitoringAlertCondition getFeatureAlertConditionsOrDefault(String key, ModelMonitoringAlertCondition defaultValue)

Per feature alert condition will override default alert condition.

map<string, .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition> feature_alert_conditions = 3;

Parameters
Name Description
key String
defaultValue ModelMonitoringAlertCondition
Returns
Type Description
ModelMonitoringAlertCondition

getFeatureAlertConditionsOrThrow(String key)

public ModelMonitoringAlertCondition getFeatureAlertConditionsOrThrow(String key)

Per feature alert condition will override default alert condition.

map<string, .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition> feature_alert_conditions = 3;

Parameter
Name Description
key String
Returns
Type Description
ModelMonitoringAlertCondition

getFeatures(int index)

public String getFeatures(int index)

Feature names interested in monitoring. These should be a subset of the input feature names specified in the monitoring schema. If the field is not specified all features outlied in the monitoring schema will be used.

repeated string features = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The features at the given index.

getFeaturesBytes(int index)

public ByteString getFeaturesBytes(int index)

Feature names interested in monitoring. These should be a subset of the input feature names specified in the monitoring schema. If the field is not specified all features outlied in the monitoring schema will be used.

repeated string features = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the features at the given index.

getFeaturesCount()

public int getFeaturesCount()

Feature names interested in monitoring. These should be a subset of the input feature names specified in the monitoring schema. If the field is not specified all features outlied in the monitoring schema will be used.

repeated string features = 1;

Returns
Type Description
int

The count of features.

getFeaturesList()

public ProtocolStringList getFeaturesList()

Feature names interested in monitoring. These should be a subset of the input feature names specified in the monitoring schema. If the field is not specified all features outlied in the monitoring schema will be used.

repeated string features = 1;

Returns
Type Description
ProtocolStringList

A list containing the features.

getMutableFeatureAlertConditions() (deprecated)

public Map<String,ModelMonitoringAlertCondition> getMutableFeatureAlertConditions()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ModelMonitoringAlertCondition>

hasBatchExplanationDedicatedResources()

public boolean hasBatchExplanationDedicatedResources()

The config of resources used by the Model Monitoring during the batch explanation for non-AutoML models. If not set, n1-standard-2 machine type will be used by default.

.google.cloud.aiplatform.v1beta1.BatchDedicatedResources batch_explanation_dedicated_resources = 4;

Returns
Type Description
boolean

Whether the batchExplanationDedicatedResources field is set.

hasDefaultAlertCondition()

public boolean hasDefaultAlertCondition()

Default alert condition for all the features.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition default_alert_condition = 2;

Returns
Type Description
boolean

Whether the defaultAlertCondition field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBatchExplanationDedicatedResources(BatchDedicatedResources value)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder mergeBatchExplanationDedicatedResources(BatchDedicatedResources value)

The config of resources used by the Model Monitoring during the batch explanation for non-AutoML models. If not set, n1-standard-2 machine type will be used by default.

.google.cloud.aiplatform.v1beta1.BatchDedicatedResources batch_explanation_dedicated_resources = 4;

Parameter
Name Description
value BatchDedicatedResources
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

mergeDefaultAlertCondition(ModelMonitoringAlertCondition value)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder mergeDefaultAlertCondition(ModelMonitoringAlertCondition value)

Default alert condition for all the features.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition default_alert_condition = 2;

Parameter
Name Description
value ModelMonitoringAlertCondition
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

mergeFrom(ModelMonitoringObjectiveSpec.FeatureAttributionSpec other)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder mergeFrom(ModelMonitoringObjectiveSpec.FeatureAttributionSpec other)
Parameter
Name Description
other ModelMonitoringObjectiveSpec.FeatureAttributionSpec
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder
Overrides

putAllFeatureAlertConditions(Map<String,ModelMonitoringAlertCondition> values)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder putAllFeatureAlertConditions(Map<String,ModelMonitoringAlertCondition> values)

Per feature alert condition will override default alert condition.

map<string, .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition> feature_alert_conditions = 3;

Parameter
Name Description
values Map<String,ModelMonitoringAlertCondition>
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

putFeatureAlertConditions(String key, ModelMonitoringAlertCondition value)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder putFeatureAlertConditions(String key, ModelMonitoringAlertCondition value)

Per feature alert condition will override default alert condition.

map<string, .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition> feature_alert_conditions = 3;

Parameters
Name Description
key String
value ModelMonitoringAlertCondition
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

putFeatureAlertConditionsBuilderIfAbsent(String key)

public ModelMonitoringAlertCondition.Builder putFeatureAlertConditionsBuilderIfAbsent(String key)

Per feature alert condition will override default alert condition.

map<string, .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition> feature_alert_conditions = 3;

Parameter
Name Description
key String
Returns
Type Description
ModelMonitoringAlertCondition.Builder

removeFeatureAlertConditions(String key)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder removeFeatureAlertConditions(String key)

Per feature alert condition will override default alert condition.

map<string, .google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition> feature_alert_conditions = 3;

Parameter
Name Description
key String
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

setBatchExplanationDedicatedResources(BatchDedicatedResources value)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder setBatchExplanationDedicatedResources(BatchDedicatedResources value)

The config of resources used by the Model Monitoring during the batch explanation for non-AutoML models. If not set, n1-standard-2 machine type will be used by default.

.google.cloud.aiplatform.v1beta1.BatchDedicatedResources batch_explanation_dedicated_resources = 4;

Parameter
Name Description
value BatchDedicatedResources
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

setBatchExplanationDedicatedResources(BatchDedicatedResources.Builder builderForValue)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder setBatchExplanationDedicatedResources(BatchDedicatedResources.Builder builderForValue)

The config of resources used by the Model Monitoring during the batch explanation for non-AutoML models. If not set, n1-standard-2 machine type will be used by default.

.google.cloud.aiplatform.v1beta1.BatchDedicatedResources batch_explanation_dedicated_resources = 4;

Parameter
Name Description
builderForValue BatchDedicatedResources.Builder
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

setDefaultAlertCondition(ModelMonitoringAlertCondition value)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder setDefaultAlertCondition(ModelMonitoringAlertCondition value)

Default alert condition for all the features.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition default_alert_condition = 2;

Parameter
Name Description
value ModelMonitoringAlertCondition
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

setDefaultAlertCondition(ModelMonitoringAlertCondition.Builder builderForValue)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder setDefaultAlertCondition(ModelMonitoringAlertCondition.Builder builderForValue)

Default alert condition for all the features.

.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertCondition default_alert_condition = 2;

Parameter
Name Description
builderForValue ModelMonitoringAlertCondition.Builder
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

setFeatures(int index, String value)

public ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder setFeatures(int index, String value)

Feature names interested in monitoring. These should be a subset of the input feature names specified in the monitoring schema. If the field is not specified all features outlied in the monitoring schema will be used.

repeated string features = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The features to set.

Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ModelMonitoringObjectiveSpec.FeatureAttributionSpec.Builder
Overrides