Package crawlercommons.urlfrontier
Class Urlfrontier.URLInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typeurlfrontier.URLInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Urlfrontier.URLInfo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Urlfrontier.URLInfobuild()Urlfrontier.URLInfobuildPartial()Urlfrontier.URLInfo.Builderclear()Urlfrontier.URLInfo.BuilderclearCrawlID()* crawl ID *Urlfrontier.URLInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Urlfrontier.URLInfo.BuilderclearKey()* 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.Urlfrontier.URLInfo.BuilderclearMetadata()Urlfrontier.URLInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Urlfrontier.URLInfo.BuilderclearUrl()* URL *Urlfrontier.URLInfo.Builderclone()booleancontainsMetadata(String key)* Arbitrary key / values stored alongside the URL.StringgetCrawlID()* crawl ID *com.google.protobuf.ByteStringgetCrawlIDBytes()* crawl ID *Urlfrontier.URLInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetKey()* 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.ByteStringgetKeyBytes()* 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.Map<String,Urlfrontier.StringList>getMetadata()Deprecated.intgetMetadataCount()* Arbitrary key / values stored alongside the URL.Map<String,Urlfrontier.StringList>getMetadataMap()* Arbitrary key / values stored alongside the URL.Urlfrontier.StringListgetMetadataOrDefault(String key, Urlfrontier.StringList defaultValue)* Arbitrary key / values stored alongside the URL.Urlfrontier.StringListgetMetadataOrThrow(String key)* Arbitrary key / values stored alongside the URL.Map<String,Urlfrontier.StringList>getMutableMetadata()Deprecated.StringgetUrl()* URL *com.google.protobuf.ByteStringgetUrlBytes()* URL *protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Urlfrontier.URLInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Urlfrontier.URLInfo.BuildermergeFrom(com.google.protobuf.Message other)Urlfrontier.URLInfo.BuildermergeFrom(Urlfrontier.URLInfo other)Urlfrontier.URLInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Urlfrontier.URLInfo.BuilderputAllMetadata(Map<String,Urlfrontier.StringList> values)* Arbitrary key / values stored alongside the URL.Urlfrontier.URLInfo.BuilderputMetadata(String key, Urlfrontier.StringList value)* Arbitrary key / values stored alongside the URL.Urlfrontier.URLInfo.BuilderremoveMetadata(String key)* Arbitrary key / values stored alongside the URL.Urlfrontier.URLInfo.BuildersetCrawlID(String value)* crawl ID *Urlfrontier.URLInfo.BuildersetCrawlIDBytes(com.google.protobuf.ByteString value)* crawl ID *Urlfrontier.URLInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Urlfrontier.URLInfo.BuildersetKey(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.Urlfrontier.URLInfo.BuildersetKeyBytes(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.Urlfrontier.URLInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Urlfrontier.URLInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Urlfrontier.URLInfo.BuildersetUrl(String value)* URL *Urlfrontier.URLInfo.BuildersetUrlBytes(com.google.protobuf.ByteString value)* URL *-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.URLInfo.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin 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
public 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
public Urlfrontier.URLInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Urlfrontier.URLInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Urlfrontier.URLInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Urlfrontier.URLInfo.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
public Urlfrontier.URLInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Urlfrontier.URLInfo.Builder>
-
mergeFrom
public Urlfrontier.URLInfo.Builder mergeFrom(Urlfrontier.URLInfo other)
-
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
public String 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
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:
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
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:
getMetadataCountin interfaceUrlfrontier.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:
containsMetadatain interfaceUrlfrontier.URLInfoOrBuilder
-
getMetadata
@Deprecated public Map<String,Urlfrontier.StringList> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceUrlfrontier.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:
getMetadataMapin interfaceUrlfrontier.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:
getMetadataOrDefaultin interfaceUrlfrontier.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:
getMetadataOrThrowin interfaceUrlfrontier.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
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;
-
getCrawlID
public String 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
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:
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>
-
-