Package org.mlflow.api.proto
Class Assessments.Expectation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
org.mlflow.api.proto.Assessments.Expectation.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,Assessments.ExpectationOrBuilder
- Enclosing class:
- Assessments.Expectation
public static final class Assessments.Expectation.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
implements Assessments.ExpectationOrBuilder
An expectation for the values or guidelines for the outputs that a model or agent should produce from the inputs contained in the trace.Protobuf type
mlflow.assessments.Expectation
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The value of the expecation-based assessment serialized as a string in a specified format.The value of the expectation-based assessment.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The value of the expecation-based assessment serialized as a string in a specified format.The value of the expecation-based assessment serialized as a string in a specified format.The value of the expecation-based assessment serialized as a string in a specified format.com.google.protobuf.Value
getValue()
The value of the expectation-based assessment.com.google.protobuf.Value.Builder
The value of the expectation-based assessment.com.google.protobuf.ValueOrBuilder
The value of the expectation-based assessment.boolean
The value of the expecation-based assessment serialized as a string in a specified format.boolean
hasValue()
The value of the expectation-based assessment.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(Assessments.Expectation other) The value of the expecation-based assessment serialized as a string in a specified format.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) mergeValue
(com.google.protobuf.Value value) The value of the expectation-based assessment.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The value of the expecation-based assessment serialized as a string in a specified format.setSerializedValue
(Assessments.Expectation.SerializedValue.Builder builderForValue) The value of the expecation-based assessment serialized as a string in a specified format.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setValue
(com.google.protobuf.Value value) The value of the expectation-based assessment.setValue
(com.google.protobuf.Value.Builder builderForValue) The value of the expectation-based assessment.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
-
setField
public Assessments.Expectation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
-
clearField
public Assessments.Expectation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
-
clearOneof
public Assessments.Expectation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
-
setRepeatedField
public Assessments.Expectation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
-
addRepeatedField
public Assessments.Expectation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Assessments.Expectation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
-
mergeFrom
public Assessments.Expectation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Assessments.Expectation.Builder>
- Throws:
IOException
-
hasValue
public boolean hasValue()The value of the expectation-based assessment. This uses ``google.protobuf.Value`` under the hood to support a flexible schema of expectation values but is validated to constrain it to specific types. This means the value must be JSON conforming to one of the following supported types: * Numeric values like integers or floats * Boolean values * Text value (can contain JSON text the user wishes to store, but it will only be searchable as text) * List values containing only strings (empty lists allowed). Other values like null, structs, non-string lists etc. will be rejected. However, they can instead be serialized as a string and stored in the ``serialized_value`` field instead. Only one of either ``serialized_value`` or ``value`` may be defined. We do not support these other formats directly despite using google.protobuf.Value due to security risks around their serialization and deserialization.
optional .google.protobuf.Value value = 2;
- Specified by:
hasValue
in interfaceAssessments.ExpectationOrBuilder
- Returns:
- Whether the value field is set.
-
getValue
public com.google.protobuf.Value getValue()The value of the expectation-based assessment. This uses ``google.protobuf.Value`` under the hood to support a flexible schema of expectation values but is validated to constrain it to specific types. This means the value must be JSON conforming to one of the following supported types: * Numeric values like integers or floats * Boolean values * Text value (can contain JSON text the user wishes to store, but it will only be searchable as text) * List values containing only strings (empty lists allowed). Other values like null, structs, non-string lists etc. will be rejected. However, they can instead be serialized as a string and stored in the ``serialized_value`` field instead. Only one of either ``serialized_value`` or ``value`` may be defined. We do not support these other formats directly despite using google.protobuf.Value due to security risks around their serialization and deserialization.
optional .google.protobuf.Value value = 2;
- Specified by:
getValue
in interfaceAssessments.ExpectationOrBuilder
- Returns:
- The value.
-
setValue
The value of the expectation-based assessment. This uses ``google.protobuf.Value`` under the hood to support a flexible schema of expectation values but is validated to constrain it to specific types. This means the value must be JSON conforming to one of the following supported types: * Numeric values like integers or floats * Boolean values * Text value (can contain JSON text the user wishes to store, but it will only be searchable as text) * List values containing only strings (empty lists allowed). Other values like null, structs, non-string lists etc. will be rejected. However, they can instead be serialized as a string and stored in the ``serialized_value`` field instead. Only one of either ``serialized_value`` or ``value`` may be defined. We do not support these other formats directly despite using google.protobuf.Value due to security risks around their serialization and deserialization.
optional .google.protobuf.Value value = 2;
-
setValue
The value of the expectation-based assessment. This uses ``google.protobuf.Value`` under the hood to support a flexible schema of expectation values but is validated to constrain it to specific types. This means the value must be JSON conforming to one of the following supported types: * Numeric values like integers or floats * Boolean values * Text value (can contain JSON text the user wishes to store, but it will only be searchable as text) * List values containing only strings (empty lists allowed). Other values like null, structs, non-string lists etc. will be rejected. However, they can instead be serialized as a string and stored in the ``serialized_value`` field instead. Only one of either ``serialized_value`` or ``value`` may be defined. We do not support these other formats directly despite using google.protobuf.Value due to security risks around their serialization and deserialization.
optional .google.protobuf.Value value = 2;
-
mergeValue
The value of the expectation-based assessment. This uses ``google.protobuf.Value`` under the hood to support a flexible schema of expectation values but is validated to constrain it to specific types. This means the value must be JSON conforming to one of the following supported types: * Numeric values like integers or floats * Boolean values * Text value (can contain JSON text the user wishes to store, but it will only be searchable as text) * List values containing only strings (empty lists allowed). Other values like null, structs, non-string lists etc. will be rejected. However, they can instead be serialized as a string and stored in the ``serialized_value`` field instead. Only one of either ``serialized_value`` or ``value`` may be defined. We do not support these other formats directly despite using google.protobuf.Value due to security risks around their serialization and deserialization.
optional .google.protobuf.Value value = 2;
-
clearValue
The value of the expectation-based assessment. This uses ``google.protobuf.Value`` under the hood to support a flexible schema of expectation values but is validated to constrain it to specific types. This means the value must be JSON conforming to one of the following supported types: * Numeric values like integers or floats * Boolean values * Text value (can contain JSON text the user wishes to store, but it will only be searchable as text) * List values containing only strings (empty lists allowed). Other values like null, structs, non-string lists etc. will be rejected. However, they can instead be serialized as a string and stored in the ``serialized_value`` field instead. Only one of either ``serialized_value`` or ``value`` may be defined. We do not support these other formats directly despite using google.protobuf.Value due to security risks around their serialization and deserialization.
optional .google.protobuf.Value value = 2;
-
getValueBuilder
public com.google.protobuf.Value.Builder getValueBuilder()The value of the expectation-based assessment. This uses ``google.protobuf.Value`` under the hood to support a flexible schema of expectation values but is validated to constrain it to specific types. This means the value must be JSON conforming to one of the following supported types: * Numeric values like integers or floats * Boolean values * Text value (can contain JSON text the user wishes to store, but it will only be searchable as text) * List values containing only strings (empty lists allowed). Other values like null, structs, non-string lists etc. will be rejected. However, they can instead be serialized as a string and stored in the ``serialized_value`` field instead. Only one of either ``serialized_value`` or ``value`` may be defined. We do not support these other formats directly despite using google.protobuf.Value due to security risks around their serialization and deserialization.
optional .google.protobuf.Value value = 2;
-
getValueOrBuilder
public com.google.protobuf.ValueOrBuilder getValueOrBuilder()The value of the expectation-based assessment. This uses ``google.protobuf.Value`` under the hood to support a flexible schema of expectation values but is validated to constrain it to specific types. This means the value must be JSON conforming to one of the following supported types: * Numeric values like integers or floats * Boolean values * Text value (can contain JSON text the user wishes to store, but it will only be searchable as text) * List values containing only strings (empty lists allowed). Other values like null, structs, non-string lists etc. will be rejected. However, they can instead be serialized as a string and stored in the ``serialized_value`` field instead. Only one of either ``serialized_value`` or ``value`` may be defined. We do not support these other formats directly despite using google.protobuf.Value due to security risks around their serialization and deserialization.
optional .google.protobuf.Value value = 2;
- Specified by:
getValueOrBuilder
in interfaceAssessments.ExpectationOrBuilder
-
hasSerializedValue
public boolean hasSerializedValue()The value of the expecation-based assessment serialized as a string in a specified format. Only one of either ``serialized_value`` or ``value`` may be defined.
optional .mlflow.assessments.Expectation.SerializedValue serialized_value = 3;
- Specified by:
hasSerializedValue
in interfaceAssessments.ExpectationOrBuilder
- Returns:
- Whether the serializedValue field is set.
-
getSerializedValue
The value of the expecation-based assessment serialized as a string in a specified format. Only one of either ``serialized_value`` or ``value`` may be defined.
optional .mlflow.assessments.Expectation.SerializedValue serialized_value = 3;
- Specified by:
getSerializedValue
in interfaceAssessments.ExpectationOrBuilder
- Returns:
- The serializedValue.
-
setSerializedValue
public Assessments.Expectation.Builder setSerializedValue(Assessments.Expectation.SerializedValue value) The value of the expecation-based assessment serialized as a string in a specified format. Only one of either ``serialized_value`` or ``value`` may be defined.
optional .mlflow.assessments.Expectation.SerializedValue serialized_value = 3;
-
setSerializedValue
public Assessments.Expectation.Builder setSerializedValue(Assessments.Expectation.SerializedValue.Builder builderForValue) The value of the expecation-based assessment serialized as a string in a specified format. Only one of either ``serialized_value`` or ``value`` may be defined.
optional .mlflow.assessments.Expectation.SerializedValue serialized_value = 3;
-
mergeSerializedValue
public Assessments.Expectation.Builder mergeSerializedValue(Assessments.Expectation.SerializedValue value) The value of the expecation-based assessment serialized as a string in a specified format. Only one of either ``serialized_value`` or ``value`` may be defined.
optional .mlflow.assessments.Expectation.SerializedValue serialized_value = 3;
-
clearSerializedValue
The value of the expecation-based assessment serialized as a string in a specified format. Only one of either ``serialized_value`` or ``value`` may be defined.
optional .mlflow.assessments.Expectation.SerializedValue serialized_value = 3;
-
getSerializedValueBuilder
The value of the expecation-based assessment serialized as a string in a specified format. Only one of either ``serialized_value`` or ``value`` may be defined.
optional .mlflow.assessments.Expectation.SerializedValue serialized_value = 3;
-
getSerializedValueOrBuilder
The value of the expecation-based assessment serialized as a string in a specified format. Only one of either ``serialized_value`` or ``value`` may be defined.
optional .mlflow.assessments.Expectation.SerializedValue serialized_value = 3;
- Specified by:
getSerializedValueOrBuilder
in interfaceAssessments.ExpectationOrBuilder
-
setUnknownFields
public final Assessments.Expectation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
-
mergeUnknownFields
public final Assessments.Expectation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
-