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,java.lang.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 typemlflow.assessments.Expectation 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Assessments.Expectation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Assessments.Expectationbuild()Assessments.ExpectationbuildPartial()Assessments.Expectation.Builderclear()Assessments.Expectation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Assessments.Expectation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Assessments.Expectation.BuilderclearSerializedValue()The value of the expecation-based assessment serialized as a string in a specified format.Assessments.Expectation.BuilderclearValue()The value of the expectation-based assessment.Assessments.Expectation.Builderclone()Assessments.ExpectationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Assessments.Expectation.SerializedValuegetSerializedValue()The value of the expecation-based assessment serialized as a string in a specified format.Assessments.Expectation.SerializedValue.BuildergetSerializedValueBuilder()The value of the expecation-based assessment serialized as a string in a specified format.Assessments.Expectation.SerializedValueOrBuildergetSerializedValueOrBuilder()The value of the expecation-based assessment serialized as a string in a specified format.com.google.protobuf.ValuegetValue()The value of the expectation-based assessment.com.google.protobuf.Value.BuildergetValueBuilder()The value of the expectation-based assessment.com.google.protobuf.ValueOrBuildergetValueOrBuilder()The value of the expectation-based assessment.booleanhasSerializedValue()The value of the expecation-based assessment serialized as a string in a specified format.booleanhasValue()The value of the expectation-based assessment.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Assessments.Expectation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Assessments.Expectation.BuildermergeFrom(com.google.protobuf.Message other)Assessments.Expectation.BuildermergeFrom(Assessments.Expectation other)Assessments.Expectation.BuildermergeSerializedValue(Assessments.Expectation.SerializedValue value)The value of the expecation-based assessment serialized as a string in a specified format.Assessments.Expectation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Assessments.Expectation.BuildermergeValue(com.google.protobuf.Value value)The value of the expectation-based assessment.Assessments.Expectation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Assessments.Expectation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Assessments.Expectation.BuildersetSerializedValue(Assessments.Expectation.SerializedValue value)The value of the expecation-based assessment serialized as a string in a specified format.Assessments.Expectation.BuildersetSerializedValue(Assessments.Expectation.SerializedValue.Builder builderForValue)The value of the expecation-based assessment serialized as a string in a specified format.Assessments.Expectation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Assessments.Expectation.BuildersetValue(com.google.protobuf.Value value)The value of the expectation-based assessment.Assessments.Expectation.BuildersetValue(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 
 - 
 
 - 
 
- 
- 
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<Assessments.Expectation.Builder>
 
- 
clear
public Assessments.Expectation.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<Assessments.Expectation.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<Assessments.Expectation.Builder>
 
- 
getDefaultInstanceForType
public Assessments.Expectation getDefaultInstanceForType()
- Specified by:
 getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
 getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
 
- 
build
public Assessments.Expectation build()
- Specified by:
 buildin interfacecom.google.protobuf.Message.Builder- Specified by:
 buildin interfacecom.google.protobuf.MessageLite.Builder
 
- 
buildPartial
public Assessments.Expectation buildPartial()
- Specified by:
 buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
 buildPartialin interfacecom.google.protobuf.MessageLite.Builder
 
- 
clone
public Assessments.Expectation.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<Assessments.Expectation.Builder>
 
- 
setField
public Assessments.Expectation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
 setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
 setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
 
- 
clearField
public Assessments.Expectation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
 clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
 clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
 
- 
clearOneof
public Assessments.Expectation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
 clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
 clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
 
- 
setRepeatedField
public Assessments.Expectation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
 setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
 setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
 
- 
addRepeatedField
public Assessments.Expectation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
 addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
 addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
 
- 
mergeFrom
public Assessments.Expectation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
 mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
 mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Assessments.Expectation.Builder>
 
- 
mergeFrom
public Assessments.Expectation.Builder mergeFrom(Assessments.Expectation other)
 
- 
isInitialized
public final boolean isInitialized()
- Specified by:
 isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
 isInitializedin 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 java.io.IOException
- Specified by:
 mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
 mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
 mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Assessments.Expectation.Builder>- Throws:
 java.io.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:
 hasValuein 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:
 getValuein interfaceAssessments.ExpectationOrBuilder- Returns:
 - The value.
 
 
- 
setValue
public Assessments.Expectation.Builder setValue(com.google.protobuf.Value value)
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
public Assessments.Expectation.Builder setValue(com.google.protobuf.Value.Builder builderForValue)
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
public Assessments.Expectation.Builder mergeValue(com.google.protobuf.Value value)
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
public Assessments.Expectation.Builder 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:
 getValueOrBuilderin 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:
 hasSerializedValuein interfaceAssessments.ExpectationOrBuilder- Returns:
 - Whether the serializedValue field is set.
 
 
- 
getSerializedValue
public Assessments.Expectation.SerializedValue 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:
 getSerializedValuein 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
public Assessments.Expectation.Builder 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
public Assessments.Expectation.SerializedValue.Builder 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
public Assessments.Expectation.SerializedValueOrBuilder 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:
 getSerializedValueOrBuilderin interfaceAssessments.ExpectationOrBuilder
 
- 
setUnknownFields
public final Assessments.Expectation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
 setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
 setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
 
- 
mergeUnknownFields
public final Assessments.Expectation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
 mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
 mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
 
 - 
 
 -