Class Evaluation
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.documentai.v1beta3.Evaluation
-
- All Implemented Interfaces:
EvaluationOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Evaluation extends com.google.protobuf.GeneratedMessageV3 implements EvaluationOrBuilder
An evaluation of a ProcessorVersion's performance.
Protobuf typegoogle.cloud.documentai.v1beta3.Evaluation- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEvaluation.BuilderAn evaluation of a ProcessorVersion's performance.static classEvaluation.ConfidenceLevelMetricsEvaluations metrics, at a specific confidence level.static interfaceEvaluation.ConfidenceLevelMetricsOrBuilderstatic classEvaluation.CountersEvaluation counters for the documents that were used.static interfaceEvaluation.CountersOrBuilderstatic classEvaluation.MetricsEvaluation metrics, either in aggregate or about a specific entity.static interfaceEvaluation.MetricsOrBuilderstatic classEvaluation.MultiConfidenceMetricsMetrics across multiple confidence levels.static interfaceEvaluation.MultiConfidenceMetricsOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intALL_ENTITIES_METRICS_FIELD_NUMBERstatic intCREATE_TIME_FIELD_NUMBERstatic intDOCUMENT_COUNTERS_FIELD_NUMBERstatic intENTITY_METRICS_FIELD_NUMBERstatic intKMS_KEY_NAME_FIELD_NUMBERstatic intKMS_KEY_VERSION_NAME_FIELD_NUMBERstatic intNAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsEntityMetrics(String key)Metrics across confidence levels, for different entities.booleanequals(Object obj)Evaluation.MultiConfidenceMetricsgetAllEntitiesMetrics()Metrics for all the entities in aggregate.Evaluation.MultiConfidenceMetricsOrBuildergetAllEntitiesMetricsOrBuilder()Metrics for all the entities in aggregate.com.google.protobuf.TimestampgetCreateTime()The time that the evaluation was created.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()The time that the evaluation was created.static EvaluationgetDefaultInstance()EvaluationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Evaluation.CountersgetDocumentCounters()Counters for the documents used in the evaluation.Evaluation.CountersOrBuildergetDocumentCountersOrBuilder()Counters for the documents used in the evaluation.Map<String,Evaluation.MultiConfidenceMetrics>getEntityMetrics()Deprecated.intgetEntityMetricsCount()Metrics across confidence levels, for different entities.Map<String,Evaluation.MultiConfidenceMetrics>getEntityMetricsMap()Metrics across confidence levels, for different entities.Evaluation.MultiConfidenceMetricsgetEntityMetricsOrDefault(String key, Evaluation.MultiConfidenceMetrics defaultValue)Metrics across confidence levels, for different entities.Evaluation.MultiConfidenceMetricsgetEntityMetricsOrThrow(String key)Metrics across confidence levels, for different entities.StringgetKmsKeyName()The KMS key name used for encryption.com.google.protobuf.ByteStringgetKmsKeyNameBytes()The KMS key name used for encryption.StringgetKmsKeyVersionName()The KMS key version with which data is encrypted.com.google.protobuf.ByteStringgetKmsKeyVersionNameBytes()The KMS key version with which data is encrypted.StringgetName()The resource name of the evaluation.com.google.protobuf.ByteStringgetNameBytes()The resource name of the evaluation.com.google.protobuf.Parser<Evaluation>getParserForType()intgetSerializedSize()booleanhasAllEntitiesMetrics()Metrics for all the entities in aggregate.booleanhasCreateTime()The time that the evaluation was created.booleanhasDocumentCounters()Counters for the documents used in the evaluation.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static Evaluation.BuildernewBuilder()static Evaluation.BuildernewBuilder(Evaluation prototype)Evaluation.BuildernewBuilderForType()protected Evaluation.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static EvaluationparseDelimitedFrom(InputStream input)static EvaluationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EvaluationparseFrom(byte[] data)static EvaluationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EvaluationparseFrom(com.google.protobuf.ByteString data)static EvaluationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EvaluationparseFrom(com.google.protobuf.CodedInputStream input)static EvaluationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EvaluationparseFrom(InputStream input)static EvaluationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EvaluationparseFrom(ByteBuffer data)static EvaluationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Evaluation>parser()Evaluation.BuildertoBuilder()voidwriteTo(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, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOCUMENT_COUNTERS_FIELD_NUMBER
public static final int DOCUMENT_COUNTERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALL_ENTITIES_METRICS_FIELD_NUMBER
public static final int ALL_ENTITIES_METRICS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENTITY_METRICS_FIELD_NUMBER
public static final int ENTITY_METRICS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KMS_KEY_NAME_FIELD_NUMBER
public static final int KMS_KEY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KMS_KEY_VERSION_NAME_FIELD_NUMBER
public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
The resource name of the evaluation. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}`string name = 1;- Specified by:
getNamein interfaceEvaluationOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The resource name of the evaluation. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}`string name = 1;- Specified by:
getNameBytesin interfaceEvaluationOrBuilder- Returns:
- The bytes for name.
-
hasCreateTime
public boolean hasCreateTime()
The time that the evaluation was created.
.google.protobuf.Timestamp create_time = 2;- Specified by:
hasCreateTimein interfaceEvaluationOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
The time that the evaluation was created.
.google.protobuf.Timestamp create_time = 2;- Specified by:
getCreateTimein interfaceEvaluationOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The time that the evaluation was created.
.google.protobuf.Timestamp create_time = 2;- Specified by:
getCreateTimeOrBuilderin interfaceEvaluationOrBuilder
-
hasDocumentCounters
public boolean hasDocumentCounters()
Counters for the documents used in the evaluation.
.google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 5;- Specified by:
hasDocumentCountersin interfaceEvaluationOrBuilder- Returns:
- Whether the documentCounters field is set.
-
getDocumentCounters
public Evaluation.Counters getDocumentCounters()
Counters for the documents used in the evaluation.
.google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 5;- Specified by:
getDocumentCountersin interfaceEvaluationOrBuilder- Returns:
- The documentCounters.
-
getDocumentCountersOrBuilder
public Evaluation.CountersOrBuilder getDocumentCountersOrBuilder()
Counters for the documents used in the evaluation.
.google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 5;- Specified by:
getDocumentCountersOrBuilderin interfaceEvaluationOrBuilder
-
hasAllEntitiesMetrics
public boolean hasAllEntitiesMetrics()
Metrics for all the entities in aggregate.
.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3;- Specified by:
hasAllEntitiesMetricsin interfaceEvaluationOrBuilder- Returns:
- Whether the allEntitiesMetrics field is set.
-
getAllEntitiesMetrics
public Evaluation.MultiConfidenceMetrics getAllEntitiesMetrics()
Metrics for all the entities in aggregate.
.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3;- Specified by:
getAllEntitiesMetricsin interfaceEvaluationOrBuilder- Returns:
- The allEntitiesMetrics.
-
getAllEntitiesMetricsOrBuilder
public Evaluation.MultiConfidenceMetricsOrBuilder getAllEntitiesMetricsOrBuilder()
Metrics for all the entities in aggregate.
.google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3;- Specified by:
getAllEntitiesMetricsOrBuilderin interfaceEvaluationOrBuilder
-
getEntityMetricsCount
public int getEntityMetricsCount()
Description copied from interface:EvaluationOrBuilderMetrics across confidence levels, for different entities.
map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4;- Specified by:
getEntityMetricsCountin interfaceEvaluationOrBuilder
-
containsEntityMetrics
public boolean containsEntityMetrics(String key)
Metrics across confidence levels, for different entities.
map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4;- Specified by:
containsEntityMetricsin interfaceEvaluationOrBuilder
-
getEntityMetrics
@Deprecated public Map<String,Evaluation.MultiConfidenceMetrics> getEntityMetrics()
Deprecated.UsegetEntityMetricsMap()instead.- Specified by:
getEntityMetricsin interfaceEvaluationOrBuilder
-
getEntityMetricsMap
public Map<String,Evaluation.MultiConfidenceMetrics> getEntityMetricsMap()
Metrics across confidence levels, for different entities.
map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4;- Specified by:
getEntityMetricsMapin interfaceEvaluationOrBuilder
-
getEntityMetricsOrDefault
public Evaluation.MultiConfidenceMetrics getEntityMetricsOrDefault(String key, Evaluation.MultiConfidenceMetrics defaultValue)
Metrics across confidence levels, for different entities.
map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4;- Specified by:
getEntityMetricsOrDefaultin interfaceEvaluationOrBuilder
-
getEntityMetricsOrThrow
public Evaluation.MultiConfidenceMetrics getEntityMetricsOrThrow(String key)
Metrics across confidence levels, for different entities.
map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4;- Specified by:
getEntityMetricsOrThrowin interfaceEvaluationOrBuilder
-
getKmsKeyName
public String getKmsKeyName()
The KMS key name used for encryption.
string kms_key_name = 6;- Specified by:
getKmsKeyNamein interfaceEvaluationOrBuilder- Returns:
- The kmsKeyName.
-
getKmsKeyNameBytes
public com.google.protobuf.ByteString getKmsKeyNameBytes()
The KMS key name used for encryption.
string kms_key_name = 6;- Specified by:
getKmsKeyNameBytesin interfaceEvaluationOrBuilder- Returns:
- The bytes for kmsKeyName.
-
getKmsKeyVersionName
public String getKmsKeyVersionName()
The KMS key version with which data is encrypted.
string kms_key_version_name = 7;- Specified by:
getKmsKeyVersionNamein interfaceEvaluationOrBuilder- Returns:
- The kmsKeyVersionName.
-
getKmsKeyVersionNameBytes
public com.google.protobuf.ByteString getKmsKeyVersionNameBytes()
The KMS key version with which data is encrypted.
string kms_key_version_name = 7;- Specified by:
getKmsKeyVersionNameBytesin interfaceEvaluationOrBuilder- Returns:
- The bytes for kmsKeyVersionName.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Evaluation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Evaluation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Evaluation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Evaluation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Evaluation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Evaluation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Evaluation parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Evaluation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Evaluation parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Evaluation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Evaluation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Evaluation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Evaluation.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Evaluation.Builder newBuilder()
-
newBuilder
public static Evaluation.Builder newBuilder(Evaluation prototype)
-
toBuilder
public Evaluation.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Evaluation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Evaluation getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Evaluation> parser()
-
getParserForType
public com.google.protobuf.Parser<Evaluation> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Evaluation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-