Class Urlfrontier.URLInfo.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField 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

        public 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

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

        public Urlfrontier.URLInfo.Builder setUrl​(String value)
         * URL *
         
        string url = 1;
        Parameters:
        value - The url to set.
        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
      • 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;
      • 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

        public Urlfrontier.URLInfo.Builder putAllMetadata​(Map<String,​Urlfrontier.StringList> values)
         *
         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;
      • 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>