Class Urlfrontier.URLInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Urlfrontier.URLInfoOrBuilder, Cloneable
Enclosing class:
Urlfrontier.URLInfo

public static final class Urlfrontier.URLInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder> implements Urlfrontier.URLInfoOrBuilder
Protobuf type urlfrontier.URLInfo
  • 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.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

      public Urlfrontier.URLInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
    • setField

      public Urlfrontier.URLInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
    • clearField

      public Urlfrontier.URLInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
    • clearOneof

      public Urlfrontier.URLInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
    • setRepeatedField

      public Urlfrontier.URLInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
    • addRepeatedField

      public Urlfrontier.URLInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
    • mergeFrom

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

    • isInitialized

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

      public Urlfrontier.URLInfo.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<Urlfrontier.URLInfo.Builder>
      Throws:
      IOException
    • getUrl

      public String getUrl()
       * URL *
       
      string url = 1;
      Specified by:
      getUrl in interface Urlfrontier.URLInfoOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       * URL *
       
      string url = 1;
      Specified by:
      getUrlBytes in interface Urlfrontier.URLInfoOrBuilder
      Returns:
      The bytes for url.
    • setUrl

      public Urlfrontier.URLInfo.Builder setUrl(String value)
       * URL *
       
      string url = 1;
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

      public Urlfrontier.URLInfo.Builder clearUrl()
       * URL *
       
      string url = 1;
      Returns:
      This builder for chaining.
    • setUrlBytes

      public Urlfrontier.URLInfo.Builder setUrlBytes(com.google.protobuf.ByteString value)
       * URL *
       
      string url = 1;
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.
    • getKey

      public String getKey()
       * The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
       domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
       
      string key = 2;
      Specified by:
      getKey in interface Urlfrontier.URLInfoOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       * The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
       domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
       
      string key = 2;
      Specified by:
      getKeyBytes in interface Urlfrontier.URLInfoOrBuilder
      Returns:
      The bytes for key.
    • setKey

      public Urlfrontier.URLInfo.Builder setKey(String value)
       * The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
       domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
       
      string key = 2;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public Urlfrontier.URLInfo.Builder clearKey()
       * The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
       domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
       
      string key = 2;
      Returns:
      This builder for chaining.
    • setKeyBytes

      public Urlfrontier.URLInfo.Builder setKeyBytes(com.google.protobuf.ByteString value)
       * The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
       domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
       
      string key = 2;
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: Urlfrontier.URLInfoOrBuilder
       *
       Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
       
      map<string, .urlfrontier.StringList> metadata = 3;
      Specified by:
      getMetadataCount in interface Urlfrontier.URLInfoOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
       *
       Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
       
      map<string, .urlfrontier.StringList> metadata = 3;
      Specified by:
      containsMetadata in interface Urlfrontier.URLInfoOrBuilder
    • getMetadata

      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface Urlfrontier.URLInfoOrBuilder
    • getMetadataMap

      public Map<String,Urlfrontier.StringList> getMetadataMap()
       *
       Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
       
      map<string, .urlfrontier.StringList> metadata = 3;
      Specified by:
      getMetadataMap in interface Urlfrontier.URLInfoOrBuilder
    • getMetadataOrDefault

      public Urlfrontier.StringList getMetadataOrDefault(String key, Urlfrontier.StringList defaultValue)
       *
       Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
       
      map<string, .urlfrontier.StringList> metadata = 3;
      Specified by:
      getMetadataOrDefault in interface Urlfrontier.URLInfoOrBuilder
    • getMetadataOrThrow

      public Urlfrontier.StringList getMetadataOrThrow(String key)
       *
       Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
       
      map<string, .urlfrontier.StringList> metadata = 3;
      Specified by:
      getMetadataOrThrow in interface Urlfrontier.URLInfoOrBuilder
    • clearMetadata

      public Urlfrontier.URLInfo.Builder clearMetadata()
    • removeMetadata

      public Urlfrontier.URLInfo.Builder removeMetadata(String key)
       *
       Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
       
      map<string, .urlfrontier.StringList> metadata = 3;
    • getMutableMetadata

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

      public Urlfrontier.URLInfo.Builder putMetadata(String key, Urlfrontier.StringList value)
       *
       Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
       
      map<string, .urlfrontier.StringList> metadata = 3;
    • putAllMetadata

       *
       Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
       
      map<string, .urlfrontier.StringList> metadata = 3;
    • putMetadataBuilderIfAbsent

      public Urlfrontier.StringList.Builder putMetadataBuilderIfAbsent(String key)
       *
       Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
       
      map<string, .urlfrontier.StringList> metadata = 3;
    • getCrawlID

      public String getCrawlID()
       * crawl ID *
       
      string crawlID = 4;
      Specified by:
      getCrawlID in interface Urlfrontier.URLInfoOrBuilder
      Returns:
      The crawlID.
    • getCrawlIDBytes

      public com.google.protobuf.ByteString getCrawlIDBytes()
       * crawl ID *
       
      string crawlID = 4;
      Specified by:
      getCrawlIDBytes in interface Urlfrontier.URLInfoOrBuilder
      Returns:
      The bytes for crawlID.
    • setCrawlID

      public Urlfrontier.URLInfo.Builder setCrawlID(String value)
       * crawl ID *
       
      string crawlID = 4;
      Parameters:
      value - The crawlID to set.
      Returns:
      This builder for chaining.
    • clearCrawlID

      public Urlfrontier.URLInfo.Builder clearCrawlID()
       * crawl ID *
       
      string crawlID = 4;
      Returns:
      This builder for chaining.
    • setCrawlIDBytes

      public Urlfrontier.URLInfo.Builder setCrawlIDBytes(com.google.protobuf.ByteString value)
       * crawl ID *
       
      string crawlID = 4;
      Parameters:
      value - The bytes for crawlID to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Urlfrontier.URLInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
    • mergeUnknownFields

      public final Urlfrontier.URLInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>