Class CrawlSummary.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CrawlSummary.Builder>
com.google.protobuf.GeneratedMessage.Builder<CrawlSummary.Builder>
ai.pipestream.connector.intake.v1.CrawlSummary.Builder
All Implemented Interfaces:
CrawlSummaryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CrawlSummary

public static final class CrawlSummary.Builder extends com.google.protobuf.GeneratedMessage.Builder<CrawlSummary.Builder> implements CrawlSummaryOrBuilder
 Summary statistics for a completed crawl.
 
Protobuf type ai.pipestream.connector.intake.v1.CrawlSummary
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<CrawlSummary.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<CrawlSummary.Builder>
    • internalGetFieldAccessorTable

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

      public CrawlSummary.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<CrawlSummary.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<CrawlSummary.Builder>
    • getDefaultInstanceForType

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

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

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

      public CrawlSummary.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<CrawlSummary.Builder>
    • mergeFrom

      public CrawlSummary.Builder mergeFrom(CrawlSummary other)
    • isInitialized

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

      public CrawlSummary.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<CrawlSummary.Builder>
      Throws:
      IOException
    • getDocumentsFound

      public int getDocumentsFound()
       Total documents found during crawl.
       
      int32 documents_found = 1 [json_name = "documentsFound"];
      Specified by:
      getDocumentsFound in interface CrawlSummaryOrBuilder
      Returns:
      The documentsFound.
    • setDocumentsFound

      public CrawlSummary.Builder setDocumentsFound(int value)
       Total documents found during crawl.
       
      int32 documents_found = 1 [json_name = "documentsFound"];
      Parameters:
      value - The documentsFound to set.
      Returns:
      This builder for chaining.
    • clearDocumentsFound

      public CrawlSummary.Builder clearDocumentsFound()
       Total documents found during crawl.
       
      int32 documents_found = 1 [json_name = "documentsFound"];
      Returns:
      This builder for chaining.
    • getDocumentsProcessed

      public int getDocumentsProcessed()
       Documents successfully processed.
       
      int32 documents_processed = 2 [json_name = "documentsProcessed"];
      Specified by:
      getDocumentsProcessed in interface CrawlSummaryOrBuilder
      Returns:
      The documentsProcessed.
    • setDocumentsProcessed

      public CrawlSummary.Builder setDocumentsProcessed(int value)
       Documents successfully processed.
       
      int32 documents_processed = 2 [json_name = "documentsProcessed"];
      Parameters:
      value - The documentsProcessed to set.
      Returns:
      This builder for chaining.
    • clearDocumentsProcessed

      public CrawlSummary.Builder clearDocumentsProcessed()
       Documents successfully processed.
       
      int32 documents_processed = 2 [json_name = "documentsProcessed"];
      Returns:
      This builder for chaining.
    • getDocumentsFailed

      public int getDocumentsFailed()
       Documents that failed processing.
       
      int32 documents_failed = 3 [json_name = "documentsFailed"];
      Specified by:
      getDocumentsFailed in interface CrawlSummaryOrBuilder
      Returns:
      The documentsFailed.
    • setDocumentsFailed

      public CrawlSummary.Builder setDocumentsFailed(int value)
       Documents that failed processing.
       
      int32 documents_failed = 3 [json_name = "documentsFailed"];
      Parameters:
      value - The documentsFailed to set.
      Returns:
      This builder for chaining.
    • clearDocumentsFailed

      public CrawlSummary.Builder clearDocumentsFailed()
       Documents that failed processing.
       
      int32 documents_failed = 3 [json_name = "documentsFailed"];
      Returns:
      This builder for chaining.
    • getDocumentsSkipped

      public int getDocumentsSkipped()
       Documents skipped (e.g., unchanged).
       
      int32 documents_skipped = 4 [json_name = "documentsSkipped"];
      Specified by:
      getDocumentsSkipped in interface CrawlSummaryOrBuilder
      Returns:
      The documentsSkipped.
    • setDocumentsSkipped

      public CrawlSummary.Builder setDocumentsSkipped(int value)
       Documents skipped (e.g., unchanged).
       
      int32 documents_skipped = 4 [json_name = "documentsSkipped"];
      Parameters:
      value - The documentsSkipped to set.
      Returns:
      This builder for chaining.
    • clearDocumentsSkipped

      public CrawlSummary.Builder clearDocumentsSkipped()
       Documents skipped (e.g., unchanged).
       
      int32 documents_skipped = 4 [json_name = "documentsSkipped"];
      Returns:
      This builder for chaining.
    • getBytesProcessed

      public long getBytesProcessed()
       Total bytes processed.
       
      int64 bytes_processed = 5 [json_name = "bytesProcessed"];
      Specified by:
      getBytesProcessed in interface CrawlSummaryOrBuilder
      Returns:
      The bytesProcessed.
    • setBytesProcessed

      public CrawlSummary.Builder setBytesProcessed(long value)
       Total bytes processed.
       
      int64 bytes_processed = 5 [json_name = "bytesProcessed"];
      Parameters:
      value - The bytesProcessed to set.
      Returns:
      This builder for chaining.
    • clearBytesProcessed

      public CrawlSummary.Builder clearBytesProcessed()
       Total bytes processed.
       
      int64 bytes_processed = 5 [json_name = "bytesProcessed"];
      Returns:
      This builder for chaining.
    • hasStarted

      public boolean hasStarted()
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started = 6 [json_name = "started"];
      Specified by:
      hasStarted in interface CrawlSummaryOrBuilder
      Returns:
      Whether the started field is set.
    • getStarted

      public com.google.protobuf.Timestamp getStarted()
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started = 6 [json_name = "started"];
      Specified by:
      getStarted in interface CrawlSummaryOrBuilder
      Returns:
      The started.
    • setStarted

      public CrawlSummary.Builder setStarted(com.google.protobuf.Timestamp value)
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started = 6 [json_name = "started"];
    • setStarted

      public CrawlSummary.Builder setStarted(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started = 6 [json_name = "started"];
    • mergeStarted

      public CrawlSummary.Builder mergeStarted(com.google.protobuf.Timestamp value)
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started = 6 [json_name = "started"];
    • clearStarted

      public CrawlSummary.Builder clearStarted()
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started = 6 [json_name = "started"];
    • getStartedBuilder

      public com.google.protobuf.Timestamp.Builder getStartedBuilder()
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started = 6 [json_name = "started"];
    • getStartedOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartedOrBuilder()
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started = 6 [json_name = "started"];
      Specified by:
      getStartedOrBuilder in interface CrawlSummaryOrBuilder
    • hasCompleted

      public boolean hasCompleted()
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed = 7 [json_name = "completed"];
      Specified by:
      hasCompleted in interface CrawlSummaryOrBuilder
      Returns:
      Whether the completed field is set.
    • getCompleted

      public com.google.protobuf.Timestamp getCompleted()
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed = 7 [json_name = "completed"];
      Specified by:
      getCompleted in interface CrawlSummaryOrBuilder
      Returns:
      The completed.
    • setCompleted

      public CrawlSummary.Builder setCompleted(com.google.protobuf.Timestamp value)
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed = 7 [json_name = "completed"];
    • setCompleted

      public CrawlSummary.Builder setCompleted(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed = 7 [json_name = "completed"];
    • mergeCompleted

      public CrawlSummary.Builder mergeCompleted(com.google.protobuf.Timestamp value)
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed = 7 [json_name = "completed"];
    • clearCompleted

      public CrawlSummary.Builder clearCompleted()
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed = 7 [json_name = "completed"];
    • getCompletedBuilder

      public com.google.protobuf.Timestamp.Builder getCompletedBuilder()
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed = 7 [json_name = "completed"];
    • getCompletedOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCompletedOrBuilder()
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed = 7 [json_name = "completed"];
      Specified by:
      getCompletedOrBuilder in interface CrawlSummaryOrBuilder
    • getStatisticsCount

      public int getStatisticsCount()
      Description copied from interface: CrawlSummaryOrBuilder
       Additional statistics as key-value pairs.
       
      map<string, string> statistics = 8 [json_name = "statistics"];
      Specified by:
      getStatisticsCount in interface CrawlSummaryOrBuilder
    • containsStatistics

      public boolean containsStatistics(String key)
       Additional statistics as key-value pairs.
       
      map<string, string> statistics = 8 [json_name = "statistics"];
      Specified by:
      containsStatistics in interface CrawlSummaryOrBuilder
    • getStatistics

      @Deprecated public Map<String,String> getStatistics()
      Deprecated.
      Use getStatisticsMap() instead.
      Specified by:
      getStatistics in interface CrawlSummaryOrBuilder
    • getStatisticsMap

      public Map<String,String> getStatisticsMap()
       Additional statistics as key-value pairs.
       
      map<string, string> statistics = 8 [json_name = "statistics"];
      Specified by:
      getStatisticsMap in interface CrawlSummaryOrBuilder
    • getStatisticsOrDefault

      public String getStatisticsOrDefault(String key, String defaultValue)
       Additional statistics as key-value pairs.
       
      map<string, string> statistics = 8 [json_name = "statistics"];
      Specified by:
      getStatisticsOrDefault in interface CrawlSummaryOrBuilder
    • getStatisticsOrThrow

      public String getStatisticsOrThrow(String key)
       Additional statistics as key-value pairs.
       
      map<string, string> statistics = 8 [json_name = "statistics"];
      Specified by:
      getStatisticsOrThrow in interface CrawlSummaryOrBuilder
    • clearStatistics

      public CrawlSummary.Builder clearStatistics()
    • removeStatistics

      public CrawlSummary.Builder removeStatistics(String key)
       Additional statistics as key-value pairs.
       
      map<string, string> statistics = 8 [json_name = "statistics"];
    • getMutableStatistics

      @Deprecated public Map<String,String> getMutableStatistics()
      Deprecated.
      Use alternate mutation accessors instead.
    • putStatistics

      public CrawlSummary.Builder putStatistics(String key, String value)
       Additional statistics as key-value pairs.
       
      map<string, string> statistics = 8 [json_name = "statistics"];
    • putAllStatistics

      public CrawlSummary.Builder putAllStatistics(Map<String,String> values)
       Additional statistics as key-value pairs.
       
      map<string, string> statistics = 8 [json_name = "statistics"];