Class WarcRedirect.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<WarcRedirect.Builder>
com.google.protobuf.GeneratedMessage.Builder<WarcRedirect.Builder>
ai.pipestream.parsed.data.warc.v1.WarcRedirect.Builder
All Implemented Interfaces:
WarcRedirectOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WarcRedirect

public static final class WarcRedirect.Builder extends com.google.protobuf.GeneratedMessage.Builder<WarcRedirect.Builder> implements WarcRedirectOrBuilder
 Represents a redirect in the HTTP redirect chain
 
Protobuf type ai.pipestream.parsed.data.warc.v1.WarcRedirect
  • 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<WarcRedirect.Builder>
    • clear

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

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

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

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

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

      public WarcRedirect.Builder mergeFrom(WarcRedirect other)
    • isInitialized

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

      public WarcRedirect.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<WarcRedirect.Builder>
      Throws:
      IOException
    • getFromUrl

      public String getFromUrl()
       Source URL (where the redirect originated)
       
      string from_url = 1 [json_name = "fromUrl"];
      Specified by:
      getFromUrl in interface WarcRedirectOrBuilder
      Returns:
      The fromUrl.
    • getFromUrlBytes

      public com.google.protobuf.ByteString getFromUrlBytes()
       Source URL (where the redirect originated)
       
      string from_url = 1 [json_name = "fromUrl"];
      Specified by:
      getFromUrlBytes in interface WarcRedirectOrBuilder
      Returns:
      The bytes for fromUrl.
    • setFromUrl

      public WarcRedirect.Builder setFromUrl(String value)
       Source URL (where the redirect originated)
       
      string from_url = 1 [json_name = "fromUrl"];
      Parameters:
      value - The fromUrl to set.
      Returns:
      This builder for chaining.
    • clearFromUrl

      public WarcRedirect.Builder clearFromUrl()
       Source URL (where the redirect originated)
       
      string from_url = 1 [json_name = "fromUrl"];
      Returns:
      This builder for chaining.
    • setFromUrlBytes

      public WarcRedirect.Builder setFromUrlBytes(com.google.protobuf.ByteString value)
       Source URL (where the redirect originated)
       
      string from_url = 1 [json_name = "fromUrl"];
      Parameters:
      value - The bytes for fromUrl to set.
      Returns:
      This builder for chaining.
    • getToUrl

      public String getToUrl()
       Target URL (where the redirect points to)
       
      string to_url = 2 [json_name = "toUrl"];
      Specified by:
      getToUrl in interface WarcRedirectOrBuilder
      Returns:
      The toUrl.
    • getToUrlBytes

      public com.google.protobuf.ByteString getToUrlBytes()
       Target URL (where the redirect points to)
       
      string to_url = 2 [json_name = "toUrl"];
      Specified by:
      getToUrlBytes in interface WarcRedirectOrBuilder
      Returns:
      The bytes for toUrl.
    • setToUrl

      public WarcRedirect.Builder setToUrl(String value)
       Target URL (where the redirect points to)
       
      string to_url = 2 [json_name = "toUrl"];
      Parameters:
      value - The toUrl to set.
      Returns:
      This builder for chaining.
    • clearToUrl

      public WarcRedirect.Builder clearToUrl()
       Target URL (where the redirect points to)
       
      string to_url = 2 [json_name = "toUrl"];
      Returns:
      This builder for chaining.
    • setToUrlBytes

      public WarcRedirect.Builder setToUrlBytes(com.google.protobuf.ByteString value)
       Target URL (where the redirect points to)
       
      string to_url = 2 [json_name = "toUrl"];
      Parameters:
      value - The bytes for toUrl to set.
      Returns:
      This builder for chaining.
    • getStatusCode

      public int getStatusCode()
       HTTP status code for this redirect (301, 302, etc.)
       
      int32 status_code = 3 [json_name = "statusCode"];
      Specified by:
      getStatusCode in interface WarcRedirectOrBuilder
      Returns:
      The statusCode.
    • setStatusCode

      public WarcRedirect.Builder setStatusCode(int value)
       HTTP status code for this redirect (301, 302, etc.)
       
      int32 status_code = 3 [json_name = "statusCode"];
      Parameters:
      value - The statusCode to set.
      Returns:
      This builder for chaining.
    • clearStatusCode

      public WarcRedirect.Builder clearStatusCode()
       HTTP status code for this redirect (301, 302, etc.)
       
      int32 status_code = 3 [json_name = "statusCode"];
      Returns:
      This builder for chaining.
    • hasRedirectTimestamp

      public boolean hasRedirectTimestamp()
       Timestamp of this redirect
       
      optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"];
      Specified by:
      hasRedirectTimestamp in interface WarcRedirectOrBuilder
      Returns:
      Whether the redirectTimestamp field is set.
    • getRedirectTimestamp

      public com.google.protobuf.Timestamp getRedirectTimestamp()
       Timestamp of this redirect
       
      optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"];
      Specified by:
      getRedirectTimestamp in interface WarcRedirectOrBuilder
      Returns:
      The redirectTimestamp.
    • setRedirectTimestamp

      public WarcRedirect.Builder setRedirectTimestamp(com.google.protobuf.Timestamp value)
       Timestamp of this redirect
       
      optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"];
    • setRedirectTimestamp

      public WarcRedirect.Builder setRedirectTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp of this redirect
       
      optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"];
    • mergeRedirectTimestamp

      public WarcRedirect.Builder mergeRedirectTimestamp(com.google.protobuf.Timestamp value)
       Timestamp of this redirect
       
      optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"];
    • clearRedirectTimestamp

      public WarcRedirect.Builder clearRedirectTimestamp()
       Timestamp of this redirect
       
      optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"];
    • getRedirectTimestampBuilder

      public com.google.protobuf.Timestamp.Builder getRedirectTimestampBuilder()
       Timestamp of this redirect
       
      optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"];
    • getRedirectTimestampOrBuilder

      public com.google.protobuf.TimestampOrBuilder getRedirectTimestampOrBuilder()
       Timestamp of this redirect
       
      optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"];
      Specified by:
      getRedirectTimestampOrBuilder in interface WarcRedirectOrBuilder