From b7a7d4408f9e3ced4fe8492cbc09c4277c11141e Mon Sep 17 00:00:00 2001 From: Julien Nioche Date: Fri, 13 Sep 2024 14:55:33 +0100 Subject: [PATCH] Applied formatting + removed Ignite #96 Signed-off-by: Julien Nioche --- .../urlfrontier/URLFrontierGrpc.java | 3365 +- .../urlfrontier/Urlfrontier.java | 38542 ++++++++-------- service/README.md | 7 +- service/config.ini | 18 +- service/pom.xml | 14 - .../service/ignite/IgniteHeartbeat.java | 43 - .../service/ignite/IgniteService.java | 851 - .../urlfrontier/service/ignite/Key.java | 24 - .../urlfrontier/service/ignite/Payload.java | 16 - .../urlfrontier/service/memory/URLQueue.java | 1 + .../service/MemoryFrontierServiceTest.java | 12 +- 11 files changed, 21959 insertions(+), 20934 deletions(-) delete mode 100644 service/src/main/java/crawlercommons/urlfrontier/service/ignite/IgniteHeartbeat.java delete mode 100644 service/src/main/java/crawlercommons/urlfrontier/service/ignite/IgniteService.java delete mode 100644 service/src/main/java/crawlercommons/urlfrontier/service/ignite/Key.java delete mode 100644 service/src/main/java/crawlercommons/urlfrontier/service/ignite/Payload.java diff --git a/API/src/main/java/crawlercommons/urlfrontier/URLFrontierGrpc.java b/API/src/main/java/crawlercommons/urlfrontier/URLFrontierGrpc.java index f5d2694..a287906 100644 --- a/API/src/main/java/crawlercommons/urlfrontier/URLFrontierGrpc.java +++ b/API/src/main/java/crawlercommons/urlfrontier/URLFrontierGrpc.java @@ -2,1491 +2,2090 @@ import static io.grpc.MethodDescriptor.generateFullMethodName; -/** - */ +/** */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.50.2)", - comments = "Source: urlfrontier.proto") + value = "by gRPC proto compiler (version 1.50.2)", + comments = "Source: urlfrontier.proto") @io.grpc.stub.annotations.GrpcGenerated public final class URLFrontierGrpc { - private URLFrontierGrpc() {} - - public static final String SERVICE_NAME = "urlfrontier.URLFrontier"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListNodesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNodes", - requestType = crawlercommons.urlfrontier.Urlfrontier.Empty.class, - responseType = crawlercommons.urlfrontier.Urlfrontier.StringList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNodesMethod() { - io.grpc.MethodDescriptor getListNodesMethod; - if ((getListNodesMethod = URLFrontierGrpc.getListNodesMethod) == null) { - synchronized (URLFrontierGrpc.class) { + private URLFrontierGrpc() {} + + public static final String SERVICE_NAME = "urlfrontier.URLFrontier"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.Empty, + crawlercommons.urlfrontier.Urlfrontier.StringList> + getListNodesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNodes", + requestType = crawlercommons.urlfrontier.Urlfrontier.Empty.class, + responseType = crawlercommons.urlfrontier.Urlfrontier.StringList.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.Empty, + crawlercommons.urlfrontier.Urlfrontier.StringList> + getListNodesMethod() { + io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.Empty, + crawlercommons.urlfrontier.Urlfrontier.StringList> + getListNodesMethod; if ((getListNodesMethod = URLFrontierGrpc.getListNodesMethod) == null) { - URLFrontierGrpc.getListNodesMethod = getListNodesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.Empty.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.StringList.getDefaultInstance())) - .setSchemaDescriptor(new URLFrontierMethodDescriptorSupplier("ListNodes")) - .build(); - } - } - } - return getListNodesMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCrawlsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCrawls", - requestType = crawlercommons.urlfrontier.Urlfrontier.Local.class, - responseType = crawlercommons.urlfrontier.Urlfrontier.StringList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCrawlsMethod() { - io.grpc.MethodDescriptor getListCrawlsMethod; - if ((getListCrawlsMethod = URLFrontierGrpc.getListCrawlsMethod) == null) { - synchronized (URLFrontierGrpc.class) { + synchronized (URLFrontierGrpc.class) { + if ((getListNodesMethod = URLFrontierGrpc.getListNodesMethod) == null) { + URLFrontierGrpc.getListNodesMethod = + getListNodesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListNodes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .Empty.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .StringList + .getDefaultInstance())) + .setSchemaDescriptor( + new URLFrontierMethodDescriptorSupplier( + "ListNodes")) + .build(); + } + } + } + return getListNodesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.Local, + crawlercommons.urlfrontier.Urlfrontier.StringList> + getListCrawlsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCrawls", + requestType = crawlercommons.urlfrontier.Urlfrontier.Local.class, + responseType = crawlercommons.urlfrontier.Urlfrontier.StringList.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.Local, + crawlercommons.urlfrontier.Urlfrontier.StringList> + getListCrawlsMethod() { + io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.Local, + crawlercommons.urlfrontier.Urlfrontier.StringList> + getListCrawlsMethod; if ((getListCrawlsMethod = URLFrontierGrpc.getListCrawlsMethod) == null) { - URLFrontierGrpc.getListCrawlsMethod = getListCrawlsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawls")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.Local.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.StringList.getDefaultInstance())) - .setSchemaDescriptor(new URLFrontierMethodDescriptorSupplier("ListCrawls")) - .build(); - } - } - } - return getListCrawlsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteCrawlMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCrawl", - requestType = crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.class, - responseType = crawlercommons.urlfrontier.Urlfrontier.Long.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteCrawlMethod() { - io.grpc.MethodDescriptor getDeleteCrawlMethod; - if ((getDeleteCrawlMethod = URLFrontierGrpc.getDeleteCrawlMethod) == null) { - synchronized (URLFrontierGrpc.class) { + synchronized (URLFrontierGrpc.class) { + if ((getListCrawlsMethod = URLFrontierGrpc.getListCrawlsMethod) == null) { + URLFrontierGrpc.getListCrawlsMethod = + getListCrawlsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListCrawls")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .Local.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .StringList + .getDefaultInstance())) + .setSchemaDescriptor( + new URLFrontierMethodDescriptorSupplier( + "ListCrawls")) + .build(); + } + } + } + return getListCrawlsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage, + crawlercommons.urlfrontier.Urlfrontier.Long> + getDeleteCrawlMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCrawl", + requestType = crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.class, + responseType = crawlercommons.urlfrontier.Urlfrontier.Long.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage, + crawlercommons.urlfrontier.Urlfrontier.Long> + getDeleteCrawlMethod() { + io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage, + crawlercommons.urlfrontier.Urlfrontier.Long> + getDeleteCrawlMethod; if ((getDeleteCrawlMethod = URLFrontierGrpc.getDeleteCrawlMethod) == null) { - URLFrontierGrpc.getDeleteCrawlMethod = getDeleteCrawlMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCrawl")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.Long.getDefaultInstance())) - .setSchemaDescriptor(new URLFrontierMethodDescriptorSupplier("DeleteCrawl")) - .build(); - } - } - } - return getDeleteCrawlMethod; - } - - private static volatile io.grpc.MethodDescriptor getListQueuesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListQueues", - requestType = crawlercommons.urlfrontier.Urlfrontier.Pagination.class, - responseType = crawlercommons.urlfrontier.Urlfrontier.QueueList.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListQueuesMethod() { - io.grpc.MethodDescriptor getListQueuesMethod; - if ((getListQueuesMethod = URLFrontierGrpc.getListQueuesMethod) == null) { - synchronized (URLFrontierGrpc.class) { + synchronized (URLFrontierGrpc.class) { + if ((getDeleteCrawlMethod = URLFrontierGrpc.getDeleteCrawlMethod) == null) { + URLFrontierGrpc.getDeleteCrawlMethod = + getDeleteCrawlMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "DeleteCrawl")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .DeleteCrawlMessage + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .Long.getDefaultInstance())) + .setSchemaDescriptor( + new URLFrontierMethodDescriptorSupplier( + "DeleteCrawl")) + .build(); + } + } + } + return getDeleteCrawlMethod; + } + + private static volatile io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.Pagination, + crawlercommons.urlfrontier.Urlfrontier.QueueList> + getListQueuesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListQueues", + requestType = crawlercommons.urlfrontier.Urlfrontier.Pagination.class, + responseType = crawlercommons.urlfrontier.Urlfrontier.QueueList.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.Pagination, + crawlercommons.urlfrontier.Urlfrontier.QueueList> + getListQueuesMethod() { + io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.Pagination, + crawlercommons.urlfrontier.Urlfrontier.QueueList> + getListQueuesMethod; if ((getListQueuesMethod = URLFrontierGrpc.getListQueuesMethod) == null) { - URLFrontierGrpc.getListQueuesMethod = getListQueuesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListQueues")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.Pagination.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.QueueList.getDefaultInstance())) - .setSchemaDescriptor(new URLFrontierMethodDescriptorSupplier("ListQueues")) - .build(); - } - } - } - return getListQueuesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetURLsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetURLs", - requestType = crawlercommons.urlfrontier.Urlfrontier.GetParams.class, - responseType = crawlercommons.urlfrontier.Urlfrontier.URLInfo.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getGetURLsMethod() { - io.grpc.MethodDescriptor getGetURLsMethod; - if ((getGetURLsMethod = URLFrontierGrpc.getGetURLsMethod) == null) { - synchronized (URLFrontierGrpc.class) { + synchronized (URLFrontierGrpc.class) { + if ((getListQueuesMethod = URLFrontierGrpc.getListQueuesMethod) == null) { + URLFrontierGrpc.getListQueuesMethod = + getListQueuesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListQueues")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .Pagination + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .QueueList + .getDefaultInstance())) + .setSchemaDescriptor( + new URLFrontierMethodDescriptorSupplier( + "ListQueues")) + .build(); + } + } + } + return getListQueuesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.GetParams, + crawlercommons.urlfrontier.Urlfrontier.URLInfo> + getGetURLsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetURLs", + requestType = crawlercommons.urlfrontier.Urlfrontier.GetParams.class, + responseType = crawlercommons.urlfrontier.Urlfrontier.URLInfo.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.GetParams, + crawlercommons.urlfrontier.Urlfrontier.URLInfo> + getGetURLsMethod() { + io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.GetParams, + crawlercommons.urlfrontier.Urlfrontier.URLInfo> + getGetURLsMethod; if ((getGetURLsMethod = URLFrontierGrpc.getGetURLsMethod) == null) { - URLFrontierGrpc.getGetURLsMethod = getGetURLsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetURLs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.GetParams.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance())) - .setSchemaDescriptor(new URLFrontierMethodDescriptorSupplier("GetURLs")) - .build(); - } - } - } - return getGetURLsMethod; - } - - private static volatile io.grpc.MethodDescriptor getPutURLsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PutURLs", - requestType = crawlercommons.urlfrontier.Urlfrontier.URLItem.class, - responseType = crawlercommons.urlfrontier.Urlfrontier.AckMessage.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getPutURLsMethod() { - io.grpc.MethodDescriptor getPutURLsMethod; - if ((getPutURLsMethod = URLFrontierGrpc.getPutURLsMethod) == null) { - synchronized (URLFrontierGrpc.class) { + synchronized (URLFrontierGrpc.class) { + if ((getGetURLsMethod = URLFrontierGrpc.getGetURLsMethod) == null) { + URLFrontierGrpc.getGetURLsMethod = + getGetURLsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType( + io.grpc.MethodDescriptor.MethodType + .SERVER_STREAMING) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetURLs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .GetParams + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .URLInfo.getDefaultInstance())) + .setSchemaDescriptor( + new URLFrontierMethodDescriptorSupplier( + "GetURLs")) + .build(); + } + } + } + return getGetURLsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.URLItem, + crawlercommons.urlfrontier.Urlfrontier.AckMessage> + getPutURLsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PutURLs", + requestType = crawlercommons.urlfrontier.Urlfrontier.URLItem.class, + responseType = crawlercommons.urlfrontier.Urlfrontier.AckMessage.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.URLItem, + crawlercommons.urlfrontier.Urlfrontier.AckMessage> + getPutURLsMethod() { + io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.URLItem, + crawlercommons.urlfrontier.Urlfrontier.AckMessage> + getPutURLsMethod; if ((getPutURLsMethod = URLFrontierGrpc.getPutURLsMethod) == null) { - URLFrontierGrpc.getPutURLsMethod = getPutURLsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PutURLs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.URLItem.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.AckMessage.getDefaultInstance())) - .setSchemaDescriptor(new URLFrontierMethodDescriptorSupplier("PutURLs")) - .build(); - } - } - } - return getPutURLsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetStatsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetStats", - requestType = crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.class, - responseType = crawlercommons.urlfrontier.Urlfrontier.Stats.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetStatsMethod() { - io.grpc.MethodDescriptor getGetStatsMethod; - if ((getGetStatsMethod = URLFrontierGrpc.getGetStatsMethod) == null) { - synchronized (URLFrontierGrpc.class) { + synchronized (URLFrontierGrpc.class) { + if ((getPutURLsMethod = URLFrontierGrpc.getPutURLsMethod) == null) { + URLFrontierGrpc.getPutURLsMethod = + getPutURLsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType( + io.grpc.MethodDescriptor.MethodType + .BIDI_STREAMING) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "PutURLs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .URLItem.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .AckMessage + .getDefaultInstance())) + .setSchemaDescriptor( + new URLFrontierMethodDescriptorSupplier( + "PutURLs")) + .build(); + } + } + } + return getPutURLsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams, + crawlercommons.urlfrontier.Urlfrontier.Stats> + getGetStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetStats", + requestType = crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.class, + responseType = crawlercommons.urlfrontier.Urlfrontier.Stats.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams, + crawlercommons.urlfrontier.Urlfrontier.Stats> + getGetStatsMethod() { + io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams, + crawlercommons.urlfrontier.Urlfrontier.Stats> + getGetStatsMethod; if ((getGetStatsMethod = URLFrontierGrpc.getGetStatsMethod) == null) { - URLFrontierGrpc.getGetStatsMethod = getGetStatsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStats")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.Stats.getDefaultInstance())) - .setSchemaDescriptor(new URLFrontierMethodDescriptorSupplier("GetStats")) - .build(); - } - } - } - return getGetStatsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteQueue", - requestType = crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.class, - responseType = crawlercommons.urlfrontier.Urlfrontier.Long.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteQueueMethod() { - io.grpc.MethodDescriptor getDeleteQueueMethod; - if ((getDeleteQueueMethod = URLFrontierGrpc.getDeleteQueueMethod) == null) { - synchronized (URLFrontierGrpc.class) { + synchronized (URLFrontierGrpc.class) { + if ((getGetStatsMethod = URLFrontierGrpc.getGetStatsMethod) == null) { + URLFrontierGrpc.getGetStatsMethod = + getGetStatsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GetStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .QueueWithinCrawlParams + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .Stats.getDefaultInstance())) + .setSchemaDescriptor( + new URLFrontierMethodDescriptorSupplier( + "GetStats")) + .build(); + } + } + } + return getGetStatsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams, + crawlercommons.urlfrontier.Urlfrontier.Long> + getDeleteQueueMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteQueue", + requestType = crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.class, + responseType = crawlercommons.urlfrontier.Urlfrontier.Long.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams, + crawlercommons.urlfrontier.Urlfrontier.Long> + getDeleteQueueMethod() { + io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams, + crawlercommons.urlfrontier.Urlfrontier.Long> + getDeleteQueueMethod; if ((getDeleteQueueMethod = URLFrontierGrpc.getDeleteQueueMethod) == null) { - URLFrontierGrpc.getDeleteQueueMethod = getDeleteQueueMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.Long.getDefaultInstance())) - .setSchemaDescriptor(new URLFrontierMethodDescriptorSupplier("DeleteQueue")) - .build(); - } - } - } - return getDeleteQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor getBlockQueueUntilMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BlockQueueUntil", - requestType = crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.class, - responseType = crawlercommons.urlfrontier.Urlfrontier.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBlockQueueUntilMethod() { - io.grpc.MethodDescriptor getBlockQueueUntilMethod; - if ((getBlockQueueUntilMethod = URLFrontierGrpc.getBlockQueueUntilMethod) == null) { - synchronized (URLFrontierGrpc.class) { + synchronized (URLFrontierGrpc.class) { + if ((getDeleteQueueMethod = URLFrontierGrpc.getDeleteQueueMethod) == null) { + URLFrontierGrpc.getDeleteQueueMethod = + getDeleteQueueMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "DeleteQueue")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .QueueWithinCrawlParams + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .Long.getDefaultInstance())) + .setSchemaDescriptor( + new URLFrontierMethodDescriptorSupplier( + "DeleteQueue")) + .build(); + } + } + } + return getDeleteQueueMethod; + } + + private static volatile io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams, + crawlercommons.urlfrontier.Urlfrontier.Empty> + getBlockQueueUntilMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BlockQueueUntil", + requestType = crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.class, + responseType = crawlercommons.urlfrontier.Urlfrontier.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams, + crawlercommons.urlfrontier.Urlfrontier.Empty> + getBlockQueueUntilMethod() { + io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams, + crawlercommons.urlfrontier.Urlfrontier.Empty> + getBlockQueueUntilMethod; if ((getBlockQueueUntilMethod = URLFrontierGrpc.getBlockQueueUntilMethod) == null) { - URLFrontierGrpc.getBlockQueueUntilMethod = getBlockQueueUntilMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BlockQueueUntil")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.Empty.getDefaultInstance())) - .setSchemaDescriptor(new URLFrontierMethodDescriptorSupplier("BlockQueueUntil")) - .build(); - } - } - } - return getBlockQueueUntilMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetActiveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetActive", - requestType = crawlercommons.urlfrontier.Urlfrontier.Active.class, - responseType = crawlercommons.urlfrontier.Urlfrontier.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetActiveMethod() { - io.grpc.MethodDescriptor getSetActiveMethod; - if ((getSetActiveMethod = URLFrontierGrpc.getSetActiveMethod) == null) { - synchronized (URLFrontierGrpc.class) { + synchronized (URLFrontierGrpc.class) { + if ((getBlockQueueUntilMethod = URLFrontierGrpc.getBlockQueueUntilMethod) == null) { + URLFrontierGrpc.getBlockQueueUntilMethod = + getBlockQueueUntilMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "BlockQueueUntil")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .BlockQueueParams + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .Empty.getDefaultInstance())) + .setSchemaDescriptor( + new URLFrontierMethodDescriptorSupplier( + "BlockQueueUntil")) + .build(); + } + } + } + return getBlockQueueUntilMethod; + } + + private static volatile io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.Active, + crawlercommons.urlfrontier.Urlfrontier.Empty> + getSetActiveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetActive", + requestType = crawlercommons.urlfrontier.Urlfrontier.Active.class, + responseType = crawlercommons.urlfrontier.Urlfrontier.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.Active, + crawlercommons.urlfrontier.Urlfrontier.Empty> + getSetActiveMethod() { + io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.Active, + crawlercommons.urlfrontier.Urlfrontier.Empty> + getSetActiveMethod; if ((getSetActiveMethod = URLFrontierGrpc.getSetActiveMethod) == null) { - URLFrontierGrpc.getSetActiveMethod = getSetActiveMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetActive")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.Active.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.Empty.getDefaultInstance())) - .setSchemaDescriptor(new URLFrontierMethodDescriptorSupplier("SetActive")) - .build(); - } - } - } - return getSetActiveMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetActiveMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetActive", - requestType = crawlercommons.urlfrontier.Urlfrontier.Local.class, - responseType = crawlercommons.urlfrontier.Urlfrontier.Boolean.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetActiveMethod() { - io.grpc.MethodDescriptor getGetActiveMethod; - if ((getGetActiveMethod = URLFrontierGrpc.getGetActiveMethod) == null) { - synchronized (URLFrontierGrpc.class) { + synchronized (URLFrontierGrpc.class) { + if ((getSetActiveMethod = URLFrontierGrpc.getSetActiveMethod) == null) { + URLFrontierGrpc.getSetActiveMethod = + getSetActiveMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "SetActive")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .Active.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .Empty.getDefaultInstance())) + .setSchemaDescriptor( + new URLFrontierMethodDescriptorSupplier( + "SetActive")) + .build(); + } + } + } + return getSetActiveMethod; + } + + private static volatile io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.Local, + crawlercommons.urlfrontier.Urlfrontier.Boolean> + getGetActiveMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetActive", + requestType = crawlercommons.urlfrontier.Urlfrontier.Local.class, + responseType = crawlercommons.urlfrontier.Urlfrontier.Boolean.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.Local, + crawlercommons.urlfrontier.Urlfrontier.Boolean> + getGetActiveMethod() { + io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.Local, + crawlercommons.urlfrontier.Urlfrontier.Boolean> + getGetActiveMethod; if ((getGetActiveMethod = URLFrontierGrpc.getGetActiveMethod) == null) { - URLFrontierGrpc.getGetActiveMethod = getGetActiveMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetActive")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.Local.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.Boolean.getDefaultInstance())) - .setSchemaDescriptor(new URLFrontierMethodDescriptorSupplier("GetActive")) - .build(); - } - } - } - return getGetActiveMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetDelayMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetDelay", - requestType = crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.class, - responseType = crawlercommons.urlfrontier.Urlfrontier.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetDelayMethod() { - io.grpc.MethodDescriptor getSetDelayMethod; - if ((getSetDelayMethod = URLFrontierGrpc.getSetDelayMethod) == null) { - synchronized (URLFrontierGrpc.class) { + synchronized (URLFrontierGrpc.class) { + if ((getGetActiveMethod = URLFrontierGrpc.getGetActiveMethod) == null) { + URLFrontierGrpc.getGetActiveMethod = + getGetActiveMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GetActive")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .Local.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .Boolean.getDefaultInstance())) + .setSchemaDescriptor( + new URLFrontierMethodDescriptorSupplier( + "GetActive")) + .build(); + } + } + } + return getGetActiveMethod; + } + + private static volatile io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams, + crawlercommons.urlfrontier.Urlfrontier.Empty> + getSetDelayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetDelay", + requestType = crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.class, + responseType = crawlercommons.urlfrontier.Urlfrontier.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams, + crawlercommons.urlfrontier.Urlfrontier.Empty> + getSetDelayMethod() { + io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams, + crawlercommons.urlfrontier.Urlfrontier.Empty> + getSetDelayMethod; if ((getSetDelayMethod = URLFrontierGrpc.getSetDelayMethod) == null) { - URLFrontierGrpc.getSetDelayMethod = getSetDelayMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetDelay")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.Empty.getDefaultInstance())) - .setSchemaDescriptor(new URLFrontierMethodDescriptorSupplier("SetDelay")) - .build(); - } - } - } - return getSetDelayMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetLogLevelMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetLogLevel", - requestType = crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.class, - responseType = crawlercommons.urlfrontier.Urlfrontier.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetLogLevelMethod() { - io.grpc.MethodDescriptor getSetLogLevelMethod; - if ((getSetLogLevelMethod = URLFrontierGrpc.getSetLogLevelMethod) == null) { - synchronized (URLFrontierGrpc.class) { + synchronized (URLFrontierGrpc.class) { + if ((getSetDelayMethod = URLFrontierGrpc.getSetDelayMethod) == null) { + URLFrontierGrpc.getSetDelayMethod = + getSetDelayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "SetDelay")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .QueueDelayParams + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .Empty.getDefaultInstance())) + .setSchemaDescriptor( + new URLFrontierMethodDescriptorSupplier( + "SetDelay")) + .build(); + } + } + } + return getSetDelayMethod; + } + + private static volatile io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams, + crawlercommons.urlfrontier.Urlfrontier.Empty> + getSetLogLevelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetLogLevel", + requestType = crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.class, + responseType = crawlercommons.urlfrontier.Urlfrontier.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams, + crawlercommons.urlfrontier.Urlfrontier.Empty> + getSetLogLevelMethod() { + io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams, + crawlercommons.urlfrontier.Urlfrontier.Empty> + getSetLogLevelMethod; if ((getSetLogLevelMethod = URLFrontierGrpc.getSetLogLevelMethod) == null) { - URLFrontierGrpc.getSetLogLevelMethod = getSetLogLevelMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLogLevel")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.Empty.getDefaultInstance())) - .setSchemaDescriptor(new URLFrontierMethodDescriptorSupplier("SetLogLevel")) - .build(); - } - } - } - return getSetLogLevelMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetCrawlLimitMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetCrawlLimit", - requestType = crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.class, - responseType = crawlercommons.urlfrontier.Urlfrontier.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetCrawlLimitMethod() { - io.grpc.MethodDescriptor getSetCrawlLimitMethod; - if ((getSetCrawlLimitMethod = URLFrontierGrpc.getSetCrawlLimitMethod) == null) { - synchronized (URLFrontierGrpc.class) { + synchronized (URLFrontierGrpc.class) { + if ((getSetLogLevelMethod = URLFrontierGrpc.getSetLogLevelMethod) == null) { + URLFrontierGrpc.getSetLogLevelMethod = + getSetLogLevelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "SetLogLevel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .LogLevelParams + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .Empty.getDefaultInstance())) + .setSchemaDescriptor( + new URLFrontierMethodDescriptorSupplier( + "SetLogLevel")) + .build(); + } + } + } + return getSetLogLevelMethod; + } + + private static volatile io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams, + crawlercommons.urlfrontier.Urlfrontier.Empty> + getSetCrawlLimitMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetCrawlLimit", + requestType = crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.class, + responseType = crawlercommons.urlfrontier.Urlfrontier.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams, + crawlercommons.urlfrontier.Urlfrontier.Empty> + getSetCrawlLimitMethod() { + io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams, + crawlercommons.urlfrontier.Urlfrontier.Empty> + getSetCrawlLimitMethod; if ((getSetCrawlLimitMethod = URLFrontierGrpc.getSetCrawlLimitMethod) == null) { - URLFrontierGrpc.getSetCrawlLimitMethod = getSetCrawlLimitMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetCrawlLimit")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.Empty.getDefaultInstance())) - .setSchemaDescriptor(new URLFrontierMethodDescriptorSupplier("SetCrawlLimit")) - .build(); - } - } - } - return getSetCrawlLimitMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetURLStatusMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetURLStatus", - requestType = crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.class, - responseType = crawlercommons.urlfrontier.Urlfrontier.URLItem.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetURLStatusMethod() { - io.grpc.MethodDescriptor getGetURLStatusMethod; - if ((getGetURLStatusMethod = URLFrontierGrpc.getGetURLStatusMethod) == null) { - synchronized (URLFrontierGrpc.class) { + synchronized (URLFrontierGrpc.class) { + if ((getSetCrawlLimitMethod = URLFrontierGrpc.getSetCrawlLimitMethod) == null) { + URLFrontierGrpc.getSetCrawlLimitMethod = + getSetCrawlLimitMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "SetCrawlLimit")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .CrawlLimitParams + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .Empty.getDefaultInstance())) + .setSchemaDescriptor( + new URLFrontierMethodDescriptorSupplier( + "SetCrawlLimit")) + .build(); + } + } + } + return getSetCrawlLimitMethod; + } + + private static volatile io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest, + crawlercommons.urlfrontier.Urlfrontier.URLItem> + getGetURLStatusMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetURLStatus", + requestType = crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.class, + responseType = crawlercommons.urlfrontier.Urlfrontier.URLItem.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest, + crawlercommons.urlfrontier.Urlfrontier.URLItem> + getGetURLStatusMethod() { + io.grpc.MethodDescriptor< + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest, + crawlercommons.urlfrontier.Urlfrontier.URLItem> + getGetURLStatusMethod; if ((getGetURLStatusMethod = URLFrontierGrpc.getGetURLStatusMethod) == null) { - URLFrontierGrpc.getGetURLStatusMethod = getGetURLStatusMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetURLStatus")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - crawlercommons.urlfrontier.Urlfrontier.URLItem.getDefaultInstance())) - .setSchemaDescriptor(new URLFrontierMethodDescriptorSupplier("GetURLStatus")) - .build(); - } - } - } - return getGetURLStatusMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static URLFrontierStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public URLFrontierStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new URLFrontierStub(channel, callOptions); - } - }; - return URLFrontierStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static URLFrontierBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public URLFrontierBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new URLFrontierBlockingStub(channel, callOptions); - } - }; - return URLFrontierBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static URLFrontierFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public URLFrontierFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new URLFrontierFutureStub(channel, callOptions); + synchronized (URLFrontierGrpc.class) { + if ((getGetURLStatusMethod = URLFrontierGrpc.getGetURLStatusMethod) == null) { + URLFrontierGrpc.getGetURLStatusMethod = + getGetURLStatusMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GetURLStatus")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .URLStatusRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + crawlercommons.urlfrontier.Urlfrontier + .URLItem.getDefaultInstance())) + .setSchemaDescriptor( + new URLFrontierMethodDescriptorSupplier( + "GetURLStatus")) + .build(); + } + } } - }; - return URLFrontierFutureStub.newStub(factory, channel); - } - - /** - */ - public static abstract class URLFrontierImplBase implements io.grpc.BindableService { - - /** - *
-     ** Return the list of nodes forming the cluster the current node belongs to *
-     * 
- */ - public void listNodes(crawlercommons.urlfrontier.Urlfrontier.Empty request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), responseObserver); + return getGetURLStatusMethod; } - /** - *
-     ** Return the list of crawls handled by the frontier(s) *
-     * 
- */ - public void listCrawls(crawlercommons.urlfrontier.Urlfrontier.Local request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawlsMethod(), responseObserver); + /** Creates a new async stub that supports all call types for the service */ + public static URLFrontierStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public URLFrontierStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new URLFrontierStub(channel, callOptions); + } + }; + return URLFrontierStub.newStub(factory, channel); } /** - *
-     ** Delete an entire crawl, returns the number of URLs removed this way *
-     * 
+ * Creates a new blocking-style stub that supports unary and streaming output calls on the + * service */ - public void deleteCrawl(crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCrawlMethod(), responseObserver); - } + public static URLFrontierBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public URLFrontierBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new URLFrontierBlockingStub(channel, callOptions); + } + }; + return URLFrontierBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static URLFrontierFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public URLFrontierFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new URLFrontierFutureStub(channel, callOptions); + } + }; + return URLFrontierFutureStub.newStub(factory, channel); + } + + /** */ + public abstract static class URLFrontierImplBase implements io.grpc.BindableService { + + /** + * + * + *
+         * * Return the list of nodes forming the cluster the current node belongs to *
+         * 
+ */ + public void listNodes( + crawlercommons.urlfrontier.Urlfrontier.Empty request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNodesMethod(), responseObserver); + } - /** - *
-     ** Return a list of queues for a specific crawl. Can chose whether to include inactive queues (a queue is active if it has URLs due for fetching);
-     *by default the service will return up to 100 results from offset 0 and exclude inactive queues.*
-     * 
- */ - public void listQueues(crawlercommons.urlfrontier.Urlfrontier.Pagination request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListQueuesMethod(), responseObserver); - } + /** + * + * + *
+         * * Return the list of crawls handled by the frontier(s) *
+         * 
+ */ + public void listCrawls( + crawlercommons.urlfrontier.Urlfrontier.Local request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCrawlsMethod(), responseObserver); + } - /** - *
-     ** Stream URLs due for fetching from M queues with up to N items per queue *
-     * 
- */ - public void getURLs(crawlercommons.urlfrontier.Urlfrontier.GetParams request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetURLsMethod(), responseObserver); - } + /** + * + * + *
+         * * Delete an entire crawl, returns the number of URLs removed this way *
+         * 
+ */ + public void deleteCrawl( + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCrawlMethod(), responseObserver); + } - /** - *
-     ** 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( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getPutURLsMethod(), responseObserver); - } + /** + * + * + *
+         * * Return a list of queues for a specific crawl. Can chose whether to include inactive queues (a queue is active if it has URLs due for fetching);
+         * by default the service will return up to 100 results from offset 0 and exclude inactive queues.*
+         * 
+ */ + public void listQueues( + crawlercommons.urlfrontier.Urlfrontier.Pagination request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListQueuesMethod(), responseObserver); + } - /** - *
-     ** Return stats for a specific queue or an entire crawl. Does not aggregate the stats across different crawlids. *
-     * 
- */ - public void getStats(crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStatsMethod(), responseObserver); - } + /** + * + * + *
+         * * Stream URLs due for fetching from M queues with up to N items per queue *
+         * 
+ */ + public void getURLs( + crawlercommons.urlfrontier.Urlfrontier.GetParams request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetURLsMethod(), responseObserver); + } - /** - *
-     ** Delete the queue based on the key in parameter, returns the number of URLs removed this way *
-     * 
- */ - public void deleteQueue(crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteQueueMethod(), responseObserver); - } + /** + * + * + *
+         * * 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( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getPutURLsMethod(), responseObserver); + } - /** - *
-     ** Block a queue from sending URLs; the argument is the number of seconds of UTC time since Unix epoch
-     *1970-01-01T00:00:00Z. The default value of 0 will unblock the queue. The block will get removed once the time
-     *indicated in argument is reached. This is useful for cases where a server returns a Retry-After for instance. 
-     * 
- */ - public void blockQueueUntil(crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBlockQueueUntilMethod(), responseObserver); - } + /** + * + * + *
+         * * Return stats for a specific queue or an entire crawl. Does not aggregate the stats across different crawlids. *
+         * 
+ */ + public void getStats( + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetStatsMethod(), responseObserver); + } - /** - *
-     ** De/activate the crawl. GetURLs will not return anything until SetActive is set to true. PutURLs will still take incoming data. *
-     * 
- */ - public void setActive(crawlercommons.urlfrontier.Urlfrontier.Active request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetActiveMethod(), responseObserver); - } + /** + * + * + *
+         * * Delete the queue based on the key in parameter, returns the number of URLs removed this way *
+         * 
+ */ + public void deleteQueue( + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteQueueMethod(), responseObserver); + } - /** - *
-     ** Returns true if the crawl is active, false if it has been deactivated with SetActive(Boolean) *
-     * 
- */ - public void getActive(crawlercommons.urlfrontier.Urlfrontier.Local request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetActiveMethod(), responseObserver); - } + /** + * + * + *
+         * * Block a queue from sending URLs; the argument is the number of seconds of UTC time since Unix epoch
+         * 1970-01-01T00:00:00Z. The default value of 0 will unblock the queue. The block will get removed once the time
+         * indicated in argument is reached. This is useful for cases where a server returns a Retry-After for instance.
+         * 
+ */ + public void blockQueueUntil( + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBlockQueueUntilMethod(), responseObserver); + } - /** - *
-     ** Set a delay from a given queue.
-     *No URLs will be obtained via GetURLs for this queue until the number of seconds specified has 
-     *elapsed since the last time URLs were retrieved.
-     *Usually informed by the delay setting of robots.txt.
-     * 
- */ - public void setDelay(crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetDelayMethod(), responseObserver); - } + /** + * + * + *
+         * * De/activate the crawl. GetURLs will not return anything until SetActive is set to true. PutURLs will still take incoming data. *
+         * 
+ */ + public void setActive( + crawlercommons.urlfrontier.Urlfrontier.Active request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetActiveMethod(), responseObserver); + } - /** - *
-     ** Overrides the log level for a given package *
-     * 
- */ - public void setLogLevel(crawlercommons.urlfrontier.Urlfrontier.LogLevelParams request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetLogLevelMethod(), responseObserver); - } + /** + * + * + *
+         * * Returns true if the crawl is active, false if it has been deactivated with SetActive(Boolean) *
+         * 
+ */ + public void getActive( + crawlercommons.urlfrontier.Urlfrontier.Local request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetActiveMethod(), responseObserver); + } - /** - *
-     ** Sets crawl limit for domain *
-     * 
- */ - public void setCrawlLimit(crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetCrawlLimitMethod(), responseObserver); - } + /** + * + * + *
+         * * Set a delay from a given queue.
+         * No URLs will be obtained via GetURLs for this queue until the number of seconds specified has
+         * elapsed since the last time URLs were retrieved.
+         * Usually informed by the delay setting of robots.txt.
+         * 
+ */ + public void setDelay( + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetDelayMethod(), responseObserver); + } - /** - *
-     ** Get status of a particular URL 
-     *This does not take into account URL scheduling.
-     *Used to check current status of an URL within the frontier
-     * 
- */ - public void getURLStatus(crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetURLStatusMethod(), responseObserver); - } + /** + * + * + *
+         * * Overrides the log level for a given package *
+         * 
+ */ + public void setLogLevel( + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetLogLevelMethod(), responseObserver); + } - @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))) - .build(); - } - } - - /** - */ - public static final class URLFrontierStub extends io.grpc.stub.AbstractAsyncStub { - private URLFrontierStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } + /** + * + * + *
+         * * Sets crawl limit for domain *
+         * 
+ */ + public void setCrawlLimit( + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetCrawlLimitMethod(), responseObserver); + } - @java.lang.Override - protected URLFrontierStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new URLFrontierStub(channel, callOptions); - } + /** + * + * + *
+         * * Get status of a particular URL
+         * This does not take into account URL scheduling.
+         * Used to check current status of an URL within the frontier
+         * 
+ */ + public void getURLStatus( + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetURLStatusMethod(), responseObserver); + } - /** - *
-     ** Return the list of nodes forming the cluster the current node belongs to *
-     * 
- */ - public void listNodes(crawlercommons.urlfrontier.Urlfrontier.Empty request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNodesMethod(), getCallOptions()), request, responseObserver); + @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))) + .build(); + } } - /** - *
-     ** Return the list of crawls handled by the frontier(s) *
-     * 
- */ - public void listCrawls(crawlercommons.urlfrontier.Urlfrontier.Local request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCrawlsMethod(), getCallOptions()), request, responseObserver); - } + /** */ + public static final class URLFrontierStub + extends io.grpc.stub.AbstractAsyncStub { + private URLFrontierStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } - /** - *
-     ** Delete an entire crawl, returns the number of URLs removed this way *
-     * 
- */ - public void deleteCrawl(crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCrawlMethod(), getCallOptions()), request, responseObserver); - } + @java.lang.Override + protected URLFrontierStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new URLFrontierStub(channel, callOptions); + } - /** - *
-     ** Return a list of queues for a specific crawl. Can chose whether to include inactive queues (a queue is active if it has URLs due for fetching);
-     *by default the service will return up to 100 results from offset 0 and exclude inactive queues.*
-     * 
- */ - public void listQueues(crawlercommons.urlfrontier.Urlfrontier.Pagination request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListQueuesMethod(), getCallOptions()), request, responseObserver); - } + /** + * + * + *
+         * * Return the list of nodes forming the cluster the current node belongs to *
+         * 
+ */ + public void listNodes( + crawlercommons.urlfrontier.Urlfrontier.Empty request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNodesMethod(), getCallOptions()), + request, + responseObserver); + } - /** - *
-     ** Stream URLs due for fetching from M queues with up to N items per queue *
-     * 
- */ - public void getURLs(crawlercommons.urlfrontier.Urlfrontier.GetParams request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getGetURLsMethod(), getCallOptions()), request, responseObserver); - } + /** + * + * + *
+         * * Return the list of crawls handled by the frontier(s) *
+         * 
+ */ + public void listCrawls( + crawlercommons.urlfrontier.Urlfrontier.Local request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCrawlsMethod(), getCallOptions()), + request, + responseObserver); + } - /** - *
-     ** 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( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getPutURLsMethod(), getCallOptions()), responseObserver); - } + /** + * + * + *
+         * * Delete an entire crawl, returns the number of URLs removed this way *
+         * 
+ */ + public void deleteCrawl( + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCrawlMethod(), getCallOptions()), + request, + responseObserver); + } - /** - *
-     ** Return stats for a specific queue or an entire crawl. Does not aggregate the stats across different crawlids. *
-     * 
- */ - public void getStats(crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetStatsMethod(), getCallOptions()), request, responseObserver); - } + /** + * + * + *
+         * * Return a list of queues for a specific crawl. Can chose whether to include inactive queues (a queue is active if it has URLs due for fetching);
+         * by default the service will return up to 100 results from offset 0 and exclude inactive queues.*
+         * 
+ */ + public void listQueues( + crawlercommons.urlfrontier.Urlfrontier.Pagination request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListQueuesMethod(), getCallOptions()), + request, + responseObserver); + } - /** - *
-     ** Delete the queue based on the key in parameter, returns the number of URLs removed this way *
-     * 
- */ - public void deleteQueue(crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request, responseObserver); - } + /** + * + * + *
+         * * Stream URLs due for fetching from M queues with up to N items per queue *
+         * 
+ */ + public void getURLs( + crawlercommons.urlfrontier.Urlfrontier.GetParams request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getGetURLsMethod(), getCallOptions()), + request, + responseObserver); + } - /** - *
-     ** Block a queue from sending URLs; the argument is the number of seconds of UTC time since Unix epoch
-     *1970-01-01T00:00:00Z. The default value of 0 will unblock the queue. The block will get removed once the time
-     *indicated in argument is reached. This is useful for cases where a server returns a Retry-After for instance. 
-     * 
- */ - public void blockQueueUntil(crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBlockQueueUntilMethod(), getCallOptions()), request, responseObserver); - } + /** + * + * + *
+         * * 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( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getPutURLsMethod(), getCallOptions()), responseObserver); + } - /** - *
-     ** De/activate the crawl. GetURLs will not return anything until SetActive is set to true. PutURLs will still take incoming data. *
-     * 
- */ - public void setActive(crawlercommons.urlfrontier.Urlfrontier.Active request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetActiveMethod(), getCallOptions()), request, responseObserver); - } + /** + * + * + *
+         * * Return stats for a specific queue or an entire crawl. Does not aggregate the stats across different crawlids. *
+         * 
+ */ + public void getStats( + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetStatsMethod(), getCallOptions()), + request, + responseObserver); + } - /** - *
-     ** Returns true if the crawl is active, false if it has been deactivated with SetActive(Boolean) *
-     * 
- */ - public void getActive(crawlercommons.urlfrontier.Urlfrontier.Local request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetActiveMethod(), getCallOptions()), request, responseObserver); - } + /** + * + * + *
+         * * Delete the queue based on the key in parameter, returns the number of URLs removed this way *
+         * 
+ */ + public void deleteQueue( + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), + request, + responseObserver); + } - /** - *
-     ** Set a delay from a given queue.
-     *No URLs will be obtained via GetURLs for this queue until the number of seconds specified has 
-     *elapsed since the last time URLs were retrieved.
-     *Usually informed by the delay setting of robots.txt.
-     * 
- */ - public void setDelay(crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetDelayMethod(), getCallOptions()), request, responseObserver); - } + /** + * + * + *
+         * * Block a queue from sending URLs; the argument is the number of seconds of UTC time since Unix epoch
+         * 1970-01-01T00:00:00Z. The default value of 0 will unblock the queue. The block will get removed once the time
+         * indicated in argument is reached. This is useful for cases where a server returns a Retry-After for instance.
+         * 
+ */ + public void blockQueueUntil( + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBlockQueueUntilMethod(), getCallOptions()), + request, + responseObserver); + } - /** - *
-     ** Overrides the log level for a given package *
-     * 
- */ - public void setLogLevel(crawlercommons.urlfrontier.Urlfrontier.LogLevelParams request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetLogLevelMethod(), getCallOptions()), request, responseObserver); - } + /** + * + * + *
+         * * De/activate the crawl. GetURLs will not return anything until SetActive is set to true. PutURLs will still take incoming data. *
+         * 
+ */ + public void setActive( + crawlercommons.urlfrontier.Urlfrontier.Active request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetActiveMethod(), getCallOptions()), + request, + responseObserver); + } - /** - *
-     ** Sets crawl limit for domain *
-     * 
- */ - public void setCrawlLimit(crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetCrawlLimitMethod(), getCallOptions()), request, responseObserver); - } + /** + * + * + *
+         * * Returns true if the crawl is active, false if it has been deactivated with SetActive(Boolean) *
+         * 
+ */ + public void getActive( + crawlercommons.urlfrontier.Urlfrontier.Local request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetActiveMethod(), getCallOptions()), + request, + responseObserver); + } - /** - *
-     ** Get status of a particular URL 
-     *This does not take into account URL scheduling.
-     *Used to check current status of an URL within the frontier
-     * 
- */ - public void getURLStatus(crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetURLStatusMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - */ - public static final class URLFrontierBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private URLFrontierBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } + /** + * + * + *
+         * * Set a delay from a given queue.
+         * No URLs will be obtained via GetURLs for this queue until the number of seconds specified has
+         * elapsed since the last time URLs were retrieved.
+         * Usually informed by the delay setting of robots.txt.
+         * 
+ */ + public void setDelay( + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetDelayMethod(), getCallOptions()), + request, + responseObserver); + } - @java.lang.Override - protected URLFrontierBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new URLFrontierBlockingStub(channel, callOptions); - } + /** + * + * + *
+         * * Overrides the log level for a given package *
+         * 
+ */ + public void setLogLevel( + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetLogLevelMethod(), getCallOptions()), + request, + responseObserver); + } - /** - *
-     ** Return the list of nodes forming the cluster the current node belongs to *
-     * 
- */ - public crawlercommons.urlfrontier.Urlfrontier.StringList listNodes(crawlercommons.urlfrontier.Urlfrontier.Empty request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNodesMethod(), getCallOptions(), request); - } + /** + * + * + *
+         * * Sets crawl limit for domain *
+         * 
+ */ + public void setCrawlLimit( + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetCrawlLimitMethod(), getCallOptions()), + request, + responseObserver); + } - /** - *
-     ** Return the list of crawls handled by the frontier(s) *
-     * 
- */ - public crawlercommons.urlfrontier.Urlfrontier.StringList listCrawls(crawlercommons.urlfrontier.Urlfrontier.Local request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCrawlsMethod(), getCallOptions(), request); + /** + * + * + *
+         * * Get status of a particular URL
+         * This does not take into account URL scheduling.
+         * Used to check current status of an URL within the frontier
+         * 
+ */ + public void getURLStatus( + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetURLStatusMethod(), getCallOptions()), + request, + responseObserver); + } } - /** - *
-     ** Delete an entire crawl, returns the number of URLs removed this way *
-     * 
- */ - public crawlercommons.urlfrontier.Urlfrontier.Long deleteCrawl(crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCrawlMethod(), getCallOptions(), request); - } + /** */ + public static final class URLFrontierBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private URLFrontierBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } - /** - *
-     ** Return a list of queues for a specific crawl. Can chose whether to include inactive queues (a queue is active if it has URLs due for fetching);
-     *by default the service will return up to 100 results from offset 0 and exclude inactive queues.*
-     * 
- */ - public crawlercommons.urlfrontier.Urlfrontier.QueueList listQueues(crawlercommons.urlfrontier.Urlfrontier.Pagination request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListQueuesMethod(), getCallOptions(), request); - } + @java.lang.Override + protected URLFrontierBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new URLFrontierBlockingStub(channel, callOptions); + } - /** - *
-     ** Stream URLs due for fetching from M queues with up to N items per queue *
-     * 
- */ - public java.util.Iterator getURLs( - crawlercommons.urlfrontier.Urlfrontier.GetParams request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getGetURLsMethod(), getCallOptions(), request); - } + /** + * + * + *
+         * * Return the list of nodes forming the cluster the current node belongs to *
+         * 
+ */ + public crawlercommons.urlfrontier.Urlfrontier.StringList listNodes( + crawlercommons.urlfrontier.Urlfrontier.Empty request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNodesMethod(), getCallOptions(), request); + } - /** - *
-     ** Return stats for a specific queue or an entire crawl. Does not aggregate the stats across different crawlids. *
-     * 
- */ - public crawlercommons.urlfrontier.Urlfrontier.Stats getStats(crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetStatsMethod(), getCallOptions(), request); - } + /** + * + * + *
+         * * Return the list of crawls handled by the frontier(s) *
+         * 
+ */ + public crawlercommons.urlfrontier.Urlfrontier.StringList listCrawls( + crawlercommons.urlfrontier.Urlfrontier.Local request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCrawlsMethod(), getCallOptions(), request); + } - /** - *
-     ** Delete the queue based on the key in parameter, returns the number of URLs removed this way *
-     * 
- */ - public crawlercommons.urlfrontier.Urlfrontier.Long deleteQueue(crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteQueueMethod(), getCallOptions(), request); - } + /** + * + * + *
+         * * Delete an entire crawl, returns the number of URLs removed this way *
+         * 
+ */ + public crawlercommons.urlfrontier.Urlfrontier.Long deleteCrawl( + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCrawlMethod(), getCallOptions(), request); + } - /** - *
-     ** Block a queue from sending URLs; the argument is the number of seconds of UTC time since Unix epoch
-     *1970-01-01T00:00:00Z. The default value of 0 will unblock the queue. The block will get removed once the time
-     *indicated in argument is reached. This is useful for cases where a server returns a Retry-After for instance. 
-     * 
- */ - public crawlercommons.urlfrontier.Urlfrontier.Empty blockQueueUntil(crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBlockQueueUntilMethod(), getCallOptions(), request); - } + /** + * + * + *
+         * * Return a list of queues for a specific crawl. Can chose whether to include inactive queues (a queue is active if it has URLs due for fetching);
+         * by default the service will return up to 100 results from offset 0 and exclude inactive queues.*
+         * 
+ */ + public crawlercommons.urlfrontier.Urlfrontier.QueueList listQueues( + crawlercommons.urlfrontier.Urlfrontier.Pagination request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListQueuesMethod(), getCallOptions(), request); + } - /** - *
-     ** De/activate the crawl. GetURLs will not return anything until SetActive is set to true. PutURLs will still take incoming data. *
-     * 
- */ - public crawlercommons.urlfrontier.Urlfrontier.Empty setActive(crawlercommons.urlfrontier.Urlfrontier.Active request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetActiveMethod(), getCallOptions(), request); - } + /** + * + * + *
+         * * Stream URLs due for fetching from M queues with up to N items per queue *
+         * 
+ */ + public java.util.Iterator getURLs( + crawlercommons.urlfrontier.Urlfrontier.GetParams request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getGetURLsMethod(), getCallOptions(), request); + } - /** - *
-     ** Returns true if the crawl is active, false if it has been deactivated with SetActive(Boolean) *
-     * 
- */ - public crawlercommons.urlfrontier.Urlfrontier.Boolean getActive(crawlercommons.urlfrontier.Urlfrontier.Local request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetActiveMethod(), getCallOptions(), request); - } + /** + * + * + *
+         * * Return stats for a specific queue or an entire crawl. Does not aggregate the stats across different crawlids. *
+         * 
+ */ + public crawlercommons.urlfrontier.Urlfrontier.Stats getStats( + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetStatsMethod(), getCallOptions(), request); + } - /** - *
-     ** Set a delay from a given queue.
-     *No URLs will be obtained via GetURLs for this queue until the number of seconds specified has 
-     *elapsed since the last time URLs were retrieved.
-     *Usually informed by the delay setting of robots.txt.
-     * 
- */ - public crawlercommons.urlfrontier.Urlfrontier.Empty setDelay(crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetDelayMethod(), getCallOptions(), request); - } + /** + * + * + *
+         * * Delete the queue based on the key in parameter, returns the number of URLs removed this way *
+         * 
+ */ + public crawlercommons.urlfrontier.Urlfrontier.Long deleteQueue( + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteQueueMethod(), getCallOptions(), request); + } - /** - *
-     ** Overrides the log level for a given package *
-     * 
- */ - public crawlercommons.urlfrontier.Urlfrontier.Empty setLogLevel(crawlercommons.urlfrontier.Urlfrontier.LogLevelParams request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetLogLevelMethod(), getCallOptions(), request); - } + /** + * + * + *
+         * * Block a queue from sending URLs; the argument is the number of seconds of UTC time since Unix epoch
+         * 1970-01-01T00:00:00Z. The default value of 0 will unblock the queue. The block will get removed once the time
+         * indicated in argument is reached. This is useful for cases where a server returns a Retry-After for instance.
+         * 
+ */ + public crawlercommons.urlfrontier.Urlfrontier.Empty blockQueueUntil( + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBlockQueueUntilMethod(), getCallOptions(), request); + } - /** - *
-     ** Sets crawl limit for domain *
-     * 
- */ - public crawlercommons.urlfrontier.Urlfrontier.Empty setCrawlLimit(crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetCrawlLimitMethod(), getCallOptions(), request); - } + /** + * + * + *
+         * * De/activate the crawl. GetURLs will not return anything until SetActive is set to true. PutURLs will still take incoming data. *
+         * 
+ */ + public crawlercommons.urlfrontier.Urlfrontier.Empty setActive( + crawlercommons.urlfrontier.Urlfrontier.Active request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetActiveMethod(), getCallOptions(), request); + } - /** - *
-     ** Get status of a particular URL 
-     *This does not take into account URL scheduling.
-     *Used to check current status of an URL within the frontier
-     * 
- */ - public crawlercommons.urlfrontier.Urlfrontier.URLItem getURLStatus(crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetURLStatusMethod(), getCallOptions(), request); - } - } - - /** - */ - public static final class URLFrontierFutureStub extends io.grpc.stub.AbstractFutureStub { - private URLFrontierFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } + /** + * + * + *
+         * * Returns true if the crawl is active, false if it has been deactivated with SetActive(Boolean) *
+         * 
+ */ + public crawlercommons.urlfrontier.Urlfrontier.Boolean getActive( + crawlercommons.urlfrontier.Urlfrontier.Local request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetActiveMethod(), getCallOptions(), request); + } - @java.lang.Override - protected URLFrontierFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new URLFrontierFutureStub(channel, callOptions); - } + /** + * + * + *
+         * * Set a delay from a given queue.
+         * No URLs will be obtained via GetURLs for this queue until the number of seconds specified has
+         * elapsed since the last time URLs were retrieved.
+         * Usually informed by the delay setting of robots.txt.
+         * 
+ */ + public crawlercommons.urlfrontier.Urlfrontier.Empty setDelay( + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetDelayMethod(), getCallOptions(), request); + } - /** - *
-     ** Return the list of nodes forming the cluster the current node belongs to *
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNodes( - crawlercommons.urlfrontier.Urlfrontier.Empty request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNodesMethod(), getCallOptions()), request); - } + /** + * + * + *
+         * * Overrides the log level for a given package *
+         * 
+ */ + public crawlercommons.urlfrontier.Urlfrontier.Empty setLogLevel( + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetLogLevelMethod(), getCallOptions(), request); + } - /** - *
-     ** Return the list of crawls handled by the frontier(s) *
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCrawls( - crawlercommons.urlfrontier.Urlfrontier.Local request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCrawlsMethod(), getCallOptions()), request); - } + /** + * + * + *
+         * * Sets crawl limit for domain *
+         * 
+ */ + public crawlercommons.urlfrontier.Urlfrontier.Empty setCrawlLimit( + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetCrawlLimitMethod(), getCallOptions(), request); + } - /** - *
-     ** Delete an entire crawl, returns the number of URLs removed this way *
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteCrawl( - crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCrawlMethod(), getCallOptions()), request); + /** + * + * + *
+         * * Get status of a particular URL
+         * This does not take into account URL scheduling.
+         * Used to check current status of an URL within the frontier
+         * 
+ */ + public crawlercommons.urlfrontier.Urlfrontier.URLItem getURLStatus( + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetURLStatusMethod(), getCallOptions(), request); + } } - /** - *
-     ** Return a list of queues for a specific crawl. Can chose whether to include inactive queues (a queue is active if it has URLs due for fetching);
-     *by default the service will return up to 100 results from offset 0 and exclude inactive queues.*
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listQueues( - crawlercommons.urlfrontier.Urlfrontier.Pagination request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListQueuesMethod(), getCallOptions()), request); - } + /** */ + public static final class URLFrontierFutureStub + extends io.grpc.stub.AbstractFutureStub { + private URLFrontierFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } - /** - *
-     ** Return stats for a specific queue or an entire crawl. Does not aggregate the stats across different crawlids. *
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getStats( - crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetStatsMethod(), getCallOptions()), request); - } + @java.lang.Override + protected URLFrontierFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new URLFrontierFutureStub(channel, callOptions); + } - /** - *
-     ** Delete the queue based on the key in parameter, returns the number of URLs removed this way *
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteQueue( - crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request); - } + /** + * + * + *
+         * * Return the list of nodes forming the cluster the current node belongs to *
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + crawlercommons.urlfrontier.Urlfrontier.StringList> + listNodes(crawlercommons.urlfrontier.Urlfrontier.Empty request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNodesMethod(), getCallOptions()), request); + } - /** - *
-     ** Block a queue from sending URLs; the argument is the number of seconds of UTC time since Unix epoch
-     *1970-01-01T00:00:00Z. The default value of 0 will unblock the queue. The block will get removed once the time
-     *indicated in argument is reached. This is useful for cases where a server returns a Retry-After for instance. 
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture blockQueueUntil( - crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBlockQueueUntilMethod(), getCallOptions()), request); - } + /** + * + * + *
+         * * Return the list of crawls handled by the frontier(s) *
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + crawlercommons.urlfrontier.Urlfrontier.StringList> + listCrawls(crawlercommons.urlfrontier.Urlfrontier.Local request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCrawlsMethod(), getCallOptions()), request); + } - /** - *
-     ** De/activate the crawl. GetURLs will not return anything until SetActive is set to true. PutURLs will still take incoming data. *
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setActive( - crawlercommons.urlfrontier.Urlfrontier.Active request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetActiveMethod(), getCallOptions()), request); - } + /** + * + * + *
+         * * Delete an entire crawl, returns the number of URLs removed this way *
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + crawlercommons.urlfrontier.Urlfrontier.Long> + deleteCrawl(crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCrawlMethod(), getCallOptions()), request); + } - /** - *
-     ** Returns true if the crawl is active, false if it has been deactivated with SetActive(Boolean) *
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getActive( - crawlercommons.urlfrontier.Urlfrontier.Local request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetActiveMethod(), getCallOptions()), request); - } + /** + * + * + *
+         * * Return a list of queues for a specific crawl. Can chose whether to include inactive queues (a queue is active if it has URLs due for fetching);
+         * by default the service will return up to 100 results from offset 0 and exclude inactive queues.*
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + crawlercommons.urlfrontier.Urlfrontier.QueueList> + listQueues(crawlercommons.urlfrontier.Urlfrontier.Pagination request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListQueuesMethod(), getCallOptions()), request); + } - /** - *
-     ** Set a delay from a given queue.
-     *No URLs will be obtained via GetURLs for this queue until the number of seconds specified has 
-     *elapsed since the last time URLs were retrieved.
-     *Usually informed by the delay setting of robots.txt.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setDelay( - crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetDelayMethod(), getCallOptions()), request); - } + /** + * + * + *
+         * * Return stats for a specific queue or an entire crawl. Does not aggregate the stats across different crawlids. *
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + crawlercommons.urlfrontier.Urlfrontier.Stats> + getStats(crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetStatsMethod(), getCallOptions()), request); + } - /** - *
-     ** Overrides the log level for a given package *
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setLogLevel( - crawlercommons.urlfrontier.Urlfrontier.LogLevelParams request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetLogLevelMethod(), getCallOptions()), request); - } + /** + * + * + *
+         * * Delete the queue based on the key in parameter, returns the number of URLs removed this way *
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + crawlercommons.urlfrontier.Urlfrontier.Long> + deleteQueue(crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request); + } - /** - *
-     ** Sets crawl limit for domain *
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setCrawlLimit( - crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetCrawlLimitMethod(), getCallOptions()), request); - } + /** + * + * + *
+         * * Block a queue from sending URLs; the argument is the number of seconds of UTC time since Unix epoch
+         * 1970-01-01T00:00:00Z. The default value of 0 will unblock the queue. The block will get removed once the time
+         * indicated in argument is reached. This is useful for cases where a server returns a Retry-After for instance.
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + crawlercommons.urlfrontier.Urlfrontier.Empty> + blockQueueUntil(crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBlockQueueUntilMethod(), getCallOptions()), request); + } - /** - *
-     ** Get status of a particular URL 
-     *This does not take into account URL scheduling.
-     *Used to check current status of an URL within the frontier
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getURLStatus( - crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetURLStatusMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_NODES = 0; - private static final int METHODID_LIST_CRAWLS = 1; - private static final int METHODID_DELETE_CRAWL = 2; - private static final int METHODID_LIST_QUEUES = 3; - private static final int METHODID_GET_URLS = 4; - private static final int METHODID_GET_STATS = 5; - private static final int METHODID_DELETE_QUEUE = 6; - private static final int METHODID_BLOCK_QUEUE_UNTIL = 7; - private static final int METHODID_SET_ACTIVE = 8; - private static final int METHODID_GET_ACTIVE = 9; - private static final int METHODID_SET_DELAY = 10; - private static final int METHODID_SET_LOG_LEVEL = 11; - private static final int METHODID_SET_CRAWL_LIMIT = 12; - private static final int METHODID_GET_URLSTATUS = 13; - private static final int METHODID_PUT_URLS = 14; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final URLFrontierImplBase serviceImpl; - private final int methodId; - - MethodHandlers(URLFrontierImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } + /** + * + * + *
+         * * De/activate the crawl. GetURLs will not return anything until SetActive is set to true. PutURLs will still take incoming data. *
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + crawlercommons.urlfrontier.Urlfrontier.Empty> + setActive(crawlercommons.urlfrontier.Urlfrontier.Active request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetActiveMethod(), getCallOptions()), request); + } - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_NODES: - serviceImpl.listNodes((crawlercommons.urlfrontier.Urlfrontier.Empty) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CRAWLS: - serviceImpl.listCrawls((crawlercommons.urlfrontier.Urlfrontier.Local) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CRAWL: - serviceImpl.deleteCrawl((crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_QUEUES: - serviceImpl.listQueues((crawlercommons.urlfrontier.Urlfrontier.Pagination) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_URLS: - serviceImpl.getURLs((crawlercommons.urlfrontier.Urlfrontier.GetParams) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_STATS: - serviceImpl.getStats((crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_QUEUE: - serviceImpl.deleteQueue((crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BLOCK_QUEUE_UNTIL: - serviceImpl.blockQueueUntil((crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_ACTIVE: - serviceImpl.setActive((crawlercommons.urlfrontier.Urlfrontier.Active) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ACTIVE: - serviceImpl.getActive((crawlercommons.urlfrontier.Urlfrontier.Local) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_DELAY: - serviceImpl.setDelay((crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_LOG_LEVEL: - serviceImpl.setLogLevel((crawlercommons.urlfrontier.Urlfrontier.LogLevelParams) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_CRAWL_LIMIT: - serviceImpl.setCrawlLimit((crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_URLSTATUS: - serviceImpl.getURLStatus((crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } + /** + * + * + *
+         * * Returns true if the crawl is active, false if it has been deactivated with SetActive(Boolean) *
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + crawlercommons.urlfrontier.Urlfrontier.Boolean> + getActive(crawlercommons.urlfrontier.Urlfrontier.Local request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetActiveMethod(), getCallOptions()), request); + } - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_PUT_URLS: - return (io.grpc.stub.StreamObserver) serviceImpl.putURLs( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } + /** + * + * + *
+         * * Set a delay from a given queue.
+         * No URLs will be obtained via GetURLs for this queue until the number of seconds specified has
+         * elapsed since the last time URLs were retrieved.
+         * Usually informed by the delay setting of robots.txt.
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + crawlercommons.urlfrontier.Urlfrontier.Empty> + setDelay(crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetDelayMethod(), getCallOptions()), request); + } - private static abstract class URLFrontierBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - URLFrontierBaseDescriptorSupplier() {} + /** + * + * + *
+         * * Overrides the log level for a given package *
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + crawlercommons.urlfrontier.Urlfrontier.Empty> + setLogLevel(crawlercommons.urlfrontier.Urlfrontier.LogLevelParams request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetLogLevelMethod(), getCallOptions()), request); + } - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.getDescriptor(); + /** + * + * + *
+         * * Sets crawl limit for domain *
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + crawlercommons.urlfrontier.Urlfrontier.Empty> + setCrawlLimit(crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetCrawlLimitMethod(), getCallOptions()), request); + } + + /** + * + * + *
+         * * Get status of a particular URL
+         * This does not take into account URL scheduling.
+         * Used to check current status of an URL within the frontier
+         * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + crawlercommons.urlfrontier.Urlfrontier.URLItem> + getURLStatus(crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetURLStatusMethod(), getCallOptions()), request); + } } - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("URLFrontier"); + private static final int METHODID_LIST_NODES = 0; + private static final int METHODID_LIST_CRAWLS = 1; + private static final int METHODID_DELETE_CRAWL = 2; + private static final int METHODID_LIST_QUEUES = 3; + private static final int METHODID_GET_URLS = 4; + private static final int METHODID_GET_STATS = 5; + private static final int METHODID_DELETE_QUEUE = 6; + private static final int METHODID_BLOCK_QUEUE_UNTIL = 7; + private static final int METHODID_SET_ACTIVE = 8; + private static final int METHODID_GET_ACTIVE = 9; + private static final int METHODID_SET_DELAY = 10; + private static final int METHODID_SET_LOG_LEVEL = 11; + private static final int METHODID_SET_CRAWL_LIMIT = 12; + private static final int METHODID_GET_URLSTATUS = 13; + private static final int METHODID_PUT_URLS = 14; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final URLFrontierImplBase serviceImpl; + private final int methodId; + + MethodHandlers(URLFrontierImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_NODES: + serviceImpl.listNodes( + (crawlercommons.urlfrontier.Urlfrontier.Empty) request, + (io.grpc.stub.StreamObserver< + crawlercommons.urlfrontier.Urlfrontier.StringList>) + responseObserver); + break; + case METHODID_LIST_CRAWLS: + serviceImpl.listCrawls( + (crawlercommons.urlfrontier.Urlfrontier.Local) request, + (io.grpc.stub.StreamObserver< + crawlercommons.urlfrontier.Urlfrontier.StringList>) + responseObserver); + break; + case METHODID_DELETE_CRAWL: + serviceImpl.deleteCrawl( + (crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage) request, + (io.grpc.stub.StreamObserver< + crawlercommons.urlfrontier.Urlfrontier.Long>) + responseObserver); + break; + case METHODID_LIST_QUEUES: + serviceImpl.listQueues( + (crawlercommons.urlfrontier.Urlfrontier.Pagination) request, + (io.grpc.stub.StreamObserver< + crawlercommons.urlfrontier.Urlfrontier.QueueList>) + responseObserver); + break; + case METHODID_GET_URLS: + serviceImpl.getURLs( + (crawlercommons.urlfrontier.Urlfrontier.GetParams) request, + (io.grpc.stub.StreamObserver< + crawlercommons.urlfrontier.Urlfrontier.URLInfo>) + responseObserver); + break; + case METHODID_GET_STATS: + serviceImpl.getStats( + (crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams) request, + (io.grpc.stub.StreamObserver< + crawlercommons.urlfrontier.Urlfrontier.Stats>) + responseObserver); + break; + case METHODID_DELETE_QUEUE: + serviceImpl.deleteQueue( + (crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams) request, + (io.grpc.stub.StreamObserver< + crawlercommons.urlfrontier.Urlfrontier.Long>) + responseObserver); + break; + case METHODID_BLOCK_QUEUE_UNTIL: + serviceImpl.blockQueueUntil( + (crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams) request, + (io.grpc.stub.StreamObserver< + crawlercommons.urlfrontier.Urlfrontier.Empty>) + responseObserver); + break; + case METHODID_SET_ACTIVE: + serviceImpl.setActive( + (crawlercommons.urlfrontier.Urlfrontier.Active) request, + (io.grpc.stub.StreamObserver< + crawlercommons.urlfrontier.Urlfrontier.Empty>) + responseObserver); + break; + case METHODID_GET_ACTIVE: + serviceImpl.getActive( + (crawlercommons.urlfrontier.Urlfrontier.Local) request, + (io.grpc.stub.StreamObserver< + crawlercommons.urlfrontier.Urlfrontier.Boolean>) + responseObserver); + break; + case METHODID_SET_DELAY: + serviceImpl.setDelay( + (crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams) request, + (io.grpc.stub.StreamObserver< + crawlercommons.urlfrontier.Urlfrontier.Empty>) + responseObserver); + break; + case METHODID_SET_LOG_LEVEL: + serviceImpl.setLogLevel( + (crawlercommons.urlfrontier.Urlfrontier.LogLevelParams) request, + (io.grpc.stub.StreamObserver< + crawlercommons.urlfrontier.Urlfrontier.Empty>) + responseObserver); + break; + case METHODID_SET_CRAWL_LIMIT: + serviceImpl.setCrawlLimit( + (crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams) request, + (io.grpc.stub.StreamObserver< + crawlercommons.urlfrontier.Urlfrontier.Empty>) + responseObserver); + break; + case METHODID_GET_URLSTATUS: + serviceImpl.getURLStatus( + (crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest) request, + (io.grpc.stub.StreamObserver< + crawlercommons.urlfrontier.Urlfrontier.URLItem>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_PUT_URLS: + return (io.grpc.stub.StreamObserver) + serviceImpl.putURLs( + (io.grpc.stub.StreamObserver< + crawlercommons.urlfrontier.Urlfrontier + .AckMessage>) + responseObserver); + default: + throw new AssertionError(); + } + } } - } - private static final class URLFrontierFileDescriptorSupplier - extends URLFrontierBaseDescriptorSupplier { - URLFrontierFileDescriptorSupplier() {} - } + private abstract static class URLFrontierBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + URLFrontierBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier.getDescriptor(); + } - private static final class URLFrontierMethodDescriptorSupplier - extends URLFrontierBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("URLFrontier"); + } + } - URLFrontierMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; + private static final class URLFrontierFileDescriptorSupplier + extends URLFrontierBaseDescriptorSupplier { + URLFrontierFileDescriptorSupplier() {} } - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); + private static final class URLFrontierMethodDescriptorSupplier + extends URLFrontierBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + URLFrontierMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } } - } - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (URLFrontierGrpc.class) { - result = serviceDescriptor; + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new URLFrontierFileDescriptorSupplier()) - .addMethod(getListNodesMethod()) - .addMethod(getListCrawlsMethod()) - .addMethod(getDeleteCrawlMethod()) - .addMethod(getListQueuesMethod()) - .addMethod(getGetURLsMethod()) - .addMethod(getPutURLsMethod()) - .addMethod(getGetStatsMethod()) - .addMethod(getDeleteQueueMethod()) - .addMethod(getBlockQueueUntilMethod()) - .addMethod(getSetActiveMethod()) - .addMethod(getGetActiveMethod()) - .addMethod(getSetDelayMethod()) - .addMethod(getSetLogLevelMethod()) - .addMethod(getSetCrawlLimitMethod()) - .addMethod(getGetURLStatusMethod()) - .build(); - } - } + synchronized (URLFrontierGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor( + new URLFrontierFileDescriptorSupplier()) + .addMethod(getListNodesMethod()) + .addMethod(getListCrawlsMethod()) + .addMethod(getDeleteCrawlMethod()) + .addMethod(getListQueuesMethod()) + .addMethod(getGetURLsMethod()) + .addMethod(getPutURLsMethod()) + .addMethod(getGetStatsMethod()) + .addMethod(getDeleteQueueMethod()) + .addMethod(getBlockQueueUntilMethod()) + .addMethod(getSetActiveMethod()) + .addMethod(getGetActiveMethod()) + .addMethod(getSetDelayMethod()) + .addMethod(getSetLogLevelMethod()) + .addMethod(getSetCrawlLimitMethod()) + .addMethod(getGetURLStatusMethod()) + .build(); + } + } + } + return result; } - return result; - } } diff --git a/API/src/main/java/crawlercommons/urlfrontier/Urlfrontier.java b/API/src/main/java/crawlercommons/urlfrontier/Urlfrontier.java index 5511e7f..3c3a68f 100644 --- a/API/src/main/java/crawlercommons/urlfrontier/Urlfrontier.java +++ b/API/src/main/java/crawlercommons/urlfrontier/Urlfrontier.java @@ -4,19081 +4,20475 @@ package crawlercommons.urlfrontier; public final class Urlfrontier { - private Urlfrontier() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface StatsOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.Stats) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * number of active URLs in queues
-     * 
- * - * uint64 size = 1; - * @return The size. - */ - long getSize(); - - /** - *
-     * number of URLs currently in flight
-     * 
- * - * uint32 inProcess = 2; - * @return The inProcess. - */ - int getInProcess(); - - /** - *
-     * custom counts 
-     * 
- * - * map<string, uint64> counts = 3; - */ - int getCountsCount(); - /** - *
-     * custom counts 
-     * 
- * - * map<string, uint64> counts = 3; - */ - boolean containsCounts( - java.lang.String key); - /** - * Use {@link #getCountsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getCounts(); - /** - *
-     * custom counts 
-     * 
- * - * map<string, uint64> counts = 3; - */ - java.util.Map - getCountsMap(); - /** - *
-     * custom counts 
-     * 
- * - * map<string, uint64> counts = 3; - */ - - long getCountsOrDefault( - java.lang.String key, - long defaultValue); - /** - *
-     * custom counts 
-     * 
- * - * map<string, uint64> counts = 3; - */ - - long getCountsOrThrow( - java.lang.String key); - - /** - *
-     * number of active queues in the frontier
-     * 
- * - * uint64 numberOfQueues = 4; - * @return The numberOfQueues. - */ - long getNumberOfQueues(); - - /** - *
-     * crawl ID
-     * 
- * - * string crawlID = 5; - * @return The crawlID. - */ - java.lang.String getCrawlID(); - /** - *
-     * crawl ID
-     * 
- * - * string crawlID = 5; - * @return The bytes for crawlID. - */ - com.google.protobuf.ByteString - getCrawlIDBytes(); - } - /** - *
-   ** 
-   * Message returned by the GetStats method
-   * 
- * - * Protobuf type {@code urlfrontier.Stats} - */ - public static final class Stats extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.Stats) - StatsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Stats.newBuilder() to construct. - private Stats(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Stats() { - crawlID_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Stats(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + private Urlfrontier() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface StatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.Stats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * number of active URLs in queues
+         * 
+ * + * uint64 size = 1; + * + * @return The size. + */ + long getSize(); + + /** + * + * + *
+         * number of URLs currently in flight
+         * 
+ * + * uint32 inProcess = 2; + * + * @return The inProcess. + */ + int getInProcess(); + + /** + * + * + *
+         * custom counts
+         * 
+ * + * map<string, uint64> counts = 3; + */ + int getCountsCount(); + /** + * + * + *
+         * custom counts
+         * 
+ * + * map<string, uint64> counts = 3; + */ + boolean containsCounts(java.lang.String key); + /** Use {@link #getCountsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getCounts(); + /** + * + * + *
+         * custom counts
+         * 
+ * + * map<string, uint64> counts = 3; + */ + java.util.Map getCountsMap(); + /** + * + * + *
+         * custom counts
+         * 
+ * + * map<string, uint64> counts = 3; + */ + long getCountsOrDefault(java.lang.String key, long defaultValue); + /** + * + * + *
+         * custom counts
+         * 
+ * + * map<string, uint64> counts = 3; + */ + long getCountsOrThrow(java.lang.String key); + + /** + * + * + *
+         * number of active queues in the frontier
+         * 
+ * + * uint64 numberOfQueues = 4; + * + * @return The numberOfQueues. + */ + long getNumberOfQueues(); + + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 5; + * + * @return The crawlID. + */ + java.lang.String getCrawlID(); + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 5; + * + * @return The bytes for crawlID. + */ + com.google.protobuf.ByteString getCrawlIDBytes(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Stats_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetCounts(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Stats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.Stats.class, crawlercommons.urlfrontier.Urlfrontier.Stats.Builder.class); - } - - public static final int SIZE_FIELD_NUMBER = 1; - private long size_; - /** - *
-     * number of active URLs in queues
-     * 
- * - * uint64 size = 1; - * @return The size. - */ - @java.lang.Override - public long getSize() { - return size_; - } - - public static final int INPROCESS_FIELD_NUMBER = 2; - private int inProcess_; - /** - *
-     * number of URLs currently in flight
-     * 
- * - * uint32 inProcess = 2; - * @return The inProcess. - */ - @java.lang.Override - public int getInProcess() { - return inProcess_; - } - - public static final int COUNTS_FIELD_NUMBER = 3; - private static final class CountsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Stats_CountsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.UINT64, - 0L); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> counts_; - private com.google.protobuf.MapField - internalGetCounts() { - if (counts_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CountsDefaultEntryHolder.defaultEntry); - } - return counts_; - } - - public int getCountsCount() { - return internalGetCounts().getMap().size(); - } - /** - *
-     * custom counts 
-     * 
- * - * map<string, uint64> counts = 3; - */ - - @java.lang.Override - public boolean containsCounts( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetCounts().getMap().containsKey(key); - } - /** - * Use {@link #getCountsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCounts() { - return getCountsMap(); - } - /** - *
-     * custom counts 
-     * 
- * - * map<string, uint64> counts = 3; - */ - @java.lang.Override - - public java.util.Map getCountsMap() { - return internalGetCounts().getMap(); - } - /** - *
-     * custom counts 
-     * 
- * - * map<string, uint64> counts = 3; - */ - @java.lang.Override - - public long getCountsOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCounts().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * custom counts 
-     * 
- * - * map<string, uint64> counts = 3; - */ - @java.lang.Override - - public long getCountsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCounts().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int NUMBEROFQUEUES_FIELD_NUMBER = 4; - private long numberOfQueues_; - /** - *
-     * number of active queues in the frontier
-     * 
- * - * uint64 numberOfQueues = 4; - * @return The numberOfQueues. - */ - @java.lang.Override - public long getNumberOfQueues() { - return numberOfQueues_; - } - - public static final int CRAWLID_FIELD_NUMBER = 5; - private volatile java.lang.Object crawlID_; /** - *
-     * crawl ID
-     * 
* - * string crawlID = 5; - * @return The crawlID. - */ - @java.lang.Override - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } - } - /** - *
-     * crawl ID
-     * 
* - * string crawlID = 5; - * @return The bytes for crawlID. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (size_ != 0L) { - output.writeUInt64(1, size_); - } - if (inProcess_ != 0) { - output.writeUInt32(2, inProcess_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetCounts(), - CountsDefaultEntryHolder.defaultEntry, - 3); - if (numberOfQueues_ != 0L) { - output.writeUInt64(4, numberOfQueues_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, crawlID_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (size_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, size_); - } - if (inProcess_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, inProcess_); - } - for (java.util.Map.Entry entry - : internalGetCounts().getMap().entrySet()) { - com.google.protobuf.MapEntry - counts__ = CountsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, counts__); - } - if (numberOfQueues_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, numberOfQueues_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, crawlID_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.Stats)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.Stats other = (crawlercommons.urlfrontier.Urlfrontier.Stats) obj; - - if (getSize() - != other.getSize()) return false; - if (getInProcess() - != other.getInProcess()) return false; - if (!internalGetCounts().equals( - other.internalGetCounts())) return false; - if (getNumberOfQueues() - != other.getNumberOfQueues()) return false; - if (!getCrawlID() - .equals(other.getCrawlID())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSize()); - hash = (37 * hash) + INPROCESS_FIELD_NUMBER; - hash = (53 * hash) + getInProcess(); - if (!internalGetCounts().getMap().isEmpty()) { - hash = (37 * hash) + COUNTS_FIELD_NUMBER; - hash = (53 * hash) + internalGetCounts().hashCode(); - } - hash = (37 * hash) + NUMBEROFQUEUES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNumberOfQueues()); - hash = (37 * hash) + CRAWLID_FIELD_NUMBER; - hash = (53 * hash) + getCrawlID().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Stats parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Stats parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Stats prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** *
-     ** 
+     * *
      * Message returned by the GetStats method
      * 
* * Protobuf type {@code urlfrontier.Stats} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.Stats) - crawlercommons.urlfrontier.Urlfrontier.StatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Stats_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetCounts(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 3: - return internalGetMutableCounts(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Stats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.Stats.class, crawlercommons.urlfrontier.Urlfrontier.Stats.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.Stats.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - size_ = 0L; - - inProcess_ = 0; - - internalGetMutableCounts().clear(); - numberOfQueues_ = 0L; - - crawlID_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Stats_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Stats getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.Stats.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Stats build() { - crawlercommons.urlfrontier.Urlfrontier.Stats result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - 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_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.Stats) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.Stats)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Stats other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.Stats.getDefaultInstance()) return this; - if (other.getSize() != 0L) { - setSize(other.getSize()); - } - if (other.getInProcess() != 0) { - setInProcess(other.getInProcess()); - } - internalGetMutableCounts().mergeFrom( - other.internalGetCounts()); - if (other.getNumberOfQueues() != 0L) { - setNumberOfQueues(other.getNumberOfQueues()); - } - if (!other.getCrawlID().isEmpty()) { - crawlID_ = other.crawlID_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - size_ = input.readUInt64(); - - break; - } // case 8 - case 16: { - inProcess_ = input.readUInt32(); - - break; - } // case 16 - case 26: { - com.google.protobuf.MapEntry - counts__ = input.readMessage( - CountsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableCounts().getMutableMap().put( - counts__.getKey(), counts__.getValue()); - break; - } // case 26 - case 32: { - numberOfQueues_ = input.readUInt64(); - - break; - } // case 32 - case 42: { - crawlID_ = input.readStringRequireUtf8(); - - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long size_ ; - /** - *
-       * number of active URLs in queues
-       * 
- * - * uint64 size = 1; - * @return The size. - */ - @java.lang.Override - public long getSize() { - return size_; - } - /** - *
-       * number of active URLs in queues
-       * 
- * - * uint64 size = 1; - * @param value The size to set. - * @return This builder for chaining. - */ - public Builder setSize(long value) { - - size_ = value; - onChanged(); - return this; - } - /** - *
-       * number of active URLs in queues
-       * 
- * - * uint64 size = 1; - * @return This builder for chaining. - */ - public Builder clearSize() { - - size_ = 0L; - onChanged(); - return this; - } - - private int inProcess_ ; - /** - *
-       * number of URLs currently in flight
-       * 
- * - * uint32 inProcess = 2; - * @return The inProcess. - */ - @java.lang.Override - public int getInProcess() { - return inProcess_; - } - /** - *
-       * number of URLs currently in flight
-       * 
- * - * uint32 inProcess = 2; - * @param value The inProcess to set. - * @return This builder for chaining. - */ - public Builder setInProcess(int value) { - - inProcess_ = value; - onChanged(); - return this; - } - /** - *
-       * number of URLs currently in flight
-       * 
- * - * uint32 inProcess = 2; - * @return This builder for chaining. - */ - public Builder clearInProcess() { - - inProcess_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> counts_; - private com.google.protobuf.MapField - internalGetCounts() { - if (counts_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CountsDefaultEntryHolder.defaultEntry); - } - return counts_; - } - private com.google.protobuf.MapField - internalGetMutableCounts() { - onChanged();; - if (counts_ == null) { - counts_ = com.google.protobuf.MapField.newMapField( - CountsDefaultEntryHolder.defaultEntry); - } - if (!counts_.isMutable()) { - counts_ = counts_.copy(); - } - return counts_; - } - - public int getCountsCount() { - return internalGetCounts().getMap().size(); - } - /** - *
-       * custom counts 
-       * 
- * - * map<string, uint64> counts = 3; - */ - - @java.lang.Override - public boolean containsCounts( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetCounts().getMap().containsKey(key); - } - /** - * Use {@link #getCountsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getCounts() { - return getCountsMap(); - } - /** - *
-       * custom counts 
-       * 
- * - * map<string, uint64> counts = 3; - */ - @java.lang.Override - - public java.util.Map getCountsMap() { - return internalGetCounts().getMap(); - } - /** - *
-       * custom counts 
-       * 
- * - * map<string, uint64> counts = 3; - */ - @java.lang.Override - - public long getCountsOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCounts().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * custom counts 
-       * 
- * - * map<string, uint64> counts = 3; - */ - @java.lang.Override - - public long getCountsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetCounts().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearCounts() { - internalGetMutableCounts().getMutableMap() - .clear(); - return this; - } - /** - *
-       * custom counts 
-       * 
- * - * map<string, uint64> counts = 3; - */ - - public Builder removeCounts( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableCounts().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableCounts() { - return internalGetMutableCounts().getMutableMap(); - } - /** - *
-       * custom counts 
-       * 
- * - * map<string, uint64> counts = 3; - */ - public Builder putCounts( - java.lang.String key, - long value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableCounts().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * custom counts 
-       * 
- * - * map<string, uint64> counts = 3; - */ - - public Builder putAllCounts( - java.util.Map values) { - internalGetMutableCounts().getMutableMap() - .putAll(values); - return this; - } - - private long numberOfQueues_ ; - /** - *
-       * number of active queues in the frontier
-       * 
- * - * uint64 numberOfQueues = 4; - * @return The numberOfQueues. - */ - @java.lang.Override - public long getNumberOfQueues() { - return numberOfQueues_; - } - /** - *
-       * number of active queues in the frontier
-       * 
- * - * uint64 numberOfQueues = 4; - * @param value The numberOfQueues to set. - * @return This builder for chaining. - */ - public Builder setNumberOfQueues(long value) { - - numberOfQueues_ = value; - onChanged(); - return this; - } - /** - *
-       * number of active queues in the frontier
-       * 
- * - * uint64 numberOfQueues = 4; - * @return This builder for chaining. - */ - public Builder clearNumberOfQueues() { - - numberOfQueues_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object crawlID_ = ""; - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 5; - * @return The crawlID. - */ - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 5; - * @return The bytes for crawlID. - */ - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 5; - * @param value The crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlID( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crawlID_ = value; - onChanged(); - return this; - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 5; - * @return This builder for chaining. - */ - public Builder clearCrawlID() { - - crawlID_ = getDefaultInstance().getCrawlID(); - onChanged(); - return this; - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 5; - * @param value The bytes for crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlIDBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crawlID_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.Stats) - } + public static final class Stats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.Stats) + StatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Stats.newBuilder() to construct. + private Stats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Stats() { + crawlID_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetCounts(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Stats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.Stats.class, + crawlercommons.urlfrontier.Urlfrontier.Stats.Builder.class); + } + + public static final int SIZE_FIELD_NUMBER = 1; + private long size_; + /** + * + * + *
+         * number of active URLs in queues
+         * 
+ * + * uint64 size = 1; + * + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + + public static final int INPROCESS_FIELD_NUMBER = 2; + private int inProcess_; + /** + * + * + *
+         * number of URLs currently in flight
+         * 
+ * + * uint32 inProcess = 2; + * + * @return The inProcess. + */ + @java.lang.Override + public int getInProcess() { + return inProcess_; + } + + public static final int COUNTS_FIELD_NUMBER = 3; + + private static final class CountsDefaultEntryHolder { + static final com.google.protobuf.MapEntry + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Stats_CountsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.UINT64, + 0L); + } + + private com.google.protobuf.MapField counts_; + + private com.google.protobuf.MapField internalGetCounts() { + if (counts_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CountsDefaultEntryHolder.defaultEntry); + } + return counts_; + } + + public int getCountsCount() { + return internalGetCounts().getMap().size(); + } + /** + * + * + *
+         * custom counts
+         * 
+ * + * map<string, uint64> counts = 3; + */ + @java.lang.Override + public boolean containsCounts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCounts().getMap().containsKey(key); + } + /** Use {@link #getCountsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCounts() { + return getCountsMap(); + } + /** + * + * + *
+         * custom counts
+         * 
+ * + * map<string, uint64> counts = 3; + */ + @java.lang.Override + public java.util.Map getCountsMap() { + return internalGetCounts().getMap(); + } + /** + * + * + *
+         * custom counts
+         * 
+ * + * map<string, uint64> counts = 3; + */ + @java.lang.Override + public long getCountsOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCounts().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+         * custom counts
+         * 
+ * + * map<string, uint64> counts = 3; + */ + @java.lang.Override + public long getCountsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCounts().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int NUMBEROFQUEUES_FIELD_NUMBER = 4; + private long numberOfQueues_; + /** + * + * + *
+         * number of active queues in the frontier
+         * 
+ * + * uint64 numberOfQueues = 4; + * + * @return The numberOfQueues. + */ + @java.lang.Override + public long getNumberOfQueues() { + return numberOfQueues_; + } + + public static final int CRAWLID_FIELD_NUMBER = 5; + private volatile java.lang.Object crawlID_; + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 5; + * + * @return The crawlID. + */ + @java.lang.Override + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } + } + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 5; + * + * @return The bytes for crawlID. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (size_ != 0L) { + output.writeUInt64(1, size_); + } + if (inProcess_ != 0) { + output.writeUInt32(2, inProcess_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetCounts(), CountsDefaultEntryHolder.defaultEntry, 3); + if (numberOfQueues_ != 0L) { + output.writeUInt64(4, numberOfQueues_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, crawlID_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (size_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, size_); + } + if (inProcess_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, inProcess_); + } + for (java.util.Map.Entry entry : + internalGetCounts().getMap().entrySet()) { + com.google.protobuf.MapEntry counts__ = + CountsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, counts__); + } + if (numberOfQueues_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(4, numberOfQueues_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, crawlID_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.Stats)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.Stats other = + (crawlercommons.urlfrontier.Urlfrontier.Stats) obj; + + if (getSize() != other.getSize()) return false; + if (getInProcess() != other.getInProcess()) return false; + if (!internalGetCounts().equals(other.internalGetCounts())) return false; + if (getNumberOfQueues() != other.getNumberOfQueues()) return false; + if (!getCrawlID().equals(other.getCrawlID())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSize()); + hash = (37 * hash) + INPROCESS_FIELD_NUMBER; + hash = (53 * hash) + getInProcess(); + if (!internalGetCounts().getMap().isEmpty()) { + hash = (37 * hash) + COUNTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetCounts().hashCode(); + } + hash = (37 * hash) + NUMBEROFQUEUES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNumberOfQueues()); + hash = (37 * hash) + CRAWLID_FIELD_NUMBER; + hash = (53 * hash) + getCrawlID().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Stats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Stats parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Stats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - // @@protoc_insertion_point(class_scope:urlfrontier.Stats) - private static final crawlercommons.urlfrontier.Urlfrontier.Stats DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.Stats(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static crawlercommons.urlfrontier.Urlfrontier.Stats getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Stats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Stats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * *
+         * Message returned by the GetStats method
+         * 
+ * + * Protobuf type {@code urlfrontier.Stats} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.Stats) + crawlercommons.urlfrontier.Urlfrontier.StatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Stats_descriptor; + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Stats getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetCounts(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableCounts(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Stats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.Stats.class, + crawlercommons.urlfrontier.Urlfrontier.Stats.Builder.class); + } + + // Construct using crawlercommons.urlfrontier.Urlfrontier.Stats.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + size_ = 0L; + + inProcess_ = 0; + + internalGetMutableCounts().clear(); + numberOfQueues_ = 0L; + + crawlID_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Stats_descriptor; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Stats getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.Stats.getDefaultInstance(); + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Stats build() { + crawlercommons.urlfrontier.Urlfrontier.Stats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.Stats) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.Stats) other); + } else { + super.mergeFrom(other); + return this; + } + } - } + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Stats other) { + if (other == crawlercommons.urlfrontier.Urlfrontier.Stats.getDefaultInstance()) + return this; + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + if (other.getInProcess() != 0) { + setInProcess(other.getInProcess()); + } + internalGetMutableCounts().mergeFrom(other.internalGetCounts()); + if (other.getNumberOfQueues() != 0L) { + setNumberOfQueues(other.getNumberOfQueues()); + } + if (!other.getCrawlID().isEmpty()) { + crawlID_ = other.crawlID_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + size_ = input.readUInt64(); + + break; + } // case 8 + case 16: + { + inProcess_ = input.readUInt32(); + + break; + } // case 16 + case 26: + { + com.google.protobuf.MapEntry + counts__ = + input.readMessage( + CountsDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableCounts() + .getMutableMap() + .put(counts__.getKey(), counts__.getValue()); + break; + } // case 26 + case 32: + { + numberOfQueues_ = input.readUInt64(); + + break; + } // case 32 + case 42: + { + crawlID_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long size_; + /** + * + * + *
+             * number of active URLs in queues
+             * 
+ * + * uint64 size = 1; + * + * @return The size. + */ + @java.lang.Override + public long getSize() { + return size_; + } + /** + * + * + *
+             * number of active URLs in queues
+             * 
+ * + * uint64 size = 1; + * + * @param value The size to set. + * @return This builder for chaining. + */ + public Builder setSize(long value) { + + size_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * number of active URLs in queues
+             * 
+ * + * uint64 size = 1; + * + * @return This builder for chaining. + */ + public Builder clearSize() { + + size_ = 0L; + onChanged(); + return this; + } + + private int inProcess_; + /** + * + * + *
+             * number of URLs currently in flight
+             * 
+ * + * uint32 inProcess = 2; + * + * @return The inProcess. + */ + @java.lang.Override + public int getInProcess() { + return inProcess_; + } + /** + * + * + *
+             * number of URLs currently in flight
+             * 
+ * + * uint32 inProcess = 2; + * + * @param value The inProcess to set. + * @return This builder for chaining. + */ + public Builder setInProcess(int value) { + + inProcess_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * number of URLs currently in flight
+             * 
+ * + * uint32 inProcess = 2; + * + * @return This builder for chaining. + */ + public Builder clearInProcess() { + + inProcess_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField counts_; + + private com.google.protobuf.MapField + internalGetCounts() { + if (counts_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CountsDefaultEntryHolder.defaultEntry); + } + return counts_; + } + + private com.google.protobuf.MapField + internalGetMutableCounts() { + onChanged(); + ; + if (counts_ == null) { + counts_ = + com.google.protobuf.MapField.newMapField( + CountsDefaultEntryHolder.defaultEntry); + } + if (!counts_.isMutable()) { + counts_ = counts_.copy(); + } + return counts_; + } + + public int getCountsCount() { + return internalGetCounts().getMap().size(); + } + /** + * + * + *
+             * custom counts
+             * 
+ * + * map<string, uint64> counts = 3; + */ + @java.lang.Override + public boolean containsCounts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCounts().getMap().containsKey(key); + } + /** Use {@link #getCountsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCounts() { + return getCountsMap(); + } + /** + * + * + *
+             * custom counts
+             * 
+ * + * map<string, uint64> counts = 3; + */ + @java.lang.Override + public java.util.Map getCountsMap() { + return internalGetCounts().getMap(); + } + /** + * + * + *
+             * custom counts
+             * 
+ * + * map<string, uint64> counts = 3; + */ + @java.lang.Override + public long getCountsOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCounts().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+             * custom counts
+             * 
+ * + * map<string, uint64> counts = 3; + */ + @java.lang.Override + public long getCountsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCounts().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCounts() { + internalGetMutableCounts().getMutableMap().clear(); + return this; + } + /** + * + * + *
+             * custom counts
+             * 
+ * + * map<string, uint64> counts = 3; + */ + public Builder removeCounts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableCounts().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableCounts() { + return internalGetMutableCounts().getMutableMap(); + } + /** + * + * + *
+             * custom counts
+             * 
+ * + * map<string, uint64> counts = 3; + */ + public Builder putCounts(java.lang.String key, long value) { + if (key == null) { + throw new NullPointerException("map key"); + } - public interface PaginationOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.Pagination) - com.google.protobuf.MessageOrBuilder { + internalGetMutableCounts().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+             * custom counts
+             * 
+ * + * map<string, uint64> counts = 3; + */ + public Builder putAllCounts(java.util.Map values) { + internalGetMutableCounts().getMutableMap().putAll(values); + return this; + } + + private long numberOfQueues_; + /** + * + * + *
+             * number of active queues in the frontier
+             * 
+ * + * uint64 numberOfQueues = 4; + * + * @return The numberOfQueues. + */ + @java.lang.Override + public long getNumberOfQueues() { + return numberOfQueues_; + } + /** + * + * + *
+             * number of active queues in the frontier
+             * 
+ * + * uint64 numberOfQueues = 4; + * + * @param value The numberOfQueues to set. + * @return This builder for chaining. + */ + public Builder setNumberOfQueues(long value) { + + numberOfQueues_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * number of active queues in the frontier
+             * 
+ * + * uint64 numberOfQueues = 4; + * + * @return This builder for chaining. + */ + public Builder clearNumberOfQueues() { + + numberOfQueues_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object crawlID_ = ""; + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 5; + * + * @return The crawlID. + */ + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 5; + * + * @return The bytes for crawlID. + */ + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 5; + * + * @param value The crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlID(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - /** - *
-     * position of the first result in the list; defaults to 0
-     * 
- * - * uint32 start = 1; - * @return The start. - */ - int getStart(); + crawlID_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 5; + * + * @return This builder for chaining. + */ + public Builder clearCrawlID() { + + crawlID_ = getDefaultInstance().getCrawlID(); + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 5; + * + * @param value The bytes for crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + crawlID_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.Stats) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.Stats) + private static final crawlercommons.urlfrontier.Urlfrontier.Stats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.Stats(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Stats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Stats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PaginationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.Pagination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * position of the first result in the list; defaults to 0
+         * 
+ * + * uint32 start = 1; + * + * @return The start. + */ + int getStart(); + + /** + * + * + *
+         * max number of values; defaults to 100
+         * 
+ * + * uint32 size = 2; + * + * @return The size. + */ + int getSize(); + + /** + * + * + *
+         * include inactive queues; defaults to false
+         * 
+ * + * bool include_inactive = 3; + * + * @return The includeInactive. + */ + boolean getIncludeInactive(); + + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 4; + * + * @return The crawlID. + */ + java.lang.String getCrawlID(); + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 4; + * + * @return The bytes for crawlID. + */ + com.google.protobuf.ByteString getCrawlIDBytes(); + + /** + * + * + *
+         * only for the current local instance
+         * 
+ * + * bool local = 5; + * + * @return The local. + */ + boolean getLocal(); + } + /** Protobuf type {@code urlfrontier.Pagination} */ + public static final class Pagination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.Pagination) + PaginationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Pagination.newBuilder() to construct. + private Pagination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Pagination() { + crawlID_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Pagination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.Pagination.class, + crawlercommons.urlfrontier.Urlfrontier.Pagination.Builder.class); + } + + public static final int START_FIELD_NUMBER = 1; + private int start_; + /** + * + * + *
+         * position of the first result in the list; defaults to 0
+         * 
+ * + * uint32 start = 1; + * + * @return The start. + */ + @java.lang.Override + public int getStart() { + return start_; + } + + public static final int SIZE_FIELD_NUMBER = 2; + private int size_; + /** + * + * + *
+         * max number of values; defaults to 100
+         * 
+ * + * uint32 size = 2; + * + * @return The size. + */ + @java.lang.Override + public int getSize() { + return size_; + } + + public static final int INCLUDE_INACTIVE_FIELD_NUMBER = 3; + private boolean includeInactive_; + /** + * + * + *
+         * include inactive queues; defaults to false
+         * 
+ * + * bool include_inactive = 3; + * + * @return The includeInactive. + */ + @java.lang.Override + public boolean getIncludeInactive() { + return includeInactive_; + } + + public static final int CRAWLID_FIELD_NUMBER = 4; + private volatile java.lang.Object crawlID_; + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 4; + * + * @return The crawlID. + */ + @java.lang.Override + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } + } + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 4; + * + * @return The bytes for crawlID. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCAL_FIELD_NUMBER = 5; + private boolean local_; + /** + * + * + *
+         * only for the current local instance
+         * 
+ * + * bool local = 5; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (start_ != 0) { + output.writeUInt32(1, start_); + } + if (size_ != 0) { + output.writeUInt32(2, size_); + } + if (includeInactive_ != false) { + output.writeBool(3, includeInactive_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, crawlID_); + } + if (local_ != false) { + output.writeBool(5, local_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (start_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, start_); + } + if (size_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, size_); + } + if (includeInactive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, includeInactive_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, crawlID_); + } + if (local_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, local_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.Pagination)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.Pagination other = + (crawlercommons.urlfrontier.Urlfrontier.Pagination) obj; + + if (getStart() != other.getStart()) return false; + if (getSize() != other.getSize()) return false; + if (getIncludeInactive() != other.getIncludeInactive()) return false; + if (!getCrawlID().equals(other.getCrawlID())) return false; + if (getLocal() != other.getLocal()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + getStart(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSize(); + hash = (37 * hash) + INCLUDE_INACTIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeInactive()); + hash = (37 * hash) + CRAWLID_FIELD_NUMBER; + hash = (53 * hash) + getCrawlID().hashCode(); + hash = (37 * hash) + LOCAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocal()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - *
-     * max number of values; defaults to 100
-     * 
- * - * uint32 size = 2; - * @return The size. - */ - int getSize(); + public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - /** - *
-     * include inactive queues; defaults to false
-     * 
- * - * bool include_inactive = 3; - * @return The includeInactive. - */ - boolean getIncludeInactive(); + public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - *
-     * crawl ID
-     * 
- * - * string crawlID = 4; - * @return The crawlID. - */ - java.lang.String getCrawlID(); - /** - *
-     * crawl ID
-     * 
- * - * string crawlID = 4; - * @return The bytes for crawlID. - */ - com.google.protobuf.ByteString - getCrawlIDBytes(); + public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - *
-     * only for the current local instance
-     * 
- * - * bool local = 5; - * @return The local. - */ - boolean getLocal(); - } - /** - * Protobuf type {@code urlfrontier.Pagination} - */ - public static final class Pagination extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.Pagination) - PaginationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Pagination.newBuilder() to construct. - private Pagination(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Pagination() { - crawlID_ = ""; - } + public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Pagination(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @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; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Pagination_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.Pagination.class, crawlercommons.urlfrontier.Urlfrontier.Pagination.Builder.class); - } + public static Builder newBuilder( + crawlercommons.urlfrontier.Urlfrontier.Pagination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int START_FIELD_NUMBER = 1; - private int start_; - /** - *
-     * position of the first result in the list; defaults to 0
-     * 
- * - * uint32 start = 1; - * @return The start. - */ - @java.lang.Override - public int getStart() { - return start_; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int SIZE_FIELD_NUMBER = 2; - private int size_; - /** - *
-     * max number of values; defaults to 100
-     * 
- * - * uint32 size = 2; - * @return The size. - */ - @java.lang.Override - public int getSize() { - return size_; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code urlfrontier.Pagination} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.Pagination) + crawlercommons.urlfrontier.Urlfrontier.PaginationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Pagination_descriptor; + } - public static final int INCLUDE_INACTIVE_FIELD_NUMBER = 3; - private boolean includeInactive_; - /** - *
-     * include inactive queues; defaults to false
-     * 
- * - * bool include_inactive = 3; - * @return The includeInactive. - */ - @java.lang.Override - public boolean getIncludeInactive() { - return includeInactive_; - } - - public static final int CRAWLID_FIELD_NUMBER = 4; - private volatile java.lang.Object crawlID_; - /** - *
-     * crawl ID
-     * 
- * - * string crawlID = 4; - * @return The crawlID. - */ - @java.lang.Override - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } - } - /** - *
-     * crawl ID
-     * 
- * - * string crawlID = 4; - * @return The bytes for crawlID. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCAL_FIELD_NUMBER = 5; - private boolean local_; - /** - *
-     * only for the current local instance
-     * 
- * - * bool local = 5; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (start_ != 0) { - output.writeUInt32(1, start_); - } - if (size_ != 0) { - output.writeUInt32(2, size_); - } - if (includeInactive_ != false) { - output.writeBool(3, includeInactive_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, crawlID_); - } - if (local_ != false) { - output.writeBool(5, local_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (start_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, start_); - } - if (size_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, size_); - } - if (includeInactive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, includeInactive_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, crawlID_); - } - if (local_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, local_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.Pagination)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.Pagination other = (crawlercommons.urlfrontier.Urlfrontier.Pagination) obj; - - if (getStart() - != other.getStart()) return false; - if (getSize() - != other.getSize()) return false; - if (getIncludeInactive() - != other.getIncludeInactive()) return false; - if (!getCrawlID() - .equals(other.getCrawlID())) return false; - if (getLocal() - != other.getLocal()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + getStart(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + getSize(); - hash = (37 * hash) + INCLUDE_INACTIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIncludeInactive()); - hash = (37 * hash) + CRAWLID_FIELD_NUMBER; - hash = (53 * hash) + getCrawlID().hashCode(); - hash = (37 * hash) + LOCAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLocal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Pagination parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Pagination prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code urlfrontier.Pagination} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.Pagination) - crawlercommons.urlfrontier.Urlfrontier.PaginationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Pagination_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Pagination_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.Pagination.class, crawlercommons.urlfrontier.Urlfrontier.Pagination.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.Pagination.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - start_ = 0; - - size_ = 0; - - includeInactive_ = false; - - crawlID_ = ""; - - local_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Pagination_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Pagination getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.Pagination.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Pagination build() { - crawlercommons.urlfrontier.Urlfrontier.Pagination result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - 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_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.Pagination) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.Pagination)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Pagination other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.Pagination.getDefaultInstance()) return this; - if (other.getStart() != 0) { - setStart(other.getStart()); - } - if (other.getSize() != 0) { - setSize(other.getSize()); - } - if (other.getIncludeInactive() != false) { - setIncludeInactive(other.getIncludeInactive()); - } - if (!other.getCrawlID().isEmpty()) { - crawlID_ = other.crawlID_; - onChanged(); - } - if (other.getLocal() != false) { - setLocal(other.getLocal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - start_ = input.readUInt32(); - - break; - } // case 8 - case 16: { - size_ = input.readUInt32(); - - break; - } // case 16 - case 24: { - includeInactive_ = input.readBool(); - - break; - } // case 24 - case 34: { - crawlID_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 40: { - local_ = input.readBool(); - - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int start_ ; - /** - *
-       * position of the first result in the list; defaults to 0
-       * 
- * - * uint32 start = 1; - * @return The start. - */ - @java.lang.Override - public int getStart() { - return start_; - } - /** - *
-       * position of the first result in the list; defaults to 0
-       * 
- * - * uint32 start = 1; - * @param value The start to set. - * @return This builder for chaining. - */ - public Builder setStart(int value) { - - start_ = value; - onChanged(); - return this; - } - /** - *
-       * position of the first result in the list; defaults to 0
-       * 
- * - * uint32 start = 1; - * @return This builder for chaining. - */ - public Builder clearStart() { - - start_ = 0; - onChanged(); - return this; - } - - private int size_ ; - /** - *
-       * max number of values; defaults to 100
-       * 
- * - * uint32 size = 2; - * @return The size. - */ - @java.lang.Override - public int getSize() { - return size_; - } - /** - *
-       * max number of values; defaults to 100
-       * 
- * - * uint32 size = 2; - * @param value The size to set. - * @return This builder for chaining. - */ - public Builder setSize(int value) { - - size_ = value; - onChanged(); - return this; - } - /** - *
-       * max number of values; defaults to 100
-       * 
- * - * uint32 size = 2; - * @return This builder for chaining. - */ - public Builder clearSize() { - - size_ = 0; - onChanged(); - return this; - } - - private boolean includeInactive_ ; - /** - *
-       * include inactive queues; defaults to false
-       * 
- * - * bool include_inactive = 3; - * @return The includeInactive. - */ - @java.lang.Override - public boolean getIncludeInactive() { - return includeInactive_; - } - /** - *
-       * include inactive queues; defaults to false
-       * 
- * - * bool include_inactive = 3; - * @param value The includeInactive to set. - * @return This builder for chaining. - */ - public Builder setIncludeInactive(boolean value) { - - includeInactive_ = value; - onChanged(); - return this; - } - /** - *
-       * include inactive queues; defaults to false
-       * 
- * - * bool include_inactive = 3; - * @return This builder for chaining. - */ - public Builder clearIncludeInactive() { - - includeInactive_ = false; - onChanged(); - return this; - } - - private java.lang.Object crawlID_ = ""; - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 4; - * @return The crawlID. - */ - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 4; - * @return The bytes for crawlID. - */ - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 4; - * @param value The crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlID( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crawlID_ = value; - onChanged(); - return this; - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 4; - * @return This builder for chaining. - */ - public Builder clearCrawlID() { - - crawlID_ = getDefaultInstance().getCrawlID(); - onChanged(); - return this; - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 4; - * @param value The bytes for crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlIDBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crawlID_ = value; - onChanged(); - return this; - } - - private boolean local_ ; - /** - *
-       * only for the current local instance
-       * 
- * - * bool local = 5; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } - /** - *
-       * only for the current local instance
-       * 
- * - * bool local = 5; - * @param value The local to set. - * @return This builder for chaining. - */ - public Builder setLocal(boolean value) { - - local_ = value; - onChanged(); - return this; - } - /** - *
-       * only for the current local instance
-       * 
- * - * bool local = 5; - * @return This builder for chaining. - */ - public Builder clearLocal() { - - local_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.Pagination) - } - - // @@protoc_insertion_point(class_scope:urlfrontier.Pagination) - private static final crawlercommons.urlfrontier.Urlfrontier.Pagination DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.Pagination(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Pagination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.Pagination.class, + crawlercommons.urlfrontier.Urlfrontier.Pagination.Builder.class); + } - public static crawlercommons.urlfrontier.Urlfrontier.Pagination getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Pagination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Pagination getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DeleteCrawlMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.DeleteCrawlMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * string value = 1; - * @return The value. - */ - java.lang.String getValue(); - /** - * string value = 1; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); - - /** - * bool local = 2; - * @return The local. - */ - boolean getLocal(); - } - /** - * Protobuf type {@code urlfrontier.DeleteCrawlMessage} - */ - public static final class DeleteCrawlMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.DeleteCrawlMessage) - DeleteCrawlMessageOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteCrawlMessage.newBuilder() to construct. - private DeleteCrawlMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteCrawlMessage() { - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteCrawlMessage(); - } + // Construct using crawlercommons.urlfrontier.Urlfrontier.Pagination.newBuilder() + private Builder() {} - @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; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_DeleteCrawlMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.class, crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private volatile java.lang.Object value_; - /** - * string value = 1; - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * string value = 1; - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCAL_FIELD_NUMBER = 2; - private boolean local_; - /** - * bool local = 2; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); - } - if (local_ != false) { - output.writeBool(2, local_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); - } - if (local_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, local_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage other = (crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage) obj; - - if (!getValue() - .equals(other.getValue())) return false; - if (getLocal() - != other.getLocal()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + LOCAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLocal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code urlfrontier.DeleteCrawlMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.DeleteCrawlMessage) - crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_DeleteCrawlMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_DeleteCrawlMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.class, crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - value_ = ""; - - local_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_DeleteCrawlMessage_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage build() { - crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage buildPartial() { - crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage result = new crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage(this); - result.value_ = value_; - result.local_ = local_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.getDefaultInstance()) return this; - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - if (other.getLocal() != false) { - setLocal(other.getLocal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - value_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - local_ = input.readBool(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object value_ = ""; - /** - * string value = 1; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string value = 1; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string value = 1; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * string value = 1; - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * string value = 1; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - - private boolean local_ ; - /** - * bool local = 2; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } - /** - * bool local = 2; - * @param value The local to set. - * @return This builder for chaining. - */ - public Builder setLocal(boolean value) { - - local_ = value; - onChanged(); - return this; - } - /** - * bool local = 2; - * @return This builder for chaining. - */ - public Builder clearLocal() { - - local_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.DeleteCrawlMessage) - } - - // @@protoc_insertion_point(class_scope:urlfrontier.DeleteCrawlMessage) - private static final crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage(); - } - - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCrawlMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.Empty) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code urlfrontier.Empty} - */ - public static final class Empty extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.Empty) - EmptyOrBuilder { - private static final long serialVersionUID = 0L; - // Use Empty.newBuilder() to construct. - private Empty(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Empty() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - 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; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Empty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.Empty.class, crawlercommons.urlfrontier.Urlfrontier.Empty.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.Empty)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.Empty other = (crawlercommons.urlfrontier.Urlfrontier.Empty) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Empty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Empty parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Empty prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code urlfrontier.Empty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.Empty) - crawlercommons.urlfrontier.Urlfrontier.EmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Empty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Empty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.Empty.class, crawlercommons.urlfrontier.Urlfrontier.Empty.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.Empty.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Empty_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Empty getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.Empty.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Empty build() { - crawlercommons.urlfrontier.Urlfrontier.Empty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Empty buildPartial() { - crawlercommons.urlfrontier.Urlfrontier.Empty result = new crawlercommons.urlfrontier.Urlfrontier.Empty(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.Empty) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.Empty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Empty other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.Empty.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.Empty) - } - - // @@protoc_insertion_point(class_scope:urlfrontier.Empty) - private static final crawlercommons.urlfrontier.Urlfrontier.Empty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.Empty(); - } - - public static crawlercommons.urlfrontier.Urlfrontier.Empty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Empty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Empty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LocalOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.Local) - com.google.protobuf.MessageOrBuilder { - - /** - * bool local = 1; - * @return The local. - */ - boolean getLocal(); - } - /** - * Protobuf type {@code urlfrontier.Local} - */ - public static final class Local extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.Local) - LocalOrBuilder { - private static final long serialVersionUID = 0L; - // Use Local.newBuilder() to construct. - private Local(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Local() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - 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; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Local_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.Local.class, crawlercommons.urlfrontier.Urlfrontier.Local.Builder.class); - } - - public static final int LOCAL_FIELD_NUMBER = 1; - private boolean local_; - /** - * bool local = 1; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (local_ != false) { - output.writeBool(1, local_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (local_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, local_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.Local)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.Local other = (crawlercommons.urlfrontier.Urlfrontier.Local) obj; - - if (getLocal() - != other.getLocal()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LOCAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLocal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Local parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Local parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Local prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code urlfrontier.Local} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.Local) - crawlercommons.urlfrontier.Urlfrontier.LocalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Local_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Local_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.Local.class, crawlercommons.urlfrontier.Urlfrontier.Local.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.Local.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - local_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Local_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Local getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.Local.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Local build() { - crawlercommons.urlfrontier.Urlfrontier.Local result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Local buildPartial() { - crawlercommons.urlfrontier.Urlfrontier.Local result = new crawlercommons.urlfrontier.Urlfrontier.Local(this); - result.local_ = local_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.Local) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.Local)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Local other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.Local.getDefaultInstance()) return this; - if (other.getLocal() != false) { - setLocal(other.getLocal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - local_ = input.readBool(); - - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private boolean local_ ; - /** - * bool local = 1; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } - /** - * bool local = 1; - * @param value The local to set. - * @return This builder for chaining. - */ - public Builder setLocal(boolean value) { - - local_ = value; - onChanged(); - return this; - } - /** - * bool local = 1; - * @return This builder for chaining. - */ - public Builder clearLocal() { - - local_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.Local) - } - - // @@protoc_insertion_point(class_scope:urlfrontier.Local) - private static final crawlercommons.urlfrontier.Urlfrontier.Local DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.Local(); - } - - public static crawlercommons.urlfrontier.Urlfrontier.Local getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Local parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Local getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ActiveOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.Active) - com.google.protobuf.MessageOrBuilder { - - /** - * bool state = 1; - * @return The state. - */ - boolean getState(); - - /** - * bool local = 2; - * @return The local. - */ - boolean getLocal(); - } - /** - * Protobuf type {@code urlfrontier.Active} - */ - public static final class Active extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.Active) - ActiveOrBuilder { - private static final long serialVersionUID = 0L; - // Use Active.newBuilder() to construct. - private Active(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Active() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - 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; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Active_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.Active.class, crawlercommons.urlfrontier.Urlfrontier.Active.Builder.class); - } - - public static final int STATE_FIELD_NUMBER = 1; - private boolean state_; - /** - * bool state = 1; - * @return The state. - */ - @java.lang.Override - public boolean getState() { - return state_; - } - - public static final int LOCAL_FIELD_NUMBER = 2; - private boolean local_; - /** - * bool local = 2; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != false) { - output.writeBool(1, state_); - } - if (local_ != false) { - output.writeBool(2, local_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, state_); - } - if (local_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, local_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.Active)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.Active other = (crawlercommons.urlfrontier.Urlfrontier.Active) obj; - - if (getState() - != other.getState()) return false; - if (getLocal() - != other.getLocal()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getState()); - hash = (37 * hash) + LOCAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLocal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Active parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Active parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Active prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code urlfrontier.Active} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.Active) - crawlercommons.urlfrontier.Urlfrontier.ActiveOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Active_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Active_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.Active.class, crawlercommons.urlfrontier.Urlfrontier.Active.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.Active.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - state_ = false; - - local_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Active_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Active getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.Active.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Active build() { - crawlercommons.urlfrontier.Urlfrontier.Active result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Active buildPartial() { - crawlercommons.urlfrontier.Urlfrontier.Active result = new crawlercommons.urlfrontier.Urlfrontier.Active(this); - result.state_ = state_; - result.local_ = local_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.Active) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.Active)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Active other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.Active.getDefaultInstance()) return this; - if (other.getState() != false) { - setState(other.getState()); - } - if (other.getLocal() != false) { - setLocal(other.getLocal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - state_ = input.readBool(); - - break; - } // case 8 - case 16: { - local_ = input.readBool(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private boolean state_ ; - /** - * bool state = 1; - * @return The state. - */ - @java.lang.Override - public boolean getState() { - return state_; - } - /** - * bool state = 1; - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(boolean value) { - - state_ = value; - onChanged(); - return this; - } - /** - * bool state = 1; - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = false; - onChanged(); - return this; - } - - private boolean local_ ; - /** - * bool local = 2; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } - /** - * bool local = 2; - * @param value The local to set. - * @return This builder for chaining. - */ - public Builder setLocal(boolean value) { - - local_ = value; - onChanged(); - return this; - } - /** - * bool local = 2; - * @return This builder for chaining. - */ - public Builder clearLocal() { - - local_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.Active) - } - - // @@protoc_insertion_point(class_scope:urlfrontier.Active) - private static final crawlercommons.urlfrontier.Urlfrontier.Active DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.Active(); - } - - public static crawlercommons.urlfrontier.Urlfrontier.Active getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Active parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Active getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - } + @java.lang.Override + public Builder clear() { + super.clear(); + start_ = 0; - public interface BooleanOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.Boolean) - com.google.protobuf.MessageOrBuilder { + size_ = 0; - /** - * bool state = 1; - * @return The state. - */ - boolean getState(); - } - /** - * Protobuf type {@code urlfrontier.Boolean} - */ - public static final class Boolean extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.Boolean) - BooleanOrBuilder { - private static final long serialVersionUID = 0L; - // Use Boolean.newBuilder() to construct. - private Boolean(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Boolean() { - } + includeInactive_ = false; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Boolean(); - } + crawlID_ = ""; - @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; - } + local_ = false; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Boolean_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.Boolean.class, crawlercommons.urlfrontier.Urlfrontier.Boolean.Builder.class); - } + return this; + } - public static final int STATE_FIELD_NUMBER = 1; - private boolean state_; - /** - * bool state = 1; - * @return The state. - */ - @java.lang.Override - public boolean getState() { - return state_; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Pagination_descriptor; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Pagination getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.Pagination.getDefaultInstance(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Pagination build() { + crawlercommons.urlfrontier.Urlfrontier.Pagination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.Pagination) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.Pagination) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != false) { - output.writeBool(1, state_); - } - getUnknownFields().writeTo(output); - } + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Pagination other) { + if (other == crawlercommons.urlfrontier.Urlfrontier.Pagination.getDefaultInstance()) + return this; + if (other.getStart() != 0) { + setStart(other.getStart()); + } + if (other.getSize() != 0) { + setSize(other.getSize()); + } + if (other.getIncludeInactive() != false) { + setIncludeInactive(other.getIncludeInactive()); + } + if (!other.getCrawlID().isEmpty()) { + crawlID_ = other.crawlID_; + onChanged(); + } + if (other.getLocal() != false) { + setLocal(other.getLocal()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + start_ = input.readUInt32(); + + break; + } // case 8 + case 16: + { + size_ = input.readUInt32(); + + break; + } // case 16 + case 24: + { + includeInactive_ = input.readBool(); + + break; + } // case 24 + case 34: + { + crawlID_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: + { + local_ = input.readBool(); + + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int start_; + /** + * + * + *
+             * position of the first result in the list; defaults to 0
+             * 
+ * + * uint32 start = 1; + * + * @return The start. + */ + @java.lang.Override + public int getStart() { + return start_; + } + /** + * + * + *
+             * position of the first result in the list; defaults to 0
+             * 
+ * + * uint32 start = 1; + * + * @param value The start to set. + * @return This builder for chaining. + */ + public Builder setStart(int value) { + + start_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * position of the first result in the list; defaults to 0
+             * 
+ * + * uint32 start = 1; + * + * @return This builder for chaining. + */ + public Builder clearStart() { + + start_ = 0; + onChanged(); + return this; + } + + private int size_; + /** + * + * + *
+             * max number of values; defaults to 100
+             * 
+ * + * uint32 size = 2; + * + * @return The size. + */ + @java.lang.Override + public int getSize() { + return size_; + } + /** + * + * + *
+             * max number of values; defaults to 100
+             * 
+ * + * uint32 size = 2; + * + * @param value The size to set. + * @return This builder for chaining. + */ + public Builder setSize(int value) { + + size_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * max number of values; defaults to 100
+             * 
+ * + * uint32 size = 2; + * + * @return This builder for chaining. + */ + public Builder clearSize() { + + size_ = 0; + onChanged(); + return this; + } + + private boolean includeInactive_; + /** + * + * + *
+             * include inactive queues; defaults to false
+             * 
+ * + * bool include_inactive = 3; + * + * @return The includeInactive. + */ + @java.lang.Override + public boolean getIncludeInactive() { + return includeInactive_; + } + /** + * + * + *
+             * include inactive queues; defaults to false
+             * 
+ * + * bool include_inactive = 3; + * + * @param value The includeInactive to set. + * @return This builder for chaining. + */ + public Builder setIncludeInactive(boolean value) { + + includeInactive_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * include inactive queues; defaults to false
+             * 
+ * + * bool include_inactive = 3; + * + * @return This builder for chaining. + */ + public Builder clearIncludeInactive() { + + includeInactive_ = false; + onChanged(); + return this; + } + + private java.lang.Object crawlID_ = ""; + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 4; + * + * @return The crawlID. + */ + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 4; + * + * @return The bytes for crawlID. + */ + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 4; + * + * @param value The crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlID(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, state_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + crawlID_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 4; + * + * @return This builder for chaining. + */ + public Builder clearCrawlID() { + + crawlID_ = getDefaultInstance().getCrawlID(); + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 4; + * + * @param value The bytes for crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + crawlID_ = value; + onChanged(); + return this; + } + + private boolean local_; + /** + * + * + *
+             * only for the current local instance
+             * 
+ * + * bool local = 5; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + /** + * + * + *
+             * only for the current local instance
+             * 
+ * + * bool local = 5; + * + * @param value The local to set. + * @return This builder for chaining. + */ + public Builder setLocal(boolean value) { + + local_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * only for the current local instance
+             * 
+ * + * bool local = 5; + * + * @return This builder for chaining. + */ + public Builder clearLocal() { + + local_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.Pagination) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.Pagination) + private static final crawlercommons.urlfrontier.Urlfrontier.Pagination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.Pagination(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Pagination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Pagination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Pagination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DeleteCrawlMessageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.DeleteCrawlMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * string value = 1; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * string value = 1; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * bool local = 2; + * + * @return The local. + */ + boolean getLocal(); + } + /** Protobuf type {@code urlfrontier.DeleteCrawlMessage} */ + public static final class DeleteCrawlMessage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.DeleteCrawlMessage) + DeleteCrawlMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteCrawlMessage.newBuilder() to construct. + private DeleteCrawlMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteCrawlMessage() { + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_DeleteCrawlMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.class, + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.Builder + .class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private volatile java.lang.Object value_; + /** + * string value = 1; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * string value = 1; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCAL_FIELD_NUMBER = 2; + private boolean local_; + /** + * bool local = 2; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); + } + if (local_ != false) { + output.writeBool(2, local_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); + } + if (local_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, local_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage other = + (crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage) obj; + + if (!getValue().equals(other.getValue())) return false; + if (getLocal() != other.getLocal()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + LOCAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocal()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.Boolean)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.Boolean other = (crawlercommons.urlfrontier.Urlfrontier.Boolean) obj; - - if (getState() - != other.getState()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getState()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Boolean prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code urlfrontier.Boolean} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.Boolean) - crawlercommons.urlfrontier.Urlfrontier.BooleanOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Boolean_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Boolean_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.Boolean.class, crawlercommons.urlfrontier.Urlfrontier.Boolean.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.Boolean.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - state_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Boolean_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Boolean getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.Boolean.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Boolean build() { - crawlercommons.urlfrontier.Urlfrontier.Boolean result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Boolean buildPartial() { - crawlercommons.urlfrontier.Urlfrontier.Boolean result = new crawlercommons.urlfrontier.Urlfrontier.Boolean(this); - result.state_ = state_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.Boolean) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.Boolean)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Boolean other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.Boolean.getDefaultInstance()) return this; - if (other.getState() != false) { - setState(other.getState()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - state_ = input.readBool(); - - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private boolean state_ ; - /** - * bool state = 1; - * @return The state. - */ - @java.lang.Override - public boolean getState() { - return state_; - } - /** - * bool state = 1; - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(boolean value) { - - state_ = value; - onChanged(); - return this; - } - /** - * bool state = 1; - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.Boolean) - } + public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:urlfrontier.Boolean) - private static final crawlercommons.urlfrontier.Urlfrontier.Boolean DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.Boolean(); - } + public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static crawlercommons.urlfrontier.Urlfrontier.Boolean getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Boolean parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Boolean getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public interface LongOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.Long) - com.google.protobuf.MessageOrBuilder { + public static Builder newBuilder( + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * uint64 value = 1; - * @return The value. - */ - long getValue(); - } - /** - * Protobuf type {@code urlfrontier.Long} - */ - public static final class Long extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.Long) - LongOrBuilder { - private static final long serialVersionUID = 0L; - // Use Long.newBuilder() to construct. - private Long(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Long() { - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Long(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code urlfrontier.DeleteCrawlMessage} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.DeleteCrawlMessage) + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_DeleteCrawlMessage_descriptor; + } - @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; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_DeleteCrawlMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.class, + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.Builder + .class); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Long_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.Long.class, crawlercommons.urlfrontier.Urlfrontier.Long.Builder.class); - } + // Construct using + // crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.newBuilder() + private Builder() {} - public static final int VALUE_FIELD_NUMBER = 1; - private long value_; - /** - * uint64 value = 1; - * @return The value. - */ - @java.lang.Override - public long getValue() { - return value_; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = ""; - memoizedIsInitialized = 1; - return true; - } + local_ = false; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (value_ != 0L) { - output.writeUInt64(1, value_); - } - getUnknownFields().writeTo(output); - } + return this; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, value_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_DeleteCrawlMessage_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.Long)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.Long other = (crawlercommons.urlfrontier.Urlfrontier.Long) obj; - - if (getValue() - != other.getValue()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage + getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage + .getDefaultInstance(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getValue()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage build() { + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage buildPartial() { + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage result = + new crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage(this); + result.value_ = value_; + result.local_ = local_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage) { + return mergeFrom( + (crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage other) { + if (other + == crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage + .getDefaultInstance()) return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (other.getLocal() != false) { + setLocal(other.getLocal()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + value_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + local_ = input.readBool(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object value_ = ""; + /** + * string value = 1; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string value = 1; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string value = 1; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + value_ = value; + onChanged(); + return this; + } + /** + * string value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * string value = 1; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + private boolean local_; + /** + * bool local = 2; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + /** + * bool local = 2; + * + * @param value The local to set. + * @return This builder for chaining. + */ + public Builder setLocal(boolean value) { + + local_ = value; + onChanged(); + return this; + } + /** + * bool local = 2; + * + * @return This builder for chaining. + */ + public Builder clearLocal() { + + local_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.DeleteCrawlMessage) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.DeleteCrawlMessage) + private static final crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCrawlMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EmptyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.Empty) + com.google.protobuf.MessageOrBuilder {} + /** Protobuf type {@code urlfrontier.Empty} */ + public static final class Empty extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.Empty) + EmptyOrBuilder { + private static final long serialVersionUID = 0L; + // Use Empty.newBuilder() to construct. + private Empty(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Empty() {} - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Long prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Empty(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code urlfrontier.Long} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.Long) - crawlercommons.urlfrontier.Urlfrontier.LongOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Long_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Long_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.Long.class, crawlercommons.urlfrontier.Urlfrontier.Long.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.Long.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - value_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_Long_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Long getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.Long.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Long build() { - crawlercommons.urlfrontier.Urlfrontier.Long result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Long buildPartial() { - crawlercommons.urlfrontier.Urlfrontier.Long result = new crawlercommons.urlfrontier.Urlfrontier.Long(this); - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.Long) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.Long)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Long other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.Long.getDefaultInstance()) return this; - if (other.getValue() != 0L) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - value_ = input.readUInt64(); - - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private long value_ ; - /** - * uint64 value = 1; - * @return The value. - */ - @java.lang.Override - public long getValue() { - return value_; - } - /** - * uint64 value = 1; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(long value) { - - value_ = value; - onChanged(); - return this; - } - /** - * uint64 value = 1; - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.Long) - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - // @@protoc_insertion_point(class_scope:urlfrontier.Long) - private static final crawlercommons.urlfrontier.Urlfrontier.Long DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.Long(); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Empty_descriptor; + } - public static crawlercommons.urlfrontier.Urlfrontier.Long getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Empty_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.Empty.class, + crawlercommons.urlfrontier.Urlfrontier.Empty.Builder.class); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Long parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Long getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + memoizedIsInitialized = 1; + return true; + } - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } - public interface QueueListOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.QueueList) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * repeated string values = 1; - * @return A list containing the values. - */ - java.util.List - getValuesList(); - /** - * repeated string values = 1; - * @return The count of values. - */ - int getValuesCount(); - /** - * repeated string values = 1; - * @param index The index of the element to return. - * @return The values at the given index. - */ - java.lang.String getValues(int index); - /** - * repeated string values = 1; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - com.google.protobuf.ByteString - getValuesBytes(int index); + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - *
-     * total number of queues
-     * 
- * - * uint64 total = 2; - * @return The total. - */ - long getTotal(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.Empty)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.Empty other = + (crawlercommons.urlfrontier.Urlfrontier.Empty) obj; - /** - *
-     * position of the first result in the list
-     * 
- * - * uint32 start = 3; - * @return The start. - */ - int getStart(); + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - /** - *
-     * number of values returned
-     * 
- * - * uint32 size = 4; - * @return The size. - */ - int getSize(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 5; - * @return The crawlID. - */ - java.lang.String getCrawlID(); - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 5; - * @return The bytes for crawlID. - */ - com.google.protobuf.ByteString - getCrawlIDBytes(); - } - /** - *
-   ** Returned by ListQueues *
-   * 
- * - * Protobuf type {@code urlfrontier.QueueList} - */ - public static final class QueueList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.QueueList) - QueueListOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueueList.newBuilder() to construct. - private QueueList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueueList() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - crawlID_ = ""; - } + public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new QueueList(); - } + public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @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; - } + public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_QueueList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.QueueList.class, crawlercommons.urlfrontier.Urlfrontier.QueueList.Builder.class); - } + public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int VALUES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList values_; - /** - * repeated string values = 1; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_; - } - /** - * repeated string values = 1; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated string values = 1; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * repeated string values = 1; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } + public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int TOTAL_FIELD_NUMBER = 2; - private long total_; - /** - *
-     * total number of queues
-     * 
- * - * uint64 total = 2; - * @return The total. - */ - @java.lang.Override - public long getTotal() { - return total_; - } + public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int START_FIELD_NUMBER = 3; - private int start_; - /** - *
-     * position of the first result in the list
-     * 
- * - * uint32 start = 3; - * @return The start. - */ - @java.lang.Override - public int getStart() { - return start_; - } + public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int SIZE_FIELD_NUMBER = 4; - private int size_; - /** - *
-     * number of values returned
-     * 
- * - * uint32 size = 4; - * @return The size. - */ - @java.lang.Override - public int getSize() { - return size_; - } + public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int CRAWLID_FIELD_NUMBER = 5; - private volatile java.lang.Object crawlID_; - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 5; - * @return The crawlID. - */ - @java.lang.Override - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } - } - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 5; - * @return The bytes for crawlID. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static crawlercommons.urlfrontier.Urlfrontier.Empty parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static crawlercommons.urlfrontier.Urlfrontier.Empty parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - if (total_ != 0L) { - output.writeUInt64(2, total_); - } - if (start_ != 0) { - output.writeUInt32(3, start_); - } - if (size_ != 0) { - output.writeUInt32(4, size_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, crawlID_); - } - getUnknownFields().writeTo(output); - } + public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - if (total_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, total_); - } - if (start_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, start_); - } - if (size_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, size_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, crawlID_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.QueueList)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.QueueList other = (crawlercommons.urlfrontier.Urlfrontier.QueueList) obj; - - if (!getValuesList() - .equals(other.getValuesList())) return false; - if (getTotal() - != other.getTotal()) return false; - if (getStart() - != other.getStart()) return false; - if (getSize() - != other.getSize()) return false; - if (!getCrawlID() - .equals(other.getCrawlID())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (37 * hash) + TOTAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotal()); - hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + getStart(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + getSize(); - hash = (37 * hash) + CRAWLID_FIELD_NUMBER; - hash = (53 * hash) + getCrawlID().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Empty prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.QueueList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code urlfrontier.Empty} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.Empty) + crawlercommons.urlfrontier.Urlfrontier.EmptyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Empty_descriptor; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     ** Returned by ListQueues *
-     * 
- * - * Protobuf type {@code urlfrontier.QueueList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.QueueList) - crawlercommons.urlfrontier.Urlfrontier.QueueListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_QueueList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_QueueList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.QueueList.class, crawlercommons.urlfrontier.Urlfrontier.QueueList.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.QueueList.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - total_ = 0L; - - start_ = 0; - - size_ = 0; - - crawlID_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_QueueList_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.QueueList getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.QueueList.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.QueueList build() { - crawlercommons.urlfrontier.Urlfrontier.QueueList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - 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_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.QueueList) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.QueueList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.QueueList other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.QueueList.getDefaultInstance()) return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - if (other.getTotal() != 0L) { - setTotal(other.getTotal()); - } - if (other.getStart() != 0) { - setStart(other.getStart()); - } - if (other.getSize() != 0) { - setSize(other.getSize()); - } - if (!other.getCrawlID().isEmpty()) { - crawlID_ = other.crawlID_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 10 - case 16: { - total_ = input.readUInt64(); - - break; - } // case 16 - case 24: { - start_ = input.readUInt32(); - - break; - } // case 24 - case 32: { - size_ = input.readUInt32(); - - break; - } // case 32 - case 42: { - crawlID_ = input.readStringRequireUtf8(); - - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string values = 1; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_.getUnmodifiableView(); - } - /** - * repeated string values = 1; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated string values = 1; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * repeated string values = 1; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - * repeated string values = 1; - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string values = 1; - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - * repeated string values = 1; - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - return this; - } - /** - * repeated string values = 1; - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string values = 1; - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - - private long total_ ; - /** - *
-       * total number of queues
-       * 
- * - * uint64 total = 2; - * @return The total. - */ - @java.lang.Override - public long getTotal() { - return total_; - } - /** - *
-       * total number of queues
-       * 
- * - * uint64 total = 2; - * @param value The total to set. - * @return This builder for chaining. - */ - public Builder setTotal(long value) { - - total_ = value; - onChanged(); - return this; - } - /** - *
-       * total number of queues
-       * 
- * - * uint64 total = 2; - * @return This builder for chaining. - */ - public Builder clearTotal() { - - total_ = 0L; - onChanged(); - return this; - } - - private int start_ ; - /** - *
-       * position of the first result in the list
-       * 
- * - * uint32 start = 3; - * @return The start. - */ - @java.lang.Override - public int getStart() { - return start_; - } - /** - *
-       * position of the first result in the list
-       * 
- * - * uint32 start = 3; - * @param value The start to set. - * @return This builder for chaining. - */ - public Builder setStart(int value) { - - start_ = value; - onChanged(); - return this; - } - /** - *
-       * position of the first result in the list
-       * 
- * - * uint32 start = 3; - * @return This builder for chaining. - */ - public Builder clearStart() { - - start_ = 0; - onChanged(); - return this; - } - - private int size_ ; - /** - *
-       * number of values returned
-       * 
- * - * uint32 size = 4; - * @return The size. - */ - @java.lang.Override - public int getSize() { - return size_; - } - /** - *
-       * number of values returned
-       * 
- * - * uint32 size = 4; - * @param value The size to set. - * @return This builder for chaining. - */ - public Builder setSize(int value) { - - size_ = value; - onChanged(); - return this; - } - /** - *
-       * number of values returned
-       * 
- * - * uint32 size = 4; - * @return This builder for chaining. - */ - public Builder clearSize() { - - size_ = 0; - onChanged(); - return this; - } - - private java.lang.Object crawlID_ = ""; - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 5; - * @return The crawlID. - */ - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 5; - * @return The bytes for crawlID. - */ - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 5; - * @param value The crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlID( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crawlID_ = value; - onChanged(); - return this; - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 5; - * @return This builder for chaining. - */ - public Builder clearCrawlID() { - - crawlID_ = getDefaultInstance().getCrawlID(); - onChanged(); - return this; - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 5; - * @param value The bytes for crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlIDBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crawlID_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.QueueList) - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Empty_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.Empty.class, + crawlercommons.urlfrontier.Urlfrontier.Empty.Builder.class); + } - // @@protoc_insertion_point(class_scope:urlfrontier.QueueList) - private static final crawlercommons.urlfrontier.Urlfrontier.QueueList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.QueueList(); - } + // Construct using crawlercommons.urlfrontier.Urlfrontier.Empty.newBuilder() + private Builder() {} - public static crawlercommons.urlfrontier.Urlfrontier.QueueList getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueueList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Empty_descriptor; + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.QueueList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Empty getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.Empty.getDefaultInstance(); + } - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Empty build() { + crawlercommons.urlfrontier.Urlfrontier.Empty result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Empty buildPartial() { + crawlercommons.urlfrontier.Urlfrontier.Empty result = + new crawlercommons.urlfrontier.Urlfrontier.Empty(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.Empty) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.Empty) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Empty other) { + if (other == crawlercommons.urlfrontier.Urlfrontier.Empty.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.Empty) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.Empty) + private static final crawlercommons.urlfrontier.Urlfrontier.Empty DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.Empty(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Empty getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Empty parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Empty getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LocalOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.Local) + com.google.protobuf.MessageOrBuilder { + + /** + * bool local = 1; + * + * @return The local. + */ + boolean getLocal(); + } + /** Protobuf type {@code urlfrontier.Local} */ + public static final class Local extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.Local) + LocalOrBuilder { + private static final long serialVersionUID = 0L; + // Use Local.newBuilder() to construct. + private Local(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Local() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } - public interface StringListOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.StringList) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Local_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.Local.class, + crawlercommons.urlfrontier.Urlfrontier.Local.Builder.class); + } + + public static final int LOCAL_FIELD_NUMBER = 1; + private boolean local_; + /** + * bool local = 1; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * repeated string values = 1; - * @return A list containing the values. - */ - java.util.List - getValuesList(); - /** - * repeated string values = 1; - * @return The count of values. - */ - int getValuesCount(); - /** - * repeated string values = 1; - * @param index The index of the element to return. - * @return The values at the given index. - */ - java.lang.String getValues(int index); - /** - * repeated string values = 1; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - com.google.protobuf.ByteString - getValuesBytes(int index); - } - /** - * Protobuf type {@code urlfrontier.StringList} - */ - public static final class StringList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.StringList) - StringListOrBuilder { - private static final long serialVersionUID = 0L; - // Use StringList.newBuilder() to construct. - private StringList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StringList() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringList(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (local_ != false) { + output.writeBool(1, local_); + } + getUnknownFields().writeTo(output); + } - @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; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_StringList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.StringList.class, crawlercommons.urlfrontier.Urlfrontier.StringList.Builder.class); - } + size = 0; + if (local_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, local_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int VALUES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList values_; - /** - * repeated string values = 1; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_; - } - /** - * repeated string values = 1; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated string values = 1; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * repeated string values = 1; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.Local)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.Local other = + (crawlercommons.urlfrontier.Urlfrontier.Local) obj; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + if (getLocal() != other.getLocal()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOCAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocal()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } + public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.StringList)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.StringList other = (crawlercommons.urlfrontier.Urlfrontier.StringList) obj; - - if (!getValuesList() - .equals(other.getValuesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.StringList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.StringList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.StringList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code urlfrontier.StringList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.StringList) - crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_StringList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_StringList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.StringList.class, crawlercommons.urlfrontier.Urlfrontier.StringList.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.StringList.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_StringList_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.StringList getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.StringList.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.StringList build() { - crawlercommons.urlfrontier.Urlfrontier.StringList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - 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); - } - result.values_ = values_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.StringList) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.StringList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.StringList other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.StringList.getDefaultInstance()) return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string values = 1; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_.getUnmodifiableView(); - } - /** - * repeated string values = 1; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated string values = 1; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * repeated string values = 1; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - * repeated string values = 1; - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string values = 1; - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - * repeated string values = 1; - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - return this; - } - /** - * repeated string values = 1; - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string values = 1; - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.StringList) - } + public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - // @@protoc_insertion_point(class_scope:urlfrontier.StringList) - private static final crawlercommons.urlfrontier.Urlfrontier.StringList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.StringList(); - } + public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static crawlercommons.urlfrontier.Urlfrontier.StringList getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static crawlercommons.urlfrontier.Urlfrontier.Local parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static crawlercommons.urlfrontier.Urlfrontier.Local parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.StringList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public interface QueueWithinCrawlParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.QueueWithinCrawlParams) - com.google.protobuf.MessageOrBuilder { + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - *
-     ** ID for the queue *
-     * 
- * - * string key = 1; - * @return The key. - */ - java.lang.String getKey(); - /** - *
-     ** ID for the queue *
-     * 
- * - * string key = 1; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); + public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Local prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 2; - * @return The crawlID. - */ - java.lang.String getCrawlID(); - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 2; - * @return The bytes for crawlID. - */ - com.google.protobuf.ByteString - getCrawlIDBytes(); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - *
-     * only for this instance
-     * 
- * - * bool local = 3; - * @return The local. - */ - boolean getLocal(); - } - /** - * Protobuf type {@code urlfrontier.QueueWithinCrawlParams} - */ - public static final class QueueWithinCrawlParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.QueueWithinCrawlParams) - QueueWithinCrawlParamsOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueueWithinCrawlParams.newBuilder() to construct. - private QueueWithinCrawlParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueueWithinCrawlParams() { - key_ = ""; - crawlID_ = ""; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code urlfrontier.Local} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.Local) + crawlercommons.urlfrontier.Urlfrontier.LocalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Local_descriptor; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new QueueWithinCrawlParams(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Local_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.Local.class, + crawlercommons.urlfrontier.Urlfrontier.Local.Builder.class); + } - @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; - } + // Construct using crawlercommons.urlfrontier.Urlfrontier.Local.newBuilder() + private Builder() {} - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_QueueWithinCrawlParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.class, crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.Builder.class); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - *
-     ** ID for the queue *
-     * 
- * - * string key = 1; - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-     ** ID for the queue *
-     * 
- * - * string key = 1; - * @return The bytes for key. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clear() { + super.clear(); + local_ = false; - public static final int CRAWLID_FIELD_NUMBER = 2; - private volatile java.lang.Object crawlID_; - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 2; - * @return The crawlID. - */ - @java.lang.Override - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } - } - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 2; - * @return The bytes for crawlID. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + return this; + } - public static final int LOCAL_FIELD_NUMBER = 3; - private boolean local_; - /** - *
-     * only for this instance
-     * 
- * - * bool local = 3; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Local_descriptor; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Local getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.Local.getDefaultInstance(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Local build() { + crawlercommons.urlfrontier.Urlfrontier.Local result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Local buildPartial() { + crawlercommons.urlfrontier.Urlfrontier.Local result = + new crawlercommons.urlfrontier.Urlfrontier.Local(this); + result.local_ = local_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.Local) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.Local) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, crawlID_); - } - if (local_ != false) { - output.writeBool(3, local_); - } - getUnknownFields().writeTo(output); - } + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Local other) { + if (other == crawlercommons.urlfrontier.Urlfrontier.Local.getDefaultInstance()) + return this; + if (other.getLocal() != false) { + setLocal(other.getLocal()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + local_ = input.readBool(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private boolean local_; + /** + * bool local = 1; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + /** + * bool local = 1; + * + * @param value The local to set. + * @return This builder for chaining. + */ + public Builder setLocal(boolean value) { + + local_ = value; + onChanged(); + return this; + } + /** + * bool local = 1; + * + * @return This builder for chaining. + */ + public Builder clearLocal() { + + local_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.Local) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.Local) + private static final crawlercommons.urlfrontier.Urlfrontier.Local DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.Local(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Local getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Local parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Local getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ActiveOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.Active) + com.google.protobuf.MessageOrBuilder { + + /** + * bool state = 1; + * + * @return The state. + */ + boolean getState(); + + /** + * bool local = 2; + * + * @return The local. + */ + boolean getLocal(); + } + /** Protobuf type {@code urlfrontier.Active} */ + public static final class Active extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.Active) + ActiveOrBuilder { + private static final long serialVersionUID = 0L; + // Use Active.newBuilder() to construct. + private Active(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Active() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Active_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.Active.class, + crawlercommons.urlfrontier.Urlfrontier.Active.Builder.class); + } + + public static final int STATE_FIELD_NUMBER = 1; + private boolean state_; + /** + * bool state = 1; + * + * @return The state. + */ + @java.lang.Override + public boolean getState() { + return state_; + } + + public static final int LOCAL_FIELD_NUMBER = 2; + private boolean local_; + /** + * bool local = 2; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != false) { + output.writeBool(1, state_); + } + if (local_ != false) { + output.writeBool(2, local_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, state_); + } + if (local_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, local_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.Active)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.Active other = + (crawlercommons.urlfrontier.Urlfrontier.Active) obj; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, crawlID_); - } - if (local_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, local_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + if (getState() != other.getState()) return false; + if (getLocal() != other.getLocal()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams other = (crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getCrawlID() - .equals(other.getCrawlID())) return false; - if (getLocal() - != other.getLocal()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getState()); + hash = (37 * hash) + LOCAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocal()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + CRAWLID_FIELD_NUMBER; - hash = (53 * hash) + getCrawlID().hashCode(); - hash = (37 * hash) + LOCAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLocal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code urlfrontier.QueueWithinCrawlParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.QueueWithinCrawlParams) - crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_QueueWithinCrawlParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_QueueWithinCrawlParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.class, crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - crawlID_ = ""; - - local_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_QueueWithinCrawlParams_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams build() { - crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - 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_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getCrawlID().isEmpty()) { - crawlID_ = other.crawlID_; - onChanged(); - } - if (other.getLocal() != false) { - setLocal(other.getLocal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - key_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - crawlID_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - local_ = input.readBool(); - - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object crawlID_ = ""; - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 2; - * @return The crawlID. - */ - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 2; - * @return The bytes for crawlID. - */ - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 2; - * @param value The crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlID( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crawlID_ = value; - onChanged(); - return this; - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 2; - * @return This builder for chaining. - */ - public Builder clearCrawlID() { - - crawlID_ = getDefaultInstance().getCrawlID(); - onChanged(); - return this; - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 2; - * @param value The bytes for crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlIDBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crawlID_ = value; - onChanged(); - return this; - } - - private boolean local_ ; - /** - *
-       * only for this instance
-       * 
- * - * bool local = 3; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } - /** - *
-       * only for this instance
-       * 
- * - * bool local = 3; - * @param value The local to set. - * @return This builder for chaining. - */ - public Builder setLocal(boolean value) { - - local_ = value; - onChanged(); - return this; - } - /** - *
-       * only for this instance
-       * 
- * - * bool local = 3; - * @return This builder for chaining. - */ - public Builder clearLocal() { - - local_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.QueueWithinCrawlParams) - } + public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:urlfrontier.QueueWithinCrawlParams) - private static final crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams(); - } + public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueueWithinCrawlParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static crawlercommons.urlfrontier.Urlfrontier.Active parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Active parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - } + public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public interface QueueDelayParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.QueueDelayParams) - com.google.protobuf.MessageOrBuilder { + public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - *
-     ** ID for the queue - an empty value sets the default for all the queues *
-     * 
- * - * string key = 1; - * @return The key. - */ - java.lang.String getKey(); - /** - *
-     ** ID for the queue - an empty value sets the default for all the queues *
-     * 
- * - * string key = 1; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - *
-     *  delay in seconds before a queue can provide new URLs
-     * 
- * - * uint32 delay_requestable = 2; - * @return The delayRequestable. - */ - int getDelayRequestable(); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 3; - * @return The crawlID. - */ - java.lang.String getCrawlID(); - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 3; - * @return The bytes for crawlID. - */ - com.google.protobuf.ByteString - getCrawlIDBytes(); + public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Active prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - *
-     * only for this instance
-     * 
- * - * bool local = 4; - * @return The local. - */ - boolean getLocal(); - } - /** - *
-   ** Parameter message for SetDelay *
-   * 
- * - * Protobuf type {@code urlfrontier.QueueDelayParams} - */ - public static final class QueueDelayParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.QueueDelayParams) - QueueDelayParamsOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueueDelayParams.newBuilder() to construct. - private QueueDelayParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueueDelayParams() { - key_ = ""; - crawlID_ = ""; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new QueueDelayParams(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code urlfrontier.Active} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.Active) + crawlercommons.urlfrontier.Urlfrontier.ActiveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Active_descriptor; + } - @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; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Active_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.Active.class, + crawlercommons.urlfrontier.Urlfrontier.Active.Builder.class); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_QueueDelayParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.class, crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.Builder.class); - } + // Construct using crawlercommons.urlfrontier.Urlfrontier.Active.newBuilder() + private Builder() {} - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - *
-     ** ID for the queue - an empty value sets the default for all the queues *
-     * 
- * - * string key = 1; - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-     ** ID for the queue - an empty value sets the default for all the queues *
-     * 
- * - * string key = 1; - * @return The bytes for key. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + state_ = false; + + local_ = false; + + return this; + } - public static final int DELAY_REQUESTABLE_FIELD_NUMBER = 2; - private int delayRequestable_; - /** - *
-     *  delay in seconds before a queue can provide new URLs
-     * 
- * - * uint32 delay_requestable = 2; - * @return The delayRequestable. - */ - @java.lang.Override - public int getDelayRequestable() { - return delayRequestable_; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Active_descriptor; + } - public static final int CRAWLID_FIELD_NUMBER = 3; - private volatile java.lang.Object crawlID_; - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 3; - * @return The crawlID. - */ - @java.lang.Override - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } - } - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 3; - * @return The bytes for crawlID. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Active getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.Active.getDefaultInstance(); + } - public static final int LOCAL_FIELD_NUMBER = 4; - private boolean local_; - /** - *
-     * only for this instance
-     * 
- * - * bool local = 4; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Active build() { + crawlercommons.urlfrontier.Urlfrontier.Active result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Active buildPartial() { + crawlercommons.urlfrontier.Urlfrontier.Active result = + new crawlercommons.urlfrontier.Urlfrontier.Active(this); + result.state_ = state_; + result.local_ = local_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.Active) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.Active) other); + } else { + super.mergeFrom(other); + return this; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Active other) { + if (other == crawlercommons.urlfrontier.Urlfrontier.Active.getDefaultInstance()) + return this; + if (other.getState() != false) { + setState(other.getState()); + } + if (other.getLocal() != false) { + setLocal(other.getLocal()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readBool(); + + break; + } // case 8 + case 16: + { + local_ = input.readBool(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private boolean state_; + /** + * bool state = 1; + * + * @return The state. + */ + @java.lang.Override + public boolean getState() { + return state_; + } + /** + * bool state = 1; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(boolean value) { + + state_ = value; + onChanged(); + return this; + } + /** + * bool state = 1; + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = false; + onChanged(); + return this; + } + + private boolean local_; + /** + * bool local = 2; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + /** + * bool local = 2; + * + * @param value The local to set. + * @return This builder for chaining. + */ + public Builder setLocal(boolean value) { + + local_ = value; + onChanged(); + return this; + } + /** + * bool local = 2; + * + * @return This builder for chaining. + */ + public Builder clearLocal() { + + local_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.Active) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.Active) + private static final crawlercommons.urlfrontier.Urlfrontier.Active DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.Active(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Active getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Active parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Active getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface BooleanOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.Boolean) + com.google.protobuf.MessageOrBuilder { + + /** + * bool state = 1; + * + * @return The state. + */ + boolean getState(); + } + /** Protobuf type {@code urlfrontier.Boolean} */ + public static final class Boolean extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.Boolean) + BooleanOrBuilder { + private static final long serialVersionUID = 0L; + // Use Boolean.newBuilder() to construct. + private Boolean(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Boolean() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Boolean_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.Boolean.class, + crawlercommons.urlfrontier.Urlfrontier.Boolean.Builder.class); + } + + public static final int STATE_FIELD_NUMBER = 1; + private boolean state_; + /** + * bool state = 1; + * + * @return The state. + */ + @java.lang.Override + public boolean getState() { + return state_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (delayRequestable_ != 0) { - output.writeUInt32(2, delayRequestable_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, crawlID_); - } - if (local_ != false) { - output.writeBool(4, local_); - } - getUnknownFields().writeTo(output); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (delayRequestable_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, delayRequestable_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, crawlID_); - } - if (local_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, local_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != false) { + output.writeBool(1, state_); + } + getUnknownFields().writeTo(output); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams other = (crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (getDelayRequestable() - != other.getDelayRequestable()) return false; - if (!getCrawlID() - .equals(other.getCrawlID())) return false; - if (getLocal() - != other.getLocal()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + DELAY_REQUESTABLE_FIELD_NUMBER; - hash = (53 * hash) + getDelayRequestable(); - hash = (37 * hash) + CRAWLID_FIELD_NUMBER; - hash = (53 * hash) + getCrawlID().hashCode(); - hash = (37 * hash) + LOCAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLocal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + size = 0; + if (state_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, state_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.Boolean)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.Boolean other = + (crawlercommons.urlfrontier.Urlfrontier.Boolean) obj; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + if (getState() != other.getState()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     ** Parameter message for SetDelay *
-     * 
- * - * Protobuf type {@code urlfrontier.QueueDelayParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.QueueDelayParams) - crawlercommons.urlfrontier.Urlfrontier.QueueDelayParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_QueueDelayParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_QueueDelayParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.class, crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - delayRequestable_ = 0; - - crawlID_ = ""; - - local_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_QueueDelayParams_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams build() { - crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - 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_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.getDelayRequestable() != 0) { - setDelayRequestable(other.getDelayRequestable()); - } - if (!other.getCrawlID().isEmpty()) { - crawlID_ = other.crawlID_; - onChanged(); - } - if (other.getLocal() != false) { - setLocal(other.getLocal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - key_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - delayRequestable_ = input.readUInt32(); - - break; - } // case 16 - case 26: { - crawlID_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - local_ = input.readBool(); - - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       ** ID for the queue - an empty value sets the default for all the queues *
-       * 
- * - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       ** ID for the queue - an empty value sets the default for all the queues *
-       * 
- * - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       ** ID for the queue - an empty value sets the default for all the queues *
-       * 
- * - * string key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       ** ID for the queue - an empty value sets the default for all the queues *
-       * 
- * - * string key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       ** ID for the queue - an empty value sets the default for all the queues *
-       * 
- * - * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private int delayRequestable_ ; - /** - *
-       *  delay in seconds before a queue can provide new URLs
-       * 
- * - * uint32 delay_requestable = 2; - * @return The delayRequestable. - */ - @java.lang.Override - public int getDelayRequestable() { - return delayRequestable_; - } - /** - *
-       *  delay in seconds before a queue can provide new URLs
-       * 
- * - * uint32 delay_requestable = 2; - * @param value The delayRequestable to set. - * @return This builder for chaining. - */ - public Builder setDelayRequestable(int value) { - - delayRequestable_ = value; - onChanged(); - return this; - } - /** - *
-       *  delay in seconds before a queue can provide new URLs
-       * 
- * - * uint32 delay_requestable = 2; - * @return This builder for chaining. - */ - public Builder clearDelayRequestable() { - - delayRequestable_ = 0; - onChanged(); - return this; - } - - private java.lang.Object crawlID_ = ""; - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 3; - * @return The crawlID. - */ - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 3; - * @return The bytes for crawlID. - */ - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 3; - * @param value The crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlID( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crawlID_ = value; - onChanged(); - return this; - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 3; - * @return This builder for chaining. - */ - public Builder clearCrawlID() { - - crawlID_ = getDefaultInstance().getCrawlID(); - onChanged(); - return this; - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 3; - * @param value The bytes for crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlIDBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crawlID_ = value; - onChanged(); - return this; - } - - private boolean local_ ; - /** - *
-       * only for this instance
-       * 
- * - * bool local = 4; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } - /** - *
-       * only for this instance
-       * 
- * - * bool local = 4; - * @param value The local to set. - * @return This builder for chaining. - */ - public Builder setLocal(boolean value) { - - local_ = value; - onChanged(); - return this; - } - /** - *
-       * only for this instance
-       * 
- * - * bool local = 4; - * @return This builder for chaining. - */ - public Builder clearLocal() { - - local_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.QueueDelayParams) - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getState()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - // @@protoc_insertion_point(class_scope:urlfrontier.QueueDelayParams) - private static final crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams(); - } + public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueueDelayParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - } + public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public interface BlockQueueParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.BlockQueueParams) - com.google.protobuf.MessageOrBuilder { + public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - *
-     ** ID for the queue *
-     * 
- * - * string key = 1; - * @return The key. - */ - java.lang.String getKey(); - /** - *
-     ** ID for the queue *
-     * 
- * - * string key = 1; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); + public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - *
-     ** Expressed in seconds of UTC time since Unix epoch
-     *1970-01-01T00:00:00Z. The default value of 0 will unblock the queue.
-     * 
- * - * uint64 time = 2; - * @return The time. - */ - long getTime(); + public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - /** - *
-     * crawl ID
-     * 
- * - * string crawlID = 3; - * @return The crawlID. - */ - java.lang.String getCrawlID(); - /** - *
-     * crawl ID
-     * 
- * - * string crawlID = 3; - * @return The bytes for crawlID. - */ - com.google.protobuf.ByteString - getCrawlIDBytes(); + public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - *
-     * only for this instance
-     * 
- * - * bool local = 4; - * @return The local. - */ - boolean getLocal(); - } - /** - *
-   ** Parameter message for BlockQueueUntil *
-   * 
- * - * Protobuf type {@code urlfrontier.BlockQueueParams} - */ - public static final class BlockQueueParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.BlockQueueParams) - BlockQueueParamsOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlockQueueParams.newBuilder() to construct. - private BlockQueueParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlockQueueParams() { - key_ = ""; - crawlID_ = ""; - } + public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockQueueParams(); - } + public static crawlercommons.urlfrontier.Urlfrontier.Boolean parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @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; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_BlockQueueParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.class, crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.Builder.class); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - *
-     ** ID for the queue *
-     * 
- * - * string key = 1; - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-     ** ID for the queue *
-     * 
- * - * string key = 1; - * @return The bytes for key. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Boolean prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int TIME_FIELD_NUMBER = 2; - private long time_; - /** - *
-     ** Expressed in seconds of UTC time since Unix epoch
-     *1970-01-01T00:00:00Z. The default value of 0 will unblock the queue.
-     * 
- * - * uint64 time = 2; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int CRAWLID_FIELD_NUMBER = 3; - private volatile java.lang.Object crawlID_; - /** - *
-     * crawl ID
-     * 
- * - * string crawlID = 3; - * @return The crawlID. - */ - @java.lang.Override - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } - } - /** - *
-     * crawl ID
-     * 
- * - * string crawlID = 3; - * @return The bytes for crawlID. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code urlfrontier.Boolean} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.Boolean) + crawlercommons.urlfrontier.Urlfrontier.BooleanOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Boolean_descriptor; + } - public static final int LOCAL_FIELD_NUMBER = 4; - private boolean local_; - /** - *
-     * only for this instance
-     * 
- * - * bool local = 4; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Boolean_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.Boolean.class, + crawlercommons.urlfrontier.Urlfrontier.Boolean.Builder.class); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Construct using crawlercommons.urlfrontier.Urlfrontier.Boolean.newBuilder() + private Builder() {} - memoizedIsInitialized = 1; - return true; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (time_ != 0L) { - output.writeUInt64(2, time_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, crawlID_); - } - if (local_ != false) { - output.writeBool(4, local_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public Builder clear() { + super.clear(); + state_ = false; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (time_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, time_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, crawlID_); - } - if (local_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, local_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams other = (crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (getTime() - != other.getTime()) return false; - if (!getCrawlID() - .equals(other.getCrawlID())) return false; - if (getLocal() - != other.getLocal()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Boolean_descriptor; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTime()); - hash = (37 * hash) + CRAWLID_FIELD_NUMBER; - hash = (53 * hash) + getCrawlID().hashCode(); - hash = (37 * hash) + LOCAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLocal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Boolean getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.Boolean.getDefaultInstance(); + } - public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Boolean build() { + crawlercommons.urlfrontier.Urlfrontier.Boolean result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Boolean buildPartial() { + crawlercommons.urlfrontier.Urlfrontier.Boolean result = + new crawlercommons.urlfrontier.Urlfrontier.Boolean(this); + result.state_ = state_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.Boolean) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.Boolean) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Boolean other) { + if (other == crawlercommons.urlfrontier.Urlfrontier.Boolean.getDefaultInstance()) + return this; + if (other.getState() != false) { + setState(other.getState()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readBool(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private boolean state_; + /** + * bool state = 1; + * + * @return The state. + */ + @java.lang.Override + public boolean getState() { + return state_; + } + /** + * bool state = 1; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(boolean value) { + + state_ = value; + onChanged(); + return this; + } + /** + * bool state = 1; + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.Boolean) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.Boolean) + private static final crawlercommons.urlfrontier.Urlfrontier.Boolean DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.Boolean(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Boolean getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Boolean parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Boolean getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LongOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.Long) + com.google.protobuf.MessageOrBuilder { + + /** + * uint64 value = 1; + * + * @return The value. + */ + long getValue(); + } + /** Protobuf type {@code urlfrontier.Long} */ + public static final class Long extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.Long) + LongOrBuilder { + private static final long serialVersionUID = 0L; + // Use Long.newBuilder() to construct. + private Long(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Long() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     ** Parameter message for BlockQueueUntil *
-     * 
- * - * Protobuf type {@code urlfrontier.BlockQueueParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.BlockQueueParams) - crawlercommons.urlfrontier.Urlfrontier.BlockQueueParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_BlockQueueParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_BlockQueueParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.class, crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - time_ = 0L; - - crawlID_ = ""; - - local_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_BlockQueueParams_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams build() { - crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - 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_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.getTime() != 0L) { - setTime(other.getTime()); - } - if (!other.getCrawlID().isEmpty()) { - crawlID_ = other.crawlID_; - onChanged(); - } - if (other.getLocal() != false) { - setLocal(other.getLocal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - key_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - time_ = input.readUInt64(); - - break; - } // case 16 - case 26: { - crawlID_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - local_ = input.readBool(); - - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private long time_ ; - /** - *
-       ** Expressed in seconds of UTC time since Unix epoch
-       *1970-01-01T00:00:00Z. The default value of 0 will unblock the queue.
-       * 
- * - * uint64 time = 2; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - /** - *
-       ** Expressed in seconds of UTC time since Unix epoch
-       *1970-01-01T00:00:00Z. The default value of 0 will unblock the queue.
-       * 
- * - * uint64 time = 2; - * @param value The time to set. - * @return This builder for chaining. - */ - public Builder setTime(long value) { - - time_ = value; - onChanged(); - return this; - } - /** - *
-       ** Expressed in seconds of UTC time since Unix epoch
-       *1970-01-01T00:00:00Z. The default value of 0 will unblock the queue.
-       * 
- * - * uint64 time = 2; - * @return This builder for chaining. - */ - public Builder clearTime() { - - time_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object crawlID_ = ""; - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 3; - * @return The crawlID. - */ - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 3; - * @return The bytes for crawlID. - */ - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 3; - * @param value The crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlID( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crawlID_ = value; - onChanged(); - return this; - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 3; - * @return This builder for chaining. - */ - public Builder clearCrawlID() { - - crawlID_ = getDefaultInstance().getCrawlID(); - onChanged(); - return this; - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 3; - * @param value The bytes for crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlIDBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crawlID_ = value; - onChanged(); - return this; - } - - private boolean local_ ; - /** - *
-       * only for this instance
-       * 
- * - * bool local = 4; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } - /** - *
-       * only for this instance
-       * 
- * - * bool local = 4; - * @param value The local to set. - * @return This builder for chaining. - */ - public Builder setLocal(boolean value) { - - local_ = value; - onChanged(); - return this; - } - /** - *
-       * only for this instance
-       * 
- * - * bool local = 4; - * @return This builder for chaining. - */ - public Builder clearLocal() { - - local_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.BlockQueueParams) - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Long_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.Long.class, + crawlercommons.urlfrontier.Urlfrontier.Long.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private long value_; + /** + * uint64 value = 1; + * + * @return The value. + */ + @java.lang.Override + public long getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - // @@protoc_insertion_point(class_scope:urlfrontier.BlockQueueParams) - private static final crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams(); - } + memoizedIsInitialized = 1; + return true; + } - public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (value_ != 0L) { + output.writeUInt64(1, value_); + } + getUnknownFields().writeTo(output); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlockQueueParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + size = 0; + if (value_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, value_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.Long)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.Long other = + (crawlercommons.urlfrontier.Urlfrontier.Long) obj; - } + if (getValue() != other.getValue()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public interface GetParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.GetParams) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValue()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - *
-     * maximum number of URLs per queue, the default value of 0 means no limit
-     * 
- * - * uint32 max_urls_per_queue = 1; - * @return The maxUrlsPerQueue. - */ - int getMaxUrlsPerQueue(); + public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - *
-     * maximum number of queues to get URLs from, the default value of 0 means no limit
-     * 
- * - * uint32 max_queues = 2; - * @return The maxQueues. - */ - int getMaxQueues(); + public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - *
-     * queue id if restricting to a specific queue
-     * 
- * - * string key = 3; - * @return The key. - */ - java.lang.String getKey(); - /** - *
-     * queue id if restricting to a specific queue
-     * 
- * - * string key = 3; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); + public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - *
-     *  delay in seconds before a URL can be unlocked and sent again for fetching 
-     * 
- * - * uint32 delay_requestable = 4; - * @return The delayRequestable. - */ - int getDelayRequestable(); + public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * .urlfrontier.AnyCrawlID anyCrawlID = 5; - * @return Whether the anyCrawlID field is set. - */ - boolean hasAnyCrawlID(); - /** - * .urlfrontier.AnyCrawlID anyCrawlID = 5; - * @return The anyCrawlID. - */ - crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID getAnyCrawlID(); - /** - * .urlfrontier.AnyCrawlID anyCrawlID = 5; - */ - crawlercommons.urlfrontier.Urlfrontier.AnyCrawlIDOrBuilder getAnyCrawlIDOrBuilder(); + public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * string crawlID = 6; - * @return Whether the crawlID field is set. - */ - boolean hasCrawlID(); - /** - * string crawlID = 6; - * @return The crawlID. - */ - java.lang.String getCrawlID(); - /** - * string crawlID = 6; - * @return The bytes for crawlID. - */ - com.google.protobuf.ByteString - getCrawlIDBytes(); - - public crawlercommons.urlfrontier.Urlfrontier.GetParams.ItemCase getItemCase(); - } - /** - *
-   ** Parameter message for GetURLs *
-   * 
- * - * Protobuf type {@code urlfrontier.GetParams} - */ - public static final class GetParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.GetParams) - GetParamsOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetParams.newBuilder() to construct. - private GetParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetParams() { - key_ = ""; - } + public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetParams(); - } + public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @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; - } + public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Long parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_GetParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.GetParams.class, crawlercommons.urlfrontier.Urlfrontier.GetParams.Builder.class); - } + public static crawlercommons.urlfrontier.Urlfrontier.Long parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - private int itemCase_ = 0; - private java.lang.Object item_; - public enum ItemCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - ANYCRAWLID(5), - CRAWLID(6), - ITEM_NOT_SET(0); - private final int value; - private ItemCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ItemCase valueOf(int value) { - return forNumber(value); - } - - public static ItemCase forNumber(int value) { - switch (value) { - case 5: return ANYCRAWLID; - case 6: return CRAWLID; - case 0: return ITEM_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ItemCase - getItemCase() { - return ItemCase.forNumber( - itemCase_); - } + public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int MAX_URLS_PER_QUEUE_FIELD_NUMBER = 1; - private int maxUrlsPerQueue_; - /** - *
-     * maximum number of URLs per queue, the default value of 0 means no limit
-     * 
- * - * uint32 max_urls_per_queue = 1; - * @return The maxUrlsPerQueue. - */ - @java.lang.Override - public int getMaxUrlsPerQueue() { - return maxUrlsPerQueue_; - } + public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int MAX_QUEUES_FIELD_NUMBER = 2; - private int maxQueues_; - /** - *
-     * maximum number of queues to get URLs from, the default value of 0 means no limit
-     * 
- * - * uint32 max_queues = 2; - * @return The maxQueues. - */ - @java.lang.Override - public int getMaxQueues() { - return maxQueues_; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int KEY_FIELD_NUMBER = 3; - private volatile java.lang.Object key_; - /** - *
-     * queue id if restricting to a specific queue
-     * 
- * - * string key = 3; - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-     * queue id if restricting to a specific queue
-     * 
- * - * string key = 3; - * @return The bytes for key. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int DELAY_REQUESTABLE_FIELD_NUMBER = 4; - private int delayRequestable_; - /** - *
-     *  delay in seconds before a URL can be unlocked and sent again for fetching 
-     * 
- * - * uint32 delay_requestable = 4; - * @return The delayRequestable. - */ - @java.lang.Override - public int getDelayRequestable() { - return delayRequestable_; - } + public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Long prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int ANYCRAWLID_FIELD_NUMBER = 5; - /** - * .urlfrontier.AnyCrawlID anyCrawlID = 5; - * @return Whether the anyCrawlID field is set. - */ - @java.lang.Override - public boolean hasAnyCrawlID() { - return itemCase_ == 5; - } - /** - * .urlfrontier.AnyCrawlID anyCrawlID = 5; - * @return The anyCrawlID. - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID getAnyCrawlID() { - if (itemCase_ == 5) { - return (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) item_; - } - return crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance(); - } - /** - * .urlfrontier.AnyCrawlID anyCrawlID = 5; - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlIDOrBuilder getAnyCrawlIDOrBuilder() { - if (itemCase_ == 5) { - return (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) item_; - } - return crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance(); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int CRAWLID_FIELD_NUMBER = 6; - /** - * string crawlID = 6; - * @return Whether the crawlID field is set. - */ - public boolean hasCrawlID() { - return itemCase_ == 6; - } - /** - * string crawlID = 6; - * @return The crawlID. - */ - public java.lang.String getCrawlID() { - java.lang.Object ref = ""; - if (itemCase_ == 6) { - ref = item_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (itemCase_ == 6) { - item_ = s; - } - return s; - } - } - /** - * string crawlID = 6; - * @return The bytes for crawlID. - */ - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = ""; - if (itemCase_ == 6) { - ref = item_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (itemCase_ == 6) { - item_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code urlfrontier.Long} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.Long) + crawlercommons.urlfrontier.Urlfrontier.LongOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Long_descriptor; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Long_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.Long.class, + crawlercommons.urlfrontier.Urlfrontier.Long.Builder.class); + } - memoizedIsInitialized = 1; - return true; - } + // Construct using crawlercommons.urlfrontier.Urlfrontier.Long.newBuilder() + private Builder() {} - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (maxUrlsPerQueue_ != 0) { - output.writeUInt32(1, maxUrlsPerQueue_); - } - if (maxQueues_ != 0) { - output.writeUInt32(2, maxQueues_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, key_); - } - if (delayRequestable_ != 0) { - output.writeUInt32(4, delayRequestable_); - } - if (itemCase_ == 5) { - output.writeMessage(5, (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) item_); - } - if (itemCase_ == 6) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, item_); - } - getUnknownFields().writeTo(output); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxUrlsPerQueue_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, maxUrlsPerQueue_); - } - if (maxQueues_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, maxQueues_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, key_); - } - if (delayRequestable_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, delayRequestable_); - } - if (itemCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) item_); - } - if (itemCase_ == 6) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, item_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.GetParams)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.GetParams other = (crawlercommons.urlfrontier.Urlfrontier.GetParams) obj; - - if (getMaxUrlsPerQueue() - != other.getMaxUrlsPerQueue()) return false; - if (getMaxQueues() - != other.getMaxQueues()) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (getDelayRequestable() - != other.getDelayRequestable()) return false; - if (!getItemCase().equals(other.getItemCase())) return false; - switch (itemCase_) { - case 5: - if (!getAnyCrawlID() - .equals(other.getAnyCrawlID())) return false; - break; - case 6: - if (!getCrawlID() - .equals(other.getCrawlID())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + return this; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAX_URLS_PER_QUEUE_FIELD_NUMBER; - hash = (53 * hash) + getMaxUrlsPerQueue(); - hash = (37 * hash) + MAX_QUEUES_FIELD_NUMBER; - hash = (53 * hash) + getMaxQueues(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + DELAY_REQUESTABLE_FIELD_NUMBER; - hash = (53 * hash) + getDelayRequestable(); - switch (itemCase_) { - case 5: - hash = (37 * hash) + ANYCRAWLID_FIELD_NUMBER; - hash = (53 * hash) + getAnyCrawlID().hashCode(); - break; - case 6: - hash = (37 * hash) + CRAWLID_FIELD_NUMBER; - hash = (53 * hash) + getCrawlID().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_Long_descriptor; + } - public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Long getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.Long.getDefaultInstance(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.GetParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Long build() { + crawlercommons.urlfrontier.Urlfrontier.Long result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Long buildPartial() { + crawlercommons.urlfrontier.Urlfrontier.Long result = + new crawlercommons.urlfrontier.Urlfrontier.Long(this); + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.Long) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.Long) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.Long other) { + if (other == crawlercommons.urlfrontier.Urlfrontier.Long.getDefaultInstance()) + return this; + if (other.getValue() != 0L) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + value_ = input.readUInt64(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private long value_; + /** + * uint64 value = 1; + * + * @return The value. + */ + @java.lang.Override + public long getValue() { + return value_; + } + /** + * uint64 value = 1; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(long value) { + + value_ = value; + onChanged(); + return this; + } + /** + * uint64 value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.Long) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.Long) + private static final crawlercommons.urlfrontier.Urlfrontier.Long DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.Long(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.Long getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Long parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.Long getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface QueueListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.QueueList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * repeated string values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+         * total number of queues
+         * 
+ * + * uint64 total = 2; + * + * @return The total. + */ + long getTotal(); + + /** + * + * + *
+         * position of the first result in the list
+         * 
+ * + * uint32 start = 3; + * + * @return The start. + */ + int getStart(); + + /** + * + * + *
+         * number of values returned
+         * 
+ * + * uint32 size = 4; + * + * @return The size. + */ + int getSize(); + + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 5; + * + * @return The crawlID. + */ + java.lang.String getCrawlID(); + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 5; + * + * @return The bytes for crawlID. + */ + com.google.protobuf.ByteString getCrawlIDBytes(); } /** + * + * *
-     ** Parameter message for GetURLs *
+     * * Returned by ListQueues *
      * 
* - * Protobuf type {@code urlfrontier.GetParams} + * Protobuf type {@code urlfrontier.QueueList} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.GetParams) - crawlercommons.urlfrontier.Urlfrontier.GetParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_GetParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_GetParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.GetParams.class, crawlercommons.urlfrontier.Urlfrontier.GetParams.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.GetParams.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - maxUrlsPerQueue_ = 0; - - maxQueues_ = 0; - - key_ = ""; - - delayRequestable_ = 0; - - if (anyCrawlIDBuilder_ != null) { - anyCrawlIDBuilder_.clear(); - } - itemCase_ = 0; - item_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_GetParams_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.GetParams getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.GetParams.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.GetParams build() { - crawlercommons.urlfrontier.Urlfrontier.GetParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - 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 (itemCase_ == 6) { - result.item_ = item_; - } - result.itemCase_ = itemCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.GetParams) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.GetParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.GetParams other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.GetParams.getDefaultInstance()) return this; - if (other.getMaxUrlsPerQueue() != 0) { - setMaxUrlsPerQueue(other.getMaxUrlsPerQueue()); - } - if (other.getMaxQueues() != 0) { - setMaxQueues(other.getMaxQueues()); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.getDelayRequestable() != 0) { - setDelayRequestable(other.getDelayRequestable()); - } - switch (other.getItemCase()) { - case ANYCRAWLID: { - mergeAnyCrawlID(other.getAnyCrawlID()); - break; - } - case CRAWLID: { - itemCase_ = 6; - item_ = other.item_; - onChanged(); - break; - } - case ITEM_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - maxUrlsPerQueue_ = input.readUInt32(); - - break; - } // case 8 - case 16: { - maxQueues_ = input.readUInt32(); - - break; - } // case 16 - case 26: { - key_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - delayRequestable_ = input.readUInt32(); - - break; - } // case 32 - case 42: { - input.readMessage( - getAnyCrawlIDFieldBuilder().getBuilder(), - extensionRegistry); - itemCase_ = 5; - break; - } // case 42 - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - itemCase_ = 6; - item_ = s; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int itemCase_ = 0; - private java.lang.Object item_; - public ItemCase - getItemCase() { - return ItemCase.forNumber( - itemCase_); - } - - public Builder clearItem() { - itemCase_ = 0; - item_ = null; - onChanged(); - return this; - } - - - private int maxUrlsPerQueue_ ; - /** - *
-       * maximum number of URLs per queue, the default value of 0 means no limit
-       * 
- * - * uint32 max_urls_per_queue = 1; - * @return The maxUrlsPerQueue. - */ - @java.lang.Override - public int getMaxUrlsPerQueue() { - return maxUrlsPerQueue_; - } - /** - *
-       * maximum number of URLs per queue, the default value of 0 means no limit
-       * 
- * - * uint32 max_urls_per_queue = 1; - * @param value The maxUrlsPerQueue to set. - * @return This builder for chaining. - */ - public Builder setMaxUrlsPerQueue(int value) { - - maxUrlsPerQueue_ = value; - onChanged(); - return this; - } - /** - *
-       * maximum number of URLs per queue, the default value of 0 means no limit
-       * 
- * - * uint32 max_urls_per_queue = 1; - * @return This builder for chaining. - */ - public Builder clearMaxUrlsPerQueue() { - - maxUrlsPerQueue_ = 0; - onChanged(); - return this; - } - - private int maxQueues_ ; - /** - *
-       * maximum number of queues to get URLs from, the default value of 0 means no limit
-       * 
- * - * uint32 max_queues = 2; - * @return The maxQueues. - */ - @java.lang.Override - public int getMaxQueues() { - return maxQueues_; - } - /** - *
-       * maximum number of queues to get URLs from, the default value of 0 means no limit
-       * 
- * - * uint32 max_queues = 2; - * @param value The maxQueues to set. - * @return This builder for chaining. - */ - public Builder setMaxQueues(int value) { - - maxQueues_ = value; - onChanged(); - return this; - } - /** - *
-       * maximum number of queues to get URLs from, the default value of 0 means no limit
-       * 
- * - * uint32 max_queues = 2; - * @return This builder for chaining. - */ - public Builder clearMaxQueues() { - - maxQueues_ = 0; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       * queue id if restricting to a specific queue
-       * 
- * - * string key = 3; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * queue id if restricting to a specific queue
-       * 
- * - * string key = 3; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * queue id if restricting to a specific queue
-       * 
- * - * string key = 3; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       * queue id if restricting to a specific queue
-       * 
- * - * string key = 3; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       * queue id if restricting to a specific queue
-       * 
- * - * string key = 3; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private int delayRequestable_ ; - /** - *
-       *  delay in seconds before a URL can be unlocked and sent again for fetching 
-       * 
- * - * uint32 delay_requestable = 4; - * @return The delayRequestable. - */ - @java.lang.Override - public int getDelayRequestable() { - return delayRequestable_; - } - /** - *
-       *  delay in seconds before a URL can be unlocked and sent again for fetching 
-       * 
- * - * uint32 delay_requestable = 4; - * @param value The delayRequestable to set. - * @return This builder for chaining. - */ - public Builder setDelayRequestable(int value) { - - delayRequestable_ = value; - onChanged(); - return this; - } - /** - *
-       *  delay in seconds before a URL can be unlocked and sent again for fetching 
-       * 
- * - * uint32 delay_requestable = 4; - * @return This builder for chaining. - */ - public Builder clearDelayRequestable() { - - delayRequestable_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID, crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.Builder, crawlercommons.urlfrontier.Urlfrontier.AnyCrawlIDOrBuilder> anyCrawlIDBuilder_; - /** - * .urlfrontier.AnyCrawlID anyCrawlID = 5; - * @return Whether the anyCrawlID field is set. - */ - @java.lang.Override - public boolean hasAnyCrawlID() { - return itemCase_ == 5; - } - /** - * .urlfrontier.AnyCrawlID anyCrawlID = 5; - * @return The anyCrawlID. - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID getAnyCrawlID() { - if (anyCrawlIDBuilder_ == null) { - if (itemCase_ == 5) { - return (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) item_; - } - return crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance(); - } else { - if (itemCase_ == 5) { - return anyCrawlIDBuilder_.getMessage(); - } - return crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance(); - } - } - /** - * .urlfrontier.AnyCrawlID anyCrawlID = 5; - */ - public Builder setAnyCrawlID(crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID value) { - if (anyCrawlIDBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - item_ = value; - onChanged(); - } else { - anyCrawlIDBuilder_.setMessage(value); - } - itemCase_ = 5; - return this; - } - /** - * .urlfrontier.AnyCrawlID anyCrawlID = 5; - */ - public Builder setAnyCrawlID( - crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.Builder builderForValue) { - if (anyCrawlIDBuilder_ == null) { - item_ = builderForValue.build(); - onChanged(); - } else { - anyCrawlIDBuilder_.setMessage(builderForValue.build()); - } - itemCase_ = 5; - return this; - } - /** - * .urlfrontier.AnyCrawlID anyCrawlID = 5; - */ - public Builder mergeAnyCrawlID(crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID value) { - if (anyCrawlIDBuilder_ == null) { - if (itemCase_ == 5 && - item_ != crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance()) { - item_ = crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.newBuilder((crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) item_) - .mergeFrom(value).buildPartial(); - } else { - item_ = value; - } - onChanged(); - } else { - if (itemCase_ == 5) { - anyCrawlIDBuilder_.mergeFrom(value); - } else { - anyCrawlIDBuilder_.setMessage(value); - } - } - itemCase_ = 5; - return this; - } - /** - * .urlfrontier.AnyCrawlID anyCrawlID = 5; - */ - public Builder clearAnyCrawlID() { - if (anyCrawlIDBuilder_ == null) { - if (itemCase_ == 5) { - itemCase_ = 0; - item_ = null; - onChanged(); - } - } else { - if (itemCase_ == 5) { - itemCase_ = 0; - item_ = null; - } - anyCrawlIDBuilder_.clear(); - } - return this; - } - /** - * .urlfrontier.AnyCrawlID anyCrawlID = 5; - */ - public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.Builder getAnyCrawlIDBuilder() { - return getAnyCrawlIDFieldBuilder().getBuilder(); - } - /** - * .urlfrontier.AnyCrawlID anyCrawlID = 5; - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlIDOrBuilder getAnyCrawlIDOrBuilder() { - if ((itemCase_ == 5) && (anyCrawlIDBuilder_ != null)) { - return anyCrawlIDBuilder_.getMessageOrBuilder(); - } else { - if (itemCase_ == 5) { - return (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) item_; - } - return crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance(); - } - } - /** - * .urlfrontier.AnyCrawlID anyCrawlID = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID, crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.Builder, crawlercommons.urlfrontier.Urlfrontier.AnyCrawlIDOrBuilder> - getAnyCrawlIDFieldBuilder() { - if (anyCrawlIDBuilder_ == null) { - if (!(itemCase_ == 5)) { - item_ = crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance(); - } - anyCrawlIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID, crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.Builder, crawlercommons.urlfrontier.Urlfrontier.AnyCrawlIDOrBuilder>( - (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) item_, - getParentForChildren(), - isClean()); - item_ = null; - } - itemCase_ = 5; - onChanged();; - return anyCrawlIDBuilder_; - } - - /** - * string crawlID = 6; - * @return Whether the crawlID field is set. - */ - @java.lang.Override - public boolean hasCrawlID() { - return itemCase_ == 6; - } - /** - * string crawlID = 6; - * @return The crawlID. - */ - @java.lang.Override - public java.lang.String getCrawlID() { - java.lang.Object ref = ""; - if (itemCase_ == 6) { - ref = item_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (itemCase_ == 6) { - item_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string crawlID = 6; - * @return The bytes for crawlID. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = ""; - if (itemCase_ == 6) { - ref = item_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (itemCase_ == 6) { - item_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string crawlID = 6; - * @param value The crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlID( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - itemCase_ = 6; - item_ = value; - onChanged(); - return this; - } - /** - * string crawlID = 6; - * @return This builder for chaining. - */ - public Builder clearCrawlID() { - if (itemCase_ == 6) { - itemCase_ = 0; - item_ = null; - onChanged(); - } - return this; - } - /** - * string crawlID = 6; - * @param value The bytes for crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlIDBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - itemCase_ = 6; - item_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.GetParams) - } + public static final class QueueList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.QueueList) + QueueListOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueueList.newBuilder() to construct. + private QueueList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueueList() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + crawlID_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_QueueList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.QueueList.class, + crawlercommons.urlfrontier.Urlfrontier.QueueList.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList values_; + /** + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int TOTAL_FIELD_NUMBER = 2; + private long total_; + /** + * + * + *
+         * total number of queues
+         * 
+ * + * uint64 total = 2; + * + * @return The total. + */ + @java.lang.Override + public long getTotal() { + return total_; + } + + public static final int START_FIELD_NUMBER = 3; + private int start_; + /** + * + * + *
+         * position of the first result in the list
+         * 
+ * + * uint32 start = 3; + * + * @return The start. + */ + @java.lang.Override + public int getStart() { + return start_; + } + + public static final int SIZE_FIELD_NUMBER = 4; + private int size_; + /** + * + * + *
+         * number of values returned
+         * 
+ * + * uint32 size = 4; + * + * @return The size. + */ + @java.lang.Override + public int getSize() { + return size_; + } + + public static final int CRAWLID_FIELD_NUMBER = 5; + private volatile java.lang.Object crawlID_; + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 5; + * + * @return The crawlID. + */ + @java.lang.Override + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } + } + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 5; + * + * @return The bytes for crawlID. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + if (total_ != 0L) { + output.writeUInt64(2, total_); + } + if (start_ != 0) { + output.writeUInt32(3, start_); + } + if (size_ != 0) { + output.writeUInt32(4, size_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, crawlID_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (total_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, total_); + } + if (start_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, start_); + } + if (size_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, size_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, crawlID_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.QueueList)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.QueueList other = + (crawlercommons.urlfrontier.Urlfrontier.QueueList) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (getTotal() != other.getTotal()) return false; + if (getStart() != other.getStart()) return false; + if (getSize() != other.getSize()) return false; + if (!getCrawlID().equals(other.getCrawlID())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotal()); + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + getStart(); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSize(); + hash = (37 * hash) + CRAWLID_FIELD_NUMBER; + hash = (53 * hash) + getCrawlID().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - // @@protoc_insertion_point(class_scope:urlfrontier.GetParams) - private static final crawlercommons.urlfrontier.Urlfrontier.GetParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.GetParams(); - } + public static Builder newBuilder( + crawlercommons.urlfrontier.Urlfrontier.QueueList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static crawlercommons.urlfrontier.Urlfrontier.GetParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * * Returned by ListQueues *
+         * 
+ * + * Protobuf type {@code urlfrontier.QueueList} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.QueueList) + crawlercommons.urlfrontier.Urlfrontier.QueueListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_QueueList_descriptor; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_QueueList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.QueueList.class, + crawlercommons.urlfrontier.Urlfrontier.QueueList.Builder.class); + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.GetParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // Construct using crawlercommons.urlfrontier.Urlfrontier.QueueList.newBuilder() + private Builder() {} - } - - public interface AnyCrawlIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.AnyCrawlID) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code urlfrontier.AnyCrawlID} - */ - public static final class AnyCrawlID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.AnyCrawlID) - AnyCrawlIDOrBuilder { - private static final long serialVersionUID = 0L; - // Use AnyCrawlID.newBuilder() to construct. - private AnyCrawlID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AnyCrawlID() { - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + total_ = 0L; + + start_ = 0; + + size_ = 0; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AnyCrawlID(); - } + crawlID_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_QueueList_descriptor; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.QueueList getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.QueueList.getDefaultInstance(); + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.QueueList build() { + crawlercommons.urlfrontier.Urlfrontier.QueueList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.QueueList) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.QueueList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.QueueList other) { + if (other == crawlercommons.urlfrontier.Urlfrontier.QueueList.getDefaultInstance()) + return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (other.getTotal() != 0L) { + setTotal(other.getTotal()); + } + if (other.getStart() != 0) { + setStart(other.getStart()); + } + if (other.getSize() != 0) { + setSize(other.getSize()); + } + if (!other.getCrawlID().isEmpty()) { + crawlID_ = other.crawlID_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 16: + { + total_ = input.readUInt64(); + + break; + } // case 16 + case 24: + { + start_ = input.readUInt32(); + + break; + } // case 24 + case 32: + { + size_ = input.readUInt32(); + + break; + } // case 32 + case 42: + { + crawlID_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * repeated string values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * repeated string values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + return this; + } + /** + * repeated string values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string values = 1; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + + private long total_; + /** + * + * + *
+             * total number of queues
+             * 
+ * + * uint64 total = 2; + * + * @return The total. + */ + @java.lang.Override + public long getTotal() { + return total_; + } + /** + * + * + *
+             * total number of queues
+             * 
+ * + * uint64 total = 2; + * + * @param value The total to set. + * @return This builder for chaining. + */ + public Builder setTotal(long value) { + + total_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * total number of queues
+             * 
+ * + * uint64 total = 2; + * + * @return This builder for chaining. + */ + public Builder clearTotal() { + + total_ = 0L; + onChanged(); + return this; + } + + private int start_; + /** + * + * + *
+             * position of the first result in the list
+             * 
+ * + * uint32 start = 3; + * + * @return The start. + */ + @java.lang.Override + public int getStart() { + return start_; + } + /** + * + * + *
+             * position of the first result in the list
+             * 
+ * + * uint32 start = 3; + * + * @param value The start to set. + * @return This builder for chaining. + */ + public Builder setStart(int value) { + + start_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * position of the first result in the list
+             * 
+ * + * uint32 start = 3; + * + * @return This builder for chaining. + */ + public Builder clearStart() { + + start_ = 0; + onChanged(); + return this; + } + + private int size_; + /** + * + * + *
+             * number of values returned
+             * 
+ * + * uint32 size = 4; + * + * @return The size. + */ + @java.lang.Override + public int getSize() { + return size_; + } + /** + * + * + *
+             * number of values returned
+             * 
+ * + * uint32 size = 4; + * + * @param value The size to set. + * @return This builder for chaining. + */ + public Builder setSize(int value) { + + size_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * number of values returned
+             * 
+ * + * uint32 size = 4; + * + * @return This builder for chaining. + */ + public Builder clearSize() { + + size_ = 0; + onChanged(); + return this; + } + + private java.lang.Object crawlID_ = ""; + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 5; + * + * @return The crawlID. + */ + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 5; + * + * @return The bytes for crawlID. + */ + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 5; + * + * @param value The crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlID(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @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; - } + crawlID_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 5; + * + * @return This builder for chaining. + */ + public Builder clearCrawlID() { + + crawlID_ = getDefaultInstance().getCrawlID(); + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 5; + * + * @param value The bytes for crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + crawlID_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.QueueList) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.QueueList) + private static final crawlercommons.urlfrontier.Urlfrontier.QueueList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.QueueList(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueueList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.QueueList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface StringListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.StringList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * repeated string values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + } + /** Protobuf type {@code urlfrontier.StringList} */ + public static final class StringList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.StringList) + StringListOrBuilder { + private static final long serialVersionUID = 0L; + // Use StringList.newBuilder() to construct. + private StringList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StringList() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_StringList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.StringList.class, + crawlercommons.urlfrontier.Urlfrontier.StringList.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList values_; + /** + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_AnyCrawlID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.class, crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.Builder.class); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.StringList)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.StringList other = + (crawlercommons.urlfrontier.Urlfrontier.StringList) obj; - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + if (!getValuesList().equals(other.getValuesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } + public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID other = (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code urlfrontier.AnyCrawlID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.AnyCrawlID) - crawlercommons.urlfrontier.Urlfrontier.AnyCrawlIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_AnyCrawlID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_AnyCrawlID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.class, crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_AnyCrawlID_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID build() { - crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID buildPartial() { - crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID result = new crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.AnyCrawlID) - } + public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:urlfrontier.AnyCrawlID) - private static final crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID(); - } + public static crawlercommons.urlfrontier.Urlfrontier.StringList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.StringList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnyCrawlID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder( + crawlercommons.urlfrontier.Urlfrontier.StringList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public interface URLItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.URLItem) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code urlfrontier.StringList} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.StringList) + crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_StringList_descriptor; + } - /** - * .urlfrontier.DiscoveredURLItem discovered = 1; - * @return Whether the discovered field is set. - */ - boolean hasDiscovered(); - /** - * .urlfrontier.DiscoveredURLItem discovered = 1; - * @return The discovered. - */ - crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem getDiscovered(); - /** - * .urlfrontier.DiscoveredURLItem discovered = 1; - */ - crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItemOrBuilder getDiscoveredOrBuilder(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_StringList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.StringList.class, + crawlercommons.urlfrontier.Urlfrontier.StringList.Builder.class); + } - /** - * .urlfrontier.KnownURLItem known = 2; - * @return Whether the known field is set. - */ - boolean hasKnown(); - /** - * .urlfrontier.KnownURLItem known = 2; - * @return The known. - */ - crawlercommons.urlfrontier.Urlfrontier.KnownURLItem getKnown(); - /** - * .urlfrontier.KnownURLItem known = 2; - */ - crawlercommons.urlfrontier.Urlfrontier.KnownURLItemOrBuilder getKnownOrBuilder(); + // Construct using crawlercommons.urlfrontier.Urlfrontier.StringList.newBuilder() + private Builder() {} - /** - *
-     ** Identifier specified by the client, if missing, the URL is returned *
-     * 
- * - * string ID = 3; - * @return The iD. - */ - java.lang.String getID(); - /** - *
-     ** Identifier specified by the client, if missing, the URL is returned *
-     * 
- * - * string ID = 3; - * @return The bytes for iD. - */ - com.google.protobuf.ByteString - getIDBytes(); - - public crawlercommons.urlfrontier.Urlfrontier.URLItem.ItemCase getItemCase(); - } - /** - *
-   ** Wrapper for a KnownURLItem or DiscoveredURLItem *
-   * 
- * - * Protobuf type {@code urlfrontier.URLItem} - */ - public static final class URLItem extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.URLItem) - URLItemOrBuilder { - private static final long serialVersionUID = 0L; - // Use URLItem.newBuilder() to construct. - private URLItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private URLItem() { - iD_ = ""; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new URLItem(); - } + @java.lang.Override + public Builder clear() { + super.clear(); + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_StringList_descriptor; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.StringList getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.StringList.getDefaultInstance(); + } - @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; - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.StringList build() { + crawlercommons.urlfrontier.Urlfrontier.StringList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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); + } + result.values_ = values_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.StringList) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.StringList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.StringList other) { + if (other == crawlercommons.urlfrontier.Urlfrontier.StringList.getDefaultInstance()) + return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * repeated string values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * repeated string values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + return this; + } + /** + * repeated string values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string values = 1; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.StringList) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.StringList) + private static final crawlercommons.urlfrontier.Urlfrontier.StringList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.StringList(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.StringList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.StringList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface QueueWithinCrawlParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.QueueWithinCrawlParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 2; + * + * @return The crawlID. + */ + java.lang.String getCrawlID(); + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 2; + * + * @return The bytes for crawlID. + */ + com.google.protobuf.ByteString getCrawlIDBytes(); + + /** + * + * + *
+         * only for this instance
+         * 
+ * + * bool local = 3; + * + * @return The local. + */ + boolean getLocal(); + } + /** Protobuf type {@code urlfrontier.QueueWithinCrawlParams} */ + public static final class QueueWithinCrawlParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.QueueWithinCrawlParams) + QueueWithinCrawlParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueueWithinCrawlParams.newBuilder() to construct. + private QueueWithinCrawlParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueueWithinCrawlParams() { + key_ = ""; + crawlID_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_QueueWithinCrawlParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.class, + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.Builder + .class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CRAWLID_FIELD_NUMBER = 2; + private volatile java.lang.Object crawlID_; + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 2; + * + * @return The crawlID. + */ + @java.lang.Override + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } + } + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 2; + * + * @return The bytes for crawlID. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCAL_FIELD_NUMBER = 3; + private boolean local_; + /** + * + * + *
+         * only for this instance
+         * 
+ * + * bool local = 3; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, crawlID_); + } + if (local_ != false) { + output.writeBool(3, local_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, crawlID_); + } + if (local_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, local_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams other = + (crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams) obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getCrawlID().equals(other.getCrawlID())) return false; + if (getLocal() != other.getLocal()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + CRAWLID_FIELD_NUMBER; + hash = (53 * hash) + getCrawlID().hashCode(); + hash = (37 * hash) + LOCAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocal()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_URLItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.URLItem.class, crawlercommons.urlfrontier.Urlfrontier.URLItem.Builder.class); - } + public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - private int itemCase_ = 0; - private java.lang.Object item_; - public enum ItemCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - DISCOVERED(1), - KNOWN(2), - ITEM_NOT_SET(0); - private final int value; - private ItemCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ItemCase valueOf(int value) { - return forNumber(value); - } - - public static ItemCase forNumber(int value) { - switch (value) { - case 1: return DISCOVERED; - case 2: return KNOWN; - case 0: return ITEM_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ItemCase - getItemCase() { - return ItemCase.forNumber( - itemCase_); - } + public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int DISCOVERED_FIELD_NUMBER = 1; - /** - * .urlfrontier.DiscoveredURLItem discovered = 1; - * @return Whether the discovered field is set. - */ - @java.lang.Override - public boolean hasDiscovered() { - return itemCase_ == 1; - } - /** - * .urlfrontier.DiscoveredURLItem discovered = 1; - * @return The discovered. - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem getDiscovered() { - if (itemCase_ == 1) { - return (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) item_; - } - return crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.getDefaultInstance(); - } - /** - * .urlfrontier.DiscoveredURLItem discovered = 1; - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItemOrBuilder getDiscoveredOrBuilder() { - if (itemCase_ == 1) { - return (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) item_; - } - return crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.getDefaultInstance(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int KNOWN_FIELD_NUMBER = 2; - /** - * .urlfrontier.KnownURLItem known = 2; - * @return Whether the known field is set. - */ - @java.lang.Override - public boolean hasKnown() { - return itemCase_ == 2; - } - /** - * .urlfrontier.KnownURLItem known = 2; - * @return The known. - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem getKnown() { - if (itemCase_ == 2) { - return (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) item_; - } - return crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance(); - } - /** - * .urlfrontier.KnownURLItem known = 2; - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.KnownURLItemOrBuilder getKnownOrBuilder() { - if (itemCase_ == 2) { - return (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) item_; - } - return crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int ID_FIELD_NUMBER = 3; - private volatile java.lang.Object iD_; - /** - *
-     ** Identifier specified by the client, if missing, the URL is returned *
-     * 
- * - * string ID = 3; - * @return The iD. - */ - @java.lang.Override - public java.lang.String getID() { - java.lang.Object ref = iD_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - iD_ = s; - return s; - } - } - /** - *
-     ** Identifier specified by the client, if missing, the URL is returned *
-     * 
- * - * string ID = 3; - * @return The bytes for iD. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIDBytes() { - java.lang.Object ref = iD_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - iD_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static Builder newBuilder( + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code urlfrontier.QueueWithinCrawlParams} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.QueueWithinCrawlParams) + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_QueueWithinCrawlParams_descriptor; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (itemCase_ == 1) { - output.writeMessage(1, (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) item_); - } - if (itemCase_ == 2) { - output.writeMessage(2, (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) item_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iD_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, iD_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_QueueWithinCrawlParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.class, + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams + .Builder.class); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (itemCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) item_); - } - if (itemCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) item_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iD_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, iD_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + // Construct using + // crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.newBuilder() + private Builder() {} - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.URLItem)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.URLItem other = (crawlercommons.urlfrontier.Urlfrontier.URLItem) obj; - - if (!getID() - .equals(other.getID())) return false; - if (!getItemCase().equals(other.getItemCase())) return false; - switch (itemCase_) { - case 1: - if (!getDiscovered() - .equals(other.getDiscovered())) return false; - break; - case 2: - if (!getKnown() - .equals(other.getKnown())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getID().hashCode(); - switch (itemCase_) { - case 1: - hash = (37 * hash) + DISCOVERED_FIELD_NUMBER; - hash = (53 * hash) + getDiscovered().hashCode(); - break; - case 2: - hash = (37 * hash) + KNOWN_FIELD_NUMBER; - hash = (53 * hash) + getKnown().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; - public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + crawlID_ = ""; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.URLItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + local_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_QueueWithinCrawlParams_descriptor; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams + getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams + .getDefaultInstance(); + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams build() { + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams) { + return mergeFrom( + (crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams other) { + if (other + == crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams + .getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getCrawlID().isEmpty()) { + crawlID_ = other.crawlID_; + onChanged(); + } + if (other.getLocal() != false) { + setLocal(other.getLocal()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + key_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + crawlID_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + local_ = input.readBool(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object key_ = ""; + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 1; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 1; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object crawlID_ = ""; + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 2; + * + * @return The crawlID. + */ + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 2; + * + * @return The bytes for crawlID. + */ + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 2; + * + * @param value The crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlID(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + crawlID_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 2; + * + * @return This builder for chaining. + */ + public Builder clearCrawlID() { + + crawlID_ = getDefaultInstance().getCrawlID(); + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 2; + * + * @param value The bytes for crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + crawlID_ = value; + onChanged(); + return this; + } + + private boolean local_; + /** + * + * + *
+             * only for this instance
+             * 
+ * + * bool local = 3; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + /** + * + * + *
+             * only for this instance
+             * 
+ * + * bool local = 3; + * + * @param value The local to set. + * @return This builder for chaining. + */ + public Builder setLocal(boolean value) { + + local_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * only for this instance
+             * 
+ * + * bool local = 3; + * + * @return This builder for chaining. + */ + public Builder clearLocal() { + + local_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.QueueWithinCrawlParams) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.QueueWithinCrawlParams) + private static final crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueueWithinCrawlParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface QueueDelayParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.QueueDelayParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * * ID for the queue - an empty value sets the default for all the queues *
+         * 
+ * + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + /** + * + * + *
+         * * ID for the queue - an empty value sets the default for all the queues *
+         * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+         *  delay in seconds before a queue can provide new URLs
+         * 
+ * + * uint32 delay_requestable = 2; + * + * @return The delayRequestable. + */ + int getDelayRequestable(); + + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 3; + * + * @return The crawlID. + */ + java.lang.String getCrawlID(); + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 3; + * + * @return The bytes for crawlID. + */ + com.google.protobuf.ByteString getCrawlIDBytes(); + + /** + * + * + *
+         * only for this instance
+         * 
+ * + * bool local = 4; + * + * @return The local. + */ + boolean getLocal(); } /** + * + * *
-     ** Wrapper for a KnownURLItem or DiscoveredURLItem *
+     * * Parameter message for SetDelay *
      * 
* - * Protobuf type {@code urlfrontier.URLItem} + * Protobuf type {@code urlfrontier.QueueDelayParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.URLItem) - crawlercommons.urlfrontier.Urlfrontier.URLItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_URLItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_URLItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.URLItem.class, crawlercommons.urlfrontier.Urlfrontier.URLItem.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.URLItem.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (discoveredBuilder_ != null) { - discoveredBuilder_.clear(); - } - if (knownBuilder_ != null) { - knownBuilder_.clear(); - } - iD_ = ""; - - itemCase_ = 0; - item_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_URLItem_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.URLItem getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.URLItem.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.URLItem build() { - crawlercommons.urlfrontier.Urlfrontier.URLItem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - 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 (itemCase_ == 2) { - if (knownBuilder_ == null) { - result.item_ = item_; - } else { - result.item_ = knownBuilder_.build(); - } - } - result.iD_ = iD_; - result.itemCase_ = itemCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.URLItem) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.URLItem)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.URLItem other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.URLItem.getDefaultInstance()) return this; - if (!other.getID().isEmpty()) { - iD_ = other.iD_; - onChanged(); - } - switch (other.getItemCase()) { - case DISCOVERED: { - mergeDiscovered(other.getDiscovered()); - break; - } - case KNOWN: { - mergeKnown(other.getKnown()); - break; - } - case ITEM_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getDiscoveredFieldBuilder().getBuilder(), - extensionRegistry); - itemCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getKnownFieldBuilder().getBuilder(), - extensionRegistry); - itemCase_ = 2; - break; - } // case 18 - case 26: { - iD_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int itemCase_ = 0; - private java.lang.Object item_; - public ItemCase - getItemCase() { - return ItemCase.forNumber( - itemCase_); - } - - public Builder clearItem() { - itemCase_ = 0; - item_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem, crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder, crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItemOrBuilder> discoveredBuilder_; - /** - * .urlfrontier.DiscoveredURLItem discovered = 1; - * @return Whether the discovered field is set. - */ - @java.lang.Override - public boolean hasDiscovered() { - return itemCase_ == 1; - } - /** - * .urlfrontier.DiscoveredURLItem discovered = 1; - * @return The discovered. - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem getDiscovered() { - if (discoveredBuilder_ == null) { - if (itemCase_ == 1) { - return (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) item_; - } - return crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.getDefaultInstance(); - } else { - if (itemCase_ == 1) { - return discoveredBuilder_.getMessage(); - } - return crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.getDefaultInstance(); - } - } - /** - * .urlfrontier.DiscoveredURLItem discovered = 1; - */ - public Builder setDiscovered(crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem value) { - if (discoveredBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - item_ = value; - onChanged(); - } else { - discoveredBuilder_.setMessage(value); - } - itemCase_ = 1; - return this; - } - /** - * .urlfrontier.DiscoveredURLItem discovered = 1; - */ - public Builder setDiscovered( - crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder builderForValue) { - if (discoveredBuilder_ == null) { - item_ = builderForValue.build(); - onChanged(); - } else { - discoveredBuilder_.setMessage(builderForValue.build()); - } - itemCase_ = 1; - return this; - } - /** - * .urlfrontier.DiscoveredURLItem discovered = 1; - */ - public Builder mergeDiscovered(crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem value) { - if (discoveredBuilder_ == null) { - if (itemCase_ == 1 && - item_ != crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.getDefaultInstance()) { - item_ = crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.newBuilder((crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) item_) - .mergeFrom(value).buildPartial(); - } else { - item_ = value; - } - onChanged(); - } else { - if (itemCase_ == 1) { - discoveredBuilder_.mergeFrom(value); - } else { - discoveredBuilder_.setMessage(value); - } - } - itemCase_ = 1; - return this; - } - /** - * .urlfrontier.DiscoveredURLItem discovered = 1; - */ - public Builder clearDiscovered() { - if (discoveredBuilder_ == null) { - if (itemCase_ == 1) { - itemCase_ = 0; - item_ = null; - onChanged(); - } - } else { - if (itemCase_ == 1) { - itemCase_ = 0; - item_ = null; - } - discoveredBuilder_.clear(); - } - return this; - } - /** - * .urlfrontier.DiscoveredURLItem discovered = 1; - */ - public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder getDiscoveredBuilder() { - return getDiscoveredFieldBuilder().getBuilder(); - } - /** - * .urlfrontier.DiscoveredURLItem discovered = 1; - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItemOrBuilder getDiscoveredOrBuilder() { - if ((itemCase_ == 1) && (discoveredBuilder_ != null)) { - return discoveredBuilder_.getMessageOrBuilder(); - } else { - if (itemCase_ == 1) { - return (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) item_; - } - return crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.getDefaultInstance(); - } - } - /** - * .urlfrontier.DiscoveredURLItem discovered = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem, crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder, crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItemOrBuilder> - getDiscoveredFieldBuilder() { - if (discoveredBuilder_ == null) { - if (!(itemCase_ == 1)) { - item_ = crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.getDefaultInstance(); - } - discoveredBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem, crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder, crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItemOrBuilder>( - (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) item_, - getParentForChildren(), - isClean()); - item_ = null; - } - itemCase_ = 1; - onChanged();; - return discoveredBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - crawlercommons.urlfrontier.Urlfrontier.KnownURLItem, crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder, crawlercommons.urlfrontier.Urlfrontier.KnownURLItemOrBuilder> knownBuilder_; - /** - * .urlfrontier.KnownURLItem known = 2; - * @return Whether the known field is set. - */ - @java.lang.Override - public boolean hasKnown() { - return itemCase_ == 2; - } - /** - * .urlfrontier.KnownURLItem known = 2; - * @return The known. - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem getKnown() { - if (knownBuilder_ == null) { - if (itemCase_ == 2) { - return (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) item_; - } - return crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance(); - } else { - if (itemCase_ == 2) { - return knownBuilder_.getMessage(); - } - return crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance(); - } - } - /** - * .urlfrontier.KnownURLItem known = 2; - */ - public Builder setKnown(crawlercommons.urlfrontier.Urlfrontier.KnownURLItem value) { - if (knownBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - item_ = value; - onChanged(); - } else { - knownBuilder_.setMessage(value); - } - itemCase_ = 2; - return this; - } - /** - * .urlfrontier.KnownURLItem known = 2; - */ - public Builder setKnown( - crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder builderForValue) { - if (knownBuilder_ == null) { - item_ = builderForValue.build(); - onChanged(); - } else { - knownBuilder_.setMessage(builderForValue.build()); - } - itemCase_ = 2; - return this; - } - /** - * .urlfrontier.KnownURLItem known = 2; - */ - public Builder mergeKnown(crawlercommons.urlfrontier.Urlfrontier.KnownURLItem value) { - if (knownBuilder_ == null) { - if (itemCase_ == 2 && - item_ != crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance()) { - item_ = crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.newBuilder((crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) item_) - .mergeFrom(value).buildPartial(); - } else { - item_ = value; - } - onChanged(); - } else { - if (itemCase_ == 2) { - knownBuilder_.mergeFrom(value); - } else { - knownBuilder_.setMessage(value); - } - } - itemCase_ = 2; - return this; - } - /** - * .urlfrontier.KnownURLItem known = 2; - */ - public Builder clearKnown() { - if (knownBuilder_ == null) { - if (itemCase_ == 2) { - itemCase_ = 0; - item_ = null; - onChanged(); - } - } else { - if (itemCase_ == 2) { - itemCase_ = 0; - item_ = null; - } - knownBuilder_.clear(); - } - return this; - } - /** - * .urlfrontier.KnownURLItem known = 2; - */ - public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder getKnownBuilder() { - return getKnownFieldBuilder().getBuilder(); - } - /** - * .urlfrontier.KnownURLItem known = 2; - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.KnownURLItemOrBuilder getKnownOrBuilder() { - if ((itemCase_ == 2) && (knownBuilder_ != null)) { - return knownBuilder_.getMessageOrBuilder(); - } else { - if (itemCase_ == 2) { - return (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) item_; - } - return crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance(); - } - } - /** - * .urlfrontier.KnownURLItem known = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - crawlercommons.urlfrontier.Urlfrontier.KnownURLItem, crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder, crawlercommons.urlfrontier.Urlfrontier.KnownURLItemOrBuilder> - getKnownFieldBuilder() { - if (knownBuilder_ == null) { - if (!(itemCase_ == 2)) { - item_ = crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance(); - } - knownBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - crawlercommons.urlfrontier.Urlfrontier.KnownURLItem, crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder, crawlercommons.urlfrontier.Urlfrontier.KnownURLItemOrBuilder>( - (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) item_, - getParentForChildren(), - isClean()); - item_ = null; - } - itemCase_ = 2; - onChanged();; - return knownBuilder_; - } - - private java.lang.Object iD_ = ""; - /** - *
-       ** Identifier specified by the client, if missing, the URL is returned *
-       * 
- * - * string ID = 3; - * @return The iD. - */ - public java.lang.String getID() { - java.lang.Object ref = iD_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - iD_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       ** Identifier specified by the client, if missing, the URL is returned *
-       * 
- * - * string ID = 3; - * @return The bytes for iD. - */ - public com.google.protobuf.ByteString - getIDBytes() { - java.lang.Object ref = iD_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - iD_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       ** Identifier specified by the client, if missing, the URL is returned *
-       * 
- * - * string ID = 3; - * @param value The iD to set. - * @return This builder for chaining. - */ - public Builder setID( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - iD_ = value; - onChanged(); - return this; - } - /** - *
-       ** Identifier specified by the client, if missing, the URL is returned *
-       * 
- * - * string ID = 3; - * @return This builder for chaining. - */ - public Builder clearID() { - - iD_ = getDefaultInstance().getID(); - onChanged(); - return this; - } - /** - *
-       ** Identifier specified by the client, if missing, the URL is returned *
-       * 
- * - * string ID = 3; - * @param value The bytes for iD to set. - * @return This builder for chaining. - */ - public Builder setIDBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - iD_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.URLItem) - } + public static final class QueueDelayParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.QueueDelayParams) + QueueDelayParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueueDelayParams.newBuilder() to construct. + private QueueDelayParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueueDelayParams() { + key_ = ""; + crawlID_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_QueueDelayParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.class, + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + * + * + *
+         * * ID for the queue - an empty value sets the default for all the queues *
+         * 
+ * + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * + * + *
+         * * ID for the queue - an empty value sets the default for all the queues *
+         * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DELAY_REQUESTABLE_FIELD_NUMBER = 2; + private int delayRequestable_; + /** + * + * + *
+         *  delay in seconds before a queue can provide new URLs
+         * 
+ * + * uint32 delay_requestable = 2; + * + * @return The delayRequestable. + */ + @java.lang.Override + public int getDelayRequestable() { + return delayRequestable_; + } + + public static final int CRAWLID_FIELD_NUMBER = 3; + private volatile java.lang.Object crawlID_; + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 3; + * + * @return The crawlID. + */ + @java.lang.Override + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } + } + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 3; + * + * @return The bytes for crawlID. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCAL_FIELD_NUMBER = 4; + private boolean local_; + /** + * + * + *
+         * only for this instance
+         * 
+ * + * bool local = 4; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (delayRequestable_ != 0) { + output.writeUInt32(2, delayRequestable_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, crawlID_); + } + if (local_ != false) { + output.writeBool(4, local_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (delayRequestable_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeUInt32Size( + 2, delayRequestable_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, crawlID_); + } + if (local_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, local_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams other = + (crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams) obj; + + if (!getKey().equals(other.getKey())) return false; + if (getDelayRequestable() != other.getDelayRequestable()) return false; + if (!getCrawlID().equals(other.getCrawlID())) return false; + if (getLocal() != other.getLocal()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + DELAY_REQUESTABLE_FIELD_NUMBER; + hash = (53 * hash) + getDelayRequestable(); + hash = (37 * hash) + CRAWLID_FIELD_NUMBER; + hash = (53 * hash) + getCrawlID().hashCode(); + hash = (37 * hash) + LOCAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocal()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - // @@protoc_insertion_point(class_scope:urlfrontier.URLItem) - private static final crawlercommons.urlfrontier.Urlfrontier.URLItem DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.URLItem(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static crawlercommons.urlfrontier.Urlfrontier.URLItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder( + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public URLItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * * Parameter message for SetDelay *
+         * 
+ * + * Protobuf type {@code urlfrontier.QueueDelayParams} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.QueueDelayParams) + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_QueueDelayParams_descriptor; + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.URLItem getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_QueueDelayParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.class, + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.Builder + .class); + } + + // Construct using crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.newBuilder() + private Builder() {} - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + delayRequestable_ = 0; + + crawlID_ = ""; + + local_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_QueueDelayParams_descriptor; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams + getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.getDefaultInstance(); + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams build() { + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams) { + return mergeFrom( + (crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams other) { + if (other + == crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams + .getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.getDelayRequestable() != 0) { + setDelayRequestable(other.getDelayRequestable()); + } + if (!other.getCrawlID().isEmpty()) { + crawlID_ = other.crawlID_; + onChanged(); + } + if (other.getLocal() != false) { + setLocal(other.getLocal()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + key_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + delayRequestable_ = input.readUInt32(); + + break; + } // case 16 + case 26: + { + crawlID_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + local_ = input.readBool(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object key_ = ""; + /** + * + * + *
+             * * ID for the queue - an empty value sets the default for all the queues *
+             * 
+ * + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * * ID for the queue - an empty value sets the default for all the queues *
+             * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * * ID for the queue - an empty value sets the default for all the queues *
+             * 
+ * + * string key = 1; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - public interface AckMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.AckMessage) - com.google.protobuf.MessageOrBuilder { + key_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * * ID for the queue - an empty value sets the default for all the queues *
+             * 
+ * + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * + * + *
+             * * ID for the queue - an empty value sets the default for all the queues *
+             * 
+ * + * string key = 1; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private int delayRequestable_; + /** + * + * + *
+             *  delay in seconds before a queue can provide new URLs
+             * 
+ * + * uint32 delay_requestable = 2; + * + * @return The delayRequestable. + */ + @java.lang.Override + public int getDelayRequestable() { + return delayRequestable_; + } + /** + * + * + *
+             *  delay in seconds before a queue can provide new URLs
+             * 
+ * + * uint32 delay_requestable = 2; + * + * @param value The delayRequestable to set. + * @return This builder for chaining. + */ + public Builder setDelayRequestable(int value) { + + delayRequestable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             *  delay in seconds before a queue can provide new URLs
+             * 
+ * + * uint32 delay_requestable = 2; + * + * @return This builder for chaining. + */ + public Builder clearDelayRequestable() { + + delayRequestable_ = 0; + onChanged(); + return this; + } + + private java.lang.Object crawlID_ = ""; + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 3; + * + * @return The crawlID. + */ + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 3; + * + * @return The bytes for crawlID. + */ + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 3; + * + * @param value The crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlID(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + crawlID_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 3; + * + * @return This builder for chaining. + */ + public Builder clearCrawlID() { + + crawlID_ = getDefaultInstance().getCrawlID(); + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 3; + * + * @param value The bytes for crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + crawlID_ = value; + onChanged(); + return this; + } + + private boolean local_; + /** + * + * + *
+             * only for this instance
+             * 
+ * + * bool local = 4; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + /** + * + * + *
+             * only for this instance
+             * 
+ * + * bool local = 4; + * + * @param value The local to set. + * @return This builder for chaining. + */ + public Builder setLocal(boolean value) { + + local_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * only for this instance
+             * 
+ * + * bool local = 4; + * + * @return This builder for chaining. + */ + public Builder clearLocal() { + + local_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.QueueDelayParams) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.QueueDelayParams) + private static final crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueueDelayParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface BlockQueueParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.BlockQueueParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+         * * Expressed in seconds of UTC time since Unix epoch
+         * 1970-01-01T00:00:00Z. The default value of 0 will unblock the queue.
+         * 
+ * + * uint64 time = 2; + * + * @return The time. + */ + long getTime(); + + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 3; + * + * @return The crawlID. + */ + java.lang.String getCrawlID(); + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 3; + * + * @return The bytes for crawlID. + */ + com.google.protobuf.ByteString getCrawlIDBytes(); + + /** + * + * + *
+         * only for this instance
+         * 
+ * + * bool local = 4; + * + * @return The local. + */ + boolean getLocal(); + } /** - *
-     ** ID which had been specified by the client *
-     * 
* - * string ID = 1; - * @return The iD. - */ - java.lang.String getID(); - /** + * *
-     ** ID which had been specified by the client *
+     * * Parameter message for BlockQueueUntil *
      * 
* - * string ID = 1; - * @return The bytes for iD. + * Protobuf type {@code urlfrontier.BlockQueueParams} */ - com.google.protobuf.ByteString - getIDBytes(); + public static final class BlockQueueParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.BlockQueueParams) + BlockQueueParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use BlockQueueParams.newBuilder() to construct. + private BlockQueueParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BlockQueueParams() { + key_ = ""; + crawlID_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_BlockQueueParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.class, + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_FIELD_NUMBER = 2; + private long time_; + /** + * + * + *
+         * * Expressed in seconds of UTC time since Unix epoch
+         * 1970-01-01T00:00:00Z. The default value of 0 will unblock the queue.
+         * 
+ * + * uint64 time = 2; + * + * @return The time. + */ + @java.lang.Override + public long getTime() { + return time_; + } + + public static final int CRAWLID_FIELD_NUMBER = 3; + private volatile java.lang.Object crawlID_; + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 3; + * + * @return The crawlID. + */ + @java.lang.Override + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } + } + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 3; + * + * @return The bytes for crawlID. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCAL_FIELD_NUMBER = 4; + private boolean local_; + /** + * + * + *
+         * only for this instance
+         * 
+ * + * bool local = 4; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (time_ != 0L) { + output.writeUInt64(2, time_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, crawlID_); + } + if (local_ != false) { + output.writeBool(4, local_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (time_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, time_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, crawlID_); + } + if (local_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, local_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams other = + (crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams) obj; + + if (!getKey().equals(other.getKey())) return false; + if (getTime() != other.getTime()) return false; + if (!getCrawlID().equals(other.getCrawlID())) return false; + if (getLocal() != other.getLocal()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTime()); + hash = (37 * hash) + CRAWLID_FIELD_NUMBER; + hash = (53 * hash) + getCrawlID().hashCode(); + hash = (37 * hash) + LOCAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocal()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * .urlfrontier.AckMessage.Status status = 2; - * @return The enum numeric value on the wire for status. - */ - int getStatusValue(); - /** - * .urlfrontier.AckMessage.Status status = 2; - * @return The status. - */ - crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status getStatus(); - } - /** - * Protobuf type {@code urlfrontier.AckMessage} - */ - public static final class AckMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.AckMessage) - AckMessageOrBuilder { - private static final long serialVersionUID = 0L; - // Use AckMessage.newBuilder() to construct. - private AckMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AckMessage() { - iD_ = ""; - status_ = 0; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AckMessage(); - } + public static Builder newBuilder( + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @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; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_AckMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.AckMessage.class, crawlercommons.urlfrontier.Urlfrontier.AckMessage.Builder.class); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * * Parameter message for BlockQueueUntil *
+         * 
+ * + * Protobuf type {@code urlfrontier.BlockQueueParams} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.BlockQueueParams) + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_BlockQueueParams_descriptor; + } - /** - * Protobuf enum {@code urlfrontier.AckMessage.Status} - */ - public enum Status - implements com.google.protobuf.ProtocolMessageEnum { - /** - * OK = 0; - */ - OK(0), - /** - * SKIPPED = 1; - */ - SKIPPED(1), - /** - * FAIL = 2; - */ - FAIL(2), - UNRECOGNIZED(-1), - ; - - /** - * OK = 0; - */ - public static final int OK_VALUE = 0; - /** - * SKIPPED = 1; - */ - public static final int SKIPPED_VALUE = 1; - /** - * FAIL = 2; - */ - public static final int FAIL_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Status valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Status forNumber(int value) { - switch (value) { - case 0: return OK; - case 1: return SKIPPED; - case 2: return FAIL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Status> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Status findValueByNumber(int number) { - return Status.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.AckMessage.getDescriptor().getEnumTypes().get(0); - } - - private static final Status[] VALUES = values(); - - public static Status valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Status(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:urlfrontier.AckMessage.Status) - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_BlockQueueParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.class, + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.Builder + .class); + } - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object iD_; - /** - *
-     ** ID which had been specified by the client *
-     * 
- * - * string ID = 1; - * @return The iD. - */ - @java.lang.Override - public java.lang.String getID() { - java.lang.Object ref = iD_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - iD_ = s; - return s; - } + // Construct using crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + time_ = 0L; + + crawlID_ = ""; + + local_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_BlockQueueParams_descriptor; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams + getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams.getDefaultInstance(); + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams build() { + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams) { + return mergeFrom( + (crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams other) { + if (other + == crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams + .getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.getTime() != 0L) { + setTime(other.getTime()); + } + if (!other.getCrawlID().isEmpty()) { + crawlID_ = other.crawlID_; + onChanged(); + } + if (other.getLocal() != false) { + setLocal(other.getLocal()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + key_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + time_ = input.readUInt64(); + + break; + } // case 16 + case 26: + { + crawlID_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + local_ = input.readBool(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object key_ = ""; + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 1; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 1; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private long time_; + /** + * + * + *
+             * * Expressed in seconds of UTC time since Unix epoch
+             * 1970-01-01T00:00:00Z. The default value of 0 will unblock the queue.
+             * 
+ * + * uint64 time = 2; + * + * @return The time. + */ + @java.lang.Override + public long getTime() { + return time_; + } + /** + * + * + *
+             * * Expressed in seconds of UTC time since Unix epoch
+             * 1970-01-01T00:00:00Z. The default value of 0 will unblock the queue.
+             * 
+ * + * uint64 time = 2; + * + * @param value The time to set. + * @return This builder for chaining. + */ + public Builder setTime(long value) { + + time_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * * Expressed in seconds of UTC time since Unix epoch
+             * 1970-01-01T00:00:00Z. The default value of 0 will unblock the queue.
+             * 
+ * + * uint64 time = 2; + * + * @return This builder for chaining. + */ + public Builder clearTime() { + + time_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object crawlID_ = ""; + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 3; + * + * @return The crawlID. + */ + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 3; + * + * @return The bytes for crawlID. + */ + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 3; + * + * @param value The crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlID(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + crawlID_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 3; + * + * @return This builder for chaining. + */ + public Builder clearCrawlID() { + + crawlID_ = getDefaultInstance().getCrawlID(); + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 3; + * + * @param value The bytes for crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + crawlID_ = value; + onChanged(); + return this; + } + + private boolean local_; + /** + * + * + *
+             * only for this instance
+             * 
+ * + * bool local = 4; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + /** + * + * + *
+             * only for this instance
+             * 
+ * + * bool local = 4; + * + * @param value The local to set. + * @return This builder for chaining. + */ + public Builder setLocal(boolean value) { + + local_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * only for this instance
+             * 
+ * + * bool local = 4; + * + * @return This builder for chaining. + */ + public Builder clearLocal() { + + local_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.BlockQueueParams) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.BlockQueueParams) + private static final crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlockQueueParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GetParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.GetParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * maximum number of URLs per queue, the default value of 0 means no limit
+         * 
+ * + * uint32 max_urls_per_queue = 1; + * + * @return The maxUrlsPerQueue. + */ + int getMaxUrlsPerQueue(); + + /** + * + * + *
+         * maximum number of queues to get URLs from, the default value of 0 means no limit
+         * 
+ * + * uint32 max_queues = 2; + * + * @return The maxQueues. + */ + int getMaxQueues(); + + /** + * + * + *
+         * queue id if restricting to a specific queue
+         * 
+ * + * string key = 3; + * + * @return The key. + */ + java.lang.String getKey(); + /** + * + * + *
+         * queue id if restricting to a specific queue
+         * 
+ * + * string key = 3; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+         *  delay in seconds before a URL can be unlocked and sent again for fetching
+         * 
+ * + * uint32 delay_requestable = 4; + * + * @return The delayRequestable. + */ + int getDelayRequestable(); + + /** + * .urlfrontier.AnyCrawlID anyCrawlID = 5; + * + * @return Whether the anyCrawlID field is set. + */ + boolean hasAnyCrawlID(); + /** + * .urlfrontier.AnyCrawlID anyCrawlID = 5; + * + * @return The anyCrawlID. + */ + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID getAnyCrawlID(); + /** .urlfrontier.AnyCrawlID anyCrawlID = 5; */ + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlIDOrBuilder getAnyCrawlIDOrBuilder(); + + /** + * string crawlID = 6; + * + * @return Whether the crawlID field is set. + */ + boolean hasCrawlID(); + /** + * string crawlID = 6; + * + * @return The crawlID. + */ + java.lang.String getCrawlID(); + /** + * string crawlID = 6; + * + * @return The bytes for crawlID. + */ + com.google.protobuf.ByteString getCrawlIDBytes(); + + public crawlercommons.urlfrontier.Urlfrontier.GetParams.ItemCase getItemCase(); } /** + * + * *
-     ** ID which had been specified by the client *
+     * * Parameter message for GetURLs *
      * 
* - * string ID = 1; - * @return The bytes for iD. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIDBytes() { - java.lang.Object ref = iD_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - iD_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 2; - private int status_; - /** - * .urlfrontier.AckMessage.Status status = 2; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - * .urlfrontier.AckMessage.Status status = 2; - * @return The status. + * Protobuf type {@code urlfrontier.GetParams} */ - @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_); - return result == null ? crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } + public static final class GetParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.GetParams) + GetParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetParams.newBuilder() to construct. + private GetParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetParams() { + key_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_GetParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.GetParams.class, + crawlercommons.urlfrontier.Urlfrontier.GetParams.Builder.class); + } + + private int itemCase_ = 0; + private java.lang.Object item_; + + public enum ItemCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ANYCRAWLID(5), + CRAWLID(6), + ITEM_NOT_SET(0); + private final int value; + + private ItemCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ItemCase valueOf(int value) { + return forNumber(value); + } + + public static ItemCase forNumber(int value) { + switch (value) { + case 5: + return ANYCRAWLID; + case 6: + return CRAWLID; + case 0: + return ITEM_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ItemCase getItemCase() { + return ItemCase.forNumber(itemCase_); + } + + public static final int MAX_URLS_PER_QUEUE_FIELD_NUMBER = 1; + private int maxUrlsPerQueue_; + /** + * + * + *
+         * maximum number of URLs per queue, the default value of 0 means no limit
+         * 
+ * + * uint32 max_urls_per_queue = 1; + * + * @return The maxUrlsPerQueue. + */ + @java.lang.Override + public int getMaxUrlsPerQueue() { + return maxUrlsPerQueue_; + } + + public static final int MAX_QUEUES_FIELD_NUMBER = 2; + private int maxQueues_; + /** + * + * + *
+         * maximum number of queues to get URLs from, the default value of 0 means no limit
+         * 
+ * + * uint32 max_queues = 2; + * + * @return The maxQueues. + */ + @java.lang.Override + public int getMaxQueues() { + return maxQueues_; + } + + public static final int KEY_FIELD_NUMBER = 3; + private volatile java.lang.Object key_; + /** + * + * + *
+         * queue id if restricting to a specific queue
+         * 
+ * + * string key = 3; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * + * + *
+         * queue id if restricting to a specific queue
+         * 
+ * + * string key = 3; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DELAY_REQUESTABLE_FIELD_NUMBER = 4; + private int delayRequestable_; + /** + * + * + *
+         *  delay in seconds before a URL can be unlocked and sent again for fetching
+         * 
+ * + * uint32 delay_requestable = 4; + * + * @return The delayRequestable. + */ + @java.lang.Override + public int getDelayRequestable() { + return delayRequestable_; + } + + public static final int ANYCRAWLID_FIELD_NUMBER = 5; + /** + * .urlfrontier.AnyCrawlID anyCrawlID = 5; + * + * @return Whether the anyCrawlID field is set. + */ + @java.lang.Override + public boolean hasAnyCrawlID() { + return itemCase_ == 5; + } + /** + * .urlfrontier.AnyCrawlID anyCrawlID = 5; + * + * @return The anyCrawlID. + */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID getAnyCrawlID() { + if (itemCase_ == 5) { + return (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) item_; + } + return crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance(); + } + /** .urlfrontier.AnyCrawlID anyCrawlID = 5; */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlIDOrBuilder getAnyCrawlIDOrBuilder() { + if (itemCase_ == 5) { + return (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) item_; + } + return crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance(); + } + + public static final int CRAWLID_FIELD_NUMBER = 6; + /** + * string crawlID = 6; + * + * @return Whether the crawlID field is set. + */ + public boolean hasCrawlID() { + return itemCase_ == 6; + } + /** + * string crawlID = 6; + * + * @return The crawlID. + */ + public java.lang.String getCrawlID() { + java.lang.Object ref = ""; + if (itemCase_ == 6) { + ref = item_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (itemCase_ == 6) { + item_ = s; + } + return s; + } + } + /** + * string crawlID = 6; + * + * @return The bytes for crawlID. + */ + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = ""; + if (itemCase_ == 6) { + ref = item_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (itemCase_ == 6) { + item_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (maxUrlsPerQueue_ != 0) { + output.writeUInt32(1, maxUrlsPerQueue_); + } + if (maxQueues_ != 0) { + output.writeUInt32(2, maxQueues_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, key_); + } + if (delayRequestable_ != 0) { + output.writeUInt32(4, delayRequestable_); + } + if (itemCase_ == 5) { + output.writeMessage(5, (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) item_); + } + if (itemCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, item_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxUrlsPerQueue_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeUInt32Size( + 1, maxUrlsPerQueue_); + } + if (maxQueues_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, maxQueues_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, key_); + } + if (delayRequestable_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeUInt32Size( + 4, delayRequestable_); + } + if (itemCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) item_); + } + if (itemCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, item_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.GetParams)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.GetParams other = + (crawlercommons.urlfrontier.Urlfrontier.GetParams) obj; + + if (getMaxUrlsPerQueue() != other.getMaxUrlsPerQueue()) return false; + if (getMaxQueues() != other.getMaxQueues()) return false; + if (!getKey().equals(other.getKey())) return false; + if (getDelayRequestable() != other.getDelayRequestable()) return false; + if (!getItemCase().equals(other.getItemCase())) return false; + switch (itemCase_) { + case 5: + if (!getAnyCrawlID().equals(other.getAnyCrawlID())) return false; + break; + case 6: + if (!getCrawlID().equals(other.getCrawlID())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAX_URLS_PER_QUEUE_FIELD_NUMBER; + hash = (53 * hash) + getMaxUrlsPerQueue(); + hash = (37 * hash) + MAX_QUEUES_FIELD_NUMBER; + hash = (53 * hash) + getMaxQueues(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + DELAY_REQUESTABLE_FIELD_NUMBER; + hash = (53 * hash) + getDelayRequestable(); + switch (itemCase_) { + case 5: + hash = (37 * hash) + ANYCRAWLID_FIELD_NUMBER; + hash = (53 * hash) + getAnyCrawlID().hashCode(); + break; + case 6: + hash = (37 * hash) + CRAWLID_FIELD_NUMBER; + hash = (53 * hash) + getCrawlID().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.GetParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iD_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iD_); - } - if (status_ != crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.OK.getNumber()) { - output.writeEnum(2, status_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iD_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, iD_); - } - if (status_ != crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.OK.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, status_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.AckMessage)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.AckMessage other = (crawlercommons.urlfrontier.Urlfrontier.AckMessage) obj; - - if (!getID() - .equals(other.getID())) return false; - if (status_ != other.status_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static Builder newBuilder( + crawlercommons.urlfrontier.Urlfrontier.GetParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getID().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * * Parameter message for GetURLs *
+         * 
+ * + * Protobuf type {@code urlfrontier.GetParams} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.GetParams) + crawlercommons.urlfrontier.Urlfrontier.GetParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_GetParams_descriptor; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.AckMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_GetParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.GetParams.class, + crawlercommons.urlfrontier.Urlfrontier.GetParams.Builder.class); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code urlfrontier.AckMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.AckMessage) - crawlercommons.urlfrontier.Urlfrontier.AckMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_AckMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_AckMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.AckMessage.class, crawlercommons.urlfrontier.Urlfrontier.AckMessage.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.AckMessage.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - iD_ = ""; - - status_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_AckMessage_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.AckMessage getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.AckMessage.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.AckMessage build() { - crawlercommons.urlfrontier.Urlfrontier.AckMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.AckMessage buildPartial() { - crawlercommons.urlfrontier.Urlfrontier.AckMessage result = new crawlercommons.urlfrontier.Urlfrontier.AckMessage(this); - result.iD_ = iD_; - result.status_ = status_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.AckMessage) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.AckMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.AckMessage other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.AckMessage.getDefaultInstance()) return this; - if (!other.getID().isEmpty()) { - iD_ = other.iD_; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - iD_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - status_ = input.readEnum(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object iD_ = ""; - /** - *
-       ** ID which had been specified by the client *
-       * 
- * - * string ID = 1; - * @return The iD. - */ - public java.lang.String getID() { - java.lang.Object ref = iD_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - iD_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       ** ID which had been specified by the client *
-       * 
- * - * string ID = 1; - * @return The bytes for iD. - */ - public com.google.protobuf.ByteString - getIDBytes() { - java.lang.Object ref = iD_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - iD_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       ** ID which had been specified by the client *
-       * 
- * - * string ID = 1; - * @param value The iD to set. - * @return This builder for chaining. - */ - public Builder setID( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - iD_ = value; - onChanged(); - return this; - } - /** - *
-       ** ID which had been specified by the client *
-       * 
- * - * string ID = 1; - * @return This builder for chaining. - */ - public Builder clearID() { - - iD_ = getDefaultInstance().getID(); - onChanged(); - return this; - } - /** - *
-       ** ID which had been specified by the client *
-       * 
- * - * string ID = 1; - * @param value The bytes for iD to set. - * @return This builder for chaining. - */ - public Builder setIDBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - iD_ = value; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * .urlfrontier.AckMessage.Status status = 2; - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override public int getStatusValue() { - return status_; - } - /** - * .urlfrontier.AckMessage.Status status = 2; - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - * .urlfrontier.AckMessage.Status status = 2; - * @return The status. - */ - @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_); - return result == null ? crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.UNRECOGNIZED : result; - } - /** - * .urlfrontier.AckMessage.Status status = 2; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .urlfrontier.AckMessage.Status status = 2; - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.AckMessage) - } + // Construct using crawlercommons.urlfrontier.Urlfrontier.GetParams.newBuilder() + private Builder() {} - // @@protoc_insertion_point(class_scope:urlfrontier.AckMessage) - private static final crawlercommons.urlfrontier.Urlfrontier.AckMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.AckMessage(); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - public static crawlercommons.urlfrontier.Urlfrontier.AckMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clear() { + super.clear(); + maxUrlsPerQueue_ = 0; - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AckMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + maxQueues_ = 0; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + key_ = ""; - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.AckMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + delayRequestable_ = 0; - } + if (anyCrawlIDBuilder_ != null) { + anyCrawlIDBuilder_.clear(); + } + itemCase_ = 0; + item_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_GetParams_descriptor; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.GetParams getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.GetParams.getDefaultInstance(); + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.GetParams build() { + crawlercommons.urlfrontier.Urlfrontier.GetParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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 (itemCase_ == 6) { + result.item_ = item_; + } + result.itemCase_ = itemCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.GetParams) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.GetParams) other); + } else { + super.mergeFrom(other); + return this; + } + } - public interface URLInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.URLInfo) - com.google.protobuf.MessageOrBuilder { + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.GetParams other) { + if (other == crawlercommons.urlfrontier.Urlfrontier.GetParams.getDefaultInstance()) + return this; + if (other.getMaxUrlsPerQueue() != 0) { + setMaxUrlsPerQueue(other.getMaxUrlsPerQueue()); + } + if (other.getMaxQueues() != 0) { + setMaxQueues(other.getMaxQueues()); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.getDelayRequestable() != 0) { + setDelayRequestable(other.getDelayRequestable()); + } + switch (other.getItemCase()) { + case ANYCRAWLID: + { + mergeAnyCrawlID(other.getAnyCrawlID()); + break; + } + case CRAWLID: + { + itemCase_ = 6; + item_ = other.item_; + onChanged(); + break; + } + case ITEM_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + maxUrlsPerQueue_ = input.readUInt32(); + + break; + } // case 8 + case 16: + { + maxQueues_ = input.readUInt32(); + + break; + } // case 16 + case 26: + { + key_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + delayRequestable_ = input.readUInt32(); + + break; + } // case 32 + case 42: + { + input.readMessage( + getAnyCrawlIDFieldBuilder().getBuilder(), + extensionRegistry); + itemCase_ = 5; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + itemCase_ = 6; + item_ = s; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int itemCase_ = 0; + private java.lang.Object item_; + + public ItemCase getItemCase() { + return ItemCase.forNumber(itemCase_); + } + + public Builder clearItem() { + itemCase_ = 0; + item_ = null; + onChanged(); + return this; + } + + private int maxUrlsPerQueue_; + /** + * + * + *
+             * maximum number of URLs per queue, the default value of 0 means no limit
+             * 
+ * + * uint32 max_urls_per_queue = 1; + * + * @return The maxUrlsPerQueue. + */ + @java.lang.Override + public int getMaxUrlsPerQueue() { + return maxUrlsPerQueue_; + } + /** + * + * + *
+             * maximum number of URLs per queue, the default value of 0 means no limit
+             * 
+ * + * uint32 max_urls_per_queue = 1; + * + * @param value The maxUrlsPerQueue to set. + * @return This builder for chaining. + */ + public Builder setMaxUrlsPerQueue(int value) { + + maxUrlsPerQueue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * maximum number of URLs per queue, the default value of 0 means no limit
+             * 
+ * + * uint32 max_urls_per_queue = 1; + * + * @return This builder for chaining. + */ + public Builder clearMaxUrlsPerQueue() { + + maxUrlsPerQueue_ = 0; + onChanged(); + return this; + } + + private int maxQueues_; + /** + * + * + *
+             * maximum number of queues to get URLs from, the default value of 0 means no limit
+             * 
+ * + * uint32 max_queues = 2; + * + * @return The maxQueues. + */ + @java.lang.Override + public int getMaxQueues() { + return maxQueues_; + } + /** + * + * + *
+             * maximum number of queues to get URLs from, the default value of 0 means no limit
+             * 
+ * + * uint32 max_queues = 2; + * + * @param value The maxQueues to set. + * @return This builder for chaining. + */ + public Builder setMaxQueues(int value) { + + maxQueues_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * maximum number of queues to get URLs from, the default value of 0 means no limit
+             * 
+ * + * uint32 max_queues = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxQueues() { + + maxQueues_ = 0; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + /** + * + * + *
+             * queue id if restricting to a specific queue
+             * 
+ * + * string key = 3; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * queue id if restricting to a specific queue
+             * 
+ * + * string key = 3; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * queue id if restricting to a specific queue
+             * 
+ * + * string key = 3; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - /** - *
-     ** URL *
-     * 
- * - * string url = 1; - * @return The url. - */ - java.lang.String getUrl(); - /** - *
-     ** URL *
-     * 
- * - * string url = 1; - * @return The bytes for url. - */ - com.google.protobuf.ByteString - getUrlBytes(); + key_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * queue id if restricting to a specific queue
+             * 
+ * + * string key = 3; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * + * + *
+             * queue id if restricting to a specific queue
+             * 
+ * + * string key = 3; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private int delayRequestable_; + /** + * + * + *
+             *  delay in seconds before a URL can be unlocked and sent again for fetching
+             * 
+ * + * uint32 delay_requestable = 4; + * + * @return The delayRequestable. + */ + @java.lang.Override + public int getDelayRequestable() { + return delayRequestable_; + } + /** + * + * + *
+             *  delay in seconds before a URL can be unlocked and sent again for fetching
+             * 
+ * + * uint32 delay_requestable = 4; + * + * @param value The delayRequestable to set. + * @return This builder for chaining. + */ + public Builder setDelayRequestable(int value) { + + delayRequestable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             *  delay in seconds before a URL can be unlocked and sent again for fetching
+             * 
+ * + * uint32 delay_requestable = 4; + * + * @return This builder for chaining. + */ + public Builder clearDelayRequestable() { + + delayRequestable_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID, + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.Builder, + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlIDOrBuilder> + anyCrawlIDBuilder_; + /** + * .urlfrontier.AnyCrawlID anyCrawlID = 5; + * + * @return Whether the anyCrawlID field is set. + */ + @java.lang.Override + public boolean hasAnyCrawlID() { + return itemCase_ == 5; + } + /** + * .urlfrontier.AnyCrawlID anyCrawlID = 5; + * + * @return The anyCrawlID. + */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID getAnyCrawlID() { + if (anyCrawlIDBuilder_ == null) { + if (itemCase_ == 5) { + return (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) item_; + } + return crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance(); + } else { + if (itemCase_ == 5) { + return anyCrawlIDBuilder_.getMessage(); + } + return crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance(); + } + } + /** .urlfrontier.AnyCrawlID anyCrawlID = 5; */ + public Builder setAnyCrawlID(crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID value) { + if (anyCrawlIDBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + item_ = value; + onChanged(); + } else { + anyCrawlIDBuilder_.setMessage(value); + } + itemCase_ = 5; + return this; + } + /** .urlfrontier.AnyCrawlID anyCrawlID = 5; */ + public Builder setAnyCrawlID( + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.Builder builderForValue) { + if (anyCrawlIDBuilder_ == null) { + item_ = builderForValue.build(); + onChanged(); + } else { + anyCrawlIDBuilder_.setMessage(builderForValue.build()); + } + itemCase_ = 5; + return this; + } + /** .urlfrontier.AnyCrawlID anyCrawlID = 5; */ + public Builder mergeAnyCrawlID( + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID value) { + if (anyCrawlIDBuilder_ == null) { + if (itemCase_ == 5 + && item_ + != crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID + .getDefaultInstance()) { + item_ = + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.newBuilder( + (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) + item_) + .mergeFrom(value) + .buildPartial(); + } else { + item_ = value; + } + onChanged(); + } else { + if (itemCase_ == 5) { + anyCrawlIDBuilder_.mergeFrom(value); + } else { + anyCrawlIDBuilder_.setMessage(value); + } + } + itemCase_ = 5; + return this; + } + /** .urlfrontier.AnyCrawlID anyCrawlID = 5; */ + public Builder clearAnyCrawlID() { + if (anyCrawlIDBuilder_ == null) { + if (itemCase_ == 5) { + itemCase_ = 0; + item_ = null; + onChanged(); + } + } else { + if (itemCase_ == 5) { + itemCase_ = 0; + item_ = null; + } + anyCrawlIDBuilder_.clear(); + } + return this; + } + /** .urlfrontier.AnyCrawlID anyCrawlID = 5; */ + public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.Builder + getAnyCrawlIDBuilder() { + return getAnyCrawlIDFieldBuilder().getBuilder(); + } + /** .urlfrontier.AnyCrawlID anyCrawlID = 5; */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlIDOrBuilder + getAnyCrawlIDOrBuilder() { + if ((itemCase_ == 5) && (anyCrawlIDBuilder_ != null)) { + return anyCrawlIDBuilder_.getMessageOrBuilder(); + } else { + if (itemCase_ == 5) { + return (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) item_; + } + return crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance(); + } + } + /** .urlfrontier.AnyCrawlID anyCrawlID = 5; */ + private com.google.protobuf.SingleFieldBuilderV3< + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID, + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.Builder, + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlIDOrBuilder> + getAnyCrawlIDFieldBuilder() { + if (anyCrawlIDBuilder_ == null) { + if (!(itemCase_ == 5)) { + item_ = + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID + .getDefaultInstance(); + } + anyCrawlIDBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID, + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.Builder, + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlIDOrBuilder>( + (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) item_, + getParentForChildren(), + isClean()); + item_ = null; + } + itemCase_ = 5; + onChanged(); + ; + return anyCrawlIDBuilder_; + } + + /** + * string crawlID = 6; + * + * @return Whether the crawlID field is set. + */ + @java.lang.Override + public boolean hasCrawlID() { + return itemCase_ == 6; + } + /** + * string crawlID = 6; + * + * @return The crawlID. + */ + @java.lang.Override + public java.lang.String getCrawlID() { + java.lang.Object ref = ""; + if (itemCase_ == 6) { + ref = item_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (itemCase_ == 6) { + item_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string crawlID = 6; + * + * @return The bytes for crawlID. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = ""; + if (itemCase_ == 6) { + ref = item_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (itemCase_ == 6) { + item_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string crawlID = 6; + * + * @param value The crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlID(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + itemCase_ = 6; + item_ = value; + onChanged(); + return this; + } + /** + * string crawlID = 6; + * + * @return This builder for chaining. + */ + public Builder clearCrawlID() { + if (itemCase_ == 6) { + itemCase_ = 0; + item_ = null; + onChanged(); + } + return this; + } + /** + * string crawlID = 6; + * + * @param value The bytes for crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + itemCase_ = 6; + item_ = value; + onChanged(); + return this; + } - /** - *
-     ** The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
-     *domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
-     * 
- * - * string key = 2; - * @return The key. - */ - java.lang.String getKey(); - /** - *
-     ** The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
-     *domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
-     * 
- * - * string key = 2; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - /** - *
-     ** 
-     *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; - */ - int getMetadataCount(); - /** - *
-     ** 
-     *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; - */ - boolean containsMetadata( - java.lang.String key); - /** - * Use {@link #getMetadataMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getMetadata(); - /** - *
-     ** 
-     *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; - */ - java.util.Map - getMetadataMap(); - /** - *
-     ** 
-     *Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
-     * 
- * - * map<string, .urlfrontier.StringList> metadata = 3; - */ + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - /* nullable */ -crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrDefault( - java.lang.String key, - /* nullable */ -crawlercommons.urlfrontier.Urlfrontier.StringList defaultValue); - /** - *
-     ** 
-     *Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
-     * 
- * - * map<string, .urlfrontier.StringList> metadata = 3; - */ + // @@protoc_insertion_point(builder_scope:urlfrontier.GetParams) + } - crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrThrow( - java.lang.String key); + // @@protoc_insertion_point(class_scope:urlfrontier.GetParams) + private static final crawlercommons.urlfrontier.Urlfrontier.GetParams DEFAULT_INSTANCE; - /** - *
-     ** crawl ID *
-     * 
- * - * string crawlID = 4; - * @return The crawlID. - */ - java.lang.String getCrawlID(); - /** - *
-     ** crawl ID *
-     * 
- * - * string crawlID = 4; - * @return The bytes for crawlID. - */ - com.google.protobuf.ByteString - getCrawlIDBytes(); - } - /** - * Protobuf type {@code urlfrontier.URLInfo} - */ - public static final class URLInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.URLInfo) - URLInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use URLInfo.newBuilder() to construct. - private URLInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private URLInfo() { - url_ = ""; - key_ = ""; - crawlID_ = ""; - } + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.GetParams(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new URLInfo(); - } + public static crawlercommons.urlfrontier.Urlfrontier.GetParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @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; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_URLInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.URLInfo.class, crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder.class); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int URL_FIELD_NUMBER = 1; - private volatile java.lang.Object url_; - /** - *
-     ** URL *
-     * 
- * - * string url = 1; - * @return The url. - */ - @java.lang.Override - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } - } - /** - *
-     ** URL *
-     * 
- * - * string url = 1; - * @return The bytes for url. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - *
-     ** The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
-     *domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
-     * 
- * - * string key = 2; - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-     ** The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
-     *domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
-     * 
- * - * string key = 2; - * @return The bytes for key. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.GetParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - public static final int METADATA_FIELD_NUMBER = 3; - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_URLInfo_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - crawlercommons.urlfrontier.Urlfrontier.StringList.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { - if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); - } - return metadata_; - } + public interface AnyCrawlIDOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.AnyCrawlID) + com.google.protobuf.MessageOrBuilder {} + /** Protobuf type {@code urlfrontier.AnyCrawlID} */ + public static final class AnyCrawlID extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.AnyCrawlID) + AnyCrawlIDOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnyCrawlID.newBuilder() to construct. + private AnyCrawlID(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public int getMetadataCount() { - return internalGetMetadata().getMap().size(); - } - /** - *
-     ** 
-     *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; - */ + private AnyCrawlID() {} - @java.lang.Override - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getMetadataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getMetadata() { - return getMetadataMap(); - } - /** - *
-     ** 
-     *Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
-     * 
- * - * map<string, .urlfrontier.StringList> metadata = 3; - */ - @java.lang.Override + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnyCrawlID(); + } - public java.util.Map getMetadataMap() { - return internalGetMetadata().getMap(); - } - /** - *
-     ** 
-     *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; - */ - @java.lang.Override - - public crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrDefault( - java.lang.String key, - 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; - } - /** - *
-     ** 
-     *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; - */ - @java.lang.Override - - public crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - public static final int CRAWLID_FIELD_NUMBER = 4; - private volatile java.lang.Object crawlID_; - /** - *
-     ** crawl ID *
-     * 
- * - * string crawlID = 4; - * @return The crawlID. - */ - @java.lang.Override - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } - } - /** - *
-     ** crawl ID *
-     * 
- * - * string crawlID = 4; - * @return The bytes for crawlID. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_AnyCrawlID_descriptor; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_AnyCrawlID_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.class, + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.Builder.class); + } - memoizedIsInitialized = 1; - return true; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMetadata(), - MetadataDefaultEntryHolder.defaultEntry, - 3); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, crawlID_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); - } - for (java.util.Map.Entry entry - : internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, metadata__); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, crawlID_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.URLInfo)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.URLInfo other = (crawlercommons.urlfrontier.Urlfrontier.URLInfo) obj; - - if (!getUrl() - .equals(other.getUrl())) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!internalGetMetadata().equals( - other.internalGetMetadata())) return false; - if (!getCrawlID() - .equals(other.getCrawlID())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - if (!internalGetMetadata().getMap().isEmpty()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + internalGetMetadata().hashCode(); - } - hash = (37 * hash) + CRAWLID_FIELD_NUMBER; - hash = (53 * hash) + getCrawlID().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.URLInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID other = + (crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) obj; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code urlfrontier.URLInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.URLInfo) - crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_URLInfo_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 3: - return internalGetMutableMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_URLInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.URLInfo.class, crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.URLInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - url_ = ""; - - key_ = ""; - - internalGetMutableMetadata().clear(); - crawlID_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_URLInfo_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.URLInfo getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.URLInfo build() { - crawlercommons.urlfrontier.Urlfrontier.URLInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - 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_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.URLInfo) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.URLInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.URLInfo other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance()) return this; - if (!other.getUrl().isEmpty()) { - url_ = other.url_; - onChanged(); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); - if (!other.getCrawlID().isEmpty()) { - crawlID_ = other.crawlID_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - url_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - key_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableMetadata().getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - break; - } // case 26 - case 34: { - crawlID_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object url_ = ""; - /** - *
-       ** URL *
-       * 
- * - * string url = 1; - * @return The url. - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       ** URL *
-       * 
- * - * string url = 1; - * @return The bytes for url. - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       ** URL *
-       * 
- * - * string url = 1; - * @param value The url to set. - * @return This builder for chaining. - */ - public Builder setUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - url_ = value; - onChanged(); - return this; - } - /** - *
-       ** URL *
-       * 
- * - * string url = 1; - * @return This builder for chaining. - */ - public Builder clearUrl() { - - url_ = getDefaultInstance().getUrl(); - onChanged(); - return this; - } - /** - *
-       ** URL *
-       * 
- * - * string url = 1; - * @param value The bytes for url to set. - * @return This builder for chaining. - */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - url_ = value; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       ** The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
-       *domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
-       * 
- * - * string key = 2; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       ** The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
-       *domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
-       * 
- * - * string key = 2; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       ** The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
-       *domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
-       * 
- * - * string key = 2; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       ** The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
-       *domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
-       * 
- * - * string key = 2; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       ** The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
-       *domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
-       * 
- * - * string key = 2; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { - if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); - } - return metadata_; - } - private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged();; - if (metadata_ == null) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - } - if (!metadata_.isMutable()) { - metadata_ = metadata_.copy(); - } - return metadata_; - } - - public int getMetadataCount() { - return internalGetMetadata().getMap().size(); - } - /** - *
-       ** 
-       *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; - */ - - @java.lang.Override - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getMetadataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getMetadata() { - return getMetadataMap(); - } - /** - *
-       ** 
-       *Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
-       * 
- * - * map<string, .urlfrontier.StringList> metadata = 3; - */ - @java.lang.Override - - public java.util.Map getMetadataMap() { - return internalGetMetadata().getMap(); - } - /** - *
-       ** 
-       *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; - */ - @java.lang.Override - - public crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrDefault( - java.lang.String key, - 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; - } - /** - *
-       ** 
-       *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; - */ - @java.lang.Override - - public crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearMetadata() { - internalGetMutableMetadata().getMutableMap() - .clear(); - 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 Builder removeMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMetadata().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableMetadata() { - return internalGetMutableMetadata().getMutableMap(); - } - /** - *
-       ** 
-       *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 Builder putMetadata( - java.lang.String key, - crawlercommons.urlfrontier.Urlfrontier.StringList value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - internalGetMutableMetadata().getMutableMap() - .put(key, value); - 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 Builder putAllMetadata( - java.util.Map values) { - internalGetMutableMetadata().getMutableMap() - .putAll(values); - return this; - } - - private java.lang.Object crawlID_ = ""; - /** - *
-       ** crawl ID *
-       * 
- * - * string crawlID = 4; - * @return The crawlID. - */ - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       ** crawl ID *
-       * 
- * - * string crawlID = 4; - * @return The bytes for crawlID. - */ - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       ** crawl ID *
-       * 
- * - * string crawlID = 4; - * @param value The crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlID( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crawlID_ = value; - onChanged(); - return this; - } - /** - *
-       ** crawl ID *
-       * 
- * - * string crawlID = 4; - * @return This builder for chaining. - */ - public Builder clearCrawlID() { - - crawlID_ = getDefaultInstance().getCrawlID(); - onChanged(); - return this; - } - /** - *
-       ** crawl ID *
-       * 
- * - * string crawlID = 4; - * @param value The bytes for crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlIDBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crawlID_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.URLInfo) - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - // @@protoc_insertion_point(class_scope:urlfrontier.URLInfo) - private static final crawlercommons.urlfrontier.Urlfrontier.URLInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.URLInfo(); - } + public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static crawlercommons.urlfrontier.Urlfrontier.URLInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public URLInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.URLInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - } + public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public interface KnownURLItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.KnownURLItem) - com.google.protobuf.MessageOrBuilder { + public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - * .urlfrontier.URLInfo info = 1; - * @return Whether the info field is set. - */ - boolean hasInfo(); - /** - * .urlfrontier.URLInfo info = 1; - * @return The info. - */ - crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo(); - /** - * .urlfrontier.URLInfo info = 1; - */ - crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder(); + public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - *
-     ** Expressed in seconds of UTC time since Unix epoch
-     *1970-01-01T00:00:00Z. Optional, the default value of 0 indicates
-     *that a URL should not be refetched.
-     * 
- * - * uint64 refetchable_from_date = 2; - * @return The refetchableFromDate. - */ - long getRefetchableFromDate(); - } - /** - *
-   **
-   *URL which was already known in the frontier, was returned by GetURLs() and processed by the crawler. Used for updating the information 
-   *about it in the frontier. If the date is not set, the URL will be considered done and won't be resubmitted for fetching, otherwise
-   *it will be elligible for fetching after the delay has elapsed.
-   * 
- * - * Protobuf type {@code urlfrontier.KnownURLItem} - */ - public static final class KnownURLItem extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.KnownURLItem) - KnownURLItemOrBuilder { - private static final long serialVersionUID = 0L; - // Use KnownURLItem.newBuilder() to construct. - private KnownURLItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private KnownURLItem() { - } + public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new KnownURLItem(); - } + public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @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; - } + public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_KnownURLItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.class, crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder.class); - } + public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int INFO_FIELD_NUMBER = 1; - private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_; - /** - * .urlfrontier.URLInfo info = 1; - * @return Whether the info field is set. - */ - @java.lang.Override - public boolean hasInfo() { - return info_ != null; - } - /** - * .urlfrontier.URLInfo info = 1; - * @return The info. - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo() { - return info_ == null ? crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance() : info_; - } - /** - * .urlfrontier.URLInfo info = 1; - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder() { - return getInfo(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int REFETCHABLE_FROM_DATE_FIELD_NUMBER = 2; - private long refetchableFromDate_; - /** - *
-     ** Expressed in seconds of UTC time since Unix epoch
-     *1970-01-01T00:00:00Z. Optional, the default value of 0 indicates
-     *that a URL should not be refetched.
-     * 
- * - * uint64 refetchable_from_date = 2; - * @return The refetchableFromDate. - */ - @java.lang.Override - public long getRefetchableFromDate() { - return refetchableFromDate_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static Builder newBuilder( + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (info_ != null) { - output.writeMessage(1, getInfo()); - } - if (refetchableFromDate_ != 0L) { - output.writeUInt64(2, refetchableFromDate_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code urlfrontier.AnyCrawlID} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.AnyCrawlID) + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlIDOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_AnyCrawlID_descriptor; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (info_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInfo()); - } - if (refetchableFromDate_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, refetchableFromDate_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_AnyCrawlID_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.class, + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.Builder.class); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.KnownURLItem)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.KnownURLItem other = (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) obj; - - if (hasInfo() != other.hasInfo()) return false; - if (hasInfo()) { - if (!getInfo() - .equals(other.getInfo())) return false; - } - if (getRefetchableFromDate() - != other.getRefetchableFromDate()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + // Construct using crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.newBuilder() + private Builder() {} - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasInfo()) { - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfo().hashCode(); - } - hash = (37 * hash) + REFETCHABLE_FROM_DATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRefetchableFromDate()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.KnownURLItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_AnyCrawlID_descriptor; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance(); + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID build() { + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID buildPartial() { + crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID result = + new crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID other) { + if (other == crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.AnyCrawlID) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.AnyCrawlID) + private static final crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnyCrawlID parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface URLItemOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.URLItem) + com.google.protobuf.MessageOrBuilder { + + /** + * .urlfrontier.DiscoveredURLItem discovered = 1; + * + * @return Whether the discovered field is set. + */ + boolean hasDiscovered(); + /** + * .urlfrontier.DiscoveredURLItem discovered = 1; + * + * @return The discovered. + */ + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem getDiscovered(); + /** .urlfrontier.DiscoveredURLItem discovered = 1; */ + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItemOrBuilder getDiscoveredOrBuilder(); + + /** + * .urlfrontier.KnownURLItem known = 2; + * + * @return Whether the known field is set. + */ + boolean hasKnown(); + /** + * .urlfrontier.KnownURLItem known = 2; + * + * @return The known. + */ + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem getKnown(); + /** .urlfrontier.KnownURLItem known = 2; */ + crawlercommons.urlfrontier.Urlfrontier.KnownURLItemOrBuilder getKnownOrBuilder(); + + /** + * + * + *
+         * * Identifier specified by the client, if missing, the URL is returned *
+         * 
+ * + * string ID = 3; + * + * @return The iD. + */ + java.lang.String getID(); + /** + * + * + *
+         * * Identifier specified by the client, if missing, the URL is returned *
+         * 
+ * + * string ID = 3; + * + * @return The bytes for iD. + */ + com.google.protobuf.ByteString getIDBytes(); + + public crawlercommons.urlfrontier.Urlfrontier.URLItem.ItemCase getItemCase(); } /** + * + * *
-     **
-     *URL which was already known in the frontier, was returned by GetURLs() and processed by the crawler. Used for updating the information 
-     *about it in the frontier. If the date is not set, the URL will be considered done and won't be resubmitted for fetching, otherwise
-     *it will be elligible for fetching after the delay has elapsed.
+     * * Wrapper for a KnownURLItem or DiscoveredURLItem *
      * 
* - * Protobuf type {@code urlfrontier.KnownURLItem} + * Protobuf type {@code urlfrontier.URLItem} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.KnownURLItem) - crawlercommons.urlfrontier.Urlfrontier.KnownURLItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_KnownURLItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_KnownURLItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.class, crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (infoBuilder_ == null) { - info_ = null; - } else { - info_ = null; - infoBuilder_ = null; - } - refetchableFromDate_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_KnownURLItem_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem build() { - crawlercommons.urlfrontier.Urlfrontier.KnownURLItem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - 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(); - } - result.refetchableFromDate_ = refetchableFromDate_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.KnownURLItem)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.KnownURLItem other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance()) return this; - if (other.hasInfo()) { - mergeInfo(other.getInfo()); - } - if (other.getRefetchableFromDate() != 0L) { - setRefetchableFromDate(other.getRefetchableFromDate()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getInfoFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 16: { - refetchableFromDate_ = input.readUInt64(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_; - private com.google.protobuf.SingleFieldBuilderV3< - crawlercommons.urlfrontier.Urlfrontier.URLInfo, crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder, crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder> infoBuilder_; - /** - * .urlfrontier.URLInfo info = 1; - * @return Whether the info field is set. - */ - public boolean hasInfo() { - return infoBuilder_ != null || info_ != null; - } - /** - * .urlfrontier.URLInfo info = 1; - * @return The info. - */ - public crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo() { - if (infoBuilder_ == null) { - return info_ == null ? crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance() : info_; - } else { - return infoBuilder_.getMessage(); - } - } - /** - * .urlfrontier.URLInfo info = 1; - */ - public Builder setInfo(crawlercommons.urlfrontier.Urlfrontier.URLInfo value) { - if (infoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - info_ = value; - onChanged(); - } else { - infoBuilder_.setMessage(value); - } - - return this; - } - /** - * .urlfrontier.URLInfo info = 1; - */ - public Builder setInfo( - crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder builderForValue) { - if (infoBuilder_ == null) { - info_ = builderForValue.build(); - onChanged(); - } else { - infoBuilder_.setMessage(builderForValue.build()); - } - - 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(); - } else { - info_ = value; - } - onChanged(); - } else { - infoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .urlfrontier.URLInfo info = 1; - */ - public Builder clearInfo() { - if (infoBuilder_ == null) { - info_ = null; - onChanged(); - } else { - info_ = null; - infoBuilder_ = null; - } - - return this; - } - /** - * .urlfrontier.URLInfo info = 1; - */ - public crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder getInfoBuilder() { - - onChanged(); - return getInfoFieldBuilder().getBuilder(); - } - /** - * .urlfrontier.URLInfo info = 1; - */ - public crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder() { - if (infoBuilder_ != null) { - return infoBuilder_.getMessageOrBuilder(); - } else { - return info_ == null ? - crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance() : info_; - } - } - /** - * .urlfrontier.URLInfo info = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - crawlercommons.urlfrontier.Urlfrontier.URLInfo, crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder, crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder> - getInfoFieldBuilder() { - if (infoBuilder_ == null) { - infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - crawlercommons.urlfrontier.Urlfrontier.URLInfo, crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder, crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder>( - getInfo(), - getParentForChildren(), - isClean()); - info_ = null; - } - return infoBuilder_; - } - - private long refetchableFromDate_ ; - /** - *
-       ** Expressed in seconds of UTC time since Unix epoch
-       *1970-01-01T00:00:00Z. Optional, the default value of 0 indicates
-       *that a URL should not be refetched.
-       * 
- * - * uint64 refetchable_from_date = 2; - * @return The refetchableFromDate. - */ - @java.lang.Override - public long getRefetchableFromDate() { - return refetchableFromDate_; - } - /** - *
-       ** Expressed in seconds of UTC time since Unix epoch
-       *1970-01-01T00:00:00Z. Optional, the default value of 0 indicates
-       *that a URL should not be refetched.
-       * 
- * - * uint64 refetchable_from_date = 2; - * @param value The refetchableFromDate to set. - * @return This builder for chaining. - */ - public Builder setRefetchableFromDate(long value) { - - refetchableFromDate_ = value; - onChanged(); - return this; - } - /** - *
-       ** Expressed in seconds of UTC time since Unix epoch
-       *1970-01-01T00:00:00Z. Optional, the default value of 0 indicates
-       *that a URL should not be refetched.
-       * 
- * - * uint64 refetchable_from_date = 2; - * @return This builder for chaining. - */ - public Builder clearRefetchableFromDate() { - - refetchableFromDate_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.KnownURLItem) - } + public static final class URLItem extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.URLItem) + URLItemOrBuilder { + private static final long serialVersionUID = 0L; + // Use URLItem.newBuilder() to construct. + private URLItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private URLItem() { + iD_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_URLItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.URLItem.class, + crawlercommons.urlfrontier.Urlfrontier.URLItem.Builder.class); + } + + private int itemCase_ = 0; + private java.lang.Object item_; + + public enum ItemCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DISCOVERED(1), + KNOWN(2), + ITEM_NOT_SET(0); + private final int value; + + private ItemCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ItemCase valueOf(int value) { + return forNumber(value); + } + + public static ItemCase forNumber(int value) { + switch (value) { + case 1: + return DISCOVERED; + case 2: + return KNOWN; + case 0: + return ITEM_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ItemCase getItemCase() { + return ItemCase.forNumber(itemCase_); + } + + public static final int DISCOVERED_FIELD_NUMBER = 1; + /** + * .urlfrontier.DiscoveredURLItem discovered = 1; + * + * @return Whether the discovered field is set. + */ + @java.lang.Override + public boolean hasDiscovered() { + return itemCase_ == 1; + } + /** + * .urlfrontier.DiscoveredURLItem discovered = 1; + * + * @return The discovered. + */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem getDiscovered() { + if (itemCase_ == 1) { + return (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) item_; + } + return crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.getDefaultInstance(); + } + /** .urlfrontier.DiscoveredURLItem discovered = 1; */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItemOrBuilder + getDiscoveredOrBuilder() { + if (itemCase_ == 1) { + return (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) item_; + } + return crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.getDefaultInstance(); + } + + public static final int KNOWN_FIELD_NUMBER = 2; + /** + * .urlfrontier.KnownURLItem known = 2; + * + * @return Whether the known field is set. + */ + @java.lang.Override + public boolean hasKnown() { + return itemCase_ == 2; + } + /** + * .urlfrontier.KnownURLItem known = 2; + * + * @return The known. + */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem getKnown() { + if (itemCase_ == 2) { + return (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) item_; + } + return crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance(); + } + /** .urlfrontier.KnownURLItem known = 2; */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.KnownURLItemOrBuilder getKnownOrBuilder() { + if (itemCase_ == 2) { + return (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) item_; + } + return crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance(); + } + + public static final int ID_FIELD_NUMBER = 3; + private volatile java.lang.Object iD_; + /** + * + * + *
+         * * Identifier specified by the client, if missing, the URL is returned *
+         * 
+ * + * string ID = 3; + * + * @return The iD. + */ + @java.lang.Override + public java.lang.String getID() { + java.lang.Object ref = iD_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iD_ = s; + return s; + } + } + /** + * + * + *
+         * * Identifier specified by the client, if missing, the URL is returned *
+         * 
+ * + * string ID = 3; + * + * @return The bytes for iD. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIDBytes() { + java.lang.Object ref = iD_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iD_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (itemCase_ == 1) { + output.writeMessage( + 1, (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) item_); + } + if (itemCase_ == 2) { + output.writeMessage(2, (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) item_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iD_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, iD_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (itemCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) item_); + } + if (itemCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) item_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iD_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, iD_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.URLItem)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.URLItem other = + (crawlercommons.urlfrontier.Urlfrontier.URLItem) obj; + + if (!getID().equals(other.getID())) return false; + if (!getItemCase().equals(other.getItemCase())) return false; + switch (itemCase_) { + case 1: + if (!getDiscovered().equals(other.getDiscovered())) return false; + break; + case 2: + if (!getKnown().equals(other.getKnown())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getID().hashCode(); + switch (itemCase_) { + case 1: + hash = (37 * hash) + DISCOVERED_FIELD_NUMBER; + hash = (53 * hash) + getDiscovered().hashCode(); + break; + case 2: + hash = (37 * hash) + KNOWN_FIELD_NUMBER; + hash = (53 * hash) + getKnown().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLItem parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - // @@protoc_insertion_point(class_scope:urlfrontier.KnownURLItem) - private static final crawlercommons.urlfrontier.Urlfrontier.KnownURLItem DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.KnownURLItem(); - } + public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.URLItem prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KnownURLItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * * Wrapper for a KnownURLItem or DiscoveredURLItem *
+         * 
+ * + * Protobuf type {@code urlfrontier.URLItem} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.URLItem) + crawlercommons.urlfrontier.Urlfrontier.URLItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_URLItem_descriptor; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_URLItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.URLItem.class, + crawlercommons.urlfrontier.Urlfrontier.URLItem.Builder.class); + } + + // Construct using crawlercommons.urlfrontier.Urlfrontier.URLItem.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (discoveredBuilder_ != null) { + discoveredBuilder_.clear(); + } + if (knownBuilder_ != null) { + knownBuilder_.clear(); + } + iD_ = ""; + + itemCase_ = 0; + item_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_URLItem_descriptor; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.URLItem getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.URLItem.getDefaultInstance(); + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.URLItem build() { + crawlercommons.urlfrontier.Urlfrontier.URLItem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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 (itemCase_ == 2) { + if (knownBuilder_ == null) { + result.item_ = item_; + } else { + result.item_ = knownBuilder_.build(); + } + } + result.iD_ = iD_; + result.itemCase_ = itemCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.URLItem) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.URLItem) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.URLItem other) { + if (other == crawlercommons.urlfrontier.Urlfrontier.URLItem.getDefaultInstance()) + return this; + if (!other.getID().isEmpty()) { + iD_ = other.iD_; + onChanged(); + } + switch (other.getItemCase()) { + case DISCOVERED: + { + mergeDiscovered(other.getDiscovered()); + break; + } + case KNOWN: + { + mergeKnown(other.getKnown()); + break; + } + case ITEM_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getDiscoveredFieldBuilder().getBuilder(), + extensionRegistry); + itemCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getKnownFieldBuilder().getBuilder(), extensionRegistry); + itemCase_ = 2; + break; + } // case 18 + case 26: + { + iD_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int itemCase_ = 0; + private java.lang.Object item_; + + public ItemCase getItemCase() { + return ItemCase.forNumber(itemCase_); + } + + public Builder clearItem() { + itemCase_ = 0; + item_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem, + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder, + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItemOrBuilder> + discoveredBuilder_; + /** + * .urlfrontier.DiscoveredURLItem discovered = 1; + * + * @return Whether the discovered field is set. + */ + @java.lang.Override + public boolean hasDiscovered() { + return itemCase_ == 1; + } + /** + * .urlfrontier.DiscoveredURLItem discovered = 1; + * + * @return The discovered. + */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem getDiscovered() { + if (discoveredBuilder_ == null) { + if (itemCase_ == 1) { + return (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) item_; + } + return crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem + .getDefaultInstance(); + } else { + if (itemCase_ == 1) { + return discoveredBuilder_.getMessage(); + } + return crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem + .getDefaultInstance(); + } + } + /** .urlfrontier.DiscoveredURLItem discovered = 1; */ + public Builder setDiscovered( + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem value) { + if (discoveredBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + item_ = value; + onChanged(); + } else { + discoveredBuilder_.setMessage(value); + } + itemCase_ = 1; + return this; + } + /** .urlfrontier.DiscoveredURLItem discovered = 1; */ + public Builder setDiscovered( + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder + builderForValue) { + if (discoveredBuilder_ == null) { + item_ = builderForValue.build(); + onChanged(); + } else { + discoveredBuilder_.setMessage(builderForValue.build()); + } + itemCase_ = 1; + return this; + } + /** .urlfrontier.DiscoveredURLItem discovered = 1; */ + public Builder mergeDiscovered( + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem value) { + if (discoveredBuilder_ == null) { + if (itemCase_ == 1 + && item_ + != crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem + .getDefaultInstance()) { + item_ = + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.newBuilder( + (crawlercommons.urlfrontier.Urlfrontier + .DiscoveredURLItem) + item_) + .mergeFrom(value) + .buildPartial(); + } else { + item_ = value; + } + onChanged(); + } else { + if (itemCase_ == 1) { + discoveredBuilder_.mergeFrom(value); + } else { + discoveredBuilder_.setMessage(value); + } + } + itemCase_ = 1; + return this; + } + /** .urlfrontier.DiscoveredURLItem discovered = 1; */ + public Builder clearDiscovered() { + if (discoveredBuilder_ == null) { + if (itemCase_ == 1) { + itemCase_ = 0; + item_ = null; + onChanged(); + } + } else { + if (itemCase_ == 1) { + itemCase_ = 0; + item_ = null; + } + discoveredBuilder_.clear(); + } + return this; + } + /** .urlfrontier.DiscoveredURLItem discovered = 1; */ + public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder + getDiscoveredBuilder() { + return getDiscoveredFieldBuilder().getBuilder(); + } + /** .urlfrontier.DiscoveredURLItem discovered = 1; */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItemOrBuilder + getDiscoveredOrBuilder() { + if ((itemCase_ == 1) && (discoveredBuilder_ != null)) { + return discoveredBuilder_.getMessageOrBuilder(); + } else { + if (itemCase_ == 1) { + return (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) item_; + } + return crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem + .getDefaultInstance(); + } + } + /** .urlfrontier.DiscoveredURLItem discovered = 1; */ + private com.google.protobuf.SingleFieldBuilderV3< + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem, + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder, + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItemOrBuilder> + getDiscoveredFieldBuilder() { + if (discoveredBuilder_ == null) { + if (!(itemCase_ == 1)) { + item_ = + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem + .getDefaultInstance(); + } + discoveredBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem, + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem + .Builder, + crawlercommons.urlfrontier.Urlfrontier + .DiscoveredURLItemOrBuilder>( + (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) + item_, + getParentForChildren(), + isClean()); + item_ = null; + } + itemCase_ = 1; + onChanged(); + ; + return discoveredBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem, + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder, + crawlercommons.urlfrontier.Urlfrontier.KnownURLItemOrBuilder> + knownBuilder_; + /** + * .urlfrontier.KnownURLItem known = 2; + * + * @return Whether the known field is set. + */ + @java.lang.Override + public boolean hasKnown() { + return itemCase_ == 2; + } + /** + * .urlfrontier.KnownURLItem known = 2; + * + * @return The known. + */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem getKnown() { + if (knownBuilder_ == null) { + if (itemCase_ == 2) { + return (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) item_; + } + return crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance(); + } else { + if (itemCase_ == 2) { + return knownBuilder_.getMessage(); + } + return crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance(); + } + } + /** .urlfrontier.KnownURLItem known = 2; */ + public Builder setKnown(crawlercommons.urlfrontier.Urlfrontier.KnownURLItem value) { + if (knownBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + item_ = value; + onChanged(); + } else { + knownBuilder_.setMessage(value); + } + itemCase_ = 2; + return this; + } + /** .urlfrontier.KnownURLItem known = 2; */ + public Builder setKnown( + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder builderForValue) { + if (knownBuilder_ == null) { + item_ = builderForValue.build(); + onChanged(); + } else { + knownBuilder_.setMessage(builderForValue.build()); + } + itemCase_ = 2; + return this; + } + /** .urlfrontier.KnownURLItem known = 2; */ + public Builder mergeKnown(crawlercommons.urlfrontier.Urlfrontier.KnownURLItem value) { + if (knownBuilder_ == null) { + if (itemCase_ == 2 + && item_ + != crawlercommons.urlfrontier.Urlfrontier.KnownURLItem + .getDefaultInstance()) { + item_ = + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.newBuilder( + (crawlercommons.urlfrontier.Urlfrontier + .KnownURLItem) + item_) + .mergeFrom(value) + .buildPartial(); + } else { + item_ = value; + } + onChanged(); + } else { + if (itemCase_ == 2) { + knownBuilder_.mergeFrom(value); + } else { + knownBuilder_.setMessage(value); + } + } + itemCase_ = 2; + return this; + } + /** .urlfrontier.KnownURLItem known = 2; */ + public Builder clearKnown() { + if (knownBuilder_ == null) { + if (itemCase_ == 2) { + itemCase_ = 0; + item_ = null; + onChanged(); + } + } else { + if (itemCase_ == 2) { + itemCase_ = 0; + item_ = null; + } + knownBuilder_.clear(); + } + return this; + } + /** .urlfrontier.KnownURLItem known = 2; */ + public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder getKnownBuilder() { + return getKnownFieldBuilder().getBuilder(); + } + /** .urlfrontier.KnownURLItem known = 2; */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.KnownURLItemOrBuilder + getKnownOrBuilder() { + if ((itemCase_ == 2) && (knownBuilder_ != null)) { + return knownBuilder_.getMessageOrBuilder(); + } else { + if (itemCase_ == 2) { + return (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) item_; + } + return crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance(); + } + } + /** .urlfrontier.KnownURLItem known = 2; */ + private com.google.protobuf.SingleFieldBuilderV3< + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem, + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder, + crawlercommons.urlfrontier.Urlfrontier.KnownURLItemOrBuilder> + getKnownFieldBuilder() { + if (knownBuilder_ == null) { + if (!(itemCase_ == 2)) { + item_ = + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem + .getDefaultInstance(); + } + knownBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem, + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder, + crawlercommons.urlfrontier.Urlfrontier.KnownURLItemOrBuilder>( + (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) item_, + getParentForChildren(), + isClean()); + item_ = null; + } + itemCase_ = 2; + onChanged(); + ; + return knownBuilder_; + } + + private java.lang.Object iD_ = ""; + /** + * + * + *
+             * * Identifier specified by the client, if missing, the URL is returned *
+             * 
+ * + * string ID = 3; + * + * @return The iD. + */ + public java.lang.String getID() { + java.lang.Object ref = iD_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iD_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * * Identifier specified by the client, if missing, the URL is returned *
+             * 
+ * + * string ID = 3; + * + * @return The bytes for iD. + */ + public com.google.protobuf.ByteString getIDBytes() { + java.lang.Object ref = iD_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iD_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * * Identifier specified by the client, if missing, the URL is returned *
+             * 
+ * + * string ID = 3; + * + * @param value The iD to set. + * @return This builder for chaining. + */ + public Builder setID(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + iD_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * * Identifier specified by the client, if missing, the URL is returned *
+             * 
+ * + * string ID = 3; + * + * @return This builder for chaining. + */ + public Builder clearID() { + + iD_ = getDefaultInstance().getID(); + onChanged(); + return this; + } + /** + * + * + *
+             * * Identifier specified by the client, if missing, the URL is returned *
+             * 
+ * + * string ID = 3; + * + * @param value The bytes for iD to set. + * @return This builder for chaining. + */ + public Builder setIDBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + iD_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.URLItem) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.URLItem) + private static final crawlercommons.urlfrontier.Urlfrontier.URLItem DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.URLItem(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public URLItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.URLItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AckMessageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.AckMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * * ID which had been specified by the client *
+         * 
+ * + * string ID = 1; + * + * @return The iD. + */ + java.lang.String getID(); + /** + * + * + *
+         * * ID which had been specified by the client *
+         * 
+ * + * string ID = 1; + * + * @return The bytes for iD. + */ + com.google.protobuf.ByteString getIDBytes(); + + /** + * .urlfrontier.AckMessage.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + * .urlfrontier.AckMessage.Status status = 2; + * + * @return The status. + */ + crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status getStatus(); + } + /** Protobuf type {@code urlfrontier.AckMessage} */ + public static final class AckMessage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.AckMessage) + AckMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use AckMessage.newBuilder() to construct. + private AckMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AckMessage() { + iD_ = ""; + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_AckMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.AckMessage.class, + crawlercommons.urlfrontier.Urlfrontier.AckMessage.Builder.class); + } + + /** Protobuf enum {@code urlfrontier.AckMessage.Status} */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** OK = 0; */ + OK(0), + /** SKIPPED = 1; */ + SKIPPED(1), + /** FAIL = 2; */ + FAIL(2), + UNRECOGNIZED(-1), + ; + + /** OK = 0; */ + public static final int OK_VALUE = 0; + /** SKIPPED = 1; */ + public static final int SKIPPED_VALUE = 1; + /** FAIL = 2; */ + public static final int FAIL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Status forNumber(int value) { + switch (value) { + case 0: + return OK; + case 1: + return SKIPPED; + case 2: + return FAIL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - public interface DiscoveredURLItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.DiscoveredURLItem) - com.google.protobuf.MessageOrBuilder { + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier.AckMessage.getDescriptor() + .getEnumTypes() + .get(0); + } - /** - * .urlfrontier.URLInfo info = 1; - * @return Whether the info field is set. - */ - boolean hasInfo(); - /** - * .urlfrontier.URLInfo info = 1; - * @return The info. - */ - crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo(); - /** - * .urlfrontier.URLInfo info = 1; - */ - crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder(); - } - /** - *
-   **
-   *URL discovered during the crawl, might already be known in the URL Frontier or not.
-   * 
- * - * Protobuf type {@code urlfrontier.DiscoveredURLItem} - */ - public static final class DiscoveredURLItem extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.DiscoveredURLItem) - DiscoveredURLItemOrBuilder { - private static final long serialVersionUID = 0L; - // Use DiscoveredURLItem.newBuilder() to construct. - private DiscoveredURLItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DiscoveredURLItem() { - } + private static final Status[] VALUES = values(); - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DiscoveredURLItem(); - } + public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:urlfrontier.AckMessage.Status) + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object iD_; + /** + * + * + *
+         * * ID which had been specified by the client *
+         * 
+ * + * string ID = 1; + * + * @return The iD. + */ + @java.lang.Override + public java.lang.String getID() { + java.lang.Object ref = iD_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iD_ = s; + return s; + } + } + /** + * + * + *
+         * * ID which had been specified by the client *
+         * 
+ * + * string ID = 1; + * + * @return The bytes for iD. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIDBytes() { + java.lang.Object ref = iD_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iD_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_; + /** + * .urlfrontier.AckMessage.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * .urlfrontier.AckMessage.Status status = 2; + * + * @return The status. + */ + @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_); + return result == null + ? crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iD_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iD_); + } + if (status_ + != crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.OK.getNumber()) { + output.writeEnum(2, status_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iD_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, iD_); + } + if (status_ + != crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.OK.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, status_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.AckMessage)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.AckMessage other = + (crawlercommons.urlfrontier.Urlfrontier.AckMessage) obj; + + if (!getID().equals(other.getID())) return false; + if (status_ != other.status_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getID().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @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; - } + public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_DiscoveredURLItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.class, crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder.class); - } + public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int INFO_FIELD_NUMBER = 1; - private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_; - /** - * .urlfrontier.URLInfo info = 1; - * @return Whether the info field is set. - */ - @java.lang.Override - public boolean hasInfo() { - return info_ != null; - } - /** - * .urlfrontier.URLInfo info = 1; - * @return The info. - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo() { - return info_ == null ? crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance() : info_; - } - /** - * .urlfrontier.URLInfo info = 1; - */ - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder() { - return getInfo(); - } + public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - memoizedIsInitialized = 1; - return true; - } + public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (info_ != null) { - output.writeMessage(1, getInfo()); - } - getUnknownFields().writeTo(output); - } + public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (info_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInfo()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem other = (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) obj; - - if (hasInfo() != other.hasInfo()) return false; - if (hasInfo()) { - if (!getInfo() - .equals(other.getInfo())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static crawlercommons.urlfrontier.Urlfrontier.AckMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasInfo()) { - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfo().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static Builder newBuilder( + crawlercommons.urlfrontier.Urlfrontier.AckMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     **
-     *URL discovered during the crawl, might already be known in the URL Frontier or not.
-     * 
- * - * Protobuf type {@code urlfrontier.DiscoveredURLItem} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.DiscoveredURLItem) - crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_DiscoveredURLItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_DiscoveredURLItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.class, crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (infoBuilder_ == null) { - info_ = null; - } else { - info_ = null; - infoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_DiscoveredURLItem_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem build() { - crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - 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(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.getDefaultInstance()) return this; - if (other.hasInfo()) { - mergeInfo(other.getInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getInfoFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_; - private com.google.protobuf.SingleFieldBuilderV3< - crawlercommons.urlfrontier.Urlfrontier.URLInfo, crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder, crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder> infoBuilder_; - /** - * .urlfrontier.URLInfo info = 1; - * @return Whether the info field is set. - */ - public boolean hasInfo() { - return infoBuilder_ != null || info_ != null; - } - /** - * .urlfrontier.URLInfo info = 1; - * @return The info. - */ - public crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo() { - if (infoBuilder_ == null) { - return info_ == null ? crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance() : info_; - } else { - return infoBuilder_.getMessage(); - } - } - /** - * .urlfrontier.URLInfo info = 1; - */ - public Builder setInfo(crawlercommons.urlfrontier.Urlfrontier.URLInfo value) { - if (infoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - info_ = value; - onChanged(); - } else { - infoBuilder_.setMessage(value); - } - - return this; - } - /** - * .urlfrontier.URLInfo info = 1; - */ - public Builder setInfo( - crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder builderForValue) { - if (infoBuilder_ == null) { - info_ = builderForValue.build(); - onChanged(); - } else { - infoBuilder_.setMessage(builderForValue.build()); - } - - 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(); - } else { - info_ = value; - } - onChanged(); - } else { - infoBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .urlfrontier.URLInfo info = 1; - */ - public Builder clearInfo() { - if (infoBuilder_ == null) { - info_ = null; - onChanged(); - } else { - info_ = null; - infoBuilder_ = null; - } - - return this; - } - /** - * .urlfrontier.URLInfo info = 1; - */ - public crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder getInfoBuilder() { - - onChanged(); - return getInfoFieldBuilder().getBuilder(); - } - /** - * .urlfrontier.URLInfo info = 1; - */ - public crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder() { - if (infoBuilder_ != null) { - return infoBuilder_.getMessageOrBuilder(); - } else { - return info_ == null ? - crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance() : info_; - } - } - /** - * .urlfrontier.URLInfo info = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - crawlercommons.urlfrontier.Urlfrontier.URLInfo, crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder, crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder> - getInfoFieldBuilder() { - if (infoBuilder_ == null) { - infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - crawlercommons.urlfrontier.Urlfrontier.URLInfo, crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder, crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder>( - getInfo(), - getParentForChildren(), - isClean()); - info_ = null; - } - return infoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.DiscoveredURLItem) - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - // @@protoc_insertion_point(class_scope:urlfrontier.DiscoveredURLItem) - private static final crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code urlfrontier.AckMessage} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.AckMessage) + crawlercommons.urlfrontier.Urlfrontier.AckMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_AckMessage_descriptor; + } - public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_AckMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.AckMessage.class, + crawlercommons.urlfrontier.Urlfrontier.AckMessage.Builder.class); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiscoveredURLItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // Construct using crawlercommons.urlfrontier.Urlfrontier.AckMessage.newBuilder() + private Builder() {} - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clear() { + super.clear(); + iD_ = ""; - } + status_ = 0; - public interface LogLevelParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.LogLevelParams) - com.google.protobuf.MessageOrBuilder { + return this; + } - /** - * string package = 1; - * @return The package. - */ - java.lang.String getPackage(); - /** - * string package = 1; - * @return The bytes for package. - */ - com.google.protobuf.ByteString - getPackageBytes(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_AckMessage_descriptor; + } - /** - * .urlfrontier.LogLevelParams.Level level = 2; - * @return The enum numeric value on the wire for level. - */ - int getLevelValue(); - /** - * .urlfrontier.LogLevelParams.Level level = 2; - * @return The level. - */ - crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level getLevel(); + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.AckMessage getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.AckMessage.getDefaultInstance(); + } - /** - *
-     * only for this instance
-     * 
- * - * bool local = 3; - * @return The local. - */ - boolean getLocal(); - } - /** - *
-   **
-   *Configuration of the log level for a particular package, e.g.
-   *crawlercommons.urlfrontier.service.rocksdb DEBUG
-   * 
- * - * Protobuf type {@code urlfrontier.LogLevelParams} - */ - public static final class LogLevelParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.LogLevelParams) - LogLevelParamsOrBuilder { - private static final long serialVersionUID = 0L; - // Use LogLevelParams.newBuilder() to construct. - private LogLevelParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LogLevelParams() { - package_ = ""; - level_ = 0; - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.AckMessage build() { + crawlercommons.urlfrontier.Urlfrontier.AckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.AckMessage buildPartial() { + crawlercommons.urlfrontier.Urlfrontier.AckMessage result = + new crawlercommons.urlfrontier.Urlfrontier.AckMessage(this); + result.iD_ = iD_; + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.AckMessage) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.AckMessage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.AckMessage other) { + if (other == crawlercommons.urlfrontier.Urlfrontier.AckMessage.getDefaultInstance()) + return this; + if (!other.getID().isEmpty()) { + iD_ = other.iD_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + iD_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + status_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object iD_ = ""; + /** + * + * + *
+             * * ID which had been specified by the client *
+             * 
+ * + * string ID = 1; + * + * @return The iD. + */ + public java.lang.String getID() { + java.lang.Object ref = iD_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iD_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * * ID which had been specified by the client *
+             * 
+ * + * string ID = 1; + * + * @return The bytes for iD. + */ + public com.google.protobuf.ByteString getIDBytes() { + java.lang.Object ref = iD_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iD_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * * ID which had been specified by the client *
+             * 
+ * + * string ID = 1; + * + * @param value The iD to set. + * @return This builder for chaining. + */ + public Builder setID(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LogLevelParams(); - } + iD_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * * ID which had been specified by the client *
+             * 
+ * + * string ID = 1; + * + * @return This builder for chaining. + */ + public Builder clearID() { + + iD_ = getDefaultInstance().getID(); + onChanged(); + return this; + } + /** + * + * + *
+             * * ID which had been specified by the client *
+             * 
+ * + * string ID = 1; + * + * @param value The bytes for iD to set. + * @return This builder for chaining. + */ + public Builder setIDBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + iD_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * .urlfrontier.AckMessage.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + /** + * .urlfrontier.AckMessage.Status status = 2; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * .urlfrontier.AckMessage.Status status = 2; + * + * @return The status. + */ + @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_); + return result == null + ? crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.UNRECOGNIZED + : result; + } + /** + * .urlfrontier.AckMessage.Status status = 2; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status value) { + if (value == null) { + throw new NullPointerException(); + } - @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; - } + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .urlfrontier.AckMessage.Status status = 2; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.AckMessage) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.AckMessage) + private static final crawlercommons.urlfrontier.Urlfrontier.AckMessage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.AckMessage(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.AckMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AckMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.AckMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface URLInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.URLInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * * URL *
+         * 
+ * + * string url = 1; + * + * @return The url. + */ + java.lang.String getUrl(); + /** + * + * + *
+         * * URL *
+         * 
+ * + * string url = 1; + * + * @return The bytes for url. + */ + com.google.protobuf.ByteString getUrlBytes(); + + /** + * + * + *
+         * * The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
+         * domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
+         * 
+ * + * string key = 2; + * + * @return The key. + */ + java.lang.String getKey(); + /** + * + * + *
+         * * The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
+         * domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
+         * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+         * *
+         * 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; + */ + int getMetadataCount(); + /** + * + * + *
+         * *
+         * 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; + */ + boolean containsMetadata(java.lang.String key); + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getMetadata(); + /** + * + * + *
+         * *
+         * 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; + */ + java.util.Map + getMetadataMap(); + /** + * + * + *
+         * *
+         * Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
+         * 
+ * + * map<string, .urlfrontier.StringList> metadata = 3; + */ - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_LogLevelParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.class, crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Builder.class); - } + /* nullable */ + crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrDefault( + java.lang.String key, + /* nullable */ + crawlercommons.urlfrontier.Urlfrontier.StringList defaultValue); + /** + * + * + *
+         * *
+         * Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
+         * 
+ * + * map<string, .urlfrontier.StringList> metadata = 3; + */ + crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrThrow(java.lang.String key); + + /** + * + * + *
+         * * crawl ID *
+         * 
+ * + * string crawlID = 4; + * + * @return The crawlID. + */ + java.lang.String getCrawlID(); + /** + * + * + *
+         * * crawl ID *
+         * 
+ * + * string crawlID = 4; + * + * @return The bytes for crawlID. + */ + com.google.protobuf.ByteString getCrawlIDBytes(); + } + /** Protobuf type {@code urlfrontier.URLInfo} */ + public static final class URLInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.URLInfo) + URLInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use URLInfo.newBuilder() to construct. + private URLInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private URLInfo() { + url_ = ""; + key_ = ""; + crawlID_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_URLInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.URLInfo.class, + crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder.class); + } + + public static final int URL_FIELD_NUMBER = 1; + private volatile java.lang.Object url_; + /** + * + * + *
+         * * URL *
+         * 
+ * + * string url = 1; + * + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + /** + * + * + *
+         * * URL *
+         * 
+ * + * string url = 1; + * + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_FIELD_NUMBER = 2; + private volatile java.lang.Object key_; + /** + * + * + *
+         * * The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
+         * domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
+         * 
+ * + * string key = 2; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * + * + *
+         * * The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
+         * domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
+         * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + + private static final class MetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_URLInfo_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType + .MESSAGE, + crawlercommons.urlfrontier.Urlfrontier + .StringList.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + metadata_; + + private com.google.protobuf.MapField< + java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * + * + *
+         * *
+         * 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; + */ + @java.lang.Override + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMetadata().getMap().containsKey(key); + } + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getMetadata() { + return getMetadataMap(); + } + /** + * + * + *
+         * *
+         * Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
+         * 
+ * + * map<string, .urlfrontier.StringList> metadata = 3; + */ + @java.lang.Override + public java.util.Map + getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * + * + *
+         * *
+         * 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; + */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrDefault( + java.lang.String key, + 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; + } + /** + * + * + *
+         * *
+         * 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; + */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CRAWLID_FIELD_NUMBER = 4; + private volatile java.lang.Object crawlID_; + /** + * + * + *
+         * * crawl ID *
+         * 
+ * + * string crawlID = 4; + * + * @return The crawlID. + */ + @java.lang.Override + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } + } + /** + * + * + *
+         * * crawl ID *
+         * 
+ * + * string crawlID = 4; + * + * @return The bytes for crawlID. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 3); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, crawlID_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); + } + for (java.util.Map.Entry< + java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + entry : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metadata__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, crawlID_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.URLInfo)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.URLInfo other = + (crawlercommons.urlfrontier.Urlfrontier.URLInfo) obj; + + if (!getUrl().equals(other.getUrl())) return false; + if (!getKey().equals(other.getKey())) return false; + if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!getCrawlID().equals(other.getCrawlID())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (37 * hash) + CRAWLID_FIELD_NUMBER; + hash = (53 * hash) + getCrawlID().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - /** - * Protobuf enum {@code urlfrontier.LogLevelParams.Level} - */ - public enum Level - implements com.google.protobuf.ProtocolMessageEnum { - /** - * TRACE = 0; - */ - TRACE(0), - /** - * DEBUG = 1; - */ - DEBUG(1), - /** - * INFO = 2; - */ - INFO(2), - /** - * WARN = 3; - */ - WARN(3), - /** - * ERROR = 4; - */ - ERROR(4), - UNRECOGNIZED(-1), - ; - - /** - * TRACE = 0; - */ - public static final int TRACE_VALUE = 0; - /** - * DEBUG = 1; - */ - public static final int DEBUG_VALUE = 1; - /** - * INFO = 2; - */ - public static final int INFO_VALUE = 2; - /** - * WARN = 3; - */ - public static final int WARN_VALUE = 3; - /** - * ERROR = 4; - */ - public static final int ERROR_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Level valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Level forNumber(int value) { - switch (value) { - case 0: return TRACE; - case 1: return DEBUG; - case 2: return INFO; - case 3: return WARN; - case 4: return ERROR; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Level> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Level findValueByNumber(int number) { - return Level.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.getDescriptor().getEnumTypes().get(0); - } - - private static final Level[] VALUES = values(); - - public static Level valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Level(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:urlfrontier.LogLevelParams.Level) - } + public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static final int PACKAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object package_; - /** - * string package = 1; - * @return The package. - */ - @java.lang.Override - public java.lang.String getPackage() { - java.lang.Object ref = package_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - package_ = s; - return s; - } - } - /** - * string package = 1; - * @return The bytes for package. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPackageBytes() { - java.lang.Object ref = package_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - package_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static final int LEVEL_FIELD_NUMBER = 2; - private int level_; - /** - * .urlfrontier.LogLevelParams.Level level = 2; - * @return The enum numeric value on the wire for level. - */ - @java.lang.Override public int getLevelValue() { - return level_; - } - /** - * .urlfrontier.LogLevelParams.Level level = 2; - * @return The level. - */ - @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_); - return result == null ? crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.UNRECOGNIZED : result; - } + public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int LOCAL_FIELD_NUMBER = 3; - private boolean local_; - /** - *
-     * only for this instance
-     * 
- * - * bool local = 3; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - memoizedIsInitialized = 1; - return true; - } + public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.URLInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(package_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, package_); - } - if (level_ != crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.TRACE.getNumber()) { - output.writeEnum(2, level_); - } - if (local_ != false) { - output.writeBool(3, local_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(package_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, package_); - } - if (level_ != crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.TRACE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, level_); - } - if (local_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, local_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code urlfrontier.URLInfo} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.URLInfo) + crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_URLInfo_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.LogLevelParams)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.LogLevelParams other = (crawlercommons.urlfrontier.Urlfrontier.LogLevelParams) obj; - - if (!getPackage() - .equals(other.getPackage())) return false; - if (level_ != other.level_) return false; - if (getLocal() - != other.getLocal()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 3: + return internalGetMutableMetadata(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_URLInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.URLInfo.class, + crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder.class); + } + + // Construct using crawlercommons.urlfrontier.Urlfrontier.URLInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + url_ = ""; + + key_ = ""; + + internalGetMutableMetadata().clear(); + crawlID_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_URLInfo_descriptor; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.URLInfo getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance(); + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.URLInfo build() { + crawlercommons.urlfrontier.Urlfrontier.URLInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.URLInfo) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.URLInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.URLInfo other) { + if (other == crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance()) + return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + onChanged(); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + if (!other.getCrawlID().isEmpty()) { + crawlID_ = other.crawlID_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + url_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + key_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry< + java.lang.String, + crawlercommons.urlfrontier.Urlfrontier + .StringList> + metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + break; + } // case 26 + case 34: + { + crawlID_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object url_ = ""; + /** + * + * + *
+             * * URL *
+             * 
+ * + * string url = 1; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * * URL *
+             * 
+ * + * string url = 1; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * * URL *
+             * 
+ * + * string url = 1; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PACKAGE_FIELD_NUMBER; - hash = (53 * hash) + getPackage().hashCode(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + level_; - hash = (37 * hash) + LOCAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLocal()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + url_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * * URL *
+             * 
+ * + * string url = 1; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + + url_ = getDefaultInstance().getUrl(); + onChanged(); + return this; + } + /** + * + * + *
+             * * URL *
+             * 
+ * + * string url = 1; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + url_ = value; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + /** + * + * + *
+             * * The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
+             * domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
+             * 
+ * + * string key = 2; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * * The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
+             * domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
+             * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * * The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
+             * domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
+             * 
+ * + * string key = 2; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + key_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * * The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
+             * domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
+             * 
+ * + * string key = 2; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * + * + *
+             * * The key is used to put the URLs into queues, the value can be anything set by the client but would typically be the hostname,
+             * domain name or IP or the URL. If not set, the service will use a sensible default like hostname.
+             * 
+ * + * string key = 2; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + metadata_; + + private com.google.protobuf.MapField< + java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + private com.google.protobuf.MapField< + java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + internalGetMutableMetadata() { + onChanged(); + ; + if (metadata_ == null) { + metadata_ = + com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * + * + *
+             * *
+             * 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; + */ + @java.lang.Override + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMetadata().getMap().containsKey(key); + } + /** Use {@link #getMetadataMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + getMetadata() { + return getMetadataMap(); + } + /** + * + * + *
+             * *
+             * Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
+             * 
+ * + * map<string, .urlfrontier.StringList> metadata = 3; + */ + @java.lang.Override + public java.util.Map< + java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * + * + *
+             * *
+             * 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; + */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrDefault( + java.lang.String key, + 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; + } + /** + * + * + *
+             * *
+             * 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; + */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + internalGetMutableMetadata().getMutableMap().clear(); + 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 Builder removeMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMetadata().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList> + getMutableMetadata() { + return internalGetMutableMetadata().getMutableMap(); + } + /** + * + * + *
+             * *
+             * 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 Builder putMetadata( + java.lang.String key, crawlercommons.urlfrontier.Urlfrontier.StringList value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.LogLevelParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + internalGetMutableMetadata().getMutableMap().put(key, value); + 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 Builder putAllMetadata( + java.util.Map< + java.lang.String, + crawlercommons.urlfrontier.Urlfrontier.StringList> + values) { + internalGetMutableMetadata().getMutableMap().putAll(values); + return this; + } + + private java.lang.Object crawlID_ = ""; + /** + * + * + *
+             * * crawl ID *
+             * 
+ * + * string crawlID = 4; + * + * @return The crawlID. + */ + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * * crawl ID *
+             * 
+ * + * string crawlID = 4; + * + * @return The bytes for crawlID. + */ + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * * crawl ID *
+             * 
+ * + * string crawlID = 4; + * + * @param value The crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlID(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + crawlID_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * * crawl ID *
+             * 
+ * + * string crawlID = 4; + * + * @return This builder for chaining. + */ + public Builder clearCrawlID() { + + crawlID_ = getDefaultInstance().getCrawlID(); + onChanged(); + return this; + } + /** + * + * + *
+             * * crawl ID *
+             * 
+ * + * string crawlID = 4; + * + * @param value The bytes for crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + crawlID_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.URLInfo) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.URLInfo) + private static final crawlercommons.urlfrontier.Urlfrontier.URLInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.URLInfo(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public URLInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.URLInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface KnownURLItemOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.KnownURLItem) + com.google.protobuf.MessageOrBuilder { + + /** + * .urlfrontier.URLInfo info = 1; + * + * @return Whether the info field is set. + */ + boolean hasInfo(); + /** + * .urlfrontier.URLInfo info = 1; + * + * @return The info. + */ + crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo(); + /** .urlfrontier.URLInfo info = 1; */ + crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder(); + + /** + * + * + *
+         * * Expressed in seconds of UTC time since Unix epoch
+         * 1970-01-01T00:00:00Z. Optional, the default value of 0 indicates
+         * that a URL should not be refetched.
+         * 
+ * + * uint64 refetchable_from_date = 2; + * + * @return The refetchableFromDate. + */ + long getRefetchableFromDate(); } /** - *
-     **
-     *Configuration of the log level for a particular package, e.g.
-     *crawlercommons.urlfrontier.service.rocksdb DEBUG
-     * 
* - * Protobuf type {@code urlfrontier.LogLevelParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.LogLevelParams) - crawlercommons.urlfrontier.Urlfrontier.LogLevelParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_LogLevelParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_LogLevelParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.class, crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - package_ = ""; - - level_ = 0; - - local_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_LogLevelParams_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.LogLevelParams getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.LogLevelParams build() { - crawlercommons.urlfrontier.Urlfrontier.LogLevelParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - 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_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.LogLevelParams) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.LogLevelParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.LogLevelParams other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.getDefaultInstance()) return this; - if (!other.getPackage().isEmpty()) { - package_ = other.package_; - onChanged(); - } - if (other.level_ != 0) { - setLevelValue(other.getLevelValue()); - } - if (other.getLocal() != false) { - setLocal(other.getLocal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - package_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - level_ = input.readEnum(); - - break; - } // case 16 - case 24: { - local_ = input.readBool(); - - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object package_ = ""; - /** - * string package = 1; - * @return The package. - */ - public java.lang.String getPackage() { - java.lang.Object ref = package_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - package_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string package = 1; - * @return The bytes for package. - */ - public com.google.protobuf.ByteString - getPackageBytes() { - java.lang.Object ref = package_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - package_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string package = 1; - * @param value The package to set. - * @return This builder for chaining. - */ - public Builder setPackage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - package_ = value; - onChanged(); - return this; - } - /** - * string package = 1; - * @return This builder for chaining. - */ - public Builder clearPackage() { - - package_ = getDefaultInstance().getPackage(); - onChanged(); - return this; - } - /** - * string package = 1; - * @param value The bytes for package to set. - * @return This builder for chaining. - */ - public Builder setPackageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - package_ = value; - onChanged(); - return this; - } - - private int level_ = 0; - /** - * .urlfrontier.LogLevelParams.Level level = 2; - * @return The enum numeric value on the wire for level. - */ - @java.lang.Override public int getLevelValue() { - return level_; - } - /** - * .urlfrontier.LogLevelParams.Level level = 2; - * @param value The enum numeric value on the wire for level to set. - * @return This builder for chaining. - */ - public Builder setLevelValue(int value) { - - level_ = value; - onChanged(); - return this; - } - /** - * .urlfrontier.LogLevelParams.Level level = 2; - * @return The level. - */ - @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_); - return result == null ? crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.UNRECOGNIZED : result; - } - /** - * .urlfrontier.LogLevelParams.Level level = 2; - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level value) { - if (value == null) { - throw new NullPointerException(); - } - - level_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .urlfrontier.LogLevelParams.Level level = 2; - * @return This builder for chaining. - */ - public Builder clearLevel() { - - level_ = 0; - onChanged(); - return this; - } - - private boolean local_ ; - /** - *
-       * only for this instance
-       * 
- * - * bool local = 3; - * @return The local. - */ - @java.lang.Override - public boolean getLocal() { - return local_; - } - /** - *
-       * only for this instance
-       * 
- * - * bool local = 3; - * @param value The local to set. - * @return This builder for chaining. - */ - public Builder setLocal(boolean value) { - - local_ = value; - onChanged(); - return this; - } - /** - *
-       * only for this instance
-       * 
- * - * bool local = 3; - * @return This builder for chaining. - */ - public Builder clearLocal() { - - local_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.LogLevelParams) - } - - // @@protoc_insertion_point(class_scope:urlfrontier.LogLevelParams) - private static final crawlercommons.urlfrontier.Urlfrontier.LogLevelParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.LogLevelParams(); - } - - public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogLevelParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.LogLevelParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CrawlLimitParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.CrawlLimitParams) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     ** ID for the queue *
-     * 
* - * string key = 1; - * @return The key. - */ - java.lang.String getKey(); - /** *
-     ** ID for the queue *
+     * *
+     * URL which was already known in the frontier, was returned by GetURLs() and processed by the crawler. Used for updating the information
+     * about it in the frontier. If the date is not set, the URL will be considered done and won't be resubmitted for fetching, otherwise
+     * it will be elligible for fetching after the delay has elapsed.
      * 
* - * string key = 1; - * @return The bytes for key. + * Protobuf type {@code urlfrontier.KnownURLItem} */ - com.google.protobuf.ByteString - getKeyBytes(); + public static final class KnownURLItem extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.KnownURLItem) + KnownURLItemOrBuilder { + private static final long serialVersionUID = 0L; + // Use KnownURLItem.newBuilder() to construct. + private KnownURLItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private KnownURLItem() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_KnownURLItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.class, + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder.class); + } + + public static final int INFO_FIELD_NUMBER = 1; + private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_; + /** + * .urlfrontier.URLInfo info = 1; + * + * @return Whether the info field is set. + */ + @java.lang.Override + public boolean hasInfo() { + return info_ != null; + } + /** + * .urlfrontier.URLInfo info = 1; + * + * @return The info. + */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo() { + return info_ == null + ? crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance() + : info_; + } + /** .urlfrontier.URLInfo info = 1; */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder() { + return getInfo(); + } + + public static final int REFETCHABLE_FROM_DATE_FIELD_NUMBER = 2; + private long refetchableFromDate_; + /** + * + * + *
+         * * Expressed in seconds of UTC time since Unix epoch
+         * 1970-01-01T00:00:00Z. Optional, the default value of 0 indicates
+         * that a URL should not be refetched.
+         * 
+ * + * uint64 refetchable_from_date = 2; + * + * @return The refetchableFromDate. + */ + @java.lang.Override + public long getRefetchableFromDate() { + return refetchableFromDate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (info_ != null) { + output.writeMessage(1, getInfo()); + } + if (refetchableFromDate_ != 0L) { + output.writeUInt64(2, refetchableFromDate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (info_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInfo()); + } + if (refetchableFromDate_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeUInt64Size( + 2, refetchableFromDate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.KnownURLItem)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem other = + (crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) obj; + + if (hasInfo() != other.hasInfo()) return false; + if (hasInfo()) { + if (!getInfo().equals(other.getInfo())) return false; + } + if (getRefetchableFromDate() != other.getRefetchableFromDate()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInfo()) { + hash = (37 * hash) + INFO_FIELD_NUMBER; + hash = (53 * hash) + getInfo().hashCode(); + } + hash = (37 * hash) + REFETCHABLE_FROM_DATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRefetchableFromDate()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * uint32 limit = 2; - * @return The limit. - */ - int getLimit(); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - *
-     * crawl ID
-     * 
- * - * string crawlID = 3; - * @return The crawlID. - */ - java.lang.String getCrawlID(); - /** - *
-     * crawl ID
-     * 
- * - * string crawlID = 3; - * @return The bytes for crawlID. - */ - com.google.protobuf.ByteString - getCrawlIDBytes(); - } - /** - *
-   ** Parameter message for SetCrawlLimit *
-   * 
- * - * Protobuf type {@code urlfrontier.CrawlLimitParams} - */ - public static final class CrawlLimitParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.CrawlLimitParams) - CrawlLimitParamsOrBuilder { - private static final long serialVersionUID = 0L; - // Use CrawlLimitParams.newBuilder() to construct. - private CrawlLimitParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CrawlLimitParams() { - key_ = ""; - crawlID_ = ""; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * *
+         * URL which was already known in the frontier, was returned by GetURLs() and processed by the crawler. Used for updating the information
+         * about it in the frontier. If the date is not set, the URL will be considered done and won't be resubmitted for fetching, otherwise
+         * it will be elligible for fetching after the delay has elapsed.
+         * 
+ * + * Protobuf type {@code urlfrontier.KnownURLItem} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.KnownURLItem) + crawlercommons.urlfrontier.Urlfrontier.KnownURLItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_KnownURLItem_descriptor; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CrawlLimitParams(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_KnownURLItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.class, + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder.class); + } + + // Construct using crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (infoBuilder_ == null) { + info_ = null; + } else { + info_ = null; + infoBuilder_ = null; + } + refetchableFromDate_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_KnownURLItem_descriptor; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance(); + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem build() { + crawlercommons.urlfrontier.Urlfrontier.KnownURLItem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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(); + } + result.refetchableFromDate_ = refetchableFromDate_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.KnownURLItem) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.KnownURLItem other) { + if (other + == crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.getDefaultInstance()) + return this; + if (other.hasInfo()) { + mergeInfo(other.getInfo()); + } + if (other.getRefetchableFromDate() != 0L) { + setRefetchableFromDate(other.getRefetchableFromDate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getInfoFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 16: + { + refetchableFromDate_ = input.readUInt64(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_; + private com.google.protobuf.SingleFieldBuilderV3< + crawlercommons.urlfrontier.Urlfrontier.URLInfo, + crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder, + crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder> + infoBuilder_; + /** + * .urlfrontier.URLInfo info = 1; + * + * @return Whether the info field is set. + */ + public boolean hasInfo() { + return infoBuilder_ != null || info_ != null; + } + /** + * .urlfrontier.URLInfo info = 1; + * + * @return The info. + */ + public crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo() { + if (infoBuilder_ == null) { + return info_ == null + ? crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance() + : info_; + } else { + return infoBuilder_.getMessage(); + } + } + /** .urlfrontier.URLInfo info = 1; */ + public Builder setInfo(crawlercommons.urlfrontier.Urlfrontier.URLInfo value) { + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + info_ = value; + onChanged(); + } else { + infoBuilder_.setMessage(value); + } - @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; - } + return this; + } + /** .urlfrontier.URLInfo info = 1; */ + public Builder setInfo( + crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder builderForValue) { + if (infoBuilder_ == null) { + info_ = builderForValue.build(); + onChanged(); + } else { + infoBuilder_.setMessage(builderForValue.build()); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_CrawlLimitParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.class, crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.Builder.class); - } + 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(); + } else { + info_ = value; + } + onChanged(); + } else { + infoBuilder_.mergeFrom(value); + } - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - *
-     ** ID for the queue *
-     * 
- * - * string key = 1; - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } + return this; + } + /** .urlfrontier.URLInfo info = 1; */ + public Builder clearInfo() { + if (infoBuilder_ == null) { + info_ = null; + onChanged(); + } else { + info_ = null; + infoBuilder_ = null; + } + + return this; + } + /** .urlfrontier.URLInfo info = 1; */ + public crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder getInfoBuilder() { + + onChanged(); + return getInfoFieldBuilder().getBuilder(); + } + /** .urlfrontier.URLInfo info = 1; */ + public crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder() { + if (infoBuilder_ != null) { + return infoBuilder_.getMessageOrBuilder(); + } else { + return info_ == null + ? crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance() + : info_; + } + } + /** .urlfrontier.URLInfo info = 1; */ + private com.google.protobuf.SingleFieldBuilderV3< + crawlercommons.urlfrontier.Urlfrontier.URLInfo, + crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder, + crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder> + getInfoFieldBuilder() { + if (infoBuilder_ == null) { + infoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + crawlercommons.urlfrontier.Urlfrontier.URLInfo, + crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder, + crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder>( + getInfo(), getParentForChildren(), isClean()); + info_ = null; + } + return infoBuilder_; + } + + private long refetchableFromDate_; + /** + * + * + *
+             * * Expressed in seconds of UTC time since Unix epoch
+             * 1970-01-01T00:00:00Z. Optional, the default value of 0 indicates
+             * that a URL should not be refetched.
+             * 
+ * + * uint64 refetchable_from_date = 2; + * + * @return The refetchableFromDate. + */ + @java.lang.Override + public long getRefetchableFromDate() { + return refetchableFromDate_; + } + /** + * + * + *
+             * * Expressed in seconds of UTC time since Unix epoch
+             * 1970-01-01T00:00:00Z. Optional, the default value of 0 indicates
+             * that a URL should not be refetched.
+             * 
+ * + * uint64 refetchable_from_date = 2; + * + * @param value The refetchableFromDate to set. + * @return This builder for chaining. + */ + public Builder setRefetchableFromDate(long value) { + + refetchableFromDate_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * * Expressed in seconds of UTC time since Unix epoch
+             * 1970-01-01T00:00:00Z. Optional, the default value of 0 indicates
+             * that a URL should not be refetched.
+             * 
+ * + * uint64 refetchable_from_date = 2; + * + * @return This builder for chaining. + */ + public Builder clearRefetchableFromDate() { + + refetchableFromDate_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.KnownURLItem) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.KnownURLItem) + private static final crawlercommons.urlfrontier.Urlfrontier.KnownURLItem DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.KnownURLItem(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KnownURLItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DiscoveredURLItemOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.DiscoveredURLItem) + com.google.protobuf.MessageOrBuilder { + + /** + * .urlfrontier.URLInfo info = 1; + * + * @return Whether the info field is set. + */ + boolean hasInfo(); + /** + * .urlfrontier.URLInfo info = 1; + * + * @return The info. + */ + crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo(); + /** .urlfrontier.URLInfo info = 1; */ + crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder(); } /** + * + * *
-     ** ID for the queue *
+     * *
+     * URL discovered during the crawl, might already be known in the URL Frontier or not.
      * 
* - * string key = 1; - * @return The bytes for key. + * Protobuf type {@code urlfrontier.DiscoveredURLItem} */ - @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final class DiscoveredURLItem extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.DiscoveredURLItem) + DiscoveredURLItemOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiscoveredURLItem.newBuilder() to construct. + private DiscoveredURLItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiscoveredURLItem() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_DiscoveredURLItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.class, + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder.class); + } + + public static final int INFO_FIELD_NUMBER = 1; + private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_; + /** + * .urlfrontier.URLInfo info = 1; + * + * @return Whether the info field is set. + */ + @java.lang.Override + public boolean hasInfo() { + return info_ != null; + } + /** + * .urlfrontier.URLInfo info = 1; + * + * @return The info. + */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo() { + return info_ == null + ? crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance() + : info_; + } + /** .urlfrontier.URLInfo info = 1; */ + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder() { + return getInfo(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (info_ != null) { + output.writeMessage(1, getInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (info_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInfo()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem other = + (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) obj; - public static final int LIMIT_FIELD_NUMBER = 2; - private int limit_; - /** - * uint32 limit = 2; - * @return The limit. - */ - @java.lang.Override - public int getLimit() { - return limit_; - } + if (hasInfo() != other.hasInfo()) return false; + if (hasInfo()) { + if (!getInfo().equals(other.getInfo())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static final int CRAWLID_FIELD_NUMBER = 3; - private volatile java.lang.Object crawlID_; - /** - *
-     * crawl ID
-     * 
- * - * string crawlID = 3; - * @return The crawlID. - */ - @java.lang.Override - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInfo()) { + hash = (37 * hash) + INFO_FIELD_NUMBER; + hash = (53 * hash) + getInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * *
+         * URL discovered during the crawl, might already be known in the URL Frontier or not.
+         * 
+ * + * Protobuf type {@code urlfrontier.DiscoveredURLItem} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.DiscoveredURLItem) + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_DiscoveredURLItem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_DiscoveredURLItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.class, + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder + .class); + } + + // Construct using crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (infoBuilder_ == null) { + info_ = null; + } else { + info_ = null; + infoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_DiscoveredURLItem_descriptor; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem + getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem + .getDefaultInstance(); + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem build() { + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) { + return mergeFrom( + (crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem other) { + if (other + == crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem + .getDefaultInstance()) return this; + if (other.hasInfo()) { + mergeInfo(other.getInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getInfoFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_; + private com.google.protobuf.SingleFieldBuilderV3< + crawlercommons.urlfrontier.Urlfrontier.URLInfo, + crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder, + crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder> + infoBuilder_; + /** + * .urlfrontier.URLInfo info = 1; + * + * @return Whether the info field is set. + */ + public boolean hasInfo() { + return infoBuilder_ != null || info_ != null; + } + /** + * .urlfrontier.URLInfo info = 1; + * + * @return The info. + */ + public crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo() { + if (infoBuilder_ == null) { + return info_ == null + ? crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance() + : info_; + } else { + return infoBuilder_.getMessage(); + } + } + /** .urlfrontier.URLInfo info = 1; */ + public Builder setInfo(crawlercommons.urlfrontier.Urlfrontier.URLInfo value) { + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + info_ = value; + onChanged(); + } else { + infoBuilder_.setMessage(value); + } + + return this; + } + /** .urlfrontier.URLInfo info = 1; */ + public Builder setInfo( + crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder builderForValue) { + if (infoBuilder_ == null) { + info_ = builderForValue.build(); + onChanged(); + } else { + infoBuilder_.setMessage(builderForValue.build()); + } + + 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(); + } else { + info_ = value; + } + onChanged(); + } else { + infoBuilder_.mergeFrom(value); + } + + return this; + } + /** .urlfrontier.URLInfo info = 1; */ + public Builder clearInfo() { + if (infoBuilder_ == null) { + info_ = null; + onChanged(); + } else { + info_ = null; + infoBuilder_ = null; + } + + return this; + } + /** .urlfrontier.URLInfo info = 1; */ + public crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder getInfoBuilder() { + + onChanged(); + return getInfoFieldBuilder().getBuilder(); + } + /** .urlfrontier.URLInfo info = 1; */ + public crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder() { + if (infoBuilder_ != null) { + return infoBuilder_.getMessageOrBuilder(); + } else { + return info_ == null + ? crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance() + : info_; + } + } + /** .urlfrontier.URLInfo info = 1; */ + private com.google.protobuf.SingleFieldBuilderV3< + crawlercommons.urlfrontier.Urlfrontier.URLInfo, + crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder, + crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder> + getInfoFieldBuilder() { + if (infoBuilder_ == null) { + infoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + crawlercommons.urlfrontier.Urlfrontier.URLInfo, + crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder, + crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder>( + getInfo(), getParentForChildren(), isClean()); + info_ = null; + } + return infoBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.DiscoveredURLItem) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.DiscoveredURLItem) + private static final crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoveredURLItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LogLevelParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.LogLevelParams) + com.google.protobuf.MessageOrBuilder { + + /** + * string package = 1; + * + * @return The package. + */ + java.lang.String getPackage(); + /** + * string package = 1; + * + * @return The bytes for package. + */ + com.google.protobuf.ByteString getPackageBytes(); + + /** + * .urlfrontier.LogLevelParams.Level level = 2; + * + * @return The enum numeric value on the wire for level. + */ + int getLevelValue(); + /** + * .urlfrontier.LogLevelParams.Level level = 2; + * + * @return The level. + */ + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level getLevel(); + + /** + * + * + *
+         * only for this instance
+         * 
+ * + * bool local = 3; + * + * @return The local. + */ + boolean getLocal(); } /** + * + * *
-     * crawl ID
+     * *
+     * Configuration of the log level for a particular package, e.g.
+     * crawlercommons.urlfrontier.service.rocksdb DEBUG
      * 
* - * string crawlID = 3; - * @return The bytes for crawlID. + * Protobuf type {@code urlfrontier.LogLevelParams} */ - @java.lang.Override - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final class LogLevelParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.LogLevelParams) + LogLevelParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use LogLevelParams.newBuilder() to construct. + private LogLevelParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LogLevelParams() { + package_ = ""; + level_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_LogLevelParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.class, + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Builder.class); + } + + /** Protobuf enum {@code urlfrontier.LogLevelParams.Level} */ + public enum Level implements com.google.protobuf.ProtocolMessageEnum { + /** TRACE = 0; */ + TRACE(0), + /** DEBUG = 1; */ + DEBUG(1), + /** INFO = 2; */ + INFO(2), + /** WARN = 3; */ + WARN(3), + /** ERROR = 4; */ + ERROR(4), + UNRECOGNIZED(-1), + ; + + /** TRACE = 0; */ + public static final int TRACE_VALUE = 0; + /** DEBUG = 1; */ + public static final int DEBUG_VALUE = 1; + /** INFO = 2; */ + public static final int INFO_VALUE = 2; + /** WARN = 3; */ + public static final int WARN_VALUE = 3; + /** ERROR = 4; */ + public static final int ERROR_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Level valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Level forNumber(int value) { + switch (value) { + case 0: + return TRACE; + case 1: + return DEBUG; + case 2: + return INFO; + case 3: + return WARN; + case 4: + return ERROR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Level findValueByNumber(int number) { + return Level.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - memoizedIsInitialized = 1; - return true; - } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.getDescriptor() + .getEnumTypes() + .get(0); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (limit_ != 0) { - output.writeUInt32(2, limit_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, crawlID_); - } - getUnknownFields().writeTo(output); - } + private static final Level[] VALUES = values(); - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, limit_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, crawlID_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static Level valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Level(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:urlfrontier.LogLevelParams.Level) + } + + public static final int PACKAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object package_; + /** + * string package = 1; + * + * @return The package. + */ + @java.lang.Override + public java.lang.String getPackage() { + java.lang.Object ref = package_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + package_ = s; + return s; + } + } + /** + * string package = 1; + * + * @return The bytes for package. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPackageBytes() { + java.lang.Object ref = package_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + package_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LEVEL_FIELD_NUMBER = 2; + private int level_; + /** + * .urlfrontier.LogLevelParams.Level level = 2; + * + * @return The enum numeric value on the wire for level. + */ + @java.lang.Override + public int getLevelValue() { + return level_; + } + /** + * .urlfrontier.LogLevelParams.Level level = 2; + * + * @return The level. + */ + @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_); + return result == null + ? crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.UNRECOGNIZED + : result; + } + + public static final int LOCAL_FIELD_NUMBER = 3; + private boolean local_; + /** + * + * + *
+         * only for this instance
+         * 
+ * + * bool local = 3; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(package_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, package_); + } + if (level_ + != crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.TRACE + .getNumber()) { + output.writeEnum(2, level_); + } + if (local_ != false) { + output.writeBool(3, local_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(package_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, package_); + } + if (level_ + != crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.TRACE + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, level_); + } + if (local_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, local_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.LogLevelParams)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams other = + (crawlercommons.urlfrontier.Urlfrontier.LogLevelParams) obj; + + if (!getPackage().equals(other.getPackage())) return false; + if (level_ != other.level_) return false; + if (getLocal() != other.getLocal()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PACKAGE_FIELD_NUMBER; + hash = (53 * hash) + getPackage().hashCode(); + hash = (37 * hash) + LEVEL_FIELD_NUMBER; + hash = (53 * hash) + level_; + hash = (37 * hash) + LOCAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocal()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams other = (crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (getLimit() - != other.getLimit()) return false; - if (!getCrawlID() - .equals(other.getCrawlID())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + CRAWLID_FIELD_NUMBER; - hash = (53 * hash) + getCrawlID().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * *
+         * Configuration of the log level for a particular package, e.g.
+         * crawlercommons.urlfrontier.service.rocksdb DEBUG
+         * 
+ * + * Protobuf type {@code urlfrontier.LogLevelParams} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.LogLevelParams) + crawlercommons.urlfrontier.Urlfrontier.LogLevelParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_LogLevelParams_descriptor; + } - public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_LogLevelParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.class, + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Builder + .class); + } + + // Construct using crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + package_ = ""; + + level_ = 0; + + local_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_LogLevelParams_descriptor; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.LogLevelParams + getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.getDefaultInstance(); + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.LogLevelParams build() { + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.LogLevelParams) { + return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.LogLevelParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.LogLevelParams other) { + if (other + == crawlercommons.urlfrontier.Urlfrontier.LogLevelParams + .getDefaultInstance()) return this; + if (!other.getPackage().isEmpty()) { + package_ = other.package_; + onChanged(); + } + if (other.level_ != 0) { + setLevelValue(other.getLevelValue()); + } + if (other.getLocal() != false) { + setLocal(other.getLocal()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + package_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + level_ = input.readEnum(); + + break; + } // case 16 + case 24: + { + local_ = input.readBool(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object package_ = ""; + /** + * string package = 1; + * + * @return The package. + */ + public java.lang.String getPackage() { + java.lang.Object ref = package_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + package_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string package = 1; + * + * @return The bytes for package. + */ + public com.google.protobuf.ByteString getPackageBytes() { + java.lang.Object ref = package_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + package_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string package = 1; + * + * @param value The package to set. + * @return This builder for chaining. + */ + public Builder setPackage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + package_ = value; + onChanged(); + return this; + } + /** + * string package = 1; + * + * @return This builder for chaining. + */ + public Builder clearPackage() { + + package_ = getDefaultInstance().getPackage(); + onChanged(); + return this; + } + /** + * string package = 1; + * + * @param value The bytes for package to set. + * @return This builder for chaining. + */ + public Builder setPackageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + package_ = value; + onChanged(); + return this; + } + + private int level_ = 0; + /** + * .urlfrontier.LogLevelParams.Level level = 2; + * + * @return The enum numeric value on the wire for level. + */ + @java.lang.Override + public int getLevelValue() { + return level_; + } + /** + * .urlfrontier.LogLevelParams.Level level = 2; + * + * @param value The enum numeric value on the wire for level to set. + * @return This builder for chaining. + */ + public Builder setLevelValue(int value) { + + level_ = value; + onChanged(); + return this; + } + /** + * .urlfrontier.LogLevelParams.Level level = 2; + * + * @return The level. + */ + @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_); + return result == null + ? crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.UNRECOGNIZED + : result; + } + /** + * .urlfrontier.LogLevelParams.Level level = 2; + * + * @param value The level to set. + * @return This builder for chaining. + */ + public Builder setLevel( + crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + level_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .urlfrontier.LogLevelParams.Level level = 2; + * + * @return This builder for chaining. + */ + public Builder clearLevel() { + + level_ = 0; + onChanged(); + return this; + } + + private boolean local_; + /** + * + * + *
+             * only for this instance
+             * 
+ * + * bool local = 3; + * + * @return The local. + */ + @java.lang.Override + public boolean getLocal() { + return local_; + } + /** + * + * + *
+             * only for this instance
+             * 
+ * + * bool local = 3; + * + * @param value The local to set. + * @return This builder for chaining. + */ + public Builder setLocal(boolean value) { + + local_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * only for this instance
+             * 
+ * + * bool local = 3; + * + * @return This builder for chaining. + */ + public Builder clearLocal() { + + local_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.LogLevelParams) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.LogLevelParams) + private static final crawlercommons.urlfrontier.Urlfrontier.LogLevelParams DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.LogLevelParams(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogLevelParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.LogLevelParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CrawlLimitParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.CrawlLimitParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * uint32 limit = 2; + * + * @return The limit. + */ + int getLimit(); + + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 3; + * + * @return The crawlID. + */ + java.lang.String getCrawlID(); + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 3; + * + * @return The bytes for crawlID. + */ + com.google.protobuf.ByteString getCrawlIDBytes(); } /** + * + * *
-     ** Parameter message for SetCrawlLimit *
+     * * Parameter message for SetCrawlLimit *
      * 
* * Protobuf type {@code urlfrontier.CrawlLimitParams} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.CrawlLimitParams) - crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_CrawlLimitParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_CrawlLimitParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.class, crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - limit_ = 0; - - crawlID_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_CrawlLimitParams_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams build() { - crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - 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_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getCrawlID().isEmpty()) { - crawlID_ = other.crawlID_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - key_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - limit_ = input.readUInt32(); - - break; - } // case 16 - case 26: { - crawlID_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private int limit_ ; - /** - * uint32 limit = 2; - * @return The limit. - */ - @java.lang.Override - public int getLimit() { - return limit_; - } - /** - * uint32 limit = 2; - * @param value The limit to set. - * @return This builder for chaining. - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - * uint32 limit = 2; - * @return This builder for chaining. - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object crawlID_ = ""; - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 3; - * @return The crawlID. - */ - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 3; - * @return The bytes for crawlID. - */ - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 3; - * @param value The crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlID( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crawlID_ = value; - onChanged(); - return this; - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 3; - * @return This builder for chaining. - */ - public Builder clearCrawlID() { - - crawlID_ = getDefaultInstance().getCrawlID(); - onChanged(); - return this; - } - /** - *
-       * crawl ID
-       * 
- * - * string crawlID = 3; - * @param value The bytes for crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlIDBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crawlID_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.CrawlLimitParams) - } + public static final class CrawlLimitParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.CrawlLimitParams) + CrawlLimitParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use CrawlLimitParams.newBuilder() to construct. + private CrawlLimitParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CrawlLimitParams() { + key_ = ""; + crawlID_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_CrawlLimitParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.class, + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + * uint32 limit = 2; + * + * @return The limit. + */ + @java.lang.Override + public int getLimit() { + return limit_; + } + + public static final int CRAWLID_FIELD_NUMBER = 3; + private volatile java.lang.Object crawlID_; + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 3; + * + * @return The crawlID. + */ + @java.lang.Override + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } + } + /** + * + * + *
+         * crawl ID
+         * 
+ * + * string crawlID = 3; + * + * @return The bytes for crawlID. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, crawlID_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, limit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, crawlID_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams other = + (crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams) obj; + + if (!getKey().equals(other.getKey())) return false; + if (getLimit() != other.getLimit()) return false; + if (!getCrawlID().equals(other.getCrawlID())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + CRAWLID_FIELD_NUMBER; + hash = (53 * hash) + getCrawlID().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - // @@protoc_insertion_point(class_scope:urlfrontier.CrawlLimitParams) - private static final crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static Builder newBuilder( + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CrawlLimitParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * * Parameter message for SetCrawlLimit *
+         * 
+ * + * Protobuf type {@code urlfrontier.CrawlLimitParams} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.CrawlLimitParams) + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_CrawlLimitParams_descriptor; + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_CrawlLimitParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.class, + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.Builder + .class); + } + + // Construct using crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.newBuilder() + private Builder() {} - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + limit_ = 0; + + crawlID_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_CrawlLimitParams_descriptor; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams + getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams.getDefaultInstance(); + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams build() { + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams) { + return mergeFrom( + (crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams other) { + if (other + == crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams + .getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getCrawlID().isEmpty()) { + crawlID_ = other.crawlID_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + key_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + limit_ = input.readUInt32(); + + break; + } // case 16 + case 26: + { + crawlID_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object key_ = ""; + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 1; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - public interface URLStatusRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:urlfrontier.URLStatusRequest) - com.google.protobuf.MessageOrBuilder { + key_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 1; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private int limit_; + /** + * uint32 limit = 2; + * + * @return The limit. + */ + @java.lang.Override + public int getLimit() { + return limit_; + } + /** + * uint32 limit = 2; + * + * @param value The limit to set. + * @return This builder for chaining. + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + * uint32 limit = 2; + * + * @return This builder for chaining. + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object crawlID_ = ""; + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 3; + * + * @return The crawlID. + */ + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 3; + * + * @return The bytes for crawlID. + */ + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 3; + * + * @param value The crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlID(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - /** - *
-     ** URL for which we request info 
-     * 
- * - * string url = 1; - * @return The url. - */ - java.lang.String getUrl(); - /** - *
-     ** URL for which we request info 
-     * 
- * - * string url = 1; - * @return The bytes for url. - */ - com.google.protobuf.ByteString - getUrlBytes(); + crawlID_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 3; + * + * @return This builder for chaining. + */ + public Builder clearCrawlID() { + + crawlID_ = getDefaultInstance().getCrawlID(); + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID
+             * 
+ * + * string crawlID = 3; + * + * @param value The bytes for crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + crawlID_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.CrawlLimitParams) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.CrawlLimitParams) + private static final crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CrawlLimitParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface URLStatusRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:urlfrontier.URLStatusRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * * URL for which we request info
+         * 
+ * + * string url = 1; + * + * @return The url. + */ + java.lang.String getUrl(); + /** + * + * + *
+         * * URL for which we request info
+         * 
+ * + * string url = 1; + * + * @return The bytes for url. + */ + com.google.protobuf.ByteString getUrlBytes(); + + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 2; + * + * @return The key. + */ + java.lang.String getKey(); + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 3; + * + * @return The crawlID. + */ + java.lang.String getCrawlID(); + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 3; + * + * @return The bytes for crawlID. + */ + com.google.protobuf.ByteString getCrawlIDBytes(); + } + /** Protobuf type {@code urlfrontier.URLStatusRequest} */ + public static final class URLStatusRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:urlfrontier.URLStatusRequest) + URLStatusRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use URLStatusRequest.newBuilder() to construct. + private URLStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private URLStatusRequest() { + url_ = ""; + key_ = ""; + crawlID_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_URLStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.class, + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.Builder.class); + } + + public static final int URL_FIELD_NUMBER = 1; + private volatile java.lang.Object url_; + /** + * + * + *
+         * * URL for which we request info
+         * 
+ * + * string url = 1; + * + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + /** + * + * + *
+         * * URL for which we request info
+         * 
+ * + * string url = 1; + * + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_FIELD_NUMBER = 2; + private volatile java.lang.Object key_; + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 2; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + /** + * + * + *
+         * * ID for the queue *
+         * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CRAWLID_FIELD_NUMBER = 3; + private volatile java.lang.Object crawlID_; + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 3; + * + * @return The crawlID. + */ + @java.lang.Override + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } + } + /** + * + * + *
+         * crawl ID - empty string for default
+         * 
+ * + * string crawlID = 3; + * + * @return The bytes for crawlID. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, crawlID_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, crawlID_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest)) { + return super.equals(obj); + } + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest other = + (crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest) obj; + + if (!getUrl().equals(other.getUrl())) return false; + if (!getKey().equals(other.getKey())) return false; + if (!getCrawlID().equals(other.getCrawlID())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + CRAWLID_FIELD_NUMBER; + hash = (53 * hash) + getCrawlID().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - *
-     ** ID for the queue *
-     * 
- * - * string key = 2; - * @return The key. - */ - java.lang.String getKey(); - /** - *
-     ** ID for the queue *
-     * 
- * - * string key = 2; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); + public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 3; - * @return The crawlID. - */ - java.lang.String getCrawlID(); - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 3; - * @return The bytes for crawlID. - */ - com.google.protobuf.ByteString - getCrawlIDBytes(); - } - /** - * Protobuf type {@code urlfrontier.URLStatusRequest} - */ - public static final class URLStatusRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:urlfrontier.URLStatusRequest) - URLStatusRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use URLStatusRequest.newBuilder() to construct. - private URLStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private URLStatusRequest() { - url_ = ""; - key_ = ""; - crawlID_ = ""; - } + public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new URLStatusRequest(); - } + public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @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; - } + public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_URLStatusRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.class, crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.Builder.class); - } + public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int URL_FIELD_NUMBER = 1; - private volatile java.lang.Object url_; - /** - *
-     ** URL for which we request info 
-     * 
- * - * string url = 1; - * @return The url. - */ - @java.lang.Override - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } - } - /** - *
-     ** URL for which we request info 
-     * 
- * - * string url = 1; - * @return The bytes for url. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - *
-     ** ID for the queue *
-     * 
- * - * string key = 2; - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-     ** ID for the queue *
-     * 
- * - * string key = 2; - * @return The bytes for key. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static final int CRAWLID_FIELD_NUMBER = 3; - private volatile java.lang.Object crawlID_; - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 3; - * @return The crawlID. - */ - @java.lang.Override - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } - } - /** - *
-     * crawl ID - empty string for default
-     * 
- * - * string crawlID = 3; - * @return The bytes for crawlID. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static Builder newBuilder( + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code urlfrontier.URLStatusRequest} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:urlfrontier.URLStatusRequest) + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_URLStatusRequest_descriptor; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, crawlID_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_URLStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.class, + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.Builder + .class); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crawlID_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, crawlID_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + // Construct using crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.newBuilder() + private Builder() {} - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest)) { - return super.equals(obj); - } - crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest other = (crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest) obj; - - if (!getUrl() - .equals(other.getUrl())) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!getCrawlID() - .equals(other.getCrawlID())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + CRAWLID_FIELD_NUMBER; - hash = (53 * hash) + getCrawlID().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder clear() { + super.clear(); + url_ = ""; - public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + key_ = ""; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + crawlID_ = ""; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code urlfrontier.URLStatusRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:urlfrontier.URLStatusRequest) - crawlercommons.urlfrontier.Urlfrontier.URLStatusRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_URLStatusRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_URLStatusRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.class, crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.Builder.class); - } - - // Construct using crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - url_ = ""; - - key_ = ""; - - crawlID_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier.internal_static_urlfrontier_URLStatusRequest_descriptor; - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.getDefaultInstance(); - } - - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest build() { - crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - 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_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest) { - return mergeFrom((crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest other) { - if (other == crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.getDefaultInstance()) return this; - if (!other.getUrl().isEmpty()) { - url_ = other.url_; - onChanged(); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getCrawlID().isEmpty()) { - crawlID_ = other.crawlID_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - url_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - key_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - crawlID_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object url_ = ""; - /** - *
-       ** URL for which we request info 
-       * 
- * - * string url = 1; - * @return The url. - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       ** URL for which we request info 
-       * 
- * - * string url = 1; - * @return The bytes for url. - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       ** URL for which we request info 
-       * 
- * - * string url = 1; - * @param value The url to set. - * @return This builder for chaining. - */ - public Builder setUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - url_ = value; - onChanged(); - return this; - } - /** - *
-       ** URL for which we request info 
-       * 
- * - * string url = 1; - * @return This builder for chaining. - */ - public Builder clearUrl() { - - url_ = getDefaultInstance().getUrl(); - onChanged(); - return this; - } - /** - *
-       ** URL for which we request info 
-       * 
- * - * string url = 1; - * @param value The bytes for url to set. - * @return This builder for chaining. - */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - url_ = value; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 2; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 2; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 2; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 2; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       ** ID for the queue *
-       * 
- * - * string key = 2; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object crawlID_ = ""; - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 3; - * @return The crawlID. - */ - public java.lang.String getCrawlID() { - java.lang.Object ref = crawlID_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crawlID_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 3; - * @return The bytes for crawlID. - */ - public com.google.protobuf.ByteString - getCrawlIDBytes() { - java.lang.Object ref = crawlID_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - crawlID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 3; - * @param value The crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlID( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crawlID_ = value; - onChanged(); - return this; - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 3; - * @return This builder for chaining. - */ - public Builder clearCrawlID() { - - crawlID_ = getDefaultInstance().getCrawlID(); - onChanged(); - return this; - } - /** - *
-       * crawl ID - empty string for default
-       * 
- * - * string crawlID = 3; - * @param value The bytes for crawlID to set. - * @return This builder for chaining. - */ - public Builder setCrawlIDBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crawlID_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:urlfrontier.URLStatusRequest) - } + return this; + } - // @@protoc_insertion_point(class_scope:urlfrontier.URLStatusRequest) - private static final crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return crawlercommons.urlfrontier.Urlfrontier + .internal_static_urlfrontier_URLStatusRequest_descriptor; + } - public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest + getDefaultInstanceForType() { + return crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.getDefaultInstance(); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public URLStatusRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest build() { + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + 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_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest) { + return mergeFrom( + (crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest other) { + if (other + == crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest + .getDefaultInstance()) return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + onChanged(); + } + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getCrawlID().isEmpty()) { + crawlID_ = other.crawlID_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + url_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + key_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + crawlID_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object url_ = ""; + /** + * + * + *
+             * * URL for which we request info
+             * 
+ * + * string url = 1; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * * URL for which we request info
+             * 
+ * + * string url = 1; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * * URL for which we request info
+             * 
+ * + * string url = 1; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + url_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * * URL for which we request info
+             * 
+ * + * string url = 1; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + + url_ = getDefaultInstance().getUrl(); + onChanged(); + return this; + } + /** + * + * + *
+             * * URL for which we request info
+             * 
+ * + * string url = 1; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + url_ = value; + onChanged(); + return this; + } + + private java.lang.Object key_ = ""; + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 2; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 2; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 2; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + key_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 2; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * + * + *
+             * * ID for the queue *
+             * 
+ * + * string key = 2; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object crawlID_ = ""; + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 3; + * + * @return The crawlID. + */ + public java.lang.String getCrawlID() { + java.lang.Object ref = crawlID_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + crawlID_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 3; + * + * @return The bytes for crawlID. + */ + public com.google.protobuf.ByteString getCrawlIDBytes() { + java.lang.Object ref = crawlID_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + crawlID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 3; + * + * @param value The crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlID(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + crawlID_ = value; + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 3; + * + * @return This builder for chaining. + */ + public Builder clearCrawlID() { + + crawlID_ = getDefaultInstance().getCrawlID(); + onChanged(); + return this; + } + /** + * + * + *
+             * crawl ID - empty string for default
+             * 
+ * + * string crawlID = 3; + * + * @param value The bytes for crawlID to set. + * @return This builder for chaining. + */ + public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + crawlID_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:urlfrontier.URLStatusRequest) + } + + // @@protoc_insertion_point(class_scope:urlfrontier.URLStatusRequest) + private static final crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest(); + } + + public static crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public URLStatusRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_Stats_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_Stats_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_Stats_CountsEntry_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_Stats_CountsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_Pagination_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_Pagination_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_DeleteCrawlMessage_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_DeleteCrawlMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_Empty_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_Empty_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_Local_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_Local_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_Active_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_Active_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_Boolean_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_Boolean_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_Long_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_Long_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_QueueList_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_QueueList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_StringList_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_StringList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_QueueWithinCrawlParams_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_QueueWithinCrawlParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_QueueDelayParams_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_QueueDelayParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_BlockQueueParams_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_BlockQueueParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_GetParams_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_GetParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_AnyCrawlID_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_AnyCrawlID_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_URLItem_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_URLItem_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_AckMessage_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_AckMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_URLInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_URLInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_URLInfo_MetadataEntry_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_URLInfo_MetadataEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_KnownURLItem_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_KnownURLItem_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_DiscoveredURLItem_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_DiscoveredURLItem_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_LogLevelParams_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_LogLevelParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_CrawlLimitParams_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_CrawlLimitParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_urlfrontier_URLStatusRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_urlfrontier_URLStatusRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_Stats_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_Stats_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_Stats_CountsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_Stats_CountsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_Pagination_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_Pagination_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_DeleteCrawlMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_DeleteCrawlMessage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_Empty_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_Empty_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_Local_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_Local_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_Active_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_Active_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_Boolean_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_Boolean_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_Long_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_Long_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_QueueList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_QueueList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_StringList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_StringList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_QueueWithinCrawlParams_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_QueueWithinCrawlParams_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_QueueDelayParams_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_QueueDelayParams_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_BlockQueueParams_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_BlockQueueParams_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_GetParams_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_GetParams_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_AnyCrawlID_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_AnyCrawlID_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_URLItem_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_URLItem_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_AckMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_AckMessage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_URLInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_URLInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_URLInfo_MetadataEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_URLInfo_MetadataEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_KnownURLItem_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_KnownURLItem_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_DiscoveredURLItem_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_DiscoveredURLItem_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_LogLevelParams_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_LogLevelParams_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_CrawlLimitParams_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_CrawlLimitParams_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_urlfrontier_URLStatusRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_urlfrontier_URLStatusRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\021urlfrontier.proto\022\013urlfrontier\"\260\001\n\005Sta" + - "ts\022\014\n\004size\030\001 \001(\004\022\021\n\tinProcess\030\002 \001(\r\022.\n\006c" + - "ounts\030\003 \003(\0132\036.urlfrontier.Stats.CountsEn" + - "try\022\026\n\016numberOfQueues\030\004 \001(\004\022\017\n\007crawlID\030\005" + - " \001(\t\032-\n\013CountsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + - "e\030\002 \001(\004:\0028\001\"c\n\nPagination\022\r\n\005start\030\001 \001(\r" + - "\022\014\n\004size\030\002 \001(\r\022\030\n\020include_inactive\030\003 \001(\010" + - "\022\017\n\007crawlID\030\004 \001(\t\022\r\n\005local\030\005 \001(\010\"2\n\022Dele" + - "teCrawlMessage\022\r\n\005value\030\001 \001(\t\022\r\n\005local\030\002" + - " \001(\010\"\007\n\005Empty\"\026\n\005Local\022\r\n\005local\030\001 \001(\010\"&\n" + - "\006Active\022\r\n\005state\030\001 \001(\010\022\r\n\005local\030\002 \001(\010\"\030\n" + - "\007Boolean\022\r\n\005state\030\001 \001(\010\"\025\n\004Long\022\r\n\005value" + - "\030\001 \001(\004\"X\n\tQueueList\022\016\n\006values\030\001 \003(\t\022\r\n\005t" + - "otal\030\002 \001(\004\022\r\n\005start\030\003 \001(\r\022\014\n\004size\030\004 \001(\r\022" + - "\017\n\007crawlID\030\005 \001(\t\"\034\n\nStringList\022\016\n\006values" + - "\030\001 \003(\t\"E\n\026QueueWithinCrawlParams\022\013\n\003key\030" + - "\001 \001(\t\022\017\n\007crawlID\030\002 \001(\t\022\r\n\005local\030\003 \001(\010\"Z\n" + - "\020QueueDelayParams\022\013\n\003key\030\001 \001(\t\022\031\n\021delay_" + - "requestable\030\002 \001(\r\022\017\n\007crawlID\030\003 \001(\t\022\r\n\005lo" + - "cal\030\004 \001(\010\"M\n\020BlockQueueParams\022\013\n\003key\030\001 \001" + - "(\t\022\014\n\004time\030\002 \001(\004\022\017\n\007crawlID\030\003 \001(\t\022\r\n\005loc" + - "al\030\004 \001(\010\"\255\001\n\tGetParams\022\032\n\022max_urls_per_q" + - "ueue\030\001 \001(\r\022\022\n\nmax_queues\030\002 \001(\r\022\013\n\003key\030\003 " + - "\001(\t\022\031\n\021delay_requestable\030\004 \001(\r\022-\n\nanyCra" + - "wlID\030\005 \001(\0132\027.urlfrontier.AnyCrawlIDH\000\022\021\n" + - "\007crawlID\030\006 \001(\tH\000B\006\n\004item\"\014\n\nAnyCrawlID\"\177" + - "\n\007URLItem\0224\n\ndiscovered\030\001 \001(\0132\036.urlfront" + - "ier.DiscoveredURLItemH\000\022*\n\005known\030\002 \001(\0132\031" + - ".urlfrontier.KnownURLItemH\000\022\n\n\002ID\030\003 \001(\tB" + - "\006\n\004item\"q\n\nAckMessage\022\n\n\002ID\030\001 \001(\t\022.\n\006sta" + - "tus\030\002 \001(\0162\036.urlfrontier.AckMessage.Statu" + - "s\"\'\n\006Status\022\006\n\002OK\020\000\022\013\n\007SKIPPED\020\001\022\010\n\004FAIL" + - "\020\002\"\264\001\n\007URLInfo\022\013\n\003url\030\001 \001(\t\022\013\n\003key\030\002 \001(\t" + - "\0224\n\010metadata\030\003 \003(\0132\".urlfrontier.URLInfo" + - ".MetadataEntry\022\017\n\007crawlID\030\004 \001(\t\032H\n\rMetad" + - "ataEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027.u" + - "rlfrontier.StringList:\0028\001\"Q\n\014KnownURLIte" + - "m\022\"\n\004info\030\001 \001(\0132\024.urlfrontier.URLInfo\022\035\n" + - "\025refetchable_from_date\030\002 \001(\004\"7\n\021Discover" + - "edURLItem\022\"\n\004info\030\001 \001(\0132\024.urlfrontier.UR" + - "LInfo\"\240\001\n\016LogLevelParams\022\017\n\007package\030\001 \001(" + - "\t\0220\n\005level\030\002 \001(\0162!.urlfrontier.LogLevelP" + - "arams.Level\022\r\n\005local\030\003 \001(\010\"<\n\005Level\022\t\n\005T" + - "RACE\020\000\022\t\n\005DEBUG\020\001\022\010\n\004INFO\020\002\022\010\n\004WARN\020\003\022\t\n" + - "\005ERROR\020\004\"?\n\020CrawlLimitParams\022\013\n\003key\030\001 \001(" + - "\t\022\r\n\005limit\030\002 \001(\r\022\017\n\007crawlID\030\003 \001(\t\"=\n\020URL" + - "StatusRequest\022\013\n\003url\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022" + - "\017\n\007crawlID\030\003 \001(\t2\342\007\n\013URLFrontier\022:\n\tList" + - "Nodes\022\022.urlfrontier.Empty\032\027.urlfrontier." + - "StringList\"\000\022;\n\nListCrawls\022\022.urlfrontier" + - ".Local\032\027.urlfrontier.StringList\"\000\022C\n\013Del" + - "eteCrawl\022\037.urlfrontier.DeleteCrawlMessag" + - "e\032\021.urlfrontier.Long\"\000\022?\n\nListQueues\022\027.u" + - "rlfrontier.Pagination\032\026.urlfrontier.Queu" + - "eList\"\000\022;\n\007GetURLs\022\026.urlfrontier.GetPara" + - "ms\032\024.urlfrontier.URLInfo\"\0000\001\022>\n\007PutURLs\022" + - "\024.urlfrontier.URLItem\032\027.urlfrontier.AckM" + - "essage\"\000(\0010\001\022E\n\010GetStats\022#.urlfrontier.Q" + - "ueueWithinCrawlParams\032\022.urlfrontier.Stat" + - "s\"\000\022G\n\013DeleteQueue\022#.urlfrontier.QueueWi" + - "thinCrawlParams\032\021.urlfrontier.Long\"\000\022F\n\017" + - "BlockQueueUntil\022\035.urlfrontier.BlockQueue" + - "Params\032\022.urlfrontier.Empty\"\000\0226\n\tSetActiv" + - "e\022\023.urlfrontier.Active\032\022.urlfrontier.Emp" + - "ty\"\000\0227\n\tGetActive\022\022.urlfrontier.Local\032\024." + - "urlfrontier.Boolean\"\000\022?\n\010SetDelay\022\035.urlf" + - "rontier.QueueDelayParams\032\022.urlfrontier.E" + - "mpty\"\000\022@\n\013SetLogLevel\022\033.urlfrontier.LogL" + - "evelParams\032\022.urlfrontier.Empty\"\000\022D\n\rSetC" + - "rawlLimit\022\035.urlfrontier.CrawlLimitParams" + - "\032\022.urlfrontier.Empty\"\000\022E\n\014GetURLStatus\022\035" + - ".urlfrontier.URLStatusRequest\032\024.urlfront" + - "ier.URLItem\"\000B\034\n\032crawlercommons.urlfront" + - "ierb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_urlfrontier_Stats_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_urlfrontier_Stats_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_Stats_descriptor, - new java.lang.String[] { "Size", "InProcess", "Counts", "NumberOfQueues", "CrawlID", }); - internal_static_urlfrontier_Stats_CountsEntry_descriptor = - internal_static_urlfrontier_Stats_descriptor.getNestedTypes().get(0); - internal_static_urlfrontier_Stats_CountsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_Stats_CountsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_urlfrontier_Pagination_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_urlfrontier_Pagination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_Pagination_descriptor, - new java.lang.String[] { "Start", "Size", "IncludeInactive", "CrawlID", "Local", }); - internal_static_urlfrontier_DeleteCrawlMessage_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_urlfrontier_DeleteCrawlMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_DeleteCrawlMessage_descriptor, - new java.lang.String[] { "Value", "Local", }); - internal_static_urlfrontier_Empty_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_urlfrontier_Empty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_Empty_descriptor, - new java.lang.String[] { }); - internal_static_urlfrontier_Local_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_urlfrontier_Local_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_Local_descriptor, - new java.lang.String[] { "Local", }); - internal_static_urlfrontier_Active_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_urlfrontier_Active_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_Active_descriptor, - new java.lang.String[] { "State", "Local", }); - internal_static_urlfrontier_Boolean_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_urlfrontier_Boolean_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_Boolean_descriptor, - new java.lang.String[] { "State", }); - internal_static_urlfrontier_Long_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_urlfrontier_Long_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_Long_descriptor, - new java.lang.String[] { "Value", }); - internal_static_urlfrontier_QueueList_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_urlfrontier_QueueList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_QueueList_descriptor, - new java.lang.String[] { "Values", "Total", "Start", "Size", "CrawlID", }); - internal_static_urlfrontier_StringList_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_urlfrontier_StringList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_StringList_descriptor, - new java.lang.String[] { "Values", }); - internal_static_urlfrontier_QueueWithinCrawlParams_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_urlfrontier_QueueWithinCrawlParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_QueueWithinCrawlParams_descriptor, - new java.lang.String[] { "Key", "CrawlID", "Local", }); - internal_static_urlfrontier_QueueDelayParams_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_urlfrontier_QueueDelayParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_QueueDelayParams_descriptor, - new java.lang.String[] { "Key", "DelayRequestable", "CrawlID", "Local", }); - internal_static_urlfrontier_BlockQueueParams_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_urlfrontier_BlockQueueParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_BlockQueueParams_descriptor, - new java.lang.String[] { "Key", "Time", "CrawlID", "Local", }); - internal_static_urlfrontier_GetParams_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_urlfrontier_GetParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_GetParams_descriptor, - new java.lang.String[] { "MaxUrlsPerQueue", "MaxQueues", "Key", "DelayRequestable", "AnyCrawlID", "CrawlID", "Item", }); - internal_static_urlfrontier_AnyCrawlID_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_urlfrontier_AnyCrawlID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_AnyCrawlID_descriptor, - new java.lang.String[] { }); - internal_static_urlfrontier_URLItem_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_urlfrontier_URLItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_URLItem_descriptor, - new java.lang.String[] { "Discovered", "Known", "ID", "Item", }); - internal_static_urlfrontier_AckMessage_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_urlfrontier_AckMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_AckMessage_descriptor, - new java.lang.String[] { "ID", "Status", }); - internal_static_urlfrontier_URLInfo_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_urlfrontier_URLInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_URLInfo_descriptor, - new java.lang.String[] { "Url", "Key", "Metadata", "CrawlID", }); - internal_static_urlfrontier_URLInfo_MetadataEntry_descriptor = - internal_static_urlfrontier_URLInfo_descriptor.getNestedTypes().get(0); - internal_static_urlfrontier_URLInfo_MetadataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_URLInfo_MetadataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_urlfrontier_KnownURLItem_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_urlfrontier_KnownURLItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_KnownURLItem_descriptor, - new java.lang.String[] { "Info", "RefetchableFromDate", }); - internal_static_urlfrontier_DiscoveredURLItem_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_urlfrontier_DiscoveredURLItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_DiscoveredURLItem_descriptor, - new java.lang.String[] { "Info", }); - internal_static_urlfrontier_LogLevelParams_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_urlfrontier_LogLevelParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_LogLevelParams_descriptor, - new java.lang.String[] { "Package", "Level", "Local", }); - internal_static_urlfrontier_CrawlLimitParams_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_urlfrontier_CrawlLimitParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_CrawlLimitParams_descriptor, - new java.lang.String[] { "Key", "Limit", "CrawlID", }); - internal_static_urlfrontier_URLStatusRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_urlfrontier_URLStatusRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_urlfrontier_URLStatusRequest_descriptor, - new java.lang.String[] { "Url", "Key", "CrawlID", }); - } - - // @@protoc_insertion_point(outer_class_scope) + static { + java.lang.String[] descriptorData = { + "\n\021urlfrontier.proto\022\013urlfrontier\"\260\001\n\005Sta" + + "ts\022\014\n\004size\030\001 \001(\004\022\021\n\tinProcess\030\002 \001(\r\022.\n\006c" + + "ounts\030\003 \003(\0132\036.urlfrontier.Stats.CountsEn" + + "try\022\026\n\016numberOfQueues\030\004 \001(\004\022\017\n\007crawlID\030\005" + + " \001(\t\032-\n\013CountsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\004:\0028\001\"c\n\nPagination\022\r\n\005start\030\001 \001(\r" + + "\022\014\n\004size\030\002 \001(\r\022\030\n\020include_inactive\030\003 \001(\010" + + "\022\017\n\007crawlID\030\004 \001(\t\022\r\n\005local\030\005 \001(\010\"2\n\022Dele" + + "teCrawlMessage\022\r\n\005value\030\001 \001(\t\022\r\n\005local\030\002" + + " \001(\010\"\007\n\005Empty\"\026\n\005Local\022\r\n\005local\030\001 \001(\010\"&\n" + + "\006Active\022\r\n\005state\030\001 \001(\010\022\r\n\005local\030\002 \001(\010\"\030\n" + + "\007Boolean\022\r\n\005state\030\001 \001(\010\"\025\n\004Long\022\r\n\005value" + + "\030\001 \001(\004\"X\n\tQueueList\022\016\n\006values\030\001 \003(\t\022\r\n\005t" + + "otal\030\002 \001(\004\022\r\n\005start\030\003 \001(\r\022\014\n\004size\030\004 \001(\r\022" + + "\017\n\007crawlID\030\005 \001(\t\"\034\n\nStringList\022\016\n\006values" + + "\030\001 \003(\t\"E\n\026QueueWithinCrawlParams\022\013\n\003key\030" + + "\001 \001(\t\022\017\n\007crawlID\030\002 \001(\t\022\r\n\005local\030\003 \001(\010\"Z\n" + + "\020QueueDelayParams\022\013\n\003key\030\001 \001(\t\022\031\n\021delay_" + + "requestable\030\002 \001(\r\022\017\n\007crawlID\030\003 \001(\t\022\r\n\005lo" + + "cal\030\004 \001(\010\"M\n\020BlockQueueParams\022\013\n\003key\030\001 \001" + + "(\t\022\014\n\004time\030\002 \001(\004\022\017\n\007crawlID\030\003 \001(\t\022\r\n\005loc" + + "al\030\004 \001(\010\"\255\001\n\tGetParams\022\032\n\022max_urls_per_q" + + "ueue\030\001 \001(\r\022\022\n\nmax_queues\030\002 \001(\r\022\013\n\003key\030\003 " + + "\001(\t\022\031\n\021delay_requestable\030\004 \001(\r\022-\n\nanyCra" + + "wlID\030\005 \001(\0132\027.urlfrontier.AnyCrawlIDH\000\022\021\n" + + "\007crawlID\030\006 \001(\tH\000B\006\n\004item\"\014\n\nAnyCrawlID\"\177" + + "\n\007URLItem\0224\n\ndiscovered\030\001 \001(\0132\036.urlfront" + + "ier.DiscoveredURLItemH\000\022*\n\005known\030\002 \001(\0132\031" + + ".urlfrontier.KnownURLItemH\000\022\n\n\002ID\030\003 \001(\tB" + + "\006\n\004item\"q\n\nAckMessage\022\n\n\002ID\030\001 \001(\t\022.\n\006sta" + + "tus\030\002 \001(\0162\036.urlfrontier.AckMessage.Statu" + + "s\"\'\n\006Status\022\006\n\002OK\020\000\022\013\n\007SKIPPED\020\001\022\010\n\004FAIL" + + "\020\002\"\264\001\n\007URLInfo\022\013\n\003url\030\001 \001(\t\022\013\n\003key\030\002 \001(\t" + + "\0224\n\010metadata\030\003 \003(\0132\".urlfrontier.URLInfo" + + ".MetadataEntry\022\017\n\007crawlID\030\004 \001(\t\032H\n\rMetad" + + "ataEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027.u" + + "rlfrontier.StringList:\0028\001\"Q\n\014KnownURLIte" + + "m\022\"\n\004info\030\001 \001(\0132\024.urlfrontier.URLInfo\022\035\n" + + "\025refetchable_from_date\030\002 \001(\004\"7\n\021Discover" + + "edURLItem\022\"\n\004info\030\001 \001(\0132\024.urlfrontier.UR" + + "LInfo\"\240\001\n\016LogLevelParams\022\017\n\007package\030\001 \001(" + + "\t\0220\n\005level\030\002 \001(\0162!.urlfrontier.LogLevelP" + + "arams.Level\022\r\n\005local\030\003 \001(\010\"<\n\005Level\022\t\n\005T" + + "RACE\020\000\022\t\n\005DEBUG\020\001\022\010\n\004INFO\020\002\022\010\n\004WARN\020\003\022\t\n" + + "\005ERROR\020\004\"?\n\020CrawlLimitParams\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005limit\030\002 \001(\r\022\017\n\007crawlID\030\003 \001(\t\"=\n\020URL" + + "StatusRequest\022\013\n\003url\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022" + + "\017\n\007crawlID\030\003 \001(\t2\342\007\n\013URLFrontier\022:\n\tList" + + "Nodes\022\022.urlfrontier.Empty\032\027.urlfrontier." + + "StringList\"\000\022;\n\nListCrawls\022\022.urlfrontier" + + ".Local\032\027.urlfrontier.StringList\"\000\022C\n\013Del" + + "eteCrawl\022\037.urlfrontier.DeleteCrawlMessag" + + "e\032\021.urlfrontier.Long\"\000\022?\n\nListQueues\022\027.u" + + "rlfrontier.Pagination\032\026.urlfrontier.Queu" + + "eList\"\000\022;\n\007GetURLs\022\026.urlfrontier.GetPara" + + "ms\032\024.urlfrontier.URLInfo\"\0000\001\022>\n\007PutURLs\022" + + "\024.urlfrontier.URLItem\032\027.urlfrontier.AckM" + + "essage\"\000(\0010\001\022E\n\010GetStats\022#.urlfrontier.Q" + + "ueueWithinCrawlParams\032\022.urlfrontier.Stat" + + "s\"\000\022G\n\013DeleteQueue\022#.urlfrontier.QueueWi" + + "thinCrawlParams\032\021.urlfrontier.Long\"\000\022F\n\017" + + "BlockQueueUntil\022\035.urlfrontier.BlockQueue" + + "Params\032\022.urlfrontier.Empty\"\000\0226\n\tSetActiv" + + "e\022\023.urlfrontier.Active\032\022.urlfrontier.Emp" + + "ty\"\000\0227\n\tGetActive\022\022.urlfrontier.Local\032\024." + + "urlfrontier.Boolean\"\000\022?\n\010SetDelay\022\035.urlf" + + "rontier.QueueDelayParams\032\022.urlfrontier.E" + + "mpty\"\000\022@\n\013SetLogLevel\022\033.urlfrontier.LogL" + + "evelParams\032\022.urlfrontier.Empty\"\000\022D\n\rSetC" + + "rawlLimit\022\035.urlfrontier.CrawlLimitParams" + + "\032\022.urlfrontier.Empty\"\000\022E\n\014GetURLStatus\022\035" + + ".urlfrontier.URLStatusRequest\032\024.urlfront" + + "ier.URLItem\"\000B\034\n\032crawlercommons.urlfront" + + "ierb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_urlfrontier_Stats_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_urlfrontier_Stats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_Stats_descriptor, + new java.lang.String[] { + "Size", "InProcess", "Counts", "NumberOfQueues", "CrawlID", + }); + internal_static_urlfrontier_Stats_CountsEntry_descriptor = + internal_static_urlfrontier_Stats_descriptor.getNestedTypes().get(0); + internal_static_urlfrontier_Stats_CountsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_Stats_CountsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_urlfrontier_Pagination_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_urlfrontier_Pagination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_Pagination_descriptor, + new java.lang.String[] { + "Start", "Size", "IncludeInactive", "CrawlID", "Local", + }); + internal_static_urlfrontier_DeleteCrawlMessage_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_urlfrontier_DeleteCrawlMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_DeleteCrawlMessage_descriptor, + new java.lang.String[] { + "Value", "Local", + }); + internal_static_urlfrontier_Empty_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_urlfrontier_Empty_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_Empty_descriptor, new java.lang.String[] {}); + internal_static_urlfrontier_Local_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_urlfrontier_Local_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_Local_descriptor, + new java.lang.String[] { + "Local", + }); + internal_static_urlfrontier_Active_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_urlfrontier_Active_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_Active_descriptor, + new java.lang.String[] { + "State", "Local", + }); + internal_static_urlfrontier_Boolean_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_urlfrontier_Boolean_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_Boolean_descriptor, + new java.lang.String[] { + "State", + }); + internal_static_urlfrontier_Long_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_urlfrontier_Long_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_Long_descriptor, + new java.lang.String[] { + "Value", + }); + internal_static_urlfrontier_QueueList_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_urlfrontier_QueueList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_QueueList_descriptor, + new java.lang.String[] { + "Values", "Total", "Start", "Size", "CrawlID", + }); + internal_static_urlfrontier_StringList_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_urlfrontier_StringList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_StringList_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_urlfrontier_QueueWithinCrawlParams_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_urlfrontier_QueueWithinCrawlParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_QueueWithinCrawlParams_descriptor, + new java.lang.String[] { + "Key", "CrawlID", "Local", + }); + internal_static_urlfrontier_QueueDelayParams_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_urlfrontier_QueueDelayParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_QueueDelayParams_descriptor, + new java.lang.String[] { + "Key", "DelayRequestable", "CrawlID", "Local", + }); + internal_static_urlfrontier_BlockQueueParams_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_urlfrontier_BlockQueueParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_BlockQueueParams_descriptor, + new java.lang.String[] { + "Key", "Time", "CrawlID", "Local", + }); + internal_static_urlfrontier_GetParams_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_urlfrontier_GetParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_GetParams_descriptor, + new java.lang.String[] { + "MaxUrlsPerQueue", + "MaxQueues", + "Key", + "DelayRequestable", + "AnyCrawlID", + "CrawlID", + "Item", + }); + internal_static_urlfrontier_AnyCrawlID_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_urlfrontier_AnyCrawlID_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_AnyCrawlID_descriptor, + new java.lang.String[] {}); + internal_static_urlfrontier_URLItem_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_urlfrontier_URLItem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_URLItem_descriptor, + new java.lang.String[] { + "Discovered", "Known", "ID", "Item", + }); + internal_static_urlfrontier_AckMessage_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_urlfrontier_AckMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_AckMessage_descriptor, + new java.lang.String[] { + "ID", "Status", + }); + internal_static_urlfrontier_URLInfo_descriptor = getDescriptor().getMessageTypes().get(17); + internal_static_urlfrontier_URLInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_URLInfo_descriptor, + new java.lang.String[] { + "Url", "Key", "Metadata", "CrawlID", + }); + internal_static_urlfrontier_URLInfo_MetadataEntry_descriptor = + internal_static_urlfrontier_URLInfo_descriptor.getNestedTypes().get(0); + internal_static_urlfrontier_URLInfo_MetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_URLInfo_MetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_urlfrontier_KnownURLItem_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_urlfrontier_KnownURLItem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_KnownURLItem_descriptor, + new java.lang.String[] { + "Info", "RefetchableFromDate", + }); + internal_static_urlfrontier_DiscoveredURLItem_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_urlfrontier_DiscoveredURLItem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_DiscoveredURLItem_descriptor, + new java.lang.String[] { + "Info", + }); + internal_static_urlfrontier_LogLevelParams_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_urlfrontier_LogLevelParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_LogLevelParams_descriptor, + new java.lang.String[] { + "Package", "Level", "Local", + }); + internal_static_urlfrontier_CrawlLimitParams_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_urlfrontier_CrawlLimitParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_CrawlLimitParams_descriptor, + new java.lang.String[] { + "Key", "Limit", "CrawlID", + }); + internal_static_urlfrontier_URLStatusRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_urlfrontier_URLStatusRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_urlfrontier_URLStatusRequest_descriptor, + new java.lang.String[] { + "Url", "Key", "CrawlID", + }); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/service/README.md b/service/README.md index 212bfeb..d589f76 100644 --- a/service/README.md +++ b/service/README.md @@ -3,12 +3,9 @@ [![Docker Image Version (latest semver)](https://img.shields.io/docker/v/crawlercommons/url-frontier)](https://hub.docker.com/r/crawlercommons/url-frontier) [![Docker Pulls](https://img.shields.io/docker/pulls/crawlercommons/url-frontier)](https://hub.docker.com/r/crawlercommons/url-frontier) -Implementations of the URL Frontier Service. There are currently 3 implementations available: +Implementations of the URL Frontier Service. There are currently 2 implementations available: - a simple memory-based which was used primarily for testing - the default one which is scalable, persistent and is based on [RocksDB](https://rocksdb.org/) -- a persistent and distributed one based on [Ignite](https://ignite.apache.org/) - -The Ignite implementation is still in beta mode. Web crawlers can connect to it using the gRPC code generated from the API. There is also a simple client available which can do basic interactions with a Frontier. @@ -37,7 +34,7 @@ the call above can have the following equivalent without the config file: If no path is set explicitly for RocksDB, the default value _./rocksdb_ will be used. -For implementation supporting a cluster mode, like the Ignite one, it is required to use the parameter `-h xxx.xxx.xxx.xxx` with the private IP or hostname +For implementation supporting a cluster mode, it is required to use the parameter `-h xxx.xxx.xxx.xxx` with the private IP or hostname on which it is running so that it can report its location with the heartbeat. ## Logging configuration diff --git a/service/config.ini b/service/config.ini index f203185..6189d2f 100644 --- a/service/config.ini +++ b/service/config.ini @@ -11,7 +11,7 @@ implementation = crawlercommons.urlfrontier.service.rocksdb.RocksDBService # the default value is the number of processors / 4 # read.thread.num = 3 -rocksdb.path = /data/crawl/rocksdb +rocksdb.path = ./rocksdb # rocksdb.purge = true # advanced rocksdb tuning @@ -21,22 +21,6 @@ rocksdb.max_background_jobs = 4 rocksdb.max_subcompactions = 2 rocksdb.max_bytes_for_level_base = 536870912 -#implementation = crawlercommons.urlfrontier.service.ignite.IgniteService - -# Needed for the Ignite based frontiers to form a cluster -# ignite.seed.address = xxx.xxx.xxx.xxx - -ignite.path = /data/crawl/ignite -ignite.workdir = /data/crawl/ignite -ignite.index = /data/crawl/lucene -# ignite.purge = true - -ignite.backups = 3 -# frequency in sec of when the frontiers should send a heartbeat -ignite.frontiers.heartbeat = 60 -# ttl of hearbeats in sec -ignite.frontiers.ttl = 120 - diff --git a/service/pom.xml b/service/pom.xml index 93f2a71..5dc422a 100644 --- a/service/pom.xml +++ b/service/pom.xml @@ -16,8 +16,6 @@ 0.16.0 - 2.14.0 - 9.4.0 7.6.0 @@ -94,18 +92,6 @@ ${rocksdb.version} - - org.apache.ignite - ignite-core - ${ignite.version} - - - - org.apache.lucene - lucene-core - ${lucene.version} - - commons-io commons-io diff --git a/service/src/main/java/crawlercommons/urlfrontier/service/ignite/IgniteHeartbeat.java b/service/src/main/java/crawlercommons/urlfrontier/service/ignite/IgniteHeartbeat.java deleted file mode 100644 index 13e0645..0000000 --- a/service/src/main/java/crawlercommons/urlfrontier/service/ignite/IgniteHeartbeat.java +++ /dev/null @@ -1,43 +0,0 @@ -// SPDX-FileCopyrightText: 2020 Crawler-commons -// SPDX-License-Identifier: Apache-2.0 - -package crawlercommons.urlfrontier.service.ignite; - -import crawlercommons.urlfrontier.service.cluster.Hearbeat; -import java.time.Instant; -import java.util.ArrayList; -import java.util.List; -import javax.cache.Cache.Entry; -import org.apache.ignite.Ignite; -import org.apache.ignite.IgniteCache; -import org.apache.ignite.cache.query.QueryCursor; -import org.apache.ignite.cache.query.ScanQuery; - -/** The frontiers cache must have been created beforehand * */ -public class IgniteHeartbeat extends Hearbeat { - - private final Ignite ignite; - - IgniteHeartbeat(int delay, Ignite ignite) { - super("IgniteHeartbeat", delay); - this.ignite = ignite; - } - - @Override - protected void sendHeartBeat() { - IgniteCache frontiers = ignite.cache(IgniteService.frontiersCacheName); - frontiers.put(listener.getAddress(), Instant.now().toString()); - - List activeFrontiers = new ArrayList<>(); - - // get all the active frontiers and notify the listener about them - try (QueryCursor> cur = - frontiers.query(new ScanQuery())) { - for (Entry entry : cur) { - activeFrontiers.add(entry.getKey()); - } - } - - listener.setNodes(activeFrontiers); - } -} diff --git a/service/src/main/java/crawlercommons/urlfrontier/service/ignite/IgniteService.java b/service/src/main/java/crawlercommons/urlfrontier/service/ignite/IgniteService.java deleted file mode 100644 index 5cf651d..0000000 --- a/service/src/main/java/crawlercommons/urlfrontier/service/ignite/IgniteService.java +++ /dev/null @@ -1,851 +0,0 @@ -// SPDX-FileCopyrightText: 2020 Crawler-commons -// SPDX-License-Identifier: Apache-2.0 - -package crawlercommons.urlfrontier.service.ignite; - -import com.google.protobuf.InvalidProtocolBufferException; -import crawlercommons.urlfrontier.CrawlID; -import crawlercommons.urlfrontier.Urlfrontier.AckMessage; -import crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status; -import crawlercommons.urlfrontier.Urlfrontier.GetParams; -import crawlercommons.urlfrontier.Urlfrontier.KnownURLItem; -import crawlercommons.urlfrontier.Urlfrontier.URLInfo; -import crawlercommons.urlfrontier.Urlfrontier.URLItem; -import crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest; -import crawlercommons.urlfrontier.service.QueueInterface; -import crawlercommons.urlfrontier.service.QueueWithinCrawl; -import crawlercommons.urlfrontier.service.SynchronizedStreamObserver; -import crawlercommons.urlfrontier.service.cluster.DistributedFrontierService; -import crawlercommons.urlfrontier.service.cluster.HeartbeatListener; -import crawlercommons.urlfrontier.service.rocksdb.QueueMetadata; -import io.grpc.stub.StreamObserver; -import java.io.Closeable; -import java.io.File; -import java.io.IOException; -import java.nio.file.Paths; -import java.time.Instant; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.ConcurrentLinkedQueue; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.TimeUnit; -import javax.cache.Cache.Entry; -import javax.cache.expiry.Duration; -import javax.cache.expiry.ModifiedExpiryPolicy; -import org.apache.ignite.Ignite; -import org.apache.ignite.IgniteCache; -import org.apache.ignite.IgniteEvents; -import org.apache.ignite.Ignition; -import org.apache.ignite.cache.CacheMode; -import org.apache.ignite.cache.query.QueryCursor; -import org.apache.ignite.cache.query.ScanQuery; -import org.apache.ignite.cluster.BaselineNode; -import org.apache.ignite.cluster.ClusterNode; -import org.apache.ignite.cluster.ClusterState; -import org.apache.ignite.configuration.CacheConfiguration; -import org.apache.ignite.configuration.DataStorageConfiguration; -import org.apache.ignite.configuration.IgniteConfiguration; -import org.apache.ignite.events.CacheEvent; -import org.apache.ignite.events.EventType; -import org.apache.ignite.lang.IgniteBiPredicate; -import org.apache.ignite.lang.IgnitePredicate; -import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi; -import org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder; -import org.apache.lucene.document.Document; -import org.apache.lucene.document.Field.Store; -import org.apache.lucene.document.NumericDocValuesField; -import org.apache.lucene.document.StringField; -import org.apache.lucene.index.IndexWriter; -import org.apache.lucene.index.IndexWriterConfig; -import org.apache.lucene.index.Term; -import org.apache.lucene.search.BooleanClause.Occur; -import org.apache.lucene.search.BooleanQuery; -import org.apache.lucene.search.BooleanQuery.Builder; -import org.apache.lucene.search.IndexSearcher; -import org.apache.lucene.search.ScoreDoc; -import org.apache.lucene.search.SearcherManager; -import org.apache.lucene.search.Sort; -import org.apache.lucene.search.SortField; -import org.apache.lucene.search.TermQuery; -import org.apache.lucene.store.Directory; -import org.apache.lucene.store.FSDirectory; -import org.jetbrains.annotations.Nullable; -import org.slf4j.LoggerFactory; - -public class IgniteService extends DistributedFrontierService - implements Closeable, HeartbeatListener { - - private static final org.slf4j.Logger LOG = LoggerFactory.getLogger(IgniteService.class); - - public static final String frontiersCacheName = "frontiers"; - - private static final String URLCacheNamePrefix = "urls_"; - - private final Ignite ignite; - - private final ConcurrentHashMap queuesBeingDeleted = - new ConcurrentHashMap<>(); - - private final IgniteCache globalQueueCache; - - private IgniteHeartbeat ihb; - - private final IndexWriter iwriter; - - private SearcherManager searcherManager; - - // blocking the events is a bad idea, instead we get them - // to write additions to a queue and have separate threads to do the indexing - private ConcurrentLinkedQueue additions = new ConcurrentLinkedQueue(); - - private ExecutorService executor = Executors.newFixedThreadPool(8); - - private final int maxUncommittedAdditions = 2000; - - // no explicit config - public IgniteService(String host, int port) { - this(new HashMap(), host, port); - } - - public IgniteService(final Map configuration, String host, int port) { - super(configuration, host, port); - - IgniteConfiguration cfg = new IgniteConfiguration(); - - // Classes of custom Java logic will be transferred over the wire from this app. - cfg.setPeerClassLoadingEnabled(true); - - // "127.0.0.1:47500..47509" - String igniteSeedAddress = configuration.get("ignite.seed.address"); - if (igniteSeedAddress != null) { - clusterMode = true; - // Setting up an IP Finder to ensure the client can locate the servers. - TcpDiscoveryMulticastIpFinder ipFinder = new TcpDiscoveryMulticastIpFinder(); - ipFinder.setAddresses(Collections.singletonList(igniteSeedAddress)); - cfg.setDiscoverySpi(new TcpDiscoverySpi().setIpFinder(ipFinder)); - } - - boolean purgeData = configuration.containsKey("ignite.purge"); - - // specify where the data should be kept - String path = - new File(configuration.getOrDefault("ignite.path", "ignite")).getAbsolutePath(); - if (purgeData) { - createOrCleanDirectory(path); - LOG.info("Purged storage path {}", path); - } - - // set the work directory to the same location unless overridden - String workdir = - new File(configuration.getOrDefault("ignite.workdir", path)).getAbsolutePath(); - if (purgeData && !path.equals(workdir)) { - createOrCleanDirectory(workdir); - LOG.info("Purged work directory {}", workdir); - } - cfg.setWorkDirectory(workdir); - - // specify and initialize the index directory - String index = - new File(configuration.getOrDefault("ignite.index", "index")).getAbsolutePath(); - if (purgeData) { - createOrCleanDirectory(index); - LOG.info("Purged index directory {}", index); - } - - try { - Directory directory = FSDirectory.open(Paths.get(index)); - IndexWriterConfig config = new IndexWriterConfig(); - iwriter = new IndexWriter(directory, config); - searcherManager = new SearcherManager(iwriter, null); - } catch (IOException e) { - LOG.error("Couldn't initialise Lucene writer {}", e); - throw new RuntimeException(e); - } - - LOG.info("{} docs in Lucene ", iwriter.getPendingNumDocs()); - - long start = System.currentTimeMillis(); - - // disable logging of Ignite metrics - cfg.setMetricsLogFrequency(0); - - // Enable cache events. - cfg.setIncludeEventTypes( - EventType.EVT_CACHE_OBJECT_PUT, - EventType.EVT_CACHE_OBJECT_REMOVED, - EventType.EVT_CACHE_STOPPED); - - // set persistence - DataStorageConfiguration storageCfg = new DataStorageConfiguration(); - storageCfg.setStoragePath(path); - storageCfg.getDefaultDataRegionConfiguration().setPersistenceEnabled(true); - cfg.setDataStorageConfiguration(storageCfg); - - // Starting the node - ignite = Ignition.start(cfg); - - if (ignite.cluster().state().equals(ClusterState.INACTIVE)) { - ignite.cluster().state(ClusterState.ACTIVE); - } - - ClusterNode currentNode = ignite.cluster().localNode(); - @Nullable - Collection baselineTopo = ignite.cluster().currentBaselineTopology(); - - if (baselineTopo != null && !baselineTopo.contains(currentNode)) { - baselineTopo.add(currentNode); - // turn it off temporarily - ignite.cluster().baselineAutoAdjustEnabled(false); - ignite.cluster().setBaselineTopology(baselineTopo); - } - - ignite.cluster().baselineAutoAdjustEnabled(true); - ignite.cluster().baselineAutoAdjustTimeout(60000); - - int backups = Integer.parseInt(configuration.getOrDefault("ignite.backups", "3")); - - // template for cache configurations - CacheConfiguration cacheCfg = new CacheConfiguration("urls_*"); - cacheCfg.setBackups(backups); - cacheCfg.setCacheMode(CacheMode.PARTITIONED); - ignite.addCacheConfiguration(cacheCfg); - - long end = System.currentTimeMillis(); - - LOG.info("Ignite loaded in {} msec", end - start); - - IgniteEvents events = ignite.events(); - - executor.submit( - () -> { - while (true) { - Document doc = (Document) additions.poll(); - try { - if (doc != null) iwriter.addDocument(doc); - else { - Thread.sleep(10); - } - } catch (Exception e) { - LOG.error("Exception caught when indexing {}", doc, e); - } - } - }); - - // Local listener that listens to addition / deletion of cache entries - IgnitePredicate localObjectAddedListener = - evt -> { - if (!evt.cacheName().startsWith("urls_")) return true; - - long nextFetchDate = ((Payload) evt.newValue()).nextFetchDate; - Term docID = new Term("_id", evt.key().toString()); - - // was there a previous value? - boolean hasOldValue = evt.hasOldValue(); - - try { - // if not due for refetching just delete the old value - if (hasOldValue && nextFetchDate == 0) { - // delete the doc in Lucene - this.iwriter.deleteDocuments(docID); - } - // no previous value - just add the new document - else if (!hasOldValue && nextFetchDate != 0) { - final QueueWithinCrawl qk = - QueueWithinCrawl.parseAndDeNormalise( - ((Key) evt.key()).crawlQueueID); - final Document doc = new Document(); - // used for fast updates and deletions - // concatenation of the crawlid queue and url - doc.add(new StringField("_id", evt.key().toString(), Store.NO)); - doc.add(new StringField("crawlid", qk.getCrawlid(), Store.NO)); - doc.add(new StringField("queue", qk.getQueue(), Store.NO)); - doc.add(new StringField("url", ((Key) evt.key()).URL, Store.YES)); - doc.add(new NumericDocValuesField("nextFetchDate", nextFetchDate)); - additions.add(doc); - // iwriter.addDocument(doc); - } else { - // finally there was a previous value - // just need to update the nextfetchdate - this.iwriter.updateNumericDocValue( - docID, "nextFetchDate", nextFetchDate); - } - } catch (Exception e) { - LOG.error("Exception caught when indexing {}", evt.newValue(), e); - } - - return true; // Continue listening. - }; - - // listener for objects deletions - IgnitePredicate localObjectRemovedListener = - evt -> { - if (!evt.cacheName().startsWith("urls_")) return true; - - Term docID = new Term("_id", evt.key().toString()); - - // delete the doc in Lucene - try { - this.iwriter.deleteDocuments(docID); - } catch (IOException e) { - LOG.error("Exception caught when deleting {}", docID, e); - } - - return true; // Continue listening. - }; - - // listener for cache deletions - IgnitePredicate localCacheDeletionListener = - evt -> { - if (!evt.cacheName().startsWith("urls_")) return true; - - String normalisedCrawlID = evt.cacheName().substring("urls_".length()); - - // delete all the docs in Lucene having this crawlid - try { - this.iwriter.deleteDocuments(new Term("crawlid", normalisedCrawlID)); - } catch (IOException e) { - LOG.error("Exception caught when deleting {}", normalisedCrawlID, e); - } - return true; // Continue listening. - }; - - // Subscribe to the cache events that are triggered on the local node. - events.localListen(localObjectAddedListener, EventType.EVT_CACHE_OBJECT_PUT); - events.localListen(localObjectRemovedListener, EventType.EVT_CACHE_OBJECT_REMOVED); - events.localListen(localCacheDeletionListener, EventType.EVT_CACHE_STOPPED); - - LOG.info("Scanning tables to rebuild queues... (can take a long time)"); - - try { - recoveryQscan(true); - } catch (IOException e) { - LOG.error("Exception while rebuilding the content", e); - throw new RuntimeException(e); - } - - long end2 = System.currentTimeMillis(); - - LOG.info("{} queues discovered in {} msec", getQueues().size(), (end2 - end)); - - // all the queues across the frontier instances - CacheConfiguration cacheCfgQueues = new CacheConfiguration("queues"); - cacheCfgQueues.setBackups(backups); - cacheCfgQueues.setCacheMode(CacheMode.PARTITIONED); - globalQueueCache = ignite.getOrCreateCache(cacheCfgQueues); - - int heartbeatdelay = - Integer.parseInt(configuration.getOrDefault("ignite.frontiers.heartbeat", "60")); - int ttlFrontiers = - Integer.parseInt( - configuration.getOrDefault( - "ignite.frontiers.ttl", Integer.toString(heartbeatdelay * 2))); - // heartbeats of Frontiers - CacheConfiguration cacheCfgFrontiers = new CacheConfiguration(frontiersCacheName); - cacheCfgFrontiers.setBackups(backups); - cacheCfgFrontiers.setCacheMode(CacheMode.REPLICATED); - cacheCfgFrontiers.setExpiryPolicyFactory( - ModifiedExpiryPolicy.factoryOf(new Duration(TimeUnit.SECONDS, ttlFrontiers))); - ignite.getOrCreateCache(cacheCfgFrontiers); - - // check the global queue list - // every minute - new QueueCheck(60).start(); - - // start the heartbeat - ihb = new IgniteHeartbeat(heartbeatdelay, ignite); - ihb.setListener(this); - ihb.start(); - } - - private IgniteCache createOrGetCacheForCrawlID(String crawlID) { - return ignite.getOrCreateCache(URLCacheNamePrefix + crawlID); - } - - @Override - public void close() throws IOException { - LOG.info("Closing Ignite"); - - super.close(); - - executor.shutdown(); - - if (ignite != null) ignite.close(); - if (ihb != null) ihb.close(); - if (searcherManager != null) { - searcherManager.close(); - } - if (iwriter != null) { - iwriter.close(); - } - } - - /** - * Resurrects the queues from the tables * - * - * @throws IOException - */ - private void recoveryQscan(boolean localMode) throws IOException { - - for (String cacheName : ignite.cacheNames()) { - if (!cacheName.startsWith(URLCacheNamePrefix)) continue; - - IgniteCache cache = ignite.cache(cacheName); - - int urlsFound = 0; - - try (QueryCursor> cur = - cache.query(new ScanQuery().setLocal(localMode))) { - for (Entry entry : cur) { - urlsFound++; - final QueueWithinCrawl qk = - QueueWithinCrawl.parseAndDeNormalise(entry.getKey().crawlQueueID); - QueueMetadata queueMD = - (QueueMetadata) - getQueues().computeIfAbsent(qk, s -> new QueueMetadata()); - // active if it has a scheduling value - boolean done = entry.getValue().nextFetchDate == 0; - if (done) { - queueMD.incrementCompleted(); - } else { - queueMD.incrementActive(); - } - // cache.put(entry.getKey(), entry.getValue()); - } - } - LOG.info( - "Found {} URLs for crawl : {}", - urlsFound, - cacheName.substring(URLCacheNamePrefix.length())); - iwriter.commit(); - } - } - - // periodically go through the list of queues - // assigned to this node - class QueueCheck extends Thread { - - private Instant lastQuery = Instant.EPOCH; - - private final int delaySec; - - QueueCheck(int delay) { - super("IgniteQueueChecker"); - delaySec = delay; - } - - @Override - public void run() { - - while (true) { - if (isClosing()) return; - - // implement delay between requests - long msecTowait = - delaySec * 1000 - (Instant.now().toEpochMilli() - lastQuery.toEpochMilli()); - if (msecTowait > 0) { - try { - Thread.sleep(msecTowait); - } catch (InterruptedException e) { - Thread.currentThread().interrupt(); - } - continue; - } - - LOG.debug("Checking queues"); - - lastQuery = Instant.now(); - - Set existingQueues = - new HashSet(getQueues().keySet()); - - int queuesFound = 0; - int queuesRemoved = 0; - - // add any missing queues - try (QueryCursor> cur = - globalQueueCache.query(new ScanQuery().setLocal(true))) { - for (Entry entry : cur) { - final QueueWithinCrawl qk = - QueueWithinCrawl.parseAndDeNormalise(entry.getKey()); - existingQueues.remove(qk); - getQueues().computeIfAbsent(qk, s -> new QueueMetadata()); - queuesFound++; - } - } - - // delete anything that would have been removed - for (QueueWithinCrawl remaining : existingQueues) { - getQueues().remove(remaining); - queuesRemoved++; - } - - long time = Instant.now().toEpochMilli() - lastQuery.toEpochMilli(); - - LOG.info( - "Found {} queues, removed {}, total {} in {}", - queuesFound, - queuesRemoved, - getQueues().size(), - time); - } - } - } - - @Override - public StreamObserver putURLs( - StreamObserver responseObserver) { - - // throttle the flow of incoming changes to give Lucene - // a chance of keeping up - while (this.additions.size() >= maxUncommittedAdditions) { - try { - Thread.sleep(10); - } catch (InterruptedException e) { - } - } - - return super.putURLs(responseObserver); - } - - @Override - protected int sendURLsForQueue( - QueueInterface queue, - QueueWithinCrawl queueID, - int maxURLsPerQueue, - int secsUntilRequestable, - long now, - SynchronizedStreamObserver responseObserver) { - - int alreadySent = 0; - - Builder query = new BooleanQuery.Builder(); - query.add(new TermQuery(new Term("crawlid", queueID.getCrawlid())), Occur.FILTER); - query.add(new TermQuery(new Term("queue", queueID.getQueue())), Occur.FILTER); - - SortField sortField = new SortField("nextFetchDate", SortField.Type.INT, false); - Sort sortByNextFetchDate = new Sort(sortField); - - IgniteCache _cache = createOrGetCacheForCrawlID(queueID.getCrawlid()); - - IndexSearcher isearcher = null; - - try { - isearcher = searcherManager.acquire(); - - ScoreDoc[] hits = - isearcher.search(query.build(), maxURLsPerQueue * 3, sortByNextFetchDate) - .scoreDocs; - // Iterate through the results: - for (int i = 0; i < hits.length && alreadySent < maxURLsPerQueue; i++) { - Document hitDoc = isearcher.doc(hits[i].doc); - String url = hitDoc.get("url"); - - // check that the URL is not already being processed - if (((QueueMetadata) queue).isHeld(url, now)) { - continue; - } - - Payload payload = _cache.get(new Key(queueID.toString(), url)); - // might have disappeared since - if (payload == null) continue; - - // too early for it? - if (payload.nextFetchDate > now) { - // they should be sorted by date no need to go further - return alreadySent; - } - - // this one is good to go - try { - // check that we haven't already reached the number of queues - if (alreadySent == 0 && !responseObserver.tryTakingToken()) { - return 0; - } - - responseObserver.onNext(URLInfo.parseFrom(payload.payload)); - // mark it as not processable for N secs - ((QueueMetadata) queue).holdUntil(url, now + secsUntilRequestable); - alreadySent++; - } catch (InvalidProtocolBufferException e) { - LOG.error("Caught unlikely error ", e); - } - } - } catch (IOException e1) { - LOG.error("Caught error while adding doc", e1); - } finally { - try { - if (isearcher != null) searcherManager.release(isearcher); - } catch (IOException e) { - } - - // Set to null to ensure we never again try to use - // this searcher instance after releasing: - isearcher = null; - } - - return alreadySent; - } - - @Override - public void deleteCrawl( - crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage crawlID, - io.grpc.stub.StreamObserver - responseObserver) { - - long total = 0; - - final String normalisedCrawlID = CrawlID.normaliseCrawlID(crawlID.getValue()); - - final Set toDelete = new HashSet<>(); - - synchronized (getQueues()) { - - // find the crawlIDs - QueueWithinCrawl[] array = getQueues().keySet().toArray(new QueueWithinCrawl[0]); - Arrays.sort(array); - - for (QueueWithinCrawl prefixed_queue : array) { - boolean samePrefix = prefixed_queue.getCrawlid().equals(normalisedCrawlID); - if (samePrefix) { - toDelete.add(prefixed_queue); - } - } - - ignite.destroyCache(URLCacheNamePrefix + normalisedCrawlID); - - for (QueueWithinCrawl quid : toDelete) { - if (queuesBeingDeleted.contains(quid)) { - continue; - } else { - queuesBeingDeleted.put(quid, quid); - } - - QueueInterface q = getQueues().remove(quid); - total += q.countActive(); - total += q.getCountCompleted(); - - // remove at the global level - globalQueueCache.remove(quid.toString()); - - queuesBeingDeleted.remove(quid); - } - } - responseObserver.onNext( - crawlercommons.urlfrontier.Urlfrontier.Long.newBuilder().setValue(total).build()); - responseObserver.onCompleted(); - } - - /** - * - * - *
-     * * Delete the queue based on the key in parameter *
-     * 
- */ - @Override - public int deleteLocalQueue(final QueueWithinCrawl qc) { - - int sizeQueue = 0; - - // if the queue is unknown or already being deleted - if (!getQueues().containsKey(qc) || queuesBeingDeleted.contains(qc)) { - return sizeQueue; - } - - queuesBeingDeleted.put(qc, qc); - - IgniteCache URLCache = createOrGetCacheForCrawlID(qc.getCrawlid()); - - // slow version - scan the whole cache - IgniteBiPredicate filter = (key, p) -> key.crawlQueueID.equals(qc.toString()); - - try (QueryCursor> cur = - URLCache.query(new ScanQuery(filter).setLocal(true))) { - for (Entry entry : cur) { - URLCache.remove(entry.getKey()); - } - } - - QueueInterface q = getQueues().remove(qc); - sizeQueue += q.countActive(); - sizeQueue += q.getCountCompleted(); - - queuesBeingDeleted.remove(qc); - - // remove at the global level - globalQueueCache.remove(qc.toString()); - - return sizeQueue; - } - - @Override - protected long deleteLocalCrawl(String normalisedCrawlID) { - final Set toDelete = new HashSet<>(); - - long total = 0; - - synchronized (getQueues()) { - // find the crawlIDs - QueueWithinCrawl[] array = getQueues().keySet().toArray(new QueueWithinCrawl[0]); - Arrays.sort(array); - - for (QueueWithinCrawl prefixed_queue : array) { - boolean samePrefix = prefixed_queue.getCrawlid().equals(normalisedCrawlID); - if (samePrefix) { - toDelete.add(prefixed_queue); - } - } - - ignite.destroyCache(URLCacheNamePrefix + normalisedCrawlID); - - for (QueueWithinCrawl quid : toDelete) { - if (queuesBeingDeleted.contains(quid)) { - continue; - } else { - queuesBeingDeleted.put(quid, quid); - } - - QueueInterface q = getQueues().remove(quid); - total += q.countActive(); - total += q.getCountCompleted(); - - // remove at the global level - globalQueueCache.remove(quid.toString()); - - queuesBeingDeleted.remove(quid); - } - } - return total; - } - - @Override - public void getURLs(GetParams request, StreamObserver responseObserver) { - try { - searcherManager.maybeRefresh(); - } catch (IOException e) { - LOG.error("Exception when calling maybeRefresh in getURLs", e); - } - super.getURLs(request, responseObserver); - } - - @Override - protected Status putURLItem(URLItem value) { - - long nextFetchDate; - boolean discovered = true; - URLInfo info; - - putURLs_urls_count.inc(); - - if (value.hasDiscovered()) { - putURLs_discovered_count.labels("true").inc(); - info = value.getDiscovered().getInfo(); - nextFetchDate = Instant.now().getEpochSecond(); - } else { - putURLs_discovered_count.labels("false").inc(); - KnownURLItem known = value.getKnown(); - info = known.getInfo(); - nextFetchDate = known.getRefetchableFromDate(); - discovered = Boolean.FALSE; - } - - String Qkey = info.getKey(); - String url = info.getUrl(); - String crawlID = CrawlID.normaliseCrawlID(info.getCrawlID()); - - // has a queue key been defined? if not use the hostname - if (Qkey.equals("")) { - LOG.debug("key missing for {}", url); - Qkey = provideMissingKey(url); - if (Qkey == null) { - LOG.error("Malformed URL {}", url); - return AckMessage.Status.SKIPPED; - } - // make a new info object ready to return - info = URLInfo.newBuilder(info).setKey(Qkey).setCrawlID(crawlID).build(); - } - - // check that the key is not too long - if (Qkey.length() > 255) { - LOG.error("Key too long: {}", Qkey); - return AckMessage.Status.SKIPPED; - } - - QueueWithinCrawl qk = QueueWithinCrawl.get(Qkey, crawlID); - - // ignore this url if the queue is being deleted - if (queuesBeingDeleted.containsKey(qk)) { - LOG.info("Not adding {} as its queue {} is being deleted", url, Qkey); - return AckMessage.Status.SKIPPED; - } - - IgniteCache _cache = createOrGetCacheForCrawlID(crawlID); - - final String existenceKeyString = (qk.toString() + "_" + url).intern(); - - synchronized (existenceKeyString) { - final Key key = new Key(qk.toString(), url); - - // is this URL already known? - boolean known = _cache.containsKey(key); - - // already known? ignore if discovered - if (known && discovered) { - putURLs_alreadyknown_count.inc(); - return AckMessage.Status.SKIPPED; - } - - // get the priority queue - if it is a local one - // or create a dummy one - // but do not create it in the queues unless we are in a non distributed - // environment - QueueMetadata queueMD = null; - - if (clusterMode) { - queueMD = (QueueMetadata) getQueues().getOrDefault(qk, new QueueMetadata()); - } else { - queueMD = (QueueMetadata) getQueues().computeIfAbsent(qk, s -> new QueueMetadata()); - } - - // but make sure it exists globally anyway - globalQueueCache.putIfAbsent(qk.toString(), qk.toString()); - - Payload newpayload = new Payload(nextFetchDate, info.toByteArray()); - - _cache.put(key, newpayload); - - // known - remove from queues - // its key in the queues was stored in the default cf - if (known) { - // remove from queue metadata - queueMD.removeFromProcessed(url); - queueMD.decrementActive(); - } - - // add the new item - // unless it is an update and it's nextFetchDate is 0 == NEVER - if (!discovered && nextFetchDate == 0) { - queueMD.incrementCompleted(); - putURLs_completed_count.inc(); - } else { - // it is either brand new or already known - queueMD.incrementActive(); - } - } - - return AckMessage.Status.OK; - } - - @Override - // TODO Implementation of getURLStatus for Ignite - public void getURLStatus(URLStatusRequest request, StreamObserver responseObserver) { - responseObserver.onError(io.grpc.Status.UNIMPLEMENTED.asException()); - } -} diff --git a/service/src/main/java/crawlercommons/urlfrontier/service/ignite/Key.java b/service/src/main/java/crawlercommons/urlfrontier/service/ignite/Key.java deleted file mode 100644 index 2951c96..0000000 --- a/service/src/main/java/crawlercommons/urlfrontier/service/ignite/Key.java +++ /dev/null @@ -1,24 +0,0 @@ -// SPDX-FileCopyrightText: 2020 Crawler-commons -// SPDX-License-Identifier: Apache-2.0 - -package crawlercommons.urlfrontier.service.ignite; - -import java.io.Serializable; -import org.apache.ignite.cache.affinity.AffinityKeyMapped; - -class Key implements Serializable { - - @AffinityKeyMapped String crawlQueueID; - - String URL; - - Key(String crawlQueueID, String uRL) { - super(); - this.crawlQueueID = crawlQueueID; - URL = uRL; - } - - public String toString() { - return this.crawlQueueID + "_" + this.URL; - } -} diff --git a/service/src/main/java/crawlercommons/urlfrontier/service/ignite/Payload.java b/service/src/main/java/crawlercommons/urlfrontier/service/ignite/Payload.java deleted file mode 100644 index 8956a34..0000000 --- a/service/src/main/java/crawlercommons/urlfrontier/service/ignite/Payload.java +++ /dev/null @@ -1,16 +0,0 @@ -// SPDX-FileCopyrightText: 2020 Crawler-commons -// SPDX-License-Identifier: Apache-2.0 - -package crawlercommons.urlfrontier.service.ignite; - -import java.io.Serializable; - -class Payload implements Serializable { - long nextFetchDate; - byte[] payload; - - public Payload(long nextFetchDate, byte[] bs) { - this.nextFetchDate = nextFetchDate; - this.payload = bs; - } -} diff --git a/service/src/main/java/crawlercommons/urlfrontier/service/memory/URLQueue.java b/service/src/main/java/crawlercommons/urlfrontier/service/memory/URLQueue.java index 1eef781..8811bec 100644 --- a/service/src/main/java/crawlercommons/urlfrontier/service/memory/URLQueue.java +++ b/service/src/main/java/crawlercommons/urlfrontier/service/memory/URLQueue.java @@ -93,6 +93,7 @@ public int getDelay() { public int countActive() { return this.size(); } + public boolean isCompleted(String url) { return completed.contains(url); } diff --git a/service/src/test/java/crawlercommons/urlfrontier/service/MemoryFrontierServiceTest.java b/service/src/test/java/crawlercommons/urlfrontier/service/MemoryFrontierServiceTest.java index e644a80..0a61875 100644 --- a/service/src/test/java/crawlercommons/urlfrontier/service/MemoryFrontierServiceTest.java +++ b/service/src/test/java/crawlercommons/urlfrontier/service/MemoryFrontierServiceTest.java @@ -3,16 +3,14 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; -import java.util.concurrent.atomic.AtomicInteger; - -import org.junit.jupiter.api.BeforeAll; -import org.junit.jupiter.api.Test; -import org.slf4j.LoggerFactory; - import crawlercommons.urlfrontier.Urlfrontier.URLItem; import crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest; import crawlercommons.urlfrontier.service.memory.MemoryFrontierService; import io.grpc.stub.StreamObserver; +import java.util.concurrent.atomic.AtomicInteger; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; +import org.slf4j.LoggerFactory; class MemoryFrontierServiceTest { @@ -139,7 +137,7 @@ public void onNext(URLItem value) { @Override public void onError(Throwable t) { - assertEquals(io.grpc.Status.NOT_FOUND, io.grpc.Status.fromThrowable(t)); + assertEquals(io.grpc.Status.NOT_FOUND, io.grpc.Status.fromThrowable(t)); LOG.error(t.getMessage()); }