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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Assessments.Expectation
build()
Assessments.Expectation
buildPartial()
Assessments.Expectation.Builder
clear()
Assessments.Expectation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Assessments.Expectation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Assessments.Expectation.Builder
clearSerializedValue()
The value of the expecation-based assessment serialized as a string in a specified format.Assessments.Expectation.Builder
clearValue()
The value of the expectation-based assessment.Assessments.Expectation.Builder
clone()
Assessments.Expectation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Assessments.Expectation.SerializedValue
getSerializedValue()
The value of the expecation-based assessment serialized as a string in a specified format.Assessments.Expectation.SerializedValue.Builder
getSerializedValueBuilder()
The value of the expecation-based assessment serialized as a string in a specified format.Assessments.Expectation.SerializedValueOrBuilder
getSerializedValueOrBuilder()
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
getValueBuilder()
The value of the expectation-based assessment.com.google.protobuf.ValueOrBuilder
getValueOrBuilder()
The value of the expectation-based assessment.boolean
hasSerializedValue()
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
internalGetFieldAccessorTable()
boolean
isInitialized()
Assessments.Expectation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Assessments.Expectation.Builder
mergeFrom(com.google.protobuf.Message other)
Assessments.Expectation.Builder
mergeFrom(Assessments.Expectation other)
Assessments.Expectation.Builder
mergeSerializedValue(Assessments.Expectation.SerializedValue value)
The value of the expecation-based assessment serialized as a string in a specified format.Assessments.Expectation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Assessments.Expectation.Builder
mergeValue(com.google.protobuf.Value value)
The value of the expectation-based assessment.Assessments.Expectation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Assessments.Expectation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Assessments.Expectation.Builder
setSerializedValue(Assessments.Expectation.SerializedValue value)
The value of the expecation-based assessment serialized as a string in a specified format.Assessments.Expectation.Builder
setSerializedValue(Assessments.Expectation.SerializedValue.Builder builderForValue)
The value of the expecation-based assessment serialized as a string in a specified format.Assessments.Expectation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Assessments.Expectation.Builder
setValue(com.google.protobuf.Value value)
The value of the expectation-based assessment.Assessments.Expectation.Builder
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
-
-
-
-
Method Detail
-
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
public 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
public Assessments.Expectation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Assessments.Expectation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Assessments.Expectation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Assessments.Expectation.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, java.lang.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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Assessments.Expectation.Builder>
-
mergeFrom
public Assessments.Expectation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Assessments.Expectation.Builder>
-
mergeFrom
public Assessments.Expectation.Builder mergeFrom(Assessments.Expectation other)
-
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 java.io.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:
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:
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
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:
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
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:
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
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:
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>
-
-