Package crawlercommons.urlfrontier
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()* crawl ID *clearField(com.google.protobuf.Descriptors.FieldDescriptor field) 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.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clearUrl()* URL *clone()booleancontainsMetadata(String key) * Arbitrary key / values stored alongside the URL.* crawl ID *com.google.protobuf.ByteString* crawl ID *static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetKey()* 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.com.google.protobuf.ByteString* 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.Deprecated.int* Arbitrary key / values stored alongside the URL.* Arbitrary key / values stored alongside the URL.getMetadataOrDefault(String key, Urlfrontier.StringList defaultValue) * Arbitrary key / values stored alongside the URL.getMetadataOrThrow(String key) * Arbitrary key / values stored alongside the URL.Deprecated.getUrl()* URL *com.google.protobuf.ByteString* URL *protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Urlfrontier.URLInfo other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllMetadata(Map<String, Urlfrontier.StringList> values) * Arbitrary key / values stored alongside the URL.putMetadata(String key, Urlfrontier.StringList value) * Arbitrary key / values stored alongside the URL.* Arbitrary key / values stored alongside the URL.removeMetadata(String key) * Arbitrary key / values stored alongside the URL.setCrawlID(String value) * crawl ID *setCrawlIDBytes(com.google.protobuf.ByteString value) * crawl ID ** 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.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.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) * URL *setUrlBytes(com.google.protobuf.ByteString value) * URL *Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
-
setField
public Urlfrontier.URLInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
-
clearField
public Urlfrontier.URLInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
-
clearOneof
public Urlfrontier.URLInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
-
addRepeatedField
public Urlfrontier.URLInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Urlfrontier.URLInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Urlfrontier.URLInfo.Builder>- Throws:
IOException
-
getUrl
* URL *
string url = 1;- Specified by:
getUrlin interfaceUrlfrontier.URLInfoOrBuilder- Returns:
- The url.
-
getUrlBytes
public com.google.protobuf.ByteString getUrlBytes()* URL *
string url = 1;- Specified by:
getUrlBytesin interfaceUrlfrontier.URLInfoOrBuilder- Returns:
- The bytes for url.
-
setUrl
* URL *
string url = 1;- Parameters:
value- The url to set.- Returns:
- This builder for chaining.
-
clearUrl
* URL *
string url = 1;- Returns:
- This builder for chaining.
-
setUrlBytes
* URL *
string url = 1;- Parameters:
value- The bytes for url to set.- Returns:
- This builder for chaining.
-
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:
getKeyin interfaceUrlfrontier.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:
getKeyBytesin interfaceUrlfrontier.URLInfoOrBuilder- Returns:
- The bytes for key.
-
setKey
* 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
* 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
* 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:
getMetadataCountin interfaceUrlfrontier.URLInfoOrBuilder
-
containsMetadata
* 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:
containsMetadatain interfaceUrlfrontier.URLInfoOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceUrlfrontier.URLInfoOrBuilder
-
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:
getMetadataMapin interfaceUrlfrontier.URLInfoOrBuilder
-
getMetadataOrDefault
* 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:
getMetadataOrDefaultin interfaceUrlfrontier.URLInfoOrBuilder
-
getMetadataOrThrow
* 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:
getMetadataOrThrowin interfaceUrlfrontier.URLInfoOrBuilder
-
clearMetadata
-
removeMetadata
* 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.Use alternate mutation accessors instead. -
putMetadata
* 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
* 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
* crawl ID *
string crawlID = 4;- Specified by:
getCrawlIDin interfaceUrlfrontier.URLInfoOrBuilder- Returns:
- The crawlID.
-
getCrawlIDBytes
public com.google.protobuf.ByteString getCrawlIDBytes()* crawl ID *
string crawlID = 4;- Specified by:
getCrawlIDBytesin interfaceUrlfrontier.URLInfoOrBuilder- Returns:
- The bytes for crawlID.
-
setCrawlID
* crawl ID *
string crawlID = 4;- Parameters:
value- The crawlID to set.- Returns:
- This builder for chaining.
-
clearCrawlID
* crawl ID *
string crawlID = 4;- Returns:
- This builder for chaining.
-
setCrawlIDBytes
* 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
-
mergeUnknownFields
public final Urlfrontier.URLInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
-