Class CrawlSessionSummary.Builder

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

public static final class CrawlSessionSummary.Builder extends com.google.protobuf.GeneratedMessage.Builder<CrawlSessionSummary.Builder> implements CrawlSessionSummaryOrBuilder
 Summary of a completed crawl session.
 
Protobuf type ai.pipestream.connector.intake.v1.CrawlSessionSummary
  • 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<CrawlSessionSummary.Builder>
    • internalGetMutableMapFieldReflection

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CrawlSessionSummary.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<CrawlSessionSummary.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<CrawlSessionSummary.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CrawlSessionSummary.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<CrawlSessionSummary.Builder>
      Throws:
      IOException
    • getSessionId

      public String getSessionId()
       Session identifier.
       
      string session_id = 1 [json_name = "sessionId"];
      Specified by:
      getSessionId in interface CrawlSessionSummaryOrBuilder
      Returns:
      The sessionId.
    • getSessionIdBytes

      public com.google.protobuf.ByteString getSessionIdBytes()
       Session identifier.
       
      string session_id = 1 [json_name = "sessionId"];
      Specified by:
      getSessionIdBytes in interface CrawlSessionSummaryOrBuilder
      Returns:
      The bytes for sessionId.
    • setSessionId

      public CrawlSessionSummary.Builder setSessionId(String value)
       Session identifier.
       
      string session_id = 1 [json_name = "sessionId"];
      Parameters:
      value - The sessionId to set.
      Returns:
      This builder for chaining.
    • clearSessionId

      public CrawlSessionSummary.Builder clearSessionId()
       Session identifier.
       
      string session_id = 1 [json_name = "sessionId"];
      Returns:
      This builder for chaining.
    • setSessionIdBytes

      public CrawlSessionSummary.Builder setSessionIdBytes(com.google.protobuf.ByteString value)
       Session identifier.
       
      string session_id = 1 [json_name = "sessionId"];
      Parameters:
      value - The bytes for sessionId to set.
      Returns:
      This builder for chaining.
    • getCrawlId

      public String getCrawlId()
       Crawl identifier.
       
      string crawl_id = 2 [json_name = "crawlId"];
      Specified by:
      getCrawlId in interface CrawlSessionSummaryOrBuilder
      Returns:
      The crawlId.
    • getCrawlIdBytes

      public com.google.protobuf.ByteString getCrawlIdBytes()
       Crawl identifier.
       
      string crawl_id = 2 [json_name = "crawlId"];
      Specified by:
      getCrawlIdBytes in interface CrawlSessionSummaryOrBuilder
      Returns:
      The bytes for crawlId.
    • setCrawlId

      public CrawlSessionSummary.Builder setCrawlId(String value)
       Crawl identifier.
       
      string crawl_id = 2 [json_name = "crawlId"];
      Parameters:
      value - The crawlId to set.
      Returns:
      This builder for chaining.
    • clearCrawlId

      public CrawlSessionSummary.Builder clearCrawlId()
       Crawl identifier.
       
      string crawl_id = 2 [json_name = "crawlId"];
      Returns:
      This builder for chaining.
    • setCrawlIdBytes

      public CrawlSessionSummary.Builder setCrawlIdBytes(com.google.protobuf.ByteString value)
       Crawl identifier.
       
      string crawl_id = 2 [json_name = "crawlId"];
      Parameters:
      value - The bytes for crawlId to set.
      Returns:
      This builder for chaining.
    • hasStartedAt

      public boolean hasStartedAt()
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started_at = 3 [json_name = "startedAt"];
      Specified by:
      hasStartedAt in interface CrawlSessionSummaryOrBuilder
      Returns:
      Whether the startedAt field is set.
    • getStartedAt

      public com.google.protobuf.Timestamp getStartedAt()
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started_at = 3 [json_name = "startedAt"];
      Specified by:
      getStartedAt in interface CrawlSessionSummaryOrBuilder
      Returns:
      The startedAt.
    • setStartedAt

      public CrawlSessionSummary.Builder setStartedAt(com.google.protobuf.Timestamp value)
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started_at = 3 [json_name = "startedAt"];
    • setStartedAt

      public CrawlSessionSummary.Builder setStartedAt(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started_at = 3 [json_name = "startedAt"];
    • mergeStartedAt

      public CrawlSessionSummary.Builder mergeStartedAt(com.google.protobuf.Timestamp value)
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started_at = 3 [json_name = "startedAt"];
    • clearStartedAt

      public CrawlSessionSummary.Builder clearStartedAt()
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started_at = 3 [json_name = "startedAt"];
    • getStartedAtBuilder

      public com.google.protobuf.Timestamp.Builder getStartedAtBuilder()
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started_at = 3 [json_name = "startedAt"];
    • getStartedAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder()
       Timestamp when crawl started.
       
      .google.protobuf.Timestamp started_at = 3 [json_name = "startedAt"];
      Specified by:
      getStartedAtOrBuilder in interface CrawlSessionSummaryOrBuilder
    • hasCompletedAt

      public boolean hasCompletedAt()
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed_at = 4 [json_name = "completedAt"];
      Specified by:
      hasCompletedAt in interface CrawlSessionSummaryOrBuilder
      Returns:
      Whether the completedAt field is set.
    • getCompletedAt

      public com.google.protobuf.Timestamp getCompletedAt()
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed_at = 4 [json_name = "completedAt"];
      Specified by:
      getCompletedAt in interface CrawlSessionSummaryOrBuilder
      Returns:
      The completedAt.
    • setCompletedAt

      public CrawlSessionSummary.Builder setCompletedAt(com.google.protobuf.Timestamp value)
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed_at = 4 [json_name = "completedAt"];
    • setCompletedAt

      public CrawlSessionSummary.Builder setCompletedAt(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed_at = 4 [json_name = "completedAt"];
    • mergeCompletedAt

      public CrawlSessionSummary.Builder mergeCompletedAt(com.google.protobuf.Timestamp value)
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed_at = 4 [json_name = "completedAt"];
    • clearCompletedAt

      public CrawlSessionSummary.Builder clearCompletedAt()
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed_at = 4 [json_name = "completedAt"];
    • getCompletedAtBuilder

      public com.google.protobuf.Timestamp.Builder getCompletedAtBuilder()
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed_at = 4 [json_name = "completedAt"];
    • getCompletedAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCompletedAtOrBuilder()
       Timestamp when crawl completed.
       
      .google.protobuf.Timestamp completed_at = 4 [json_name = "completedAt"];
      Specified by:
      getCompletedAtOrBuilder in interface CrawlSessionSummaryOrBuilder
    • getDocumentsFound

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

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

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

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

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

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

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

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

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

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

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

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

      public String getStatus()
       Status of the crawl (e.g., "RUNNING", "COMPLETED", "FAILED").
       
      string status = 9 [json_name = "status"];
      Specified by:
      getStatus in interface CrawlSessionSummaryOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
       Status of the crawl (e.g., "RUNNING", "COMPLETED", "FAILED").
       
      string status = 9 [json_name = "status"];
      Specified by:
      getStatusBytes in interface CrawlSessionSummaryOrBuilder
      Returns:
      The bytes for status.
    • setStatus

      public CrawlSessionSummary.Builder setStatus(String value)
       Status of the crawl (e.g., "RUNNING", "COMPLETED", "FAILED").
       
      string status = 9 [json_name = "status"];
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public CrawlSessionSummary.Builder clearStatus()
       Status of the crawl (e.g., "RUNNING", "COMPLETED", "FAILED").
       
      string status = 9 [json_name = "status"];
      Returns:
      This builder for chaining.
    • setStatusBytes

      public CrawlSessionSummary.Builder setStatusBytes(com.google.protobuf.ByteString value)
       Status of the crawl (e.g., "RUNNING", "COMPLETED", "FAILED").
       
      string status = 9 [json_name = "status"];
      Parameters:
      value - The bytes for status to set.
      Returns:
      This builder for chaining.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: CrawlSessionSummaryOrBuilder
       Additional metadata as key-value pairs.
       
      map<string, string> metadata = 10 [json_name = "metadata"];
      Specified by:
      getMetadataCount in interface CrawlSessionSummaryOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       Additional metadata as key-value pairs.
       
      map<string, string> metadata = 10 [json_name = "metadata"];
      Specified by:
      containsMetadata in interface CrawlSessionSummaryOrBuilder
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface CrawlSessionSummaryOrBuilder
    • getMetadataMap

      public Map<String,String> getMetadataMap()
       Additional metadata as key-value pairs.
       
      map<string, string> metadata = 10 [json_name = "metadata"];
      Specified by:
      getMetadataMap in interface CrawlSessionSummaryOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
       Additional metadata as key-value pairs.
       
      map<string, string> metadata = 10 [json_name = "metadata"];
      Specified by:
      getMetadataOrDefault in interface CrawlSessionSummaryOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
       Additional metadata as key-value pairs.
       
      map<string, string> metadata = 10 [json_name = "metadata"];
      Specified by:
      getMetadataOrThrow in interface CrawlSessionSummaryOrBuilder
    • clearMetadata

      public CrawlSessionSummary.Builder clearMetadata()
    • removeMetadata

      public CrawlSessionSummary.Builder removeMetadata(String key)
       Additional metadata as key-value pairs.
       
      map<string, string> metadata = 10 [json_name = "metadata"];
    • getMutableMetadata

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

      public CrawlSessionSummary.Builder putMetadata(String key, String value)
       Additional metadata as key-value pairs.
       
      map<string, string> metadata = 10 [json_name = "metadata"];
    • putAllMetadata

      public CrawlSessionSummary.Builder putAllMetadata(Map<String,String> values)
       Additional metadata as key-value pairs.
       
      map<string, string> metadata = 10 [json_name = "metadata"];