Package org.mlflow.api.proto
Class Assessments.Assessment
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.mlflow.api.proto.Assessments.Assessment
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.io.Serializable
,Assessments.AssessmentOrBuilder
- Enclosing class:
- Assessments
public static final class Assessments.Assessment extends com.google.protobuf.GeneratedMessageV3 implements Assessments.AssessmentOrBuilder
Data and metadata for an assessment of a trace.
Protobuf typemlflow.assessments.Assessment
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Assessments.Assessment.Builder
Data and metadata for an assessment of a trace.static class
Assessments.Assessment.ValueCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ASSESSMENT_ID_FIELD_NUMBER
static int
ASSESSMENT_NAME_FIELD_NUMBER
static int
CREATE_TIME_FIELD_NUMBER
static int
ERROR_FIELD_NUMBER
static int
EXPECTATION_FIELD_NUMBER
static int
FEEDBACK_FIELD_NUMBER
static int
LAST_UPDATE_TIME_FIELD_NUMBER
static int
METADATA_FIELD_NUMBER
static int
OVERRIDES_FIELD_NUMBER
static com.google.protobuf.Parser<Assessments.Assessment>
PARSER
Deprecated.static int
RATIONALE_FIELD_NUMBER
static int
SOURCE_FIELD_NUMBER
static int
SPAN_ID_FIELD_NUMBER
static int
TRACE_ID_FIELD_NUMBER
static int
VALID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsMetadata(java.lang.String key)
Additional metadata describing the assessment and store additional information, such as the chunk relevance chunk_index.boolean
equals(java.lang.Object obj)
java.lang.String
getAssessmentId()
Unique ID of the assessment.com.google.protobuf.ByteString
getAssessmentIdBytes()
Unique ID of the assessment.java.lang.String
getAssessmentName()
Name of the assessment.com.google.protobuf.ByteString
getAssessmentNameBytes()
Name of the assessment.com.google.protobuf.Timestamp
getCreateTime()
The creation time of this assessment.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
The creation time of this assessment.static Assessments.Assessment
getDefaultInstance()
Assessments.Assessment
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Assessments.AssessmentError
getError()
Deprecated.Assessments.AssessmentErrorOrBuilder
getErrorOrBuilder()
Deprecated.Assessments.Expectation
getExpectation()
A representation of the guidelines and/or expected response from the agent.Assessments.ExpectationOrBuilder
getExpectationOrBuilder()
A representation of the guidelines and/or expected response from the agent.Assessments.Feedback
getFeedback()
The feedback on the trace from this assessment.Assessments.FeedbackOrBuilder
getFeedbackOrBuilder()
The feedback on the trace from this assessment.com.google.protobuf.Timestamp
getLastUpdateTime()
The last update time of this assessment.com.google.protobuf.TimestampOrBuilder
getLastUpdateTimeOrBuilder()
The last update time of this assessment.java.util.Map<java.lang.String,java.lang.String>
getMetadata()
Deprecated.int
getMetadataCount()
Additional metadata describing the assessment and store additional information, such as the chunk relevance chunk_index.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.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.java.lang.String
getMetadataOrThrow(java.lang.String key)
Additional metadata describing the assessment and store additional information, such as the chunk relevance chunk_index.java.lang.String
getOverrides()
The ID of the assessment which this assessment overrides.com.google.protobuf.ByteString
getOverridesBytes()
The ID of the assessment which this assessment overrides.com.google.protobuf.Parser<Assessments.Assessment>
getParserForType()
java.lang.String
getRationale()
Justification for the assessment.com.google.protobuf.ByteString
getRationaleBytes()
Justification for the assessment.int
getSerializedSize()
Assessments.AssessmentSource
getSource()
The source this assessment came from.Assessments.AssessmentSourceOrBuilder
getSourceOrBuilder()
The source this assessment came from.java.lang.String
getSpanId()
ID of the span if the assessment is for a particular span (optional).com.google.protobuf.ByteString
getSpanIdBytes()
ID of the span if the assessment is for a particular span (optional).java.lang.String
getTraceId()
ID of the trace this assessment is associated with.com.google.protobuf.ByteString
getTraceIdBytes()
ID of the trace this assessment is associated with.com.google.protobuf.UnknownFieldSet
getUnknownFields()
boolean
getValid()
Whether this assessment is valid (i.e.Assessments.Assessment.ValueCase
getValueCase()
boolean
hasAssessmentId()
Unique ID of the assessment.boolean
hasAssessmentName()
Name of the assessment.boolean
hasCreateTime()
The creation time of this assessment.boolean
hasError()
Deprecated.boolean
hasExpectation()
A representation of the guidelines and/or expected response from the agent.boolean
hasFeedback()
The feedback on the trace from this assessment.int
hashCode()
boolean
hasLastUpdateTime()
The last update time of this assessment.boolean
hasOverrides()
The ID of the assessment which this assessment overrides.boolean
hasRationale()
Justification for the assessment.boolean
hasSource()
The source this assessment came from.boolean
hasSpanId()
ID of the span if the assessment is for a particular span (optional).boolean
hasTraceId()
ID of the trace this assessment is associated with.boolean
hasValid()
Whether this assessment is valid (i.e.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static Assessments.Assessment.Builder
newBuilder()
static Assessments.Assessment.Builder
newBuilder(Assessments.Assessment prototype)
Assessments.Assessment.Builder
newBuilderForType()
protected Assessments.Assessment.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected java.lang.Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Assessments.Assessment
parseDelimitedFrom(java.io.InputStream input)
static Assessments.Assessment
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Assessments.Assessment
parseFrom(byte[] data)
static Assessments.Assessment
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Assessments.Assessment
parseFrom(com.google.protobuf.ByteString data)
static Assessments.Assessment
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Assessments.Assessment
parseFrom(com.google.protobuf.CodedInputStream input)
static Assessments.Assessment
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Assessments.Assessment
parseFrom(java.io.InputStream input)
static Assessments.Assessment
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Assessments.Assessment
parseFrom(java.nio.ByteBuffer data)
static Assessments.Assessment
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Assessments.Assessment>
parser()
Assessments.Assessment.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ASSESSMENT_ID_FIELD_NUMBER
public static final int ASSESSMENT_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ASSESSMENT_NAME_FIELD_NUMBER
public static final int ASSESSMENT_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRACE_ID_FIELD_NUMBER
public static final int TRACE_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SPAN_ID_FIELD_NUMBER
public static final int SPAN_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LAST_UPDATE_TIME_FIELD_NUMBER
public static final int LAST_UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FEEDBACK_FIELD_NUMBER
public static final int FEEDBACK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXPECTATION_FIELD_NUMBER
public static final int EXPECTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RATIONALE_FIELD_NUMBER
public static final int RATIONALE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OVERRIDES_FIELD_NUMBER
public static final int OVERRIDES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VALID_FIELD_NUMBER
public static final int VALID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Assessments.Assessment> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.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 classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getValueCase
public Assessments.Assessment.ValueCase getValueCase()
- Specified by:
getValueCase
in interfaceAssessments.AssessmentOrBuilder
-
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 interfaceAssessments.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 interfaceAssessments.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 interfaceAssessments.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 interfaceAssessments.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 interfaceAssessments.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 interfaceAssessments.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 interfaceAssessments.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 interfaceAssessments.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 interfaceAssessments.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 interfaceAssessments.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 interfaceAssessments.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 interfaceAssessments.AssessmentOrBuilder
- Returns:
- The bytes for spanId.
-
hasSource
public boolean hasSource()
The source this assessment came from.
optional .mlflow.assessments.AssessmentSource source = 5;
- Specified by:
hasSource
in interfaceAssessments.AssessmentOrBuilder
- Returns:
- Whether the source field is set.
-
getSource
public Assessments.AssessmentSource getSource()
The source this assessment came from.
optional .mlflow.assessments.AssessmentSource source = 5;
- Specified by:
getSource
in interfaceAssessments.AssessmentOrBuilder
- Returns:
- The source.
-
getSourceOrBuilder
public Assessments.AssessmentSourceOrBuilder getSourceOrBuilder()
The source this assessment came from.
optional .mlflow.assessments.AssessmentSource source = 5;
- Specified by:
getSourceOrBuilder
in interfaceAssessments.AssessmentOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
The creation time of this assessment.
optional .google.protobuf.Timestamp create_time = 6;
- Specified by:
hasCreateTime
in interfaceAssessments.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 interfaceAssessments.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 interfaceAssessments.AssessmentOrBuilder
-
hasLastUpdateTime
public boolean hasLastUpdateTime()
The last update time of this assessment.
optional .google.protobuf.Timestamp last_update_time = 7;
- Specified by:
hasLastUpdateTime
in interfaceAssessments.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 interfaceAssessments.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 interfaceAssessments.AssessmentOrBuilder
-
hasFeedback
public boolean hasFeedback()
The feedback on the trace from this assessment.
.mlflow.assessments.Feedback feedback = 9;
- Specified by:
hasFeedback
in interfaceAssessments.AssessmentOrBuilder
- Returns:
- Whether the feedback field is set.
-
getFeedback
public Assessments.Feedback getFeedback()
The feedback on the trace from this assessment.
.mlflow.assessments.Feedback feedback = 9;
- Specified by:
getFeedback
in interfaceAssessments.AssessmentOrBuilder
- Returns:
- The feedback.
-
getFeedbackOrBuilder
public Assessments.FeedbackOrBuilder getFeedbackOrBuilder()
The feedback on the trace from this assessment.
.mlflow.assessments.Feedback feedback = 9;
- Specified by:
getFeedbackOrBuilder
in interfaceAssessments.AssessmentOrBuilder
-
hasExpectation
public boolean hasExpectation()
A representation of the guidelines and/or expected response from the agent.
.mlflow.assessments.Expectation expectation = 10;
- Specified by:
hasExpectation
in interfaceAssessments.AssessmentOrBuilder
- Returns:
- Whether the expectation field is set.
-
getExpectation
public Assessments.Expectation getExpectation()
A representation of the guidelines and/or expected response from the agent.
.mlflow.assessments.Expectation expectation = 10;
- Specified by:
getExpectation
in interfaceAssessments.AssessmentOrBuilder
- Returns:
- The expectation.
-
getExpectationOrBuilder
public Assessments.ExpectationOrBuilder getExpectationOrBuilder()
A representation of the guidelines and/or expected response from the agent.
.mlflow.assessments.Expectation expectation = 10;
- Specified by:
getExpectationOrBuilder
in interfaceAssessments.AssessmentOrBuilder
-
hasRationale
public boolean hasRationale()
Justification for the assessment.
optional string rationale = 11;
- Specified by:
hasRationale
in interfaceAssessments.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 interfaceAssessments.AssessmentOrBuilder
- Returns:
- The rationale.
-
getRationaleBytes
public com.google.protobuf.ByteString getRationaleBytes()
Justification for the assessment.
optional string rationale = 11;
- Specified by:
getRationaleBytes
in interfaceAssessments.AssessmentOrBuilder
- Returns:
- The bytes for rationale.
-
hasError
@Deprecated public boolean hasError()
Deprecated.[Deprecated, use the ``error`` field in ``feedback`` instead] An error encountered while computing the assessment.
optional .mlflow.assessments.AssessmentError error = 12 [deprecated = true];
- Specified by:
hasError
in interfaceAssessments.AssessmentOrBuilder
- Returns:
- Whether the error field is set.
-
getError
@Deprecated public Assessments.AssessmentError getError()
Deprecated.[Deprecated, use the ``error`` field in ``feedback`` instead] An error encountered while computing the assessment.
optional .mlflow.assessments.AssessmentError error = 12 [deprecated = true];
- Specified by:
getError
in interfaceAssessments.AssessmentOrBuilder
- Returns:
- The error.
-
getErrorOrBuilder
@Deprecated public Assessments.AssessmentErrorOrBuilder getErrorOrBuilder()
Deprecated.[Deprecated, use the ``error`` field in ``feedback`` instead] An error encountered while computing the assessment.
optional .mlflow.assessments.AssessmentError error = 12 [deprecated = true];
- Specified by:
getErrorOrBuilder
in interfaceAssessments.AssessmentOrBuilder
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:Assessments.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 interfaceAssessments.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 interfaceAssessments.AssessmentOrBuilder
-
getMetadata
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMetadata()
Deprecated.UsegetMetadataMap()
instead.- Specified by:
getMetadata
in interfaceAssessments.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 interfaceAssessments.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 interfaceAssessments.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 interfaceAssessments.AssessmentOrBuilder
-
hasOverrides
public boolean hasOverrides()
The ID of the assessment which this assessment overrides.
optional string overrides = 14;
- Specified by:
hasOverrides
in interfaceAssessments.AssessmentOrBuilder
- Returns:
- Whether the overrides field is set.
-
getOverrides
public java.lang.String getOverrides()
The ID of the assessment which this assessment overrides.
optional string overrides = 14;
- Specified by:
getOverrides
in interfaceAssessments.AssessmentOrBuilder
- Returns:
- The overrides.
-
getOverridesBytes
public com.google.protobuf.ByteString getOverridesBytes()
The ID of the assessment which this assessment overrides.
optional string overrides = 14;
- Specified by:
getOverridesBytes
in interfaceAssessments.AssessmentOrBuilder
- Returns:
- The bytes for overrides.
-
hasValid
public boolean hasValid()
Whether this assessment is valid (i.e. has not been superseded) defaults to true, and is set to false if a new superseding assessment is created.
optional bool valid = 15 [default = true];
- Specified by:
hasValid
in interfaceAssessments.AssessmentOrBuilder
- Returns:
- Whether the valid field is set.
-
getValid
public boolean getValid()
Whether this assessment is valid (i.e. has not been superseded) defaults to true, and is set to false if a new superseding assessment is created.
optional bool valid = 15 [default = true];
- Specified by:
getValid
in interfaceAssessments.AssessmentOrBuilder
- Returns:
- The valid.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Assessments.Assessment parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Assessments.Assessment parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Assessments.Assessment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Assessments.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 Assessments.Assessment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Assessments.Assessment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Assessments.Assessment parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Assessments.Assessment parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Assessments.Assessment parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Assessments.Assessment parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Assessments.Assessment parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Assessments.Assessment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Assessments.Assessment.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Assessments.Assessment.Builder newBuilder()
-
newBuilder
public static Assessments.Assessment.Builder newBuilder(Assessments.Assessment prototype)
-
toBuilder
public Assessments.Assessment.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Assessments.Assessment.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Assessments.Assessment getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Assessments.Assessment> parser()
-
getParserForType
public com.google.protobuf.Parser<Assessments.Assessment> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Assessments.Assessment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-