diff --git a/API/README.md b/API/README.md index 8bff0d3..8986cd5 100644 --- a/API/README.md +++ b/API/README.md @@ -81,13 +81,13 @@ The Java code can be (re)generated as follows; change the OS & processor values ``` osproc=linux-x86_64 -wget https://github.com/protocolbuffers/protobuf/releases/download/v3.20.3/protoc-3.20.3-$osproc.zip -unzip -p protoc-3.20.3-$osproc.zip bin/protoc > protoc -rm protoc-3.20.3-$osproc.zip +wget https://github.com/protocolbuffers/protobuf/releases/download/v25.5/protoc-25.5-$osproc.zip +unzip -p protoc-25.5-$osproc.zip bin/protoc > protoc +rm protoc-25.5-$osproc.zip chmod a+x protoc -wget https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-java/1.50.2/protoc-gen-grpc-java-1.50.2-$osproc.exe -chmod a+x protoc-gen-grpc-java-1.50.2-$osproc.exe -./protoc --plugin=protoc-gen-grpc-java=./protoc-gen-grpc-java-1.50.2-$osproc.exe --proto_path=. --java_out=src/main/java --grpc-java_out=src/main/java urlfrontier.proto +wget https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-java/1.66.0/protoc-gen-grpc-java-1.66.0-$osproc.exe +chmod a+x protoc-gen-grpc-java-1.66.0-$osproc.exe +./protoc --plugin=protoc-gen-grpc-java=./protoc-gen-grpc-java-1.66.0-$osproc.exe --proto_path=. --java_out=src/main/java --grpc-java_out=src/main/java urlfrontier.proto ``` Since the Java code is provided here and the corresponding JARs will be available from Maven, regenerating from the schema is not necessary. diff --git a/API/pom.xml b/API/pom.xml index 2c8e094..de9aa8f 100644 --- a/API/pom.xml +++ b/API/pom.xml @@ -15,8 +15,7 @@ URLFrontier Java API - 1.68.0 - 3.20.3 + 1.66.0 @@ -44,4 +43,13 @@ + + + + com.google.protobuf + protobuf-java + ${protoc.version} + + + diff --git a/API/src/main/java/crawlercommons/urlfrontier/URLFrontierGrpc.java b/API/src/main/java/crawlercommons/urlfrontier/URLFrontierGrpc.java index e672045..c7a1b78 100644 --- a/API/src/main/java/crawlercommons/urlfrontier/URLFrontierGrpc.java +++ b/API/src/main/java/crawlercommons/urlfrontier/URLFrontierGrpc.java @@ -4,14 +4,14 @@ /** */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.50.2)", + value = "by gRPC proto compiler (version 1.66.0)", comments = "Source: urlfrontier.proto") @io.grpc.stub.annotations.GrpcGenerated public final class URLFrontierGrpc { private URLFrontierGrpc() {} - public static final String SERVICE_NAME = "urlfrontier.URLFrontier"; + public static final java.lang.String SERVICE_NAME = "urlfrontier.URLFrontier"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< @@ -887,7 +887,7 @@ public URLFrontierFutureStub newStub( } /** */ - public abstract static class URLFrontierImplBase implements io.grpc.BindableService { + public interface AsyncService { /** * @@ -896,7 +896,7 @@ public abstract static class URLFrontierImplBase implements io.grpc.BindableServ * * Return the list of nodes forming the cluster the current node belongs to * * */ - public void listNodes( + default void listNodes( crawlercommons.urlfrontier.Urlfrontier.Empty request, io.grpc.stub.StreamObserver responseObserver) { @@ -911,7 +911,7 @@ public void listNodes( * * Return the list of crawls handled by the frontier(s) * * */ - public void listCrawls( + default void listCrawls( crawlercommons.urlfrontier.Urlfrontier.Local request, io.grpc.stub.StreamObserver responseObserver) { @@ -926,7 +926,7 @@ public void listCrawls( * * Delete an entire crawl, returns the number of URLs removed this way * * */ - public void deleteCrawl( + default void deleteCrawl( crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage request, io.grpc.stub.StreamObserver responseObserver) { @@ -942,7 +942,7 @@ public void deleteCrawl( * by default the service will return up to 100 results from offset 0 and exclude inactive queues.* * */ - public void listQueues( + default void listQueues( crawlercommons.urlfrontier.Urlfrontier.Pagination request, io.grpc.stub.StreamObserver responseObserver) { @@ -957,7 +957,7 @@ public void listQueues( * * Stream URLs due for fetching from M queues with up to N items per queue * * */ - public void getURLs( + default void getURLs( crawlercommons.urlfrontier.Urlfrontier.GetParams request, io.grpc.stub.StreamObserver responseObserver) { @@ -972,7 +972,7 @@ public void getURLs( * * Push URL items to the server; they get created (if they don't already exist) in case of DiscoveredURLItems or updated if KnownURLItems * * */ - public io.grpc.stub.StreamObserver putURLs( + default io.grpc.stub.StreamObserver putURLs( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( @@ -986,7 +986,7 @@ public io.grpc.stub.StreamObserver */ - public void getStats( + default void getStats( crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request, io.grpc.stub.StreamObserver responseObserver) { @@ -1001,7 +1001,7 @@ public void getStats( * * Delete the queue based on the key in parameter, returns the number of URLs removed this way * * */ - public void deleteQueue( + default void deleteQueue( crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request, io.grpc.stub.StreamObserver responseObserver) { @@ -1018,7 +1018,7 @@ public void deleteQueue( * indicated in argument is reached. This is useful for cases where a server returns a Retry-After for instance. * */ - public void blockQueueUntil( + default void blockQueueUntil( crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams request, io.grpc.stub.StreamObserver responseObserver) { @@ -1033,7 +1033,7 @@ public void blockQueueUntil( * * De/activate the crawl. GetURLs will not return anything until SetActive is set to true. PutURLs will still take incoming data. * * */ - public void setActive( + default void setActive( crawlercommons.urlfrontier.Urlfrontier.Active request, io.grpc.stub.StreamObserver responseObserver) { @@ -1048,7 +1048,7 @@ public void setActive( * * Returns true if the crawl is active, false if it has been deactivated with SetActive(Boolean) * * */ - public void getActive( + default void getActive( crawlercommons.urlfrontier.Urlfrontier.Local request, io.grpc.stub.StreamObserver responseObserver) { @@ -1066,7 +1066,7 @@ public void getActive( * Usually informed by the delay setting of robots.txt. * */ - public void setDelay( + default void setDelay( crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams request, io.grpc.stub.StreamObserver responseObserver) { @@ -1081,7 +1081,7 @@ public void setDelay( * * Overrides the log level for a given package * * */ - public void setLogLevel( + default void setLogLevel( crawlercommons.urlfrontier.Urlfrontier.LogLevelParams request, io.grpc.stub.StreamObserver responseObserver) { @@ -1096,7 +1096,7 @@ public void setLogLevel( * * Sets crawl limit for domain * * */ - public void setCrawlLimit( + default void setCrawlLimit( crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams request, io.grpc.stub.StreamObserver responseObserver) { @@ -1113,7 +1113,7 @@ public void setCrawlLimit( * Used to check current status of an URL within the frontier * */ - public void getURLStatus( + default void getURLStatus( crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1130,137 +1130,26 @@ public void getURLStatus( * Used to check current status of all URLs within the frontier * */ - public void listURLs( + default void listURLs( crawlercommons.urlfrontier.Urlfrontier.ListUrlParams request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListURLsMethod(), responseObserver); } + } + + /** Base class for the server implementation of the service URLFrontier. */ + public abstract static class URLFrontierImplBase + implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListNodesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier.Empty, - crawlercommons.urlfrontier.Urlfrontier.StringList>( - this, METHODID_LIST_NODES))) - .addMethod( - getListCrawlsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier.Local, - crawlercommons.urlfrontier.Urlfrontier.StringList>( - this, METHODID_LIST_CRAWLS))) - .addMethod( - getDeleteCrawlMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier - .DeleteCrawlMessage, - crawlercommons.urlfrontier.Urlfrontier.Long>( - this, METHODID_DELETE_CRAWL))) - .addMethod( - getListQueuesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier.Pagination, - crawlercommons.urlfrontier.Urlfrontier.QueueList>( - this, METHODID_LIST_QUEUES))) - .addMethod( - getGetURLsMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier.GetParams, - crawlercommons.urlfrontier.Urlfrontier.URLInfo>( - this, METHODID_GET_URLS))) - .addMethod( - getPutURLsMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier.URLItem, - crawlercommons.urlfrontier.Urlfrontier.AckMessage>( - this, METHODID_PUT_URLS))) - .addMethod( - getGetStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier - .QueueWithinCrawlParams, - crawlercommons.urlfrontier.Urlfrontier.Stats>( - this, METHODID_GET_STATS))) - .addMethod( - getDeleteQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier - .QueueWithinCrawlParams, - crawlercommons.urlfrontier.Urlfrontier.Long>( - this, METHODID_DELETE_QUEUE))) - .addMethod( - getBlockQueueUntilMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams, - crawlercommons.urlfrontier.Urlfrontier.Empty>( - this, METHODID_BLOCK_QUEUE_UNTIL))) - .addMethod( - getSetActiveMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier.Active, - crawlercommons.urlfrontier.Urlfrontier.Empty>( - this, METHODID_SET_ACTIVE))) - .addMethod( - getGetActiveMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier.Local, - crawlercommons.urlfrontier.Urlfrontier.Boolean>( - this, METHODID_GET_ACTIVE))) - .addMethod( - getSetDelayMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams, - crawlercommons.urlfrontier.Urlfrontier.Empty>( - this, METHODID_SET_DELAY))) - .addMethod( - getSetLogLevelMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier.LogLevelParams, - crawlercommons.urlfrontier.Urlfrontier.Empty>( - this, METHODID_SET_LOG_LEVEL))) - .addMethod( - getSetCrawlLimitMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams, - crawlercommons.urlfrontier.Urlfrontier.Empty>( - this, METHODID_SET_CRAWL_LIMIT))) - .addMethod( - getGetURLStatusMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest, - crawlercommons.urlfrontier.Urlfrontier.URLItem>( - this, METHODID_GET_URLSTATUS))) - .addMethod( - getListURLsMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - crawlercommons.urlfrontier.Urlfrontier.ListUrlParams, - crawlercommons.urlfrontier.Urlfrontier.URLItem>( - this, METHODID_LIST_URLS))) - .build(); + return URLFrontierGrpc.bindService(this); } } - /** */ + /** A stub to allow clients to do asynchronous rpc calls to service URLFrontier. */ public static final class URLFrontierStub extends io.grpc.stub.AbstractAsyncStub { private URLFrontierStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -1552,7 +1441,7 @@ public void listURLs( } } - /** */ + /** A stub to allow clients to do synchronous rpc calls to service URLFrontier. */ public static final class URLFrontierBlockingStub extends io.grpc.stub.AbstractBlockingStub { private URLFrontierBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -1771,7 +1660,7 @@ public java.util.Iterator listUR } } - /** */ + /** A stub to allow clients to do ListenableFuture-style rpc calls to service URLFrontier. */ public static final class URLFrontierFutureStub extends io.grpc.stub.AbstractFutureStub { private URLFrontierFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -1997,10 +1886,10 @@ private static final class MethodHandlers io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final URLFrontierImplBase serviceImpl; + private final AsyncService serviceImpl; private final int methodId; - MethodHandlers(URLFrontierImplBase serviceImpl, int methodId) { + MethodHandlers(AsyncService serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @@ -2137,6 +2026,125 @@ public io.grpc.stub.StreamObserver invoke( } } + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListNodesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier.Empty, + crawlercommons.urlfrontier.Urlfrontier.StringList>( + service, METHODID_LIST_NODES))) + .addMethod( + getListCrawlsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier.Local, + crawlercommons.urlfrontier.Urlfrontier.StringList>( + service, METHODID_LIST_CRAWLS))) + .addMethod( + getDeleteCrawlMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage, + crawlercommons.urlfrontier.Urlfrontier.Long>( + service, METHODID_DELETE_CRAWL))) + .addMethod( + getListQueuesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier.Pagination, + crawlercommons.urlfrontier.Urlfrontier.QueueList>( + service, METHODID_LIST_QUEUES))) + .addMethod( + getGetURLsMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier.GetParams, + crawlercommons.urlfrontier.Urlfrontier.URLInfo>( + service, METHODID_GET_URLS))) + .addMethod( + getPutURLsMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier.URLItem, + crawlercommons.urlfrontier.Urlfrontier.AckMessage>( + service, METHODID_PUT_URLS))) + .addMethod( + getGetStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier + .QueueWithinCrawlParams, + crawlercommons.urlfrontier.Urlfrontier.Stats>( + service, METHODID_GET_STATS))) + .addMethod( + getDeleteQueueMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier + .QueueWithinCrawlParams, + crawlercommons.urlfrontier.Urlfrontier.Long>( + service, METHODID_DELETE_QUEUE))) + .addMethod( + getBlockQueueUntilMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams, + crawlercommons.urlfrontier.Urlfrontier.Empty>( + service, METHODID_BLOCK_QUEUE_UNTIL))) + .addMethod( + getSetActiveMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier.Active, + crawlercommons.urlfrontier.Urlfrontier.Empty>( + service, METHODID_SET_ACTIVE))) + .addMethod( + getGetActiveMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier.Local, + crawlercommons.urlfrontier.Urlfrontier.Boolean>( + service, METHODID_GET_ACTIVE))) + .addMethod( + getSetDelayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams, + crawlercommons.urlfrontier.Urlfrontier.Empty>( + service, METHODID_SET_DELAY))) + .addMethod( + getSetLogLevelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams, + crawlercommons.urlfrontier.Urlfrontier.Empty>( + service, METHODID_SET_LOG_LEVEL))) + .addMethod( + getSetCrawlLimitMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams, + crawlercommons.urlfrontier.Urlfrontier.Empty>( + service, METHODID_SET_CRAWL_LIMIT))) + .addMethod( + getGetURLStatusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest, + crawlercommons.urlfrontier.Urlfrontier.URLItem>( + service, METHODID_GET_URLSTATUS))) + .addMethod( + getListURLsMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + crawlercommons.urlfrontier.Urlfrontier.ListUrlParams, + crawlercommons.urlfrontier.Urlfrontier.URLItem>( + service, METHODID_LIST_URLS))) + .build(); + } + private abstract static class URLFrontierBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { @@ -2161,9 +2169,9 @@ private static final class URLFrontierFileDescriptorSupplier private static final class URLFrontierMethodDescriptorSupplier extends URLFrontierBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; + private final java.lang.String methodName; - URLFrontierMethodDescriptorSupplier(String methodName) { + URLFrontierMethodDescriptorSupplier(java.lang.String methodName) { this.methodName = methodName; } diff --git a/API/src/main/java/crawlercommons/urlfrontier/Urlfrontier.java b/API/src/main/java/crawlercommons/urlfrontier/Urlfrontier.java index 345c91e..e6897fb 100644 --- a/API/src/main/java/crawlercommons/urlfrontier/Urlfrontier.java +++ b/API/src/main/java/crawlercommons/urlfrontier/Urlfrontier.java @@ -1,6 +1,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: urlfrontier.proto +// Protobuf Java Version: 3.25.5 package crawlercommons.urlfrontier; public final class Urlfrontier { @@ -173,11 +174,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Stats(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_Stats_descriptor; @@ -185,7 +181,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetCounts(); @@ -205,7 +202,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int SIZE_FIELD_NUMBER = 1; - private long size_; + private long size_ = 0L; /** * @@ -224,7 +221,7 @@ public long getSize() { } public static final int INPROCESS_FIELD_NUMBER = 2; - private int inProcess_; + private int inProcess_ = 0; /** * @@ -257,6 +254,7 @@ private static final class CountsDefaultEntryHolder { 0L); } + @SuppressWarnings("serial") private com.google.protobuf.MapField counts_; private com.google.protobuf.MapField internalGetCounts() { @@ -349,7 +347,7 @@ public long getCountsOrThrow(java.lang.String key) { } public static final int NUMBEROFQUEUES_FIELD_NUMBER = 4; - private long numberOfQueues_; + private long numberOfQueues_ = 0L; /** * @@ -368,7 +366,9 @@ public long getNumberOfQueues() { } public static final int CRAWLID_FIELD_NUMBER = 5; - private volatile java.lang.Object crawlID_; + + @SuppressWarnings("serial") + private volatile java.lang.Object crawlID_ = ""; /** * @@ -650,7 +650,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetCounts(); @@ -660,7 +661,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor + internalGetMutableMapFieldReflection(int number) { switch (number) { case 3: return internalGetMutableCounts(); @@ -689,15 +691,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; size_ = 0L; - inProcess_ = 0; - internalGetMutableCounts().clear(); numberOfQueues_ = 0L; - crawlID_ = ""; - return this; } @@ -725,17 +724,33 @@ public crawlercommons.urlfrontier.Urlfrontier.Stats build() { public crawlercommons.urlfrontier.Urlfrontier.Stats buildPartial() { crawlercommons.urlfrontier.Urlfrontier.Stats result = new crawlercommons.urlfrontier.Urlfrontier.Stats(this); - int from_bitField0_ = bitField0_; - result.size_ = size_; - result.inProcess_ = inProcess_; - result.counts_ = internalGetCounts(); - result.counts_.makeImmutable(); - result.numberOfQueues_ = numberOfQueues_; - result.crawlID_ = crawlID_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.Stats result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.size_ = size_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inProcess_ = inProcess_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.counts_ = internalGetCounts(); + result.counts_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.numberOfQueues_ = numberOfQueues_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.crawlID_ = crawlID_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -791,11 +806,13 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Stats other) { setInProcess(other.getInProcess()); } internalGetMutableCounts().mergeFrom(other.internalGetCounts()); + bitField0_ |= 0x00000004; if (other.getNumberOfQueues() != 0L) { setNumberOfQueues(other.getNumberOfQueues()); } if (!other.getCrawlID().isEmpty()) { crawlID_ = other.crawlID_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -827,13 +844,13 @@ public Builder mergeFrom( case 8: { size_ = input.readUInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { inProcess_ = input.readUInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: @@ -847,18 +864,19 @@ public Builder mergeFrom( internalGetMutableCounts() .getMutableMap() .put(counts__.getKey(), counts__.getValue()); + bitField0_ |= 0x00000004; break; } // case 26 case 32: { numberOfQueues_ = input.readUInt64(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: { crawlID_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -913,6 +931,7 @@ public long getSize() { public Builder setSize(long value) { size_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -929,7 +948,7 @@ public Builder setSize(long value) { * @return This builder for chaining. */ public Builder clearSize() { - + bitField0_ = (bitField0_ & ~0x00000001); size_ = 0L; onChanged(); return this; @@ -968,6 +987,7 @@ public int getInProcess() { public Builder setInProcess(int value) { inProcess_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -984,7 +1004,7 @@ public Builder setInProcess(int value) { * @return This builder for chaining. */ public Builder clearInProcess() { - + bitField0_ = (bitField0_ & ~0x00000002); inProcess_ = 0; onChanged(); return this; @@ -1003,8 +1023,6 @@ public Builder clearInProcess() { private com.google.protobuf.MapField internalGetMutableCounts() { - onChanged(); - ; if (counts_ == null) { counts_ = com.google.protobuf.MapField.newMapField( @@ -1013,6 +1031,8 @@ public Builder clearInProcess() { if (!counts_.isMutable()) { counts_ = counts_.copy(); } + bitField0_ |= 0x00000004; + onChanged(); return counts_; } @@ -1098,6 +1118,7 @@ public long getCountsOrThrow(java.lang.String key) { } public Builder clearCounts() { + bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableCounts().getMutableMap().clear(); return this; } @@ -1122,6 +1143,7 @@ public Builder removeCounts(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableCounts() { + bitField0_ |= 0x00000004; return internalGetMutableCounts().getMutableMap(); } @@ -1140,6 +1162,7 @@ public Builder putCounts(java.lang.String key, long value) { } internalGetMutableCounts().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; return this; } @@ -1154,6 +1177,7 @@ public Builder putCounts(java.lang.String key, long value) { */ public Builder putAllCounts(java.util.Map values) { internalGetMutableCounts().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; return this; } @@ -1190,6 +1214,7 @@ public long getNumberOfQueues() { public Builder setNumberOfQueues(long value) { numberOfQueues_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1206,7 +1231,7 @@ public Builder setNumberOfQueues(long value) { * @return This builder for chaining. */ public Builder clearNumberOfQueues() { - + bitField0_ = (bitField0_ & ~0x00000008); numberOfQueues_ = 0L; onChanged(); return this; @@ -1276,8 +1301,8 @@ public Builder setCrawlID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - crawlID_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1294,8 +1319,8 @@ public Builder setCrawlID(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCrawlID() { - crawlID_ = getDefaultInstance().getCrawlID(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1317,8 +1342,8 @@ public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - crawlID_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1493,11 +1518,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Pagination(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_Pagination_descriptor; @@ -1514,7 +1534,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int START_FIELD_NUMBER = 1; - private int start_; + private int start_ = 0; /** * @@ -1533,7 +1553,7 @@ public int getStart() { } public static final int SIZE_FIELD_NUMBER = 2; - private int size_; + private int size_ = 0; /** * @@ -1552,7 +1572,7 @@ public int getSize() { } public static final int INCLUDE_INACTIVE_FIELD_NUMBER = 3; - private boolean includeInactive_; + private boolean includeInactive_ = false; /** * @@ -1571,7 +1591,9 @@ public boolean getIncludeInactive() { } public static final int CRAWLID_FIELD_NUMBER = 4; - private volatile java.lang.Object crawlID_; + + @SuppressWarnings("serial") + private volatile java.lang.Object crawlID_ = ""; /** * @@ -1622,7 +1644,7 @@ public com.google.protobuf.ByteString getCrawlIDBytes() { } public static final int LOCAL_FIELD_NUMBER = 5; - private boolean local_; + private boolean local_ = false; /** * @@ -1875,16 +1897,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; start_ = 0; - size_ = 0; - includeInactive_ = false; - crawlID_ = ""; - local_ = false; - return this; } @@ -1912,15 +1930,32 @@ public crawlercommons.urlfrontier.Urlfrontier.Pagination build() { public crawlercommons.urlfrontier.Urlfrontier.Pagination buildPartial() { crawlercommons.urlfrontier.Urlfrontier.Pagination result = new crawlercommons.urlfrontier.Urlfrontier.Pagination(this); - result.start_ = start_; - result.size_ = size_; - result.includeInactive_ = includeInactive_; - result.crawlID_ = crawlID_; - result.local_ = local_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.Pagination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.start_ = start_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.size_ = size_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.includeInactive_ = includeInactive_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.crawlID_ = crawlID_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.local_ = local_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1980,6 +2015,7 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Pagination other } if (!other.getCrawlID().isEmpty()) { crawlID_ = other.crawlID_; + bitField0_ |= 0x00000008; onChanged(); } if (other.getLocal() != false) { @@ -2014,31 +2050,31 @@ public Builder mergeFrom( case 8: { start_ = input.readUInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { size_ = input.readUInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { includeInactive_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { crawlID_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 40: { local_ = input.readBool(); - + bitField0_ |= 0x00000010; break; } // case 40 default: @@ -2058,6 +2094,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int start_; /** @@ -2091,6 +2129,7 @@ public int getStart() { public Builder setStart(int value) { start_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2107,7 +2146,7 @@ public Builder setStart(int value) { * @return This builder for chaining. */ public Builder clearStart() { - + bitField0_ = (bitField0_ & ~0x00000001); start_ = 0; onChanged(); return this; @@ -2146,6 +2185,7 @@ public int getSize() { public Builder setSize(int value) { size_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2162,7 +2202,7 @@ public Builder setSize(int value) { * @return This builder for chaining. */ public Builder clearSize() { - + bitField0_ = (bitField0_ & ~0x00000002); size_ = 0; onChanged(); return this; @@ -2201,6 +2241,7 @@ public boolean getIncludeInactive() { public Builder setIncludeInactive(boolean value) { includeInactive_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2217,7 +2258,7 @@ public Builder setIncludeInactive(boolean value) { * @return This builder for chaining. */ public Builder clearIncludeInactive() { - + bitField0_ = (bitField0_ & ~0x00000004); includeInactive_ = false; onChanged(); return this; @@ -2287,8 +2328,8 @@ public Builder setCrawlID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - crawlID_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2305,8 +2346,8 @@ public Builder setCrawlID(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCrawlID() { - crawlID_ = getDefaultInstance().getCrawlID(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2328,8 +2369,8 @@ public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - crawlID_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2367,6 +2408,7 @@ public boolean getLocal() { public Builder setLocal(boolean value) { local_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2383,7 +2425,7 @@ public Builder setLocal(boolean value) { * @return This builder for chaining. */ public Builder clearLocal() { - + bitField0_ = (bitField0_ & ~0x00000010); local_ = false; onChanged(); return this; @@ -2502,11 +2544,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteCrawlMessage(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_DeleteCrawlMessage_descriptor; @@ -2524,7 +2561,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUE_FIELD_NUMBER = 1; - private volatile java.lang.Object value_; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; /** * string value = 1; @@ -2563,7 +2602,7 @@ public com.google.protobuf.ByteString getValueBytes() { } public static final int LOCAL_FIELD_NUMBER = 2; - private boolean local_; + private boolean local_ = false; /** * bool local = 2; @@ -2785,10 +2824,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; value_ = ""; - local_ = false; - return this; } @@ -2818,12 +2856,24 @@ public crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage build() { public crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage buildPartial() { crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage result = new crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage(this); - result.value_ = value_; - result.local_ = local_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.local_ = local_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2877,6 +2927,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getLocal() != false) { @@ -2911,13 +2962,13 @@ public Builder mergeFrom( case 10: { value_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { local_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -2937,6 +2988,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object value_ = ""; /** @@ -2983,8 +3036,8 @@ public Builder setValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2995,8 +3048,8 @@ public Builder setValue(java.lang.String value) { * @return This builder for chaining. */ public Builder clearValue() { - value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3012,8 +3065,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3039,6 +3092,7 @@ public boolean getLocal() { public Builder setLocal(boolean value) { local_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3049,7 +3103,7 @@ public Builder setLocal(boolean value) { * @return This builder for chaining. */ public Builder clearLocal() { - + bitField0_ = (bitField0_ & ~0x00000002); local_ = false; onChanged(); return this; @@ -3147,11 +3201,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Empty(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_Empty_descriptor; @@ -3575,11 +3624,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Local(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_Local_descriptor; @@ -3596,7 +3640,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int LOCAL_FIELD_NUMBER = 1; - private boolean local_; + private boolean local_ = false; /** * bool local = 1; @@ -3806,8 +3850,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; local_ = false; - return this; } @@ -3835,11 +3879,20 @@ public crawlercommons.urlfrontier.Urlfrontier.Local build() { public crawlercommons.urlfrontier.Urlfrontier.Local buildPartial() { crawlercommons.urlfrontier.Urlfrontier.Local result = new crawlercommons.urlfrontier.Urlfrontier.Local(this); - result.local_ = local_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.Local result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.local_ = local_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3920,7 +3973,7 @@ public Builder mergeFrom( case 8: { local_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -3940,6 +3993,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean local_; /** @@ -3961,6 +4016,7 @@ public boolean getLocal() { public Builder setLocal(boolean value) { local_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3971,7 +4027,7 @@ public Builder setLocal(boolean value) { * @return This builder for chaining. */ public Builder clearLocal() { - + bitField0_ = (bitField0_ & ~0x00000001); local_ = false; onChanged(); return this; @@ -4081,11 +4137,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Active(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_Active_descriptor; @@ -4102,7 +4153,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int STATE_FIELD_NUMBER = 1; - private boolean state_; + private boolean state_ = false; /** * bool state = 1; @@ -4115,7 +4166,7 @@ public boolean getState() { } public static final int LOCAL_FIELD_NUMBER = 2; - private boolean local_; + private boolean local_ = false; /** * bool local = 2; @@ -4334,10 +4385,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; state_ = false; - local_ = false; - return this; } @@ -4365,12 +4415,23 @@ public crawlercommons.urlfrontier.Urlfrontier.Active build() { public crawlercommons.urlfrontier.Urlfrontier.Active buildPartial() { crawlercommons.urlfrontier.Urlfrontier.Active result = new crawlercommons.urlfrontier.Urlfrontier.Active(this); - result.state_ = state_; - result.local_ = local_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.Active result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.local_ = local_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -4454,13 +4515,13 @@ public Builder mergeFrom( case 8: { state_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { local_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -4480,6 +4541,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean state_; /** @@ -4501,6 +4564,7 @@ public boolean getState() { public Builder setState(boolean value) { state_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4511,7 +4575,7 @@ public Builder setState(boolean value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000001); state_ = false; onChanged(); return this; @@ -4538,6 +4602,7 @@ public boolean getLocal() { public Builder setLocal(boolean value) { local_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4548,7 +4613,7 @@ public Builder setLocal(boolean value) { * @return This builder for chaining. */ public Builder clearLocal() { - + bitField0_ = (bitField0_ & ~0x00000002); local_ = false; onChanged(); return this; @@ -4651,11 +4716,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Boolean(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_Boolean_descriptor; @@ -4672,7 +4732,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int STATE_FIELD_NUMBER = 1; - private boolean state_; + private boolean state_ = false; /** * bool state = 1; @@ -4882,8 +4942,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; state_ = false; - return this; } @@ -4911,11 +4971,20 @@ public crawlercommons.urlfrontier.Urlfrontier.Boolean build() { public crawlercommons.urlfrontier.Urlfrontier.Boolean buildPartial() { crawlercommons.urlfrontier.Urlfrontier.Boolean result = new crawlercommons.urlfrontier.Urlfrontier.Boolean(this); - result.state_ = state_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.Boolean result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -4996,7 +5065,7 @@ public Builder mergeFrom( case 8: { state_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -5016,6 +5085,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean state_; /** @@ -5037,6 +5108,7 @@ public boolean getState() { public Builder setState(boolean value) { state_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5047,7 +5119,7 @@ public Builder setState(boolean value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000001); state_ = false; onChanged(); return this; @@ -5150,11 +5222,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Long(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_Long_descriptor; @@ -5171,7 +5238,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUE_FIELD_NUMBER = 1; - private long value_; + private long value_ = 0L; /** * uint64 value = 1; @@ -5381,8 +5448,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; value_ = 0L; - return this; } @@ -5410,11 +5477,20 @@ public crawlercommons.urlfrontier.Urlfrontier.Long build() { public crawlercommons.urlfrontier.Urlfrontier.Long buildPartial() { crawlercommons.urlfrontier.Urlfrontier.Long result = new crawlercommons.urlfrontier.Urlfrontier.Long(this); - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.Long result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -5495,7 +5571,7 @@ public Builder mergeFrom( case 8: { value_ = input.readUInt64(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -5515,6 +5591,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private long value_; /** @@ -5536,6 +5614,7 @@ public long getValue() { public Builder setValue(long value) { value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5546,7 +5625,7 @@ public Builder setValue(long value) { * @return This builder for chaining. */ public Builder clearValue() { - + bitField0_ = (bitField0_ & ~0x00000001); value_ = 0L; onChanged(); return this; @@ -5738,7 +5817,7 @@ private QueueList(com.google.protobuf.GeneratedMessageV3.Builder builder) { } private QueueList() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); crawlID_ = ""; } @@ -5748,11 +5827,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueueList(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_QueueList_descriptor; @@ -5769,7 +5843,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList values_; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string values = 1; @@ -5810,7 +5887,7 @@ public com.google.protobuf.ByteString getValuesBytes(int index) { } public static final int TOTAL_FIELD_NUMBER = 2; - private long total_; + private long total_ = 0L; /** * @@ -5829,7 +5906,7 @@ public long getTotal() { } public static final int START_FIELD_NUMBER = 3; - private int start_; + private int start_ = 0; /** * @@ -5848,7 +5925,7 @@ public int getStart() { } public static final int SIZE_FIELD_NUMBER = 4; - private int size_; + private int size_ = 0; /** * @@ -5867,7 +5944,9 @@ public int getSize() { } public static final int CRAWLID_FIELD_NUMBER = 5; - private volatile java.lang.Object crawlID_; + + @SuppressWarnings("serial") + private volatile java.lang.Object crawlID_ = ""; /** * @@ -6167,16 +6246,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); total_ = 0L; - start_ = 0; - size_ = 0; - crawlID_ = ""; - return this; } @@ -6204,20 +6279,33 @@ public crawlercommons.urlfrontier.Urlfrontier.QueueList build() { public crawlercommons.urlfrontier.Urlfrontier.QueueList buildPartial() { crawlercommons.urlfrontier.Urlfrontier.QueueList result = new crawlercommons.urlfrontier.Urlfrontier.QueueList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - result.total_ = total_; - result.start_ = start_; - result.size_ = size_; - result.crawlID_ = crawlID_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.QueueList result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.total_ = total_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.start_ = start_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.size_ = size_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.crawlID_ = crawlID_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -6269,7 +6357,7 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.QueueList other) if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureValuesIsMutable(); values_.addAll(other.values_); @@ -6287,6 +6375,7 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.QueueList other) } if (!other.getCrawlID().isEmpty()) { crawlID_ = other.crawlID_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -6325,25 +6414,25 @@ public Builder mergeFrom( case 16: { total_ = input.readUInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { start_ = input.readUInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 32: { size_ = input.readUInt32(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: { crawlID_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -6365,14 +6454,14 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList values_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!values_.isModifiable()) { values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** @@ -6381,7 +6470,8 @@ private void ensureValuesIsMutable() { * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { - return values_.getUnmodifiableView(); + values_.makeImmutable(); + return values_; } /** @@ -6426,6 +6516,7 @@ public Builder setValues(int index, java.lang.String value) { } ensureValuesIsMutable(); values_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -6442,6 +6533,7 @@ public Builder addValues(java.lang.String value) { } ensureValuesIsMutable(); values_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -6455,6 +6547,7 @@ public Builder addValues(java.lang.String value) { public Builder addAllValues(java.lang.Iterable values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -6465,8 +6558,9 @@ public Builder addAllValues(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } @@ -6484,6 +6578,7 @@ public Builder addValuesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -6521,6 +6616,7 @@ public long getTotal() { public Builder setTotal(long value) { total_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -6537,7 +6633,7 @@ public Builder setTotal(long value) { * @return This builder for chaining. */ public Builder clearTotal() { - + bitField0_ = (bitField0_ & ~0x00000002); total_ = 0L; onChanged(); return this; @@ -6576,6 +6672,7 @@ public int getStart() { public Builder setStart(int value) { start_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -6592,7 +6689,7 @@ public Builder setStart(int value) { * @return This builder for chaining. */ public Builder clearStart() { - + bitField0_ = (bitField0_ & ~0x00000004); start_ = 0; onChanged(); return this; @@ -6631,6 +6728,7 @@ public int getSize() { public Builder setSize(int value) { size_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -6647,7 +6745,7 @@ public Builder setSize(int value) { * @return This builder for chaining. */ public Builder clearSize() { - + bitField0_ = (bitField0_ & ~0x00000008); size_ = 0; onChanged(); return this; @@ -6717,8 +6815,8 @@ public Builder setCrawlID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - crawlID_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -6735,8 +6833,8 @@ public Builder setCrawlID(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCrawlID() { - crawlID_ = getDefaultInstance().getCrawlID(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -6758,8 +6856,8 @@ public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - crawlID_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -6877,7 +6975,7 @@ private StringList(com.google.protobuf.GeneratedMessageV3.Builder builder) { } private StringList() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -6886,11 +6984,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StringList(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_StringList_descriptor; @@ -6907,7 +7000,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList values_; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string values = 1; @@ -7153,8 +7249,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -7182,16 +7278,21 @@ public crawlercommons.urlfrontier.Urlfrontier.StringList build() { public crawlercommons.urlfrontier.Urlfrontier.StringList buildPartial() { crawlercommons.urlfrontier.Urlfrontier.StringList result = new crawlercommons.urlfrontier.Urlfrontier.StringList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + if (bitField0_ != 0) { + buildPartial0(result); } - result.values_ = values_; onBuilt(); return result; } + private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.StringList result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -7243,7 +7344,7 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.StringList other if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureValuesIsMutable(); values_.addAll(other.values_); @@ -7302,14 +7403,14 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList values_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!values_.isModifiable()) { values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** @@ -7318,7 +7419,8 @@ private void ensureValuesIsMutable() { * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { - return values_.getUnmodifiableView(); + values_.makeImmutable(); + return values_; } /** @@ -7363,6 +7465,7 @@ public Builder setValues(int index, java.lang.String value) { } ensureValuesIsMutable(); values_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -7379,6 +7482,7 @@ public Builder addValues(java.lang.String value) { } ensureValuesIsMutable(); values_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -7392,6 +7496,7 @@ public Builder addValues(java.lang.String value) { public Builder addAllValues(java.lang.Iterable values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -7402,8 +7507,9 @@ public Builder addAllValues(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } @@ -7421,6 +7527,7 @@ public Builder addValuesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -7583,11 +7690,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueueWithinCrawlParams(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_QueueWithinCrawlParams_descriptor; @@ -7605,7 +7707,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; /** * @@ -7656,7 +7760,9 @@ public com.google.protobuf.ByteString getKeyBytes() { } public static final int CRAWLID_FIELD_NUMBER = 2; - private volatile java.lang.Object crawlID_; + + @SuppressWarnings("serial") + private volatile java.lang.Object crawlID_ = ""; /** * @@ -7707,7 +7813,7 @@ public com.google.protobuf.ByteString getCrawlIDBytes() { } public static final int LOCAL_FIELD_NUMBER = 3; - private boolean local_; + private boolean local_ = false; /** * @@ -7945,12 +8051,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; key_ = ""; - crawlID_ = ""; - local_ = false; - return this; } @@ -7981,13 +8085,27 @@ public crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams build() { public crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams buildPartial() { crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams result = new crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams(this); - result.key_ = key_; - result.crawlID_ = crawlID_; - result.local_ = local_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.crawlID_ = crawlID_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.local_ = local_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -8042,10 +8160,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getCrawlID().isEmpty()) { crawlID_ = other.crawlID_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getLocal() != false) { @@ -8080,19 +8200,19 @@ public Builder mergeFrom( case 10: { key_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { crawlID_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { local_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -8112,6 +8232,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object key_ = ""; /** @@ -8176,8 +8298,8 @@ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - key_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -8194,8 +8316,8 @@ public Builder setKey(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKey() { - key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -8217,8 +8339,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - key_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -8287,8 +8409,8 @@ public Builder setCrawlID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - crawlID_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -8305,8 +8427,8 @@ public Builder setCrawlID(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCrawlID() { - crawlID_ = getDefaultInstance().getCrawlID(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -8328,8 +8450,8 @@ public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - crawlID_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -8367,6 +8489,7 @@ public boolean getLocal() { public Builder setLocal(boolean value) { local_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -8383,7 +8506,7 @@ public Builder setLocal(boolean value) { * @return This builder for chaining. */ public Builder clearLocal() { - + bitField0_ = (bitField0_ & ~0x00000004); local_ = false; onChanged(); return this; @@ -8571,11 +8694,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueueDelayParams(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_QueueDelayParams_descriptor; @@ -8592,7 +8710,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; /** * @@ -8643,7 +8763,7 @@ public com.google.protobuf.ByteString getKeyBytes() { } public static final int DELAY_REQUESTABLE_FIELD_NUMBER = 2; - private int delayRequestable_; + private int delayRequestable_ = 0; /** * @@ -8662,7 +8782,9 @@ public int getDelayRequestable() { } public static final int CRAWLID_FIELD_NUMBER = 3; - private volatile java.lang.Object crawlID_; + + @SuppressWarnings("serial") + private volatile java.lang.Object crawlID_ = ""; /** * @@ -8713,7 +8835,7 @@ public com.google.protobuf.ByteString getCrawlIDBytes() { } public static final int LOCAL_FIELD_NUMBER = 4; - private boolean local_; + private boolean local_ = false; /** * @@ -8968,14 +9090,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; key_ = ""; - delayRequestable_ = 0; - crawlID_ = ""; - local_ = false; - return this; } @@ -9004,14 +9123,30 @@ public crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams build() { public crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams buildPartial() { crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams result = new crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams(this); - result.key_ = key_; - result.delayRequestable_ = delayRequestable_; - result.crawlID_ = crawlID_; - result.local_ = local_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.delayRequestable_ = delayRequestable_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.crawlID_ = crawlID_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.local_ = local_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -9065,6 +9200,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getDelayRequestable() != 0) { @@ -9072,6 +9208,7 @@ public Builder mergeFrom( } if (!other.getCrawlID().isEmpty()) { crawlID_ = other.crawlID_; + bitField0_ |= 0x00000004; onChanged(); } if (other.getLocal() != false) { @@ -9106,25 +9243,25 @@ public Builder mergeFrom( case 10: { key_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { delayRequestable_ = input.readUInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { crawlID_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { local_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 32 default: @@ -9144,6 +9281,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object key_ = ""; /** @@ -9208,8 +9347,8 @@ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - key_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -9226,8 +9365,8 @@ public Builder setKey(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKey() { - key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -9249,8 +9388,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - key_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -9288,6 +9427,7 @@ public int getDelayRequestable() { public Builder setDelayRequestable(int value) { delayRequestable_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -9304,7 +9444,7 @@ public Builder setDelayRequestable(int value) { * @return This builder for chaining. */ public Builder clearDelayRequestable() { - + bitField0_ = (bitField0_ & ~0x00000002); delayRequestable_ = 0; onChanged(); return this; @@ -9374,8 +9514,8 @@ public Builder setCrawlID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - crawlID_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -9392,8 +9532,8 @@ public Builder setCrawlID(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCrawlID() { - crawlID_ = getDefaultInstance().getCrawlID(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -9415,8 +9555,8 @@ public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - crawlID_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -9454,6 +9594,7 @@ public boolean getLocal() { public Builder setLocal(boolean value) { local_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -9470,7 +9611,7 @@ public Builder setLocal(boolean value) { * @return This builder for chaining. */ public Builder clearLocal() { - + bitField0_ = (bitField0_ & ~0x00000008); local_ = false; onChanged(); return this; @@ -9657,11 +9798,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BlockQueueParams(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_BlockQueueParams_descriptor; @@ -9678,7 +9814,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; /** * @@ -9729,7 +9867,7 @@ public com.google.protobuf.ByteString getKeyBytes() { } public static final int TIME_FIELD_NUMBER = 2; - private long time_; + private long time_ = 0L; /** * @@ -9749,7 +9887,9 @@ public long getTime() { } public static final int CRAWLID_FIELD_NUMBER = 3; - private volatile java.lang.Object crawlID_; + + @SuppressWarnings("serial") + private volatile java.lang.Object crawlID_ = ""; /** * @@ -9800,7 +9940,7 @@ public com.google.protobuf.ByteString getCrawlIDBytes() { } public static final int LOCAL_FIELD_NUMBER = 4; - private boolean local_; + private boolean local_ = false; /** * @@ -10053,14 +10193,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; key_ = ""; - time_ = 0L; - crawlID_ = ""; - local_ = false; - return this; } @@ -10089,14 +10226,30 @@ public crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams build() { public crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams buildPartial() { crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams result = new crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams(this); - result.key_ = key_; - result.time_ = time_; - result.crawlID_ = crawlID_; - result.local_ = local_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.time_ = time_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.crawlID_ = crawlID_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.local_ = local_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -10150,6 +10303,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getTime() != 0L) { @@ -10157,6 +10311,7 @@ public Builder mergeFrom( } if (!other.getCrawlID().isEmpty()) { crawlID_ = other.crawlID_; + bitField0_ |= 0x00000004; onChanged(); } if (other.getLocal() != false) { @@ -10191,25 +10346,25 @@ public Builder mergeFrom( case 10: { key_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { time_ = input.readUInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { crawlID_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { local_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 32 default: @@ -10229,6 +10384,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object key_ = ""; /** @@ -10293,8 +10450,8 @@ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - key_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -10311,8 +10468,8 @@ public Builder setKey(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKey() { - key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -10334,8 +10491,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - key_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -10375,6 +10532,7 @@ public long getTime() { public Builder setTime(long value) { time_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -10392,7 +10550,7 @@ public Builder setTime(long value) { * @return This builder for chaining. */ public Builder clearTime() { - + bitField0_ = (bitField0_ & ~0x00000002); time_ = 0L; onChanged(); return this; @@ -10462,8 +10620,8 @@ public Builder setCrawlID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - crawlID_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -10480,8 +10638,8 @@ public Builder setCrawlID(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCrawlID() { - crawlID_ = getDefaultInstance().getCrawlID(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -10503,8 +10661,8 @@ public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - crawlID_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -10542,6 +10700,7 @@ public boolean getLocal() { public Builder setLocal(boolean value) { local_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -10558,7 +10717,7 @@ public Builder setLocal(boolean value) { * @return This builder for chaining. */ public Builder clearLocal() { - + bitField0_ = (bitField0_ & ~0x00000008); local_ = false; onChanged(); return this; @@ -10737,7 +10896,7 @@ public interface GetParamsOrBuilder */ com.google.protobuf.ByteString getCrawlIDBytes(); - public crawlercommons.urlfrontier.Urlfrontier.GetParams.ItemCase getItemCase(); + crawlercommons.urlfrontier.Urlfrontier.GetParams.ItemCase getItemCase(); } /** @@ -10770,11 +10929,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetParams(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_GetParams_descriptor; @@ -10791,6 +10945,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int itemCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object item_; public enum ItemCase @@ -10839,7 +10995,7 @@ public ItemCase getItemCase() { } public static final int MAX_URLS_PER_QUEUE_FIELD_NUMBER = 1; - private int maxUrlsPerQueue_; + private int maxUrlsPerQueue_ = 0; /** * @@ -10858,7 +11014,7 @@ public int getMaxUrlsPerQueue() { } public static final int MAX_QUEUES_FIELD_NUMBER = 2; - private int maxQueues_; + private int maxQueues_ = 0; /** * @@ -10877,7 +11033,9 @@ public int getMaxQueues() { } public static final int KEY_FIELD_NUMBER = 3; - private volatile java.lang.Object key_; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; /** * @@ -10928,7 +11086,7 @@ public com.google.protobuf.ByteString getKeyBytes() { } public static final int DELAY_REQUESTABLE_FIELD_NUMBER = 4; - private int delayRequestable_; + private int delayRequestable_ = 0; /** * @@ -11310,14 +11468,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; maxUrlsPerQueue_ = 0; - maxQueues_ = 0; - key_ = ""; - delayRequestable_ = 0; - if (anyCrawlIDBuilder_ != null) { anyCrawlIDBuilder_.clear(); } @@ -11350,25 +11505,39 @@ public crawlercommons.urlfrontier.Urlfrontier.GetParams build() { public crawlercommons.urlfrontier.Urlfrontier.GetParams buildPartial() { crawlercommons.urlfrontier.Urlfrontier.GetParams result = new crawlercommons.urlfrontier.Urlfrontier.GetParams(this); - result.maxUrlsPerQueue_ = maxUrlsPerQueue_; - result.maxQueues_ = maxQueues_; - result.key_ = key_; - result.delayRequestable_ = delayRequestable_; - if (itemCase_ == 5) { - if (anyCrawlIDBuilder_ == null) { - result.item_ = item_; - } else { - result.item_ = anyCrawlIDBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (itemCase_ == 6) { - result.item_ = item_; - } - result.itemCase_ = itemCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.GetParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxUrlsPerQueue_ = maxUrlsPerQueue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxQueues_ = maxQueues_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.delayRequestable_ = delayRequestable_; + } + } + + private void buildPartialOneofs( + crawlercommons.urlfrontier.Urlfrontier.GetParams result) { + result.itemCase_ = itemCase_; + result.item_ = this.item_; + if (itemCase_ == 5 && anyCrawlIDBuilder_ != null) { + result.item_ = anyCrawlIDBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -11425,6 +11594,7 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.GetParams other) } if (!other.getKey().isEmpty()) { key_ = other.key_; + bitField0_ |= 0x00000004; onChanged(); } if (other.getDelayRequestable() != 0) { @@ -11477,25 +11647,25 @@ public Builder mergeFrom( case 8: { maxUrlsPerQueue_ = input.readUInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { maxQueues_ = input.readUInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { key_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { delayRequestable_ = input.readUInt32(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: @@ -11544,6 +11714,8 @@ public Builder clearItem() { return this; } + private int bitField0_; + private int maxUrlsPerQueue_; /** @@ -11577,6 +11749,7 @@ public int getMaxUrlsPerQueue() { public Builder setMaxUrlsPerQueue(int value) { maxUrlsPerQueue_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -11593,7 +11766,7 @@ public Builder setMaxUrlsPerQueue(int value) { * @return This builder for chaining. */ public Builder clearMaxUrlsPerQueue() { - + bitField0_ = (bitField0_ & ~0x00000001); maxUrlsPerQueue_ = 0; onChanged(); return this; @@ -11632,6 +11805,7 @@ public int getMaxQueues() { public Builder setMaxQueues(int value) { maxQueues_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -11648,7 +11822,7 @@ public Builder setMaxQueues(int value) { * @return This builder for chaining. */ public Builder clearMaxQueues() { - + bitField0_ = (bitField0_ & ~0x00000002); maxQueues_ = 0; onChanged(); return this; @@ -11718,8 +11892,8 @@ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - key_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -11736,8 +11910,8 @@ public Builder setKey(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKey() { - key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -11759,8 +11933,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - key_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -11798,6 +11972,7 @@ public int getDelayRequestable() { public Builder setDelayRequestable(int value) { delayRequestable_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -11814,7 +11989,7 @@ public Builder setDelayRequestable(int value) { * @return This builder for chaining. */ public Builder clearDelayRequestable() { - + bitField0_ = (bitField0_ & ~0x00000008); delayRequestable_ = 0; onChanged(); return this; @@ -11975,7 +12150,6 @@ public Builder clearAnyCrawlID() { } itemCase_ = 5; onChanged(); - ; return anyCrawlIDBuilder_; } @@ -12171,11 +12345,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnyCrawlID(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_AnyCrawlID_descriptor; @@ -12632,7 +12801,7 @@ public interface URLItemOrBuilder */ com.google.protobuf.ByteString getIDBytes(); - public crawlercommons.urlfrontier.Urlfrontier.URLItem.ItemCase getItemCase(); + crawlercommons.urlfrontier.Urlfrontier.URLItem.ItemCase getItemCase(); } /** @@ -12665,11 +12834,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new URLItem(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_URLItem_descriptor; @@ -12686,6 +12850,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int itemCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object item_; public enum ItemCase @@ -12803,7 +12969,9 @@ public crawlercommons.urlfrontier.Urlfrontier.KnownURLItemOrBuilder getKnownOrBu } public static final int ID_FIELD_NUMBER = 3; - private volatile java.lang.Object iD_; + + @SuppressWarnings("serial") + private volatile java.lang.Object iD_ = ""; /** * @@ -13100,6 +13268,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (discoveredBuilder_ != null) { discoveredBuilder_.clear(); } @@ -13107,7 +13276,6 @@ public Builder clear() { knownBuilder_.clear(); } iD_ = ""; - itemCase_ = 0; item_ = null; return this; @@ -13137,26 +13305,32 @@ public crawlercommons.urlfrontier.Urlfrontier.URLItem build() { public crawlercommons.urlfrontier.Urlfrontier.URLItem buildPartial() { crawlercommons.urlfrontier.Urlfrontier.URLItem result = new crawlercommons.urlfrontier.Urlfrontier.URLItem(this); - if (itemCase_ == 1) { - if (discoveredBuilder_ == null) { - result.item_ = item_; - } else { - result.item_ = discoveredBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (itemCase_ == 2) { - if (knownBuilder_ == null) { - result.item_ = item_; - } else { - result.item_ = knownBuilder_.build(); - } - } - result.iD_ = iD_; - result.itemCase_ = itemCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.URLItem result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.iD_ = iD_; + } + } + + private void buildPartialOneofs(crawlercommons.urlfrontier.Urlfrontier.URLItem result) { + result.itemCase_ = itemCase_; + result.item_ = this.item_; + if (itemCase_ == 1 && discoveredBuilder_ != null) { + result.item_ = discoveredBuilder_.build(); + } + if (itemCase_ == 2 && knownBuilder_ != null) { + result.item_ = knownBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -13207,6 +13381,7 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.URLItem other) { return this; if (!other.getID().isEmpty()) { iD_ = other.iD_; + bitField0_ |= 0x00000004; onChanged(); } switch (other.getItemCase()) { @@ -13269,7 +13444,7 @@ public Builder mergeFrom( case 26: { iD_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -13303,6 +13478,8 @@ public Builder clearItem() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem, crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder, @@ -13467,7 +13644,6 @@ public Builder clearDiscovered() { } itemCase_ = 1; onChanged(); - ; return discoveredBuilder_; } @@ -13625,7 +13801,6 @@ public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder getKnownBuild } itemCase_ = 2; onChanged(); - ; return knownBuilder_; } @@ -13693,8 +13868,8 @@ public Builder setID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - iD_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -13711,8 +13886,8 @@ public Builder setID(java.lang.String value) { * @return This builder for chaining. */ public Builder clearID() { - iD_ = getDefaultInstance().getID(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -13734,8 +13909,8 @@ public Builder setIDBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - iD_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -13873,11 +14048,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AckMessage(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_AckMessage_descriptor; @@ -14000,7 +14170,9 @@ private Status(int value) { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object iD_; + + @SuppressWarnings("serial") + private volatile java.lang.Object iD_ = ""; /** * @@ -14051,7 +14223,7 @@ public com.google.protobuf.ByteString getIDBytes() { } public static final int STATUS_FIELD_NUMBER = 2; - private int status_; + private int status_ = 0; /** * .urlfrontier.AckMessage.Status status = 2; @@ -14070,9 +14242,8 @@ public int getStatusValue() { */ @java.lang.Override public crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status getStatus() { - @SuppressWarnings("deprecation") crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status result = - crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.valueOf(status_); + crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.forNumber(status_); return result == null ? crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.UNRECOGNIZED : result; @@ -14288,10 +14459,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; iD_ = ""; - status_ = 0; - return this; } @@ -14319,12 +14489,23 @@ public crawlercommons.urlfrontier.Urlfrontier.AckMessage build() { public crawlercommons.urlfrontier.Urlfrontier.AckMessage buildPartial() { crawlercommons.urlfrontier.Urlfrontier.AckMessage result = new crawlercommons.urlfrontier.Urlfrontier.AckMessage(this); - result.iD_ = iD_; - result.status_ = status_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.AckMessage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.iD_ = iD_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = status_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -14375,6 +14556,7 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.AckMessage other return this; if (!other.getID().isEmpty()) { iD_ = other.iD_; + bitField0_ |= 0x00000001; onChanged(); } if (other.status_ != 0) { @@ -14409,13 +14591,13 @@ public Builder mergeFrom( case 10: { iD_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { status_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -14435,6 +14617,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object iD_ = ""; /** @@ -14499,8 +14683,8 @@ public Builder setID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - iD_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -14517,8 +14701,8 @@ public Builder setID(java.lang.String value) { * @return This builder for chaining. */ public Builder clearID() { - iD_ = getDefaultInstance().getID(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -14540,8 +14724,8 @@ public Builder setIDBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - iD_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -14565,8 +14749,8 @@ public int getStatusValue() { * @return This builder for chaining. */ public Builder setStatusValue(int value) { - status_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -14578,9 +14762,8 @@ public Builder setStatusValue(int value) { */ @java.lang.Override public crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status getStatus() { - @SuppressWarnings("deprecation") crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status result = - crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.valueOf(status_); + crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.forNumber(status_); return result == null ? crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.UNRECOGNIZED : result; @@ -14597,7 +14780,7 @@ public Builder setStatus( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; status_ = value.getNumber(); onChanged(); return this; @@ -14609,7 +14792,7 @@ public Builder setStatus( * @return This builder for chaining. */ public Builder clearStatus() { - + bitField0_ = (bitField0_ & ~0x00000002); status_ = 0; onChanged(); return this; @@ -14790,7 +14973,6 @@ public interface URLInfoOrBuilder * * map<string, .urlfrontier.StringList> metadata = 3; */ - /* nullable */ crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrDefault( java.lang.String key, @@ -14860,11 +15042,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new URLInfo(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_URLInfo_descriptor; @@ -14872,7 +15049,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetMetadata(); @@ -14892,7 +15070,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int URL_FIELD_NUMBER = 1; - private volatile java.lang.Object url_; + + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; /** * @@ -14943,7 +15123,9 @@ public com.google.protobuf.ByteString getUrlBytes() { } public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; /** * @@ -15015,6 +15197,7 @@ private static final class MetadataDefaultEntryHolder { .StringList.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> metadata_; @@ -15086,9 +15269,11 @@ public boolean containsMetadata(java.lang.String key) { * map<string, .urlfrontier.StringList> metadata = 3; */ @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrDefault( - java.lang.String key, - crawlercommons.urlfrontier.Urlfrontier.StringList defaultValue) { + public /* nullable */ crawlercommons.urlfrontier.Urlfrontier.StringList + getMetadataOrDefault( + java.lang.String key, + /* nullable */ + crawlercommons.urlfrontier.Urlfrontier.StringList defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -15122,7 +15307,9 @@ public crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrThrow( } public static final int CRAWLID_FIELD_NUMBER = 4; - private volatile java.lang.Object crawlID_; + + @SuppressWarnings("serial") + private volatile java.lang.Object crawlID_ = ""; /** * @@ -15389,7 +15576,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetMetadata(); @@ -15399,7 +15587,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor + internalGetMutableMapFieldReflection(int number) { switch (number) { case 3: return internalGetMutableMetadata(); @@ -15428,13 +15617,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; url_ = ""; - key_ = ""; - internalGetMutableMetadata().clear(); crawlID_ = ""; - return this; } @@ -15462,16 +15649,30 @@ public crawlercommons.urlfrontier.Urlfrontier.URLInfo build() { public crawlercommons.urlfrontier.Urlfrontier.URLInfo buildPartial() { crawlercommons.urlfrontier.Urlfrontier.URLInfo result = new crawlercommons.urlfrontier.Urlfrontier.URLInfo(this); - int from_bitField0_ = bitField0_; - result.url_ = url_; - result.key_ = key_; - result.metadata_ = internalGetMetadata(); - result.metadata_.makeImmutable(); - result.crawlID_ = crawlID_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.URLInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadata_ = + internalGetMetadata().build(MetadataDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.crawlID_ = crawlID_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -15522,15 +15723,19 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.URLInfo other) { return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getKey().isEmpty()) { key_ = other.key_; + bitField0_ |= 0x00000002; onChanged(); } internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + bitField0_ |= 0x00000004; if (!other.getCrawlID().isEmpty()) { crawlID_ = other.crawlID_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -15562,13 +15767,13 @@ public Builder mergeFrom( case 10: { url_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { key_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -15583,14 +15788,15 @@ public Builder mergeFrom( .getParserForType(), extensionRegistry); internalGetMutableMetadata() - .getMutableMap() + .ensureBuilderMap() .put(metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00000004; break; } // case 26 case 34: { crawlID_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -15676,8 +15882,8 @@ public Builder setUrl(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - url_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -15694,8 +15900,8 @@ public Builder setUrl(java.lang.String value) { * @return This builder for chaining. */ public Builder clearUrl() { - url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -15717,8 +15923,8 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - url_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -15790,8 +15996,8 @@ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - key_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -15809,8 +16015,8 @@ public Builder setKey(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKey() { - key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -15833,44 +16039,73 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - key_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + private static final class MetadataConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder, + crawlercommons.urlfrontier.Urlfrontier.StringList> { + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.StringList build( + crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder val) { + if (val instanceof crawlercommons.urlfrontier.Urlfrontier.StringList) { + return (crawlercommons.urlfrontier.Urlfrontier.StringList) val; + } + return ((crawlercommons.urlfrontier.Urlfrontier.StringList.Builder) val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + defaultEntry() { + return MetadataDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final MetadataConverter metadataConverter = new MetadataConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder, + crawlercommons.urlfrontier.Urlfrontier.StringList, + crawlercommons.urlfrontier.Urlfrontier.StringList.Builder> metadata_; - private com.google.protobuf.MapField< - java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder, + crawlercommons.urlfrontier.Urlfrontier.StringList, + crawlercommons.urlfrontier.Urlfrontier.StringList.Builder> internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return new com.google.protobuf.MapFieldBuilder<>(metadataConverter); } return metadata_; } - private com.google.protobuf.MapField< - java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder, + crawlercommons.urlfrontier.Urlfrontier.StringList, + crawlercommons.urlfrontier.Urlfrontier.StringList.Builder> internalGetMutableMetadata() { - onChanged(); - ; if (metadata_ == null) { - metadata_ = - com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - } - if (!metadata_.isMutable()) { - metadata_ = metadata_.copy(); + metadata_ = new com.google.protobuf.MapFieldBuilder<>(metadataConverter); } + bitField0_ |= 0x00000004; + onChanged(); return metadata_; } public int getMetadataCount() { - return internalGetMetadata().getMap().size(); + return internalGetMetadata().ensureBuilderMap().size(); } /** @@ -15888,7 +16123,7 @@ public boolean containsMetadata(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - return internalGetMetadata().getMap().containsKey(key); + return internalGetMetadata().ensureBuilderMap().containsKey(key); } /** Use {@link #getMetadataMap()} instead. */ @@ -15914,7 +16149,7 @@ public boolean containsMetadata(java.lang.String key) { public java.util.Map< java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> getMetadataMap() { - return internalGetMetadata().getMap(); + return internalGetMetadata().getImmutableMap(); } /** @@ -15928,15 +16163,19 @@ public boolean containsMetadata(java.lang.String key) { * map<string, .urlfrontier.StringList> metadata = 3; */ @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrDefault( - java.lang.String key, - crawlercommons.urlfrontier.Urlfrontier.StringList defaultValue) { + public /* nullable */ crawlercommons.urlfrontier.Urlfrontier.StringList + getMetadataOrDefault( + java.lang.String key, + /* nullable */ + crawlercommons.urlfrontier.Urlfrontier.StringList defaultValue) { if (key == null) { throw new NullPointerException("map key"); } - java.util.Map - map = internalGetMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + java.util.Map< + java.lang.String, + crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder> + map = internalGetMutableMetadata().ensureBuilderMap(); + return map.containsKey(key) ? metadataConverter.build(map.get(key)) : defaultValue; } /** @@ -15955,16 +16194,19 @@ public crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrThrow( if (key == null) { throw new NullPointerException("map key"); } - java.util.Map - map = internalGetMetadata().getMap(); + java.util.Map< + java.lang.String, + crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder> + map = internalGetMutableMetadata().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } - return map.get(key); + return metadataConverter.build(map.get(key)); } public Builder clearMetadata() { - internalGetMutableMetadata().getMutableMap().clear(); + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableMetadata().clear(); return this; } @@ -15982,7 +16224,7 @@ public Builder removeMetadata(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMetadata().getMutableMap().remove(key); + internalGetMutableMetadata().ensureBuilderMap().remove(key); return this; } @@ -15991,7 +16233,8 @@ public Builder removeMetadata(java.lang.String key) { public java.util.Map< java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> getMutableMetadata() { - return internalGetMutableMetadata().getMutableMap(); + bitField0_ |= 0x00000004; + return internalGetMutableMetadata().ensureMessageMap(); } /** @@ -16012,8 +16255,8 @@ public Builder putMetadata( if (value == null) { throw new NullPointerException("map value"); } - - internalGetMutableMetadata().getMutableMap().put(key, value); + internalGetMutableMetadata().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000004; return this; } @@ -16032,10 +16275,47 @@ public Builder putAllMetadata( java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> values) { - internalGetMutableMetadata().getMutableMap().putAll(values); + for (java.util.Map.Entry< + java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableMetadata().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000004; return this; } + /** + * + * + *
+             * *
+             * 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; + */ + public crawlercommons.urlfrontier.Urlfrontier.StringList.Builder + putMetadataBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder> + builderMap = internalGetMutableMetadata().ensureBuilderMap(); + crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = crawlercommons.urlfrontier.Urlfrontier.StringList.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof crawlercommons.urlfrontier.Urlfrontier.StringList) { + entry = ((crawlercommons.urlfrontier.Urlfrontier.StringList) entry).toBuilder(); + builderMap.put(key, entry); + } + return (crawlercommons.urlfrontier.Urlfrontier.StringList.Builder) entry; + } + private java.lang.Object crawlID_ = ""; /** @@ -16100,8 +16380,8 @@ public Builder setCrawlID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - crawlID_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -16118,8 +16398,8 @@ public Builder setCrawlID(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCrawlID() { - crawlID_ = getDefaultInstance().getCrawlID(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -16141,8 +16421,8 @@ public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - crawlID_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -16280,11 +16560,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new KnownURLItem(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_KnownURLItem_descriptor; @@ -16300,6 +16575,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder.class); } + private int bitField0_; public static final int INFO_FIELD_NUMBER = 1; private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_; @@ -16310,7 +16586,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasInfo() { - return info_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** @@ -16328,11 +16604,13 @@ public crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo() { /** .urlfrontier.URLInfo info = 1; */ @java.lang.Override public crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder() { - return getInfo(); + return info_ == null + ? crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance() + : info_; } public static final int REFETCHABLE_FROM_DATE_FIELD_NUMBER = 2; - private long refetchableFromDate_; + private long refetchableFromDate_ = 0L; /** * @@ -16367,7 +16645,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (info_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInfo()); } if (refetchableFromDate_ != 0L) { @@ -16382,7 +16660,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (info_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInfo()); } if (refetchableFromDate_ != 0L) { @@ -16569,23 +16847,31 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInfoFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); - if (infoBuilder_ == null) { - info_ = null; - } else { - info_ = null; + bitField0_ = 0; + info_ = null; + if (infoBuilder_ != null) { + infoBuilder_.dispose(); infoBuilder_ = null; } refetchableFromDate_ = 0L; - return this; } @@ -16613,16 +16899,26 @@ public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem build() { public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem buildPartial() { crawlercommons.urlfrontier.Urlfrontier.KnownURLItem result = new crawlercommons.urlfrontier.Urlfrontier.KnownURLItem(this); - if (infoBuilder_ == null) { - result.info_ = info_; - } else { - result.info_ = infoBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.refetchableFromDate_ = refetchableFromDate_; onBuilt(); return result; } + private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.KnownURLItem result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.info_ = infoBuilder_ == null ? info_ : infoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.refetchableFromDate_ = refetchableFromDate_; + } + result.bitField0_ |= to_bitField0_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -16708,13 +17004,13 @@ public Builder mergeFrom( { input.readMessage( getInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { refetchableFromDate_ = input.readUInt64(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -16734,6 +17030,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_; private com.google.protobuf.SingleFieldBuilderV3< crawlercommons.urlfrontier.Urlfrontier.URLInfo, @@ -16747,7 +17045,7 @@ public Builder mergeFrom( * @return Whether the info field is set. */ public boolean hasInfo() { - return infoBuilder_ != null || info_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** @@ -16772,11 +17070,11 @@ public Builder setInfo(crawlercommons.urlfrontier.Urlfrontier.URLInfo value) { throw new NullPointerException(); } info_ = value; - onChanged(); } else { infoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } @@ -16785,49 +17083,51 @@ public Builder setInfo( crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder builderForValue) { if (infoBuilder_ == null) { info_ = builderForValue.build(); - onChanged(); } else { infoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** .urlfrontier.URLInfo info = 1; */ public Builder mergeInfo(crawlercommons.urlfrontier.Urlfrontier.URLInfo value) { if (infoBuilder_ == null) { - if (info_ != null) { - info_ = - crawlercommons.urlfrontier.Urlfrontier.URLInfo.newBuilder(info_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && info_ != null + && info_ + != crawlercommons.urlfrontier.Urlfrontier.URLInfo + .getDefaultInstance()) { + getInfoBuilder().mergeFrom(value); } else { info_ = value; } - onChanged(); } else { infoBuilder_.mergeFrom(value); } - + if (info_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** .urlfrontier.URLInfo info = 1; */ public Builder clearInfo() { - if (infoBuilder_ == null) { - info_ = null; - onChanged(); - } else { - info_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + info_ = null; + if (infoBuilder_ != null) { + infoBuilder_.dispose(); infoBuilder_ = null; } - + onChanged(); return this; } /** .urlfrontier.URLInfo info = 1; */ public crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder getInfoBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInfoFieldBuilder().getBuilder(); } @@ -16898,6 +17198,7 @@ public long getRefetchableFromDate() { public Builder setRefetchableFromDate(long value) { refetchableFromDate_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -16916,7 +17217,7 @@ public Builder setRefetchableFromDate(long value) { * @return This builder for chaining. */ public Builder clearRefetchableFromDate() { - + bitField0_ = (bitField0_ & ~0x00000002); refetchableFromDate_ = 0L; onChanged(); return this; @@ -17038,11 +17339,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DiscoveredURLItem(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_DiscoveredURLItem_descriptor; @@ -17058,6 +17354,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder.class); } + private int bitField0_; public static final int INFO_FIELD_NUMBER = 1; private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_; @@ -17068,7 +17365,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasInfo() { - return info_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** @@ -17086,7 +17383,9 @@ public crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo() { /** .urlfrontier.URLInfo info = 1; */ @java.lang.Override public crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder() { - return getInfo(); + return info_ == null + ? crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance() + : info_; } private byte memoizedIsInitialized = -1; @@ -17104,7 +17403,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (info_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInfo()); } getUnknownFields().writeTo(output); @@ -17116,7 +17415,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (info_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInfo()); } size += getUnknownFields().getSerializedSize(); @@ -17294,19 +17593,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInfoFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); - if (infoBuilder_ == null) { - info_ = null; - } else { - info_ = null; + bitField0_ = 0; + info_ = null; + if (infoBuilder_ != null) { + infoBuilder_.dispose(); infoBuilder_ = null; } return this; @@ -17338,15 +17646,24 @@ public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem build() { public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem buildPartial() { crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem result = new crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem(this); - if (infoBuilder_ == null) { - result.info_ = info_; - } else { - result.info_ = infoBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.info_ = infoBuilder_ == null ? info_ : infoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -17431,7 +17748,7 @@ public Builder mergeFrom( { input.readMessage( getInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -17451,6 +17768,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_; private com.google.protobuf.SingleFieldBuilderV3< crawlercommons.urlfrontier.Urlfrontier.URLInfo, @@ -17464,7 +17783,7 @@ public Builder mergeFrom( * @return Whether the info field is set. */ public boolean hasInfo() { - return infoBuilder_ != null || info_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** @@ -17489,11 +17808,11 @@ public Builder setInfo(crawlercommons.urlfrontier.Urlfrontier.URLInfo value) { throw new NullPointerException(); } info_ = value; - onChanged(); } else { infoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } @@ -17502,49 +17821,51 @@ public Builder setInfo( crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder builderForValue) { if (infoBuilder_ == null) { info_ = builderForValue.build(); - onChanged(); } else { infoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** .urlfrontier.URLInfo info = 1; */ public Builder mergeInfo(crawlercommons.urlfrontier.Urlfrontier.URLInfo value) { if (infoBuilder_ == null) { - if (info_ != null) { - info_ = - crawlercommons.urlfrontier.Urlfrontier.URLInfo.newBuilder(info_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && info_ != null + && info_ + != crawlercommons.urlfrontier.Urlfrontier.URLInfo + .getDefaultInstance()) { + getInfoBuilder().mergeFrom(value); } else { info_ = value; } - onChanged(); } else { infoBuilder_.mergeFrom(value); } - + if (info_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** .urlfrontier.URLInfo info = 1; */ public Builder clearInfo() { - if (infoBuilder_ == null) { - info_ = null; - onChanged(); - } else { - info_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + info_ = null; + if (infoBuilder_ != null) { + infoBuilder_.dispose(); infoBuilder_ = null; } - + onChanged(); return this; } /** .urlfrontier.URLInfo info = 1; */ public crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder getInfoBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInfoFieldBuilder().getBuilder(); } @@ -17725,11 +18046,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LogLevelParams(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_LogLevelParams_descriptor; @@ -17866,7 +18182,9 @@ private Level(int value) { } public static final int PACKAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object package_; + + @SuppressWarnings("serial") + private volatile java.lang.Object package_ = ""; /** * string package = 1; @@ -17905,7 +18223,7 @@ public com.google.protobuf.ByteString getPackageBytes() { } public static final int LEVEL_FIELD_NUMBER = 2; - private int level_; + private int level_ = 0; /** * .urlfrontier.LogLevelParams.Level level = 2; @@ -17924,16 +18242,15 @@ public int getLevelValue() { */ @java.lang.Override public crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level getLevel() { - @SuppressWarnings("deprecation") crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level result = - crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.valueOf(level_); + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.forNumber(level_); return result == null ? crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.UNRECOGNIZED : result; } public static final int LOCAL_FIELD_NUMBER = 3; - private boolean local_; + private boolean local_ = false; /** * @@ -18183,12 +18500,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; package_ = ""; - level_ = 0; - local_ = false; - return this; } @@ -18217,13 +18532,27 @@ public crawlercommons.urlfrontier.Urlfrontier.LogLevelParams build() { public crawlercommons.urlfrontier.Urlfrontier.LogLevelParams buildPartial() { crawlercommons.urlfrontier.Urlfrontier.LogLevelParams result = new crawlercommons.urlfrontier.Urlfrontier.LogLevelParams(this); - result.package_ = package_; - result.level_ = level_; - result.local_ = local_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.package_ = package_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.level_ = level_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.local_ = local_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -18275,6 +18604,7 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.LogLevelParams o .getDefaultInstance()) return this; if (!other.getPackage().isEmpty()) { package_ = other.package_; + bitField0_ |= 0x00000001; onChanged(); } if (other.level_ != 0) { @@ -18312,19 +18642,19 @@ public Builder mergeFrom( case 10: { package_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { level_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { local_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -18344,6 +18674,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object package_ = ""; /** @@ -18390,8 +18722,8 @@ public Builder setPackage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - package_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -18402,8 +18734,8 @@ public Builder setPackage(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPackage() { - package_ = getDefaultInstance().getPackage(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -18419,8 +18751,8 @@ public Builder setPackageBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - package_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -18444,8 +18776,8 @@ public int getLevelValue() { * @return This builder for chaining. */ public Builder setLevelValue(int value) { - level_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -18457,9 +18789,9 @@ public Builder setLevelValue(int value) { */ @java.lang.Override public crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level getLevel() { - @SuppressWarnings("deprecation") crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level result = - crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.valueOf(level_); + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.forNumber( + level_); return result == null ? crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.UNRECOGNIZED : result; @@ -18476,7 +18808,7 @@ public Builder setLevel( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; level_ = value.getNumber(); onChanged(); return this; @@ -18488,7 +18820,7 @@ public Builder setLevel( * @return This builder for chaining. */ public Builder clearLevel() { - + bitField0_ = (bitField0_ & ~0x00000002); level_ = 0; onChanged(); return this; @@ -18527,6 +18859,7 @@ public boolean getLocal() { public Builder setLocal(boolean value) { local_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -18543,7 +18876,7 @@ public Builder setLocal(boolean value) { * @return This builder for chaining. */ public Builder clearLocal() { - + bitField0_ = (bitField0_ & ~0x00000004); local_ = false; onChanged(); return this; @@ -18709,11 +19042,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CrawlLimitParams(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_CrawlLimitParams_descriptor; @@ -18730,7 +19058,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; /** * @@ -18781,7 +19111,7 @@ public com.google.protobuf.ByteString getKeyBytes() { } public static final int LIMIT_FIELD_NUMBER = 2; - private int limit_; + private int limit_ = 0; /** * uint32 limit = 2; @@ -18794,7 +19124,9 @@ public int getLimit() { } public static final int CRAWLID_FIELD_NUMBER = 3; - private volatile java.lang.Object crawlID_; + + @SuppressWarnings("serial") + private volatile java.lang.Object crawlID_ = ""; /** * @@ -19070,12 +19402,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; key_ = ""; - limit_ = 0; - crawlID_ = ""; - return this; } @@ -19104,13 +19434,27 @@ public crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams build() { public crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams buildPartial() { crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams result = new crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams(this); - result.key_ = key_; - result.limit_ = limit_; - result.crawlID_ = crawlID_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.limit_ = limit_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.crawlID_ = crawlID_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -19164,6 +19508,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getLimit() != 0) { @@ -19171,6 +19516,7 @@ public Builder mergeFrom( } if (!other.getCrawlID().isEmpty()) { crawlID_ = other.crawlID_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -19202,19 +19548,19 @@ public Builder mergeFrom( case 10: { key_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { limit_ = input.readUInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { crawlID_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -19234,6 +19580,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object key_ = ""; /** @@ -19298,8 +19646,8 @@ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - key_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -19316,8 +19664,8 @@ public Builder setKey(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKey() { - key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -19339,8 +19687,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - key_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -19366,6 +19714,7 @@ public int getLimit() { public Builder setLimit(int value) { limit_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -19376,7 +19725,7 @@ public Builder setLimit(int value) { * @return This builder for chaining. */ public Builder clearLimit() { - + bitField0_ = (bitField0_ & ~0x00000002); limit_ = 0; onChanged(); return this; @@ -19446,8 +19795,8 @@ public Builder setCrawlID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - crawlID_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -19464,8 +19813,8 @@ public Builder setCrawlID(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCrawlID() { - crawlID_ = getDefaultInstance().getCrawlID(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -19487,8 +19836,8 @@ public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - crawlID_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -19666,11 +20015,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new URLStatusRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_URLStatusRequest_descriptor; @@ -19687,7 +20031,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int URL_FIELD_NUMBER = 1; - private volatile java.lang.Object url_; + + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; /** * @@ -19738,7 +20084,9 @@ public com.google.protobuf.ByteString getUrlBytes() { } public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; /** * @@ -19789,7 +20137,9 @@ public com.google.protobuf.ByteString getKeyBytes() { } public static final int CRAWLID_FIELD_NUMBER = 3; - private volatile java.lang.Object crawlID_; + + @SuppressWarnings("serial") + private volatile java.lang.Object crawlID_ = ""; /** * @@ -20057,12 +20407,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; url_ = ""; - key_ = ""; - crawlID_ = ""; - return this; } @@ -20091,13 +20439,27 @@ public crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest build() { public crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest buildPartial() { crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest result = new crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest(this); - result.url_ = url_; - result.key_ = key_; - result.crawlID_ = crawlID_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.crawlID_ = crawlID_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -20151,14 +20513,17 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getUrl().isEmpty()) { url_ = other.url_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getKey().isEmpty()) { key_ = other.key_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getCrawlID().isEmpty()) { crawlID_ = other.crawlID_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -20190,19 +20555,19 @@ public Builder mergeFrom( case 10: { url_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { key_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { crawlID_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -20222,6 +20587,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object url_ = ""; /** @@ -20286,8 +20653,8 @@ public Builder setUrl(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - url_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -20304,8 +20671,8 @@ public Builder setUrl(java.lang.String value) { * @return This builder for chaining. */ public Builder clearUrl() { - url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -20327,8 +20694,8 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - url_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -20397,8 +20764,8 @@ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - key_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -20415,8 +20782,8 @@ public Builder setKey(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKey() { - key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -20438,8 +20805,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - key_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -20508,8 +20875,8 @@ public Builder setCrawlID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - crawlID_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -20526,8 +20893,8 @@ public Builder setCrawlID(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCrawlID() { - crawlID_ = getDefaultInstance().getCrawlID(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -20549,8 +20916,8 @@ public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - crawlID_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -20740,11 +21107,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUrlParams(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return crawlercommons.urlfrontier.Urlfrontier .internal_static_urlfrontier_ListUrlParams_descriptor; @@ -20761,7 +21123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int START_FIELD_NUMBER = 1; - private int start_; + private int start_ = 0; /** * @@ -20780,7 +21142,7 @@ public int getStart() { } public static final int SIZE_FIELD_NUMBER = 2; - private int size_; + private int size_ = 0; /** * @@ -20799,7 +21161,9 @@ public int getSize() { } public static final int KEY_FIELD_NUMBER = 3; - private volatile java.lang.Object key_; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; /** * @@ -20850,7 +21214,9 @@ public com.google.protobuf.ByteString getKeyBytes() { } public static final int CRAWLID_FIELD_NUMBER = 4; - private volatile java.lang.Object crawlID_; + + @SuppressWarnings("serial") + private volatile java.lang.Object crawlID_ = ""; /** * @@ -20901,7 +21267,7 @@ public com.google.protobuf.ByteString getCrawlIDBytes() { } public static final int LOCAL_FIELD_NUMBER = 5; - private boolean local_; + private boolean local_ = false; /** * @@ -21154,16 +21520,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; start_ = 0; - size_ = 0; - key_ = ""; - crawlID_ = ""; - local_ = false; - return this; } @@ -21192,15 +21554,33 @@ public crawlercommons.urlfrontier.Urlfrontier.ListUrlParams build() { public crawlercommons.urlfrontier.Urlfrontier.ListUrlParams buildPartial() { crawlercommons.urlfrontier.Urlfrontier.ListUrlParams result = new crawlercommons.urlfrontier.Urlfrontier.ListUrlParams(this); - result.start_ = start_; - result.size_ = size_; - result.key_ = key_; - result.crawlID_ = crawlID_; - result.local_ = local_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + crawlercommons.urlfrontier.Urlfrontier.ListUrlParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.start_ = start_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.size_ = size_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.crawlID_ = crawlID_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.local_ = local_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -21258,10 +21638,12 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.ListUrlParams ot } if (!other.getKey().isEmpty()) { key_ = other.key_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getCrawlID().isEmpty()) { crawlID_ = other.crawlID_; + bitField0_ |= 0x00000008; onChanged(); } if (other.getLocal() != false) { @@ -21296,31 +21678,31 @@ public Builder mergeFrom( case 8: { start_ = input.readUInt32(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { size_ = input.readUInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { key_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { crawlID_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 40: { local_ = input.readBool(); - + bitField0_ |= 0x00000010; break; } // case 40 default: @@ -21340,6 +21722,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int start_; /** @@ -21373,6 +21757,7 @@ public int getStart() { public Builder setStart(int value) { start_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -21389,7 +21774,7 @@ public Builder setStart(int value) { * @return This builder for chaining. */ public Builder clearStart() { - + bitField0_ = (bitField0_ & ~0x00000001); start_ = 0; onChanged(); return this; @@ -21428,6 +21813,7 @@ public int getSize() { public Builder setSize(int value) { size_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -21444,7 +21830,7 @@ public Builder setSize(int value) { * @return This builder for chaining. */ public Builder clearSize() { - + bitField0_ = (bitField0_ & ~0x00000002); size_ = 0; onChanged(); return this; @@ -21514,8 +21900,8 @@ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - key_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -21532,8 +21918,8 @@ public Builder setKey(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKey() { - key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -21555,8 +21941,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - key_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -21625,8 +22011,8 @@ public Builder setCrawlID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - crawlID_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -21643,8 +22029,8 @@ public Builder setCrawlID(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCrawlID() { - crawlID_ = getDefaultInstance().getCrawlID(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -21666,8 +22052,8 @@ public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - crawlID_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -21705,6 +22091,7 @@ public boolean getLocal() { public Builder setLocal(boolean value) { local_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -21721,7 +22108,7 @@ public Builder setLocal(boolean value) { * @return This builder for chaining. */ public Builder clearLocal() { - + bitField0_ = (bitField0_ & ~0x00000010); local_ = false; onChanged(); return this; diff --git a/client/pom.xml b/client/pom.xml index 5c7ed61..968ed5f 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -41,7 +41,7 @@ - 4.28.2 + ${protoc.version} @@ -59,6 +59,7 @@ com.google.protobuf protobuf-java-util + ${protobuf.java.util.version} diff --git a/pom.xml b/pom.xml index ec0f379..605b94c 100644 --- a/pom.xml +++ b/pom.xml @@ -91,6 +91,7 @@ 11 4.7.6 5.11.0 + 3.25.5