Class Evaluation.Counters.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Evaluation.Counters.Builder>
com.google.cloud.documentai.v1.Evaluation.Counters.Builder
All Implemented Interfaces:
Evaluation.CountersOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Evaluation.Counters

public static final class Evaluation.Counters.Builder extends com.google.protobuf.GeneratedMessage.Builder<Evaluation.Counters.Builder> implements Evaluation.CountersOrBuilder
 Evaluation counters for the documents that were used.
 
Protobuf type google.cloud.documentai.v1.Evaluation.Counters
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Evaluation.Counters.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Evaluation.Counters.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Evaluation.Counters.Builder>
    • getDefaultInstanceForType

      public Evaluation.Counters getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Evaluation.Counters build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Evaluation.Counters buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Evaluation.Counters.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Evaluation.Counters.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Evaluation.Counters.Builder>
    • mergeFrom

      public Evaluation.Counters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Evaluation.Counters.Builder>
      Throws:
      IOException
    • getInputDocumentsCount

      public int getInputDocumentsCount()
       How many documents were sent for evaluation.
       
      int32 input_documents_count = 1;
      Specified by:
      getInputDocumentsCount in interface Evaluation.CountersOrBuilder
      Returns:
      The inputDocumentsCount.
    • setInputDocumentsCount

      public Evaluation.Counters.Builder setInputDocumentsCount(int value)
       How many documents were sent for evaluation.
       
      int32 input_documents_count = 1;
      Parameters:
      value - The inputDocumentsCount to set.
      Returns:
      This builder for chaining.
    • clearInputDocumentsCount

      public Evaluation.Counters.Builder clearInputDocumentsCount()
       How many documents were sent for evaluation.
       
      int32 input_documents_count = 1;
      Returns:
      This builder for chaining.
    • getInvalidDocumentsCount

      public int getInvalidDocumentsCount()
       How many documents were not included in the evaluation as they didn't
       pass validation.
       
      int32 invalid_documents_count = 2;
      Specified by:
      getInvalidDocumentsCount in interface Evaluation.CountersOrBuilder
      Returns:
      The invalidDocumentsCount.
    • setInvalidDocumentsCount

      public Evaluation.Counters.Builder setInvalidDocumentsCount(int value)
       How many documents were not included in the evaluation as they didn't
       pass validation.
       
      int32 invalid_documents_count = 2;
      Parameters:
      value - The invalidDocumentsCount to set.
      Returns:
      This builder for chaining.
    • clearInvalidDocumentsCount

      public Evaluation.Counters.Builder clearInvalidDocumentsCount()
       How many documents were not included in the evaluation as they didn't
       pass validation.
       
      int32 invalid_documents_count = 2;
      Returns:
      This builder for chaining.
    • getFailedDocumentsCount

      public int getFailedDocumentsCount()
       How many documents were not included in the evaluation as Document AI
       failed to process them.
       
      int32 failed_documents_count = 3;
      Specified by:
      getFailedDocumentsCount in interface Evaluation.CountersOrBuilder
      Returns:
      The failedDocumentsCount.
    • setFailedDocumentsCount

      public Evaluation.Counters.Builder setFailedDocumentsCount(int value)
       How many documents were not included in the evaluation as Document AI
       failed to process them.
       
      int32 failed_documents_count = 3;
      Parameters:
      value - The failedDocumentsCount to set.
      Returns:
      This builder for chaining.
    • clearFailedDocumentsCount

      public Evaluation.Counters.Builder clearFailedDocumentsCount()
       How many documents were not included in the evaluation as Document AI
       failed to process them.
       
      int32 failed_documents_count = 3;
      Returns:
      This builder for chaining.
    • getEvaluatedDocumentsCount

      public int getEvaluatedDocumentsCount()
       How many documents were used in the evaluation.
       
      int32 evaluated_documents_count = 4;
      Specified by:
      getEvaluatedDocumentsCount in interface Evaluation.CountersOrBuilder
      Returns:
      The evaluatedDocumentsCount.
    • setEvaluatedDocumentsCount

      public Evaluation.Counters.Builder setEvaluatedDocumentsCount(int value)
       How many documents were used in the evaluation.
       
      int32 evaluated_documents_count = 4;
      Parameters:
      value - The evaluatedDocumentsCount to set.
      Returns:
      This builder for chaining.
    • clearEvaluatedDocumentsCount

      public Evaluation.Counters.Builder clearEvaluatedDocumentsCount()
       How many documents were used in the evaluation.
       
      int32 evaluated_documents_count = 4;
      Returns:
      This builder for chaining.