Class Service.Assessment

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable, Service.AssessmentOrBuilder
    Enclosing class:
    Service

    public static final class Service.Assessment
    extends com.google.protobuf.GeneratedMessageV3
    implements Service.AssessmentOrBuilder
     Data and metadata for an assessment of a trace.
     
    Protobuf type mlflow.Assessment
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasAssessmentId

        public boolean hasAssessmentId()
         Unique ID of the assessment.
         NB: This is not marked as required field via "validate_required", because the message is
          used in the context of creating a new assessment, where the ID is not known.
         
        optional string assessment_id = 1;
        Specified by:
        hasAssessmentId in interface Service.AssessmentOrBuilder
        Returns:
        Whether the assessmentId field is set.
      • getAssessmentId

        public java.lang.String getAssessmentId()
         Unique ID of the assessment.
         NB: This is not marked as required field via "validate_required", because the message is
          used in the context of creating a new assessment, where the ID is not known.
         
        optional string assessment_id = 1;
        Specified by:
        getAssessmentId in interface Service.AssessmentOrBuilder
        Returns:
        The assessmentId.
      • getAssessmentIdBytes

        public com.google.protobuf.ByteString getAssessmentIdBytes()
         Unique ID of the assessment.
         NB: This is not marked as required field via "validate_required", because the message is
          used in the context of creating a new assessment, where the ID is not known.
         
        optional string assessment_id = 1;
        Specified by:
        getAssessmentIdBytes in interface Service.AssessmentOrBuilder
        Returns:
        The bytes for assessmentId.
      • hasAssessmentName

        public boolean hasAssessmentName()
         Name of the assessment. The name must not contain ".".
         
        optional string assessment_name = 2 [(.mlflow.validate_required) = true];
        Specified by:
        hasAssessmentName in interface Service.AssessmentOrBuilder
        Returns:
        Whether the assessmentName field is set.
      • getAssessmentName

        public java.lang.String getAssessmentName()
         Name of the assessment. The name must not contain ".".
         
        optional string assessment_name = 2 [(.mlflow.validate_required) = true];
        Specified by:
        getAssessmentName in interface Service.AssessmentOrBuilder
        Returns:
        The assessmentName.
      • getAssessmentNameBytes

        public com.google.protobuf.ByteString getAssessmentNameBytes()
         Name of the assessment. The name must not contain ".".
         
        optional string assessment_name = 2 [(.mlflow.validate_required) = true];
        Specified by:
        getAssessmentNameBytes in interface Service.AssessmentOrBuilder
        Returns:
        The bytes for assessmentName.
      • hasTraceId

        public boolean hasTraceId()
         ID of the trace this assessment is associated with.
         
        optional string trace_id = 3;
        Specified by:
        hasTraceId in interface Service.AssessmentOrBuilder
        Returns:
        Whether the traceId field is set.
      • getTraceId

        public java.lang.String getTraceId()
         ID of the trace this assessment is associated with.
         
        optional string trace_id = 3;
        Specified by:
        getTraceId in interface Service.AssessmentOrBuilder
        Returns:
        The traceId.
      • getTraceIdBytes

        public com.google.protobuf.ByteString getTraceIdBytes()
         ID of the trace this assessment is associated with.
         
        optional string trace_id = 3;
        Specified by:
        getTraceIdBytes in interface Service.AssessmentOrBuilder
        Returns:
        The bytes for traceId.
      • hasSpanId

        public boolean hasSpanId()
         ID of the span if the assessment is for a particular span (optional).
         
        optional string span_id = 4;
        Specified by:
        hasSpanId in interface Service.AssessmentOrBuilder
        Returns:
        Whether the spanId field is set.
      • getSpanId

        public java.lang.String getSpanId()
         ID of the span if the assessment is for a particular span (optional).
         
        optional string span_id = 4;
        Specified by:
        getSpanId in interface Service.AssessmentOrBuilder
        Returns:
        The spanId.
      • getSpanIdBytes

        public com.google.protobuf.ByteString getSpanIdBytes()
         ID of the span if the assessment is for a particular span (optional).
         
        optional string span_id = 4;
        Specified by:
        getSpanIdBytes in interface Service.AssessmentOrBuilder
        Returns:
        The bytes for spanId.
      • hasSource

        public boolean hasSource()
         The source this assessment came from.
         
        optional .mlflow.AssessmentSource source = 5;
        Specified by:
        hasSource in interface Service.AssessmentOrBuilder
        Returns:
        Whether the source field is set.
      • hasCreateTime

        public boolean hasCreateTime()
         The creation time of this assessment.
         
        optional .google.protobuf.Timestamp create_time = 6;
        Specified by:
        hasCreateTime in interface Service.AssessmentOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         The creation time of this assessment.
         
        optional .google.protobuf.Timestamp create_time = 6;
        Specified by:
        getCreateTime in interface Service.AssessmentOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         The creation time of this assessment.
         
        optional .google.protobuf.Timestamp create_time = 6;
        Specified by:
        getCreateTimeOrBuilder in interface Service.AssessmentOrBuilder
      • hasLastUpdateTime

        public boolean hasLastUpdateTime()
         The last update time of this assessment.
         
        optional .google.protobuf.Timestamp last_update_time = 7;
        Specified by:
        hasLastUpdateTime in interface Service.AssessmentOrBuilder
        Returns:
        Whether the lastUpdateTime field is set.
      • getLastUpdateTime

        public com.google.protobuf.Timestamp getLastUpdateTime()
         The last update time of this assessment.
         
        optional .google.protobuf.Timestamp last_update_time = 7;
        Specified by:
        getLastUpdateTime in interface Service.AssessmentOrBuilder
        Returns:
        The lastUpdateTime.
      • getLastUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder()
         The last update time of this assessment.
         
        optional .google.protobuf.Timestamp last_update_time = 7;
        Specified by:
        getLastUpdateTimeOrBuilder in interface Service.AssessmentOrBuilder
      • hasFeedback

        public boolean hasFeedback()
         The feedback on the trace from this assessment.
         
        .mlflow.Feedback feedback = 9;
        Specified by:
        hasFeedback in interface Service.AssessmentOrBuilder
        Returns:
        Whether the feedback field is set.
      • hasExpectation

        public boolean hasExpectation()
         A representation of the guidelines and/or expected response from the agent.
         
        .mlflow.Expectation expectation = 10;
        Specified by:
        hasExpectation in interface Service.AssessmentOrBuilder
        Returns:
        Whether the expectation field is set.
      • hasRationale

        public boolean hasRationale()
         Justification for the assessment.
         
        optional string rationale = 11;
        Specified by:
        hasRationale in interface Service.AssessmentOrBuilder
        Returns:
        Whether the rationale field is set.
      • getRationale

        public java.lang.String getRationale()
         Justification for the assessment.
         
        optional string rationale = 11;
        Specified by:
        getRationale in interface Service.AssessmentOrBuilder
        Returns:
        The rationale.
      • getRationaleBytes

        public com.google.protobuf.ByteString getRationaleBytes()
         Justification for the assessment.
         
        optional string rationale = 11;
        Specified by:
        getRationaleBytes in interface Service.AssessmentOrBuilder
        Returns:
        The bytes for rationale.
      • hasError

        public boolean hasError()
         An error encountered while computing the assessment.
         
        optional .mlflow.AssessmentError error = 12;
        Specified by:
        hasError in interface Service.AssessmentOrBuilder
        Returns:
        Whether the error field is set.
      • getMetadataCount

        public int getMetadataCount()
        Description copied from interface: Service.AssessmentOrBuilder
         Additional metadata describing the assessment and store additional information,
         such as the chunk relevance chunk_index. This metadata is required to be JSON-serializable.
         
        map<string, string> metadata = 13;
        Specified by:
        getMetadataCount in interface Service.AssessmentOrBuilder
      • containsMetadata

        public boolean containsMetadata​(java.lang.String key)
         Additional metadata describing the assessment and store additional information,
         such as the chunk relevance chunk_index. This metadata is required to be JSON-serializable.
         
        map<string, string> metadata = 13;
        Specified by:
        containsMetadata in interface Service.AssessmentOrBuilder
      • getMetadataMap

        public java.util.Map<java.lang.String,​java.lang.String> getMetadataMap()
         Additional metadata describing the assessment and store additional information,
         such as the chunk relevance chunk_index. This metadata is required to be JSON-serializable.
         
        map<string, string> metadata = 13;
        Specified by:
        getMetadataMap in interface Service.AssessmentOrBuilder
      • getMetadataOrDefault

        public java.lang.String getMetadataOrDefault​(java.lang.String key,
                                                     java.lang.String defaultValue)
         Additional metadata describing the assessment and store additional information,
         such as the chunk relevance chunk_index. This metadata is required to be JSON-serializable.
         
        map<string, string> metadata = 13;
        Specified by:
        getMetadataOrDefault in interface Service.AssessmentOrBuilder
      • getMetadataOrThrow

        public java.lang.String getMetadataOrThrow​(java.lang.String key)
         Additional metadata describing the assessment and store additional information,
         such as the chunk relevance chunk_index. This metadata is required to be JSON-serializable.
         
        map<string, string> metadata = 13;
        Specified by:
        getMetadataOrThrow in interface Service.AssessmentOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Service.Assessment parseFrom​(java.nio.ByteBuffer data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Service.Assessment parseFrom​(java.nio.ByteBuffer data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Service.Assessment parseFrom​(com.google.protobuf.ByteString data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Service.Assessment parseFrom​(com.google.protobuf.ByteString data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Service.Assessment parseFrom​(byte[] data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Service.Assessment parseFrom​(byte[] data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Service.Assessment parseFrom​(java.io.InputStream input)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Service.Assessment parseFrom​(java.io.InputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Service.Assessment parseDelimitedFrom​(java.io.InputStream input)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Service.Assessment parseDelimitedFrom​(java.io.InputStream input,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Service.Assessment parseFrom​(com.google.protobuf.CodedInputStream input)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Service.Assessment parseFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public Service.Assessment.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Service.Assessment.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Service.Assessment.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Service.Assessment> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Service.Assessment getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder