Class 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 type google.cloud.documentai.v1beta3.Evaluation
    See Also:
    Serialized Form
    • Field Detail

      • 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:
        newInstance 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
      • 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:
        getName in interface EvaluationOrBuilder
        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:
        getNameBytes in interface EvaluationOrBuilder
        Returns:
        The bytes for name.
      • hasCreateTime

        public boolean hasCreateTime()
         The time that the evaluation was created.
         
        .google.protobuf.Timestamp create_time = 2;
        Specified by:
        hasCreateTime in interface EvaluationOrBuilder
        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:
        getCreateTime in interface EvaluationOrBuilder
        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:
        getCreateTimeOrBuilder in interface EvaluationOrBuilder
      • hasDocumentCounters

        public boolean hasDocumentCounters()
         Counters for the documents used in the evaluation.
         
        .google.cloud.documentai.v1beta3.Evaluation.Counters document_counters = 5;
        Specified by:
        hasDocumentCounters in interface EvaluationOrBuilder
        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:
        getDocumentCounters in interface EvaluationOrBuilder
        Returns:
        The documentCounters.
      • hasAllEntitiesMetrics

        public boolean hasAllEntitiesMetrics()
         Metrics for all the entities in aggregate.
         
        .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3;
        Specified by:
        hasAllEntitiesMetrics in interface EvaluationOrBuilder
        Returns:
        Whether the allEntitiesMetrics field is set.
      • getEntityMetricsCount

        public int getEntityMetricsCount()
        Description copied from interface: EvaluationOrBuilder
         Metrics across confidence levels, for different entities.
         
        map<string, .google.cloud.documentai.v1beta3.Evaluation.MultiConfidenceMetrics> entity_metrics = 4;
        Specified by:
        getEntityMetricsCount in interface EvaluationOrBuilder
      • 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:
        containsEntityMetrics in interface EvaluationOrBuilder
      • getKmsKeyName

        public String getKmsKeyName()
         The KMS key name used for encryption.
         
        string kms_key_name = 6;
        Specified by:
        getKmsKeyName in interface EvaluationOrBuilder
        Returns:
        The kmsKeyName.
      • getKmsKeyNameBytes

        public com.google.protobuf.ByteString getKmsKeyNameBytes()
         The KMS key name used for encryption.
         
        string kms_key_name = 6;
        Specified by:
        getKmsKeyNameBytes in interface EvaluationOrBuilder
        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:
        getKmsKeyVersionName in interface EvaluationOrBuilder
        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:
        getKmsKeyVersionNameBytes in interface EvaluationOrBuilder
        Returns:
        The bytes for kmsKeyVersionName.
      • 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 IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        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​(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 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​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected Evaluation.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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:
        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 Evaluation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder