Class ThresholdConfig.Builder (2.4.0)

public static final class ThresholdConfig.Builder extends GeneratedMessageV3.Builder<ThresholdConfig.Builder> implements ThresholdConfigOrBuilder

The config for feature monitoring threshold. Next ID: 3

Protobuf type google.cloud.aiplatform.v1.ThresholdConfig

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ThresholdConfig build()
Returns
TypeDescription
ThresholdConfig

buildPartial()

public ThresholdConfig buildPartial()
Returns
TypeDescription
ThresholdConfig

clear()

public ThresholdConfig.Builder clear()
Returns
TypeDescription
ThresholdConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearThreshold()

public ThresholdConfig.Builder clearThreshold()
Returns
TypeDescription
ThresholdConfig.Builder

clearValue()

public ThresholdConfig.Builder clearValue()

Specify a threshold value that can trigger the alert. If this threshold config is for feature distribution distance:

  1. For categorical feature, the distribution distance is calculated by L-inifinity norm.
  2. For numerical feature, the distribution distance is calculated by Jensen\u2013Shannon divergence. Each feature must have a non-zero threshold if they need to be monitored. Otherwise no alert will be triggered for that feature.

double value = 1;

Returns
TypeDescription
ThresholdConfig.Builder

This builder for chaining.

clone()

public ThresholdConfig.Builder clone()
Returns
TypeDescription
ThresholdConfig.Builder
Overrides

getDefaultInstanceForType()

public ThresholdConfig getDefaultInstanceForType()
Returns
TypeDescription
ThresholdConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getThresholdCase()

public ThresholdConfig.ThresholdCase getThresholdCase()
Returns
TypeDescription
ThresholdConfig.ThresholdCase

getValue()

public double getValue()

Specify a threshold value that can trigger the alert. If this threshold config is for feature distribution distance:

  1. For categorical feature, the distribution distance is calculated by L-inifinity norm.
  2. For numerical feature, the distribution distance is calculated by Jensen\u2013Shannon divergence. Each feature must have a non-zero threshold if they need to be monitored. Otherwise no alert will be triggered for that feature.

double value = 1;

Returns
TypeDescription
double

The value.

hasValue()

public boolean hasValue()

Specify a threshold value that can trigger the alert. If this threshold config is for feature distribution distance:

  1. For categorical feature, the distribution distance is calculated by L-inifinity norm.
  2. For numerical feature, the distribution distance is calculated by Jensen\u2013Shannon divergence. Each feature must have a non-zero threshold if they need to be monitored. Otherwise no alert will be triggered for that feature.

double value = 1;

Returns
TypeDescription
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ThresholdConfig other)

public ThresholdConfig.Builder mergeFrom(ThresholdConfig other)
Parameter
NameDescription
otherThresholdConfig
Returns
TypeDescription
ThresholdConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ThresholdConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ThresholdConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ThresholdConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ThresholdConfig.Builder
Overrides

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

public ThresholdConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ThresholdConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ThresholdConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ThresholdConfig.Builder
Overrides

setValue(double value)

public ThresholdConfig.Builder setValue(double value)

Specify a threshold value that can trigger the alert. If this threshold config is for feature distribution distance:

  1. For categorical feature, the distribution distance is calculated by L-inifinity norm.
  2. For numerical feature, the distribution distance is calculated by Jensen\u2013Shannon divergence. Each feature must have a non-zero threshold if they need to be monitored. Otherwise no alert will be triggered for that feature.

double value = 1;

Parameter
NameDescription
valuedouble

The value to set.

Returns
TypeDescription
ThresholdConfig.Builder

This builder for chaining.