diff --git a/API/src/main/java/crawlercommons/urlfrontier/URLFrontierGrpc.java b/API/src/main/java/crawlercommons/urlfrontier/URLFrontierGrpc.java index 582470f..f5d2694 100644 --- a/API/src/main/java/crawlercommons/urlfrontier/URLFrontierGrpc.java +++ b/API/src/main/java/crawlercommons/urlfrontier/URLFrontierGrpc.java @@ -2,1955 +2,1491 @@ 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< - 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; + 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) { if ((getListNodesMethod = URLFrontierGrpc.getListNodesMethod) == null) { - 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; + 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) { if ((getListCrawlsMethod = URLFrontierGrpc.getListCrawlsMethod) == null) { - 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; + 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) { if ((getDeleteCrawlMethod = URLFrontierGrpc.getDeleteCrawlMethod) == null) { - 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; + 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) { if ((getListQueuesMethod = URLFrontierGrpc.getListQueuesMethod) == null) { - 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; + 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) { if ((getGetURLsMethod = URLFrontierGrpc.getGetURLsMethod) == null) { - 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; + 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) { if ((getPutURLsMethod = URLFrontierGrpc.getPutURLsMethod) == null) { - 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; + 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) { if ((getGetStatsMethod = URLFrontierGrpc.getGetStatsMethod) == null) { - 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; + 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) { if ((getDeleteQueueMethod = URLFrontierGrpc.getDeleteQueueMethod) == null) { - 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; + 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) { if ((getBlockQueueUntilMethod = URLFrontierGrpc.getBlockQueueUntilMethod) == null) { - 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; + 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) { if ((getSetActiveMethod = URLFrontierGrpc.getSetActiveMethod) == null) { - 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; + 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) { if ((getGetActiveMethod = URLFrontierGrpc.getGetActiveMethod) == null) { - 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; + 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) { if ((getSetDelayMethod = URLFrontierGrpc.getSetDelayMethod) == null) { - 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; + 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) { if ((getSetLogLevelMethod = URLFrontierGrpc.getSetLogLevelMethod) == null) { - 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; + 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) { if ((getSetCrawlLimitMethod = URLFrontierGrpc.getSetCrawlLimitMethod) == null) { - 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; + 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(); + } + } } - - /** 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); + 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) { + 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); + } + }; + return URLFrontierFutureStub.newStub(factory, channel); + } + + /** + */ + public static abstract class URLFrontierImplBase implements io.grpc.BindableService { /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the - * service + *
+     ** Return the list of nodes forming the cluster the current node belongs to *
+     * 
*/ - 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 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); - } + public void listNodes(crawlercommons.urlfrontier.Urlfrontier.Empty request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNodesMethod(), 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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))) - .build(); - } + /** + *
+     ** 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); } - /** */ - public static final class URLFrontierStub - extends io.grpc.stub.AbstractAsyncStub { - private URLFrontierStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(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); + } - @java.lang.Override - protected URLFrontierStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new URLFrontierStub(channel, callOptions); - } + @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); + } - /** - * - * - *
-         * * 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 + protected URLFrontierStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new URLFrontierStub(channel, callOptions); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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 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); + } - /** - * - * - *
-         * * 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 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); + } - /** - * - * - *
-         * * 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 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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 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); - } + /** + *
+     ** 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 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); } - /** */ - public static final class URLFrontierBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private URLFrontierBlockingStub(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.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetCrawlLimitMethod(), getCallOptions()), request, responseObserver); + } - @java.lang.Override - protected URLFrontierBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new URLFrontierBlockingStub(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.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); + } - /** - * - * - *
-         * * 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); - } + @java.lang.Override + protected URLFrontierBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new URLFrontierBlockingStub(channel, callOptions); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); } - /** */ - public static final class URLFrontierFutureStub - extends io.grpc.stub.AbstractFutureStub { - private URLFrontierFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } + /** + *
+     ** 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); + } - @java.lang.Override - protected URLFrontierFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new URLFrontierFutureStub(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 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); + } - /** - * - * - *
-         * * 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); - } + @java.lang.Override + protected URLFrontierFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new URLFrontierFutureStub(channel, callOptions); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); + } - /** - * - * - *
-         * * 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); - } + /** + *
+     ** 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); } - 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_PUT_URLS = 13; - - 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; - } + /** + *
+     ** 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); + } - @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; - default: - throw new AssertionError(); - } - } + /** + *
+     ** 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; + } - @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(); - } - } + @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(); + } } - private abstract static class URLFrontierBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - URLFrontierBaseDescriptorSupplier() {} + @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(); + } + } + } - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier.getDescriptor(); - } + private static abstract class URLFrontierBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + URLFrontierBaseDescriptorSupplier() {} - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("URLFrontier"); - } + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return crawlercommons.urlfrontier.Urlfrontier.getDescriptor(); } - private static final class URLFrontierFileDescriptorSupplier - extends URLFrontierBaseDescriptorSupplier { - URLFrontierFileDescriptorSupplier() {} + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("URLFrontier"); } + } - private static final class URLFrontierMethodDescriptorSupplier - extends URLFrontierBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; + private static final class URLFrontierFileDescriptorSupplier + extends URLFrontierBaseDescriptorSupplier { + URLFrontierFileDescriptorSupplier() {} + } - URLFrontierMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } + private static final class URLFrontierMethodDescriptorSupplier + extends URLFrontierBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(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; + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (URLFrontierGrpc.class) { + result = serviceDescriptor; if (result == null) { - 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()) - .build(); - } - } - } - return result; + 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; + } } diff --git a/API/src/main/java/crawlercommons/urlfrontier/Urlfrontier.java b/API/src/main/java/crawlercommons/urlfrontier/Urlfrontier.java index 5cf36d1..5511e7f 100644 --- a/API/src/main/java/crawlercommons/urlfrontier/Urlfrontier.java +++ b/API/src/main/java/crawlercommons/urlfrontier/Urlfrontier.java @@ -4,19424 +4,19081 @@ 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(); + 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; } + 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 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(); - } + 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) + } + + // @@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); + } + 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(); + } + + 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; + } + + 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; + } + + } + + 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(); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @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; + } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Stats prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @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); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(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 - 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; - } + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @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; - } - } + memoizedIsInitialized = 1; + return true; + } - 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"); - } + @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); + } - 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(); - } + @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 = 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); - } + @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.Pagination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + @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.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.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.Pagination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @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.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 + 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) + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + // @@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 Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static crawlercommons.urlfrontier.Urlfrontier.Boolean getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static Builder newBuilder( - crawlercommons.urlfrontier.Urlfrontier.Pagination prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + 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 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; - } - /** 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 + public crawlercommons.urlfrontier.Urlfrontier.Boolean getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @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() {} + public interface LongOrBuilder extends + // @@protoc_insertion_point(interface_extends:urlfrontier.Long) + com.google.protobuf.MessageOrBuilder { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + /** + * 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 clear() { - super.clear(); - start_ = 0; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Long(); + } - size_ = 0; + @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; + } - includeInactive_ = 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); + } - crawlID_ = ""; + 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_; + } - local_ = false; + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - return this; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier - .internal_static_urlfrontier_Pagination_descriptor; - } + @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); + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Pagination getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.Pagination.getDefaultInstance(); - } + @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 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 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 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 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; + } - 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; - } + 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); + } - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( - java.nio.ByteBuffer 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.Long 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( - java.nio.ByteBuffer 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.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) + } - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + // @@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.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.Long getDefaultInstance() { + return DEFAULT_INSTANCE; + } - 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); - } + 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; + } - public static crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage 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.DeleteCrawlMessage 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.Long getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - 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); - } + public interface QueueListOrBuilder extends + // @@protoc_insertion_point(interface_extends:urlfrontier.QueueList) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * 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); - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + *
+     * total number of queues
+     * 
+ * + * uint64 total = 2; + * @return The total. + */ + long getTotal(); - public static Builder newBuilder( - crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + *
+     * position of the first result in the list
+     * 
+ * + * uint32 start = 3; + * @return The start. + */ + int getStart(); - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + *
+     * number of values returned
+     * 
+ * + * uint32 size = 4; + * @return The size. + */ + int getSize(); - @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; - } + /** + *
+     * 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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QueueList(); + } - @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 + 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; + } - // Construct using - // crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage.newBuilder() - private Builder() {} + @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); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + 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 Builder clear() { - super.clear(); - value_ = ""; + 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_; + } - local_ = false; + 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_; + } - return this; - } + 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_; + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier - .internal_static_urlfrontier_DeleteCrawlMessage_descriptor; - } + 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; + } + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage - getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage - .getDefaultInstance(); - } + 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.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(); - } + memoizedIsInitialized = 1; + return true; + } - 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 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 - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Empty(); - } + @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 final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + @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 final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier - .internal_static_urlfrontier_Empty_descriptor; - } + @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; + } - @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); - } + 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); + } - private byte memoizedIsInitialized = -1; + @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 - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @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) + } - memoizedIsInitialized = 1; - return true; - } + // @@protoc_insertion_point(class_scope:urlfrontier.QueueList) + private static final crawlercommons.urlfrontier.Urlfrontier.QueueList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.QueueList(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } + public static crawlercommons.urlfrontier.Urlfrontier.QueueList getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + 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; + } - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @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; + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.QueueList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - 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 interface StringListOrBuilder extends + // @@protoc_insertion_point(interface_extends:urlfrontier.StringList) + com.google.protobuf.MessageOrBuilder { - public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * 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; + } - 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 + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StringList(); + } - public static crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom( - com.google.protobuf.ByteString 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_StringList_descriptor; + } - 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); - } + @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 crawlercommons.urlfrontier.Urlfrontier.Empty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + 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, 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.Empty parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + memoizedIsInitialized = 1; + return true; + } - 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); - } + @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.Empty parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + @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.Empty 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 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.Empty parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @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.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); - } + 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); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @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 Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @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 Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Empty prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + // @@protoc_insertion_point(class_scope:urlfrontier.StringList) + private static final crawlercommons.urlfrontier.Urlfrontier.StringList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.StringList(); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static crawlercommons.urlfrontier.Urlfrontier.StringList getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @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; - } + 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 - 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); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - // Construct using crawlercommons.urlfrontier.Urlfrontier.Empty.newBuilder() - private Builder() {} + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.StringList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } + public interface QueueWithinCrawlParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:urlfrontier.QueueWithinCrawlParams) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier - .internal_static_urlfrontier_Empty_descriptor; - } + /** + *
+     ** 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(); - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Empty getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.Empty.getDefaultInstance(); - } + /** + *
+     * 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 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; - } + /** + *
+     * 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 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; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QueueWithinCrawlParams(); + } - memoizedIsInitialized = 1; - return true; - } + @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 - 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 + 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; + 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; + } + } - size = 0; - if (local_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, local_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + 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; + } + } - @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; + 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_; + } - if (getLocal() != other.getLocal()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + 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 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; - } + memoizedIsInitialized = 1; + return true; + } - public static crawlercommons.urlfrontier.Urlfrontier.Local parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @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 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 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; + } - 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 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; + } - 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); - } + @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.Local parseFrom(byte[] 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.Local 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.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.Local 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.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.Local 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.QueueWithinCrawlParams) + private static final crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams(); + } - 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.QueueWithinCrawlParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } - 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); - } + 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.Local parseFrom( - com.google.protobuf.CodedInputStream 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.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 crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public interface QueueDelayParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:urlfrontier.QueueDelayParams) + com.google.protobuf.MessageOrBuilder { - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Local prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + *
+     ** 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 toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + *
+     *  delay in seconds before a queue can provide new URLs
+     * 
+ * + * uint32 delay_requestable = 2; + * @return The delayRequestable. + */ + int getDelayRequestable(); - @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; - } + /** + *
+     * 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(); - @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); - } + /** + *
+     * 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_ = ""; + } - // Construct using crawlercommons.urlfrontier.Urlfrontier.Local.newBuilder() - private Builder() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new QueueDelayParams(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + @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 - public Builder clear() { - super.clear(); - local_ = false; + @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); + } - return this; - } + 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; + } + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier - .internal_static_urlfrontier_Local_descriptor; - } + 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 crawlercommons.urlfrontier.Urlfrontier.Local getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.Local.getDefaultInstance(); - } + 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.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 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_; + } - 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; + 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 (getState() != other.getState()) 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) + 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 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); + } - public static crawlercommons.urlfrontier.Urlfrontier.Active 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; + 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; + } - 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 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; + } - public static crawlercommons.urlfrontier.Urlfrontier.Active 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(); + 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.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.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); + } - public static crawlercommons.urlfrontier.Urlfrontier.Active 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.QueueDelayParams 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( - 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; + } + /** + *
+     ** 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) + } - public static crawlercommons.urlfrontier.Urlfrontier.Active parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + // @@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.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.QueueDelayParams getDefaultInstance() { + 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); - } + 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.Active parseFrom( - com.google.protobuf.CodedInputStream 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( - 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.QueueDelayParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public interface BlockQueueParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:urlfrontier.BlockQueueParams) + com.google.protobuf.MessageOrBuilder { - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Active prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + *
+     ** 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(); - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(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 The time. + */ + long getTime(); - @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; - } + /** + *
+     * 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(); - @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); - } + /** + *
+     * 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_ = ""; + } - // Construct using crawlercommons.urlfrontier.Urlfrontier.Active.newBuilder() - private Builder() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BlockQueueParams(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + @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 clear() { - super.clear(); - state_ = false; + @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); + } - local_ = false; + 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; + } + } - return this; - } + 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 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
+     * 
+ * + * 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 - 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 (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); + } - 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 (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 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.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 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) + 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; + } - 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.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 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.BlockQueueParams 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 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 - 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.BlockQueueParams) + private static final crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.BlockQueueParams(); + } - 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.BlockQueueParams 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 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; + } - 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.BlockQueueParams 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 GetParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:urlfrontier.GetParams) + 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); - } + /** + *
+     * 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.Boolean parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + *
+     * 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.Boolean parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); - } + /** + *
+     * 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.Boolean parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + *
+     *  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.Boolean parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + /** + * .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.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); - } + /** + * 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_ = ""; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetParams(); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @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 Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Boolean prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @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 - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + 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_); + } - @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 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_; + } - @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 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_; + } - // Construct using crawlercommons.urlfrontier.Urlfrontier.Boolean.newBuilder() - private Builder() {} + 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; + } + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + 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_; + } - @java.lang.Override - public Builder clear() { - super.clear(); - state_ = false; + 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(); + } - return 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 - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier - .internal_static_urlfrontier_Boolean_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.Boolean getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.Boolean.getDefaultInstance(); - } + memoizedIsInitialized = 1; + return true; + } - @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 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); + } - 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 + 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 - 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; + @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; + } - 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) + 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 void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (value_ != 0L) { - output.writeUInt64(1, value_); - } - getUnknownFields().writeTo(output); - } + 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 int getSerializedSize() { - int size = memoizedSize; - if (size != -1) 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.GetParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - size = 0; - if (value_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, value_); - } - 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; + } + /** + *
+     ** 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 + 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) + } - @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; + // @@protoc_insertion_point(class_scope:urlfrontier.GetParams) + private static final crawlercommons.urlfrontier.Urlfrontier.GetParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.GetParams(); + } - if (getValue() != other.getValue()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static crawlercommons.urlfrontier.Urlfrontier.GetParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @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; - } + 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; + } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( - java.nio.ByteBuffer 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.Long parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.GetParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + } + + 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() { + } - 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); - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AnyCrawlID(); + } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom(byte[] 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_AnyCrawlID_descriptor; + } - 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 + 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); + } - public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(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.Long parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - 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 + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getUnknownFields().writeTo(output); + } - 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); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static crawlercommons.urlfrontier.Urlfrontier.Long parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - 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); - } + @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; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @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 Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + 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 Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.Long prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @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); + } - @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.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) + } - @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; - } + // @@protoc_insertion_point(class_scope:urlfrontier.AnyCrawlID) + private static final crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID(); + } - @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 crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID getDefaultInstance() { + return DEFAULT_INSTANCE; + } - // Construct using crawlercommons.urlfrontier.Urlfrontier.Long.newBuilder() - private Builder() {} + 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; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public Builder clear() { - super.clear(); - value_ = 0L; + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - return this; - } + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier - .internal_static_urlfrontier_Long_descriptor; - } + public interface URLItemOrBuilder extends + // @@protoc_insertion_point(interface_extends:urlfrontier.URLItem) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.Long getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.Long.getDefaultInstance(); - } + /** + * .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 - 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; - } - } + /** + * .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(); - 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(); - } /** + *
+     ** Identifier specified by the client, if missing, the URL is returned *
+     * 
* - * + * string ID = 3; + * @return The iD. + */ + java.lang.String getID(); + /** *
-     * * Returned by ListQueues *
+     ** Identifier specified by the client, if missing, the URL is returned *
      * 
* - * Protobuf type {@code urlfrontier.QueueList} + * string ID = 3; + * @return The bytes for iD. */ - 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(); - } - - 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); - } + 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_ = ""; + } - @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 + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new URLItem(); + } - @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 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; + } - // Construct using crawlercommons.urlfrontier.Urlfrontier.QueueList.newBuilder() - private Builder() {} + @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 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; + 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_); + } - 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(); - } + 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(); + } - 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; - } + 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(); + } - @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; + 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; + } + } - if (!getValuesList().equals(other.getValuesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + 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 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; - } + memoizedIsInitialized = 1; + return true; + } - public static crawlercommons.urlfrontier.Urlfrontier.StringList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @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); + } - 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); - } + @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; + } - 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.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; + } - 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 = (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.StringList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + 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); + } - 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.URLItem 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; + } + /** + *
+     ** 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 + 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 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.URLItem) + private static final crawlercommons.urlfrontier.Urlfrontier.URLItem DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.URLItem(); + } - 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.URLItem 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 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 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.URLItem 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 AckMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:urlfrontier.AckMessage) + 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; - } + /** + *
+     ** 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(); - @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.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; + } - // Construct using crawlercommons.urlfrontier.Urlfrontier.StringList.newBuilder() - private Builder() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AckMessage(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + @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 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 + 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 - 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); - } + /** + * 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) + } - 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 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 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 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; + } - @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.QueueWithinCrawlParams 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(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 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(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 - 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 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 - 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 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; + } - // Construct using - // crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams.newBuilder() - private Builder() {} + 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); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + @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 - public Builder clear() { - super.clear(); - key_ = ""; + @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) + } - crawlID_ = ""; + // @@protoc_insertion_point(class_scope:urlfrontier.AckMessage) + private static final crawlercommons.urlfrontier.Urlfrontier.AckMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.AckMessage(); + } - local_ = false; + public static crawlercommons.urlfrontier.Urlfrontier.AckMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } - return this; - } + 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.Descriptors.Descriptor getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier - .internal_static_urlfrontier_QueueWithinCrawlParams_descriptor; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams - getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.QueueWithinCrawlParams - .getDefaultInstance(); - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.AckMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @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(); - } + public interface URLInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:urlfrontier.URLInfo) + com.google.protobuf.MessageOrBuilder { - 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(); - } /** + *
+     ** URL *
+     * 
* - * + * string url = 1; + * @return The url. + */ + java.lang.String getUrl(); + /** *
-     * * Parameter message for SetDelay *
+     ** URL *
      * 
* - * Protobuf type {@code urlfrontier.QueueDelayParams} + * string url = 1; + * @return The bytes for url. */ - 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); - } + com.google.protobuf.ByteString + getUrlBytes(); - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + *
+     ** 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(); - public static Builder newBuilder( - crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + *
+     ** 
+     *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 Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /* 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; + */ - @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; - } + crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrThrow( + java.lang.String key); - @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); - } + /** + *
+     ** 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_ = ""; + } - // Construct using crawlercommons.urlfrontier.Urlfrontier.QueueDelayParams.newBuilder() - private Builder() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new URLInfo(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - - delayRequestable_ = 0; - - 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_URLInfo_descriptor; + } - 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(); - } + @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); + } - 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(); - } + 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; + } + } - 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(); + 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; + } } /** - * - * *
-     * * Parameter message for BlockQueueUntil *
+     ** 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.
      * 
* - * Protobuf type {@code urlfrontier.BlockQueueParams} + * string key = 2; + * @return The bytes for key. */ - 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); - } - - @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); - } - - @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_ = ""; + @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; + } + } - 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(); - } + 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_; + } - 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(); - } + 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; + */ - 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(); + @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; + } + /** *
-     * * Parameter message for GetURLs *
+     ** 
+     *Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc...
      * 
* - * Protobuf type {@code urlfrontier.GetParams} + * map<string, .urlfrontier.StringList> metadata = 3; */ - 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 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 - 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 - 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; + @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); + } - maxQueues_ = 0; + 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; + } + } - key_ = ""; + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - delayRequestable_ = 0; + memoizedIsInitialized = 1; + return true; + } - 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; - } - } + @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); + } - 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(); - } + @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; + } - 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 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 final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } + @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 final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + 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); + } - // @@protoc_insertion_point(builder_scope:urlfrontier.GetParams) - } + @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); + } - // @@protoc_insertion_point(class_scope:urlfrontier.GetParams) - private static final crawlercommons.urlfrontier.Urlfrontier.GetParams DEFAULT_INSTANCE; + @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"); +} - static { - DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.GetParams(); - } + 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) + } - public static crawlercommons.urlfrontier.Urlfrontier.GetParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(class_scope:urlfrontier.URLInfo) + private static final crawlercommons.urlfrontier.Urlfrontier.URLInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.URLInfo(); + } - 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 crawlercommons.urlfrontier.Urlfrontier.URLInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + 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 com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public crawlercommons.urlfrontier.Urlfrontier.GetParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public crawlercommons.urlfrontier.Urlfrontier.URLInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - 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() {} + public interface KnownURLItemOrBuilder extends + // @@protoc_insertion_point(interface_extends:urlfrontier.KnownURLItem) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AnyCrawlID(); - } + /** + * .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(); - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } + /** + *
+     ** 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 final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return crawlercommons.urlfrontier.Urlfrontier - .internal_static_urlfrontier_AnyCrawlID_descriptor; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new KnownURLItem(); + } - @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 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; + } - private byte memoizedIsInitialized = -1; + @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); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + 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(); + } - memoizedIsInitialized = 1; - return true; - } + 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_; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } + 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 int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + memoizedIsInitialized = 1; + return true; + } - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @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 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 + 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; + } - 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.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(); - 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(); + 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.AnyCrawlID 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) + 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); + } - 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); - } + @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); + } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID 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; + } + /** + *
+     **
+     *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 + 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 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); - } + // @@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.AnyCrawlID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static crawlercommons.urlfrontier.Urlfrontier.KnownURLItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID 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 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; + } - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID 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.AnyCrawlID 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.KnownURLItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - 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 interface DiscoveredURLItemOrBuilder extends + // @@protoc_insertion_point(interface_extends:urlfrontier.DiscoveredURLItem) + com.google.protobuf.MessageOrBuilder { - public static crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID parseFrom( - com.google.protobuf.CodedInputStream 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(); + } + /** + *
+   **
+   *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() { + } - 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); - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DiscoveredURLItem(); + } - @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_DiscoveredURLItem_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_DiscoveredURLItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.class, crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder.class); + } - public static Builder newBuilder( - crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + 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 toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(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; - @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; - } + memoizedIsInitialized = 1; + return true; + } - @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 void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (info_ != null) { + output.writeMessage(1, getInfo()); + } + getUnknownFields().writeTo(output); + } - // Construct using crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.newBuilder() - private Builder() {} + @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; + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + @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; + } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } + @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 com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return crawlercommons.urlfrontier.Urlfrontier - .internal_static_urlfrontier_AnyCrawlID_descriptor; - } + 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 crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.AnyCrawlID.getDefaultInstance(); - } + @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 - 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(); + @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 *
+     **
+     *URL discovered during the crawl, might already be known in the URL Frontier or not.
      * 
* - * Protobuf type {@code urlfrontier.URLItem} + * Protobuf type {@code urlfrontier.DiscoveredURLItem} */ - 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(); - } - - 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); - } - - @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 - 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) - } - - // @@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 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) - } - - 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); - } - - 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 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) + } - 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); - } + // @@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.AckMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } - 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); - } + 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; + } - 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 com.google.protobuf.Parser getParserForType() { + return PARSER; + } - 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 crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - 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 Builder newBuilderForType() { - return newBuilder(); - } + public interface LogLevelParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:urlfrontier.LogLevelParams) + com.google.protobuf.MessageOrBuilder { - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * string package = 1; + * @return The package. + */ + java.lang.String getPackage(); + /** + * string package = 1; + * @return The bytes for package. + */ + com.google.protobuf.ByteString + getPackageBytes(); - public static Builder newBuilder( - crawlercommons.urlfrontier.Urlfrontier.AckMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * .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 Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + *
+     * 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 - 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 + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LogLevelParams(); + } - @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 + 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; + } - // Construct using crawlercommons.urlfrontier.Urlfrontier.AckMessage.newBuilder() - private Builder() {} + @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); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } + /** + * 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) + } - @java.lang.Override - public Builder clear() { - super.clear(); - iD_ = ""; + 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; + } + } - status_ = 0; + 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; + } - 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_AckMessage_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.AckMessage getDefaultInstanceForType() { - return crawlercommons.urlfrontier.Urlfrontier.AckMessage.getDefaultInstance(); - } + memoizedIsInitialized = 1; + return true; + } - @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 + 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); + } - 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 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; + } - 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 + 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; + } - /* 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); - } + @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.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.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); + } - public static crawlercommons.urlfrontier.Urlfrontier.URLInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @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); + } - 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); - } + @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; + } + + @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) + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + // @@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 Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static crawlercommons.urlfrontier.Urlfrontier.LogLevelParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static Builder newBuilder(crawlercommons.urlfrontier.Urlfrontier.URLInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + 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 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; - } - /** 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 crawlercommons.urlfrontier.Urlfrontier.LogLevelParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @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(); - } + } - 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 interface CrawlLimitParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:urlfrontier.CrawlLimitParams) + com.google.protobuf.MessageOrBuilder { - 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"); - } + /** + *
+     ** 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(); - 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(); - } + /** + * uint32 limit = 2; + * @return The limit. + */ + int getLimit(); - 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(); - } /** + *
+     * crawl ID
+     * 
* - * + * string crawlID = 3; + * @return The crawlID. + */ + java.lang.String getCrawlID(); + /** *
-     * *
-     * 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.
+     * crawl ID
      * 
* - * Protobuf type {@code urlfrontier.KnownURLItem} + * string crawlID = 3; + * @return The bytes for crawlID. */ - 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); - } - - @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 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 - 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); - } + 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_ = ""; + } - 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 + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CrawlLimitParams(); + } - 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); - } + @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 clearInfo() { - if (infoBuilder_ == null) { - info_ = null; - onChanged(); - } else { - info_ = null; - infoBuilder_ = null; - } + @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 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(); + 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; + } + } + /** *
-     * *
-     * URL discovered during the crawl, might already be known in the URL Frontier or not.
+     * crawl ID
      * 
* - * Protobuf type {@code urlfrontier.DiscoveredURLItem} + * string crawlID = 3; + * @return The bytes for crawlID. */ - 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; - - if (hasInfo() != other.hasInfo()) return false; - if (hasInfo()) { - if (!getInfo().equals(other.getInfo())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @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 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; - } + 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.DiscoveredURLItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + memoizedIsInitialized = 1; + return true; + } - 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); - } + @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); + } - public static crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem parseFrom( - com.google.protobuf.ByteString 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; + 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 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); - } + @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; + } - 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(); - } + @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 Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + 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 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.CrawlLimitParams 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 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 + 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) + } - @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); - } + // @@protoc_insertion_point(class_scope:urlfrontier.CrawlLimitParams) + private static final crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams(); + } - 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()); - } + public static crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } - 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); - } + 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; + } - return this; - } - /** .urlfrontier.URLInfo info = 1; */ - public Builder clearInfo() { - if (infoBuilder_ == null) { - info_ = null; - onChanged(); - } else { - info_ = null; - infoBuilder_ = null; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - 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(); + @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(); + /** *
-     * *
-     * Configuration of the log level for a particular package, e.g.
-     * crawlercommons.urlfrontier.service.rocksdb DEBUG
+     ** URL for which we request info 
      * 
* - * Protobuf type {@code urlfrontier.LogLevelParams} + * string url = 1; + * @return The bytes for url. */ - 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()); - } - - 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); - } + com.google.protobuf.ByteString + getUrlBytes(); - private static final Level[] VALUES = values(); + /** + *
+     ** 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 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); - } + /** + *
+     * 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 - 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 URLStatusRequest(); + } - @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; - } + @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_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 + 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); + } - 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(); - } + 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; + } + } - 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(); + 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; + } + } + /** *
-     * * Parameter message for SetCrawlLimit *
+     * crawl ID - empty string for default
      * 
* - * Protobuf type {@code urlfrontier.CrawlLimitParams} + * string crawlID = 3; + * @return The bytes for crawlID. */ - 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(); - } + @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() { - 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.CrawlLimitParams 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 (!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 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 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 - 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() {} + @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 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(); - } + @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; + } - 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(); - } + 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); + } - 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; - } - } - - 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; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + @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); + } + + @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) + } + // @@protoc_insertion_point(class_scope:urlfrontier.URLStatusRequest) + private static final crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest DEFAULT_INSTANCE; 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(\t2\233\007\n\013UR" - + "LFrontier\022:\n\tListNodes\022\022.urlfrontier.Emp" - + "ty\032\027.urlfrontier.StringList\"\000\022;\n\nListCra" - + "wls\022\022.urlfrontier.Local\032\027.urlfrontier.St" - + "ringList\"\000\022C\n\013DeleteCrawl\022\037.urlfrontier." - + "DeleteCrawlMessage\032\021.urlfrontier.Long\"\000\022" - + "?\n\nListQueues\022\027.urlfrontier.Pagination\032\026" - + ".urlfrontier.QueueList\"\000\022;\n\007GetURLs\022\026.ur" - + "lfrontier.GetParams\032\024.urlfrontier.URLInf" - + "o\"\0000\001\022>\n\007PutURLs\022\024.urlfrontier.URLItem\032\027" - + ".urlfrontier.AckMessage\"\000(\0010\001\022E\n\010GetStat" - + "s\022#.urlfrontier.QueueWithinCrawlParams\032\022" - + ".urlfrontier.Stats\"\000\022G\n\013DeleteQueue\022#.ur" - + "lfrontier.QueueWithinCrawlParams\032\021.urlfr" - + "ontier.Long\"\000\022F\n\017BlockQueueUntil\022\035.urlfr" - + "ontier.BlockQueueParams\032\022.urlfrontier.Em" - + "pty\"\000\0226\n\tSetActive\022\023.urlfrontier.Active\032" - + "\022.urlfrontier.Empty\"\000\0227\n\tGetActive\022\022.url" - + "frontier.Local\032\024.urlfrontier.Boolean\"\000\022?" - + "\n\010SetDelay\022\035.urlfrontier.QueueDelayParam" - + "s\032\022.urlfrontier.Empty\"\000\022@\n\013SetLogLevel\022\033" - + ".urlfrontier.LogLevelParams\032\022.urlfrontie" - + "r.Empty\"\000\022D\n\rSetCrawlLimit\022\035.urlfrontier" - + ".CrawlLimitParams\032\022.urlfrontier.Empty\"\000B" - + "\034\n\032crawlercommons.urlfrontierb\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", - }); - } - - // @@protoc_insertion_point(outer_class_scope) + 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; + 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/API/urlfrontier.proto b/API/urlfrontier.proto index 156a0ad..9835248 100644 --- a/API/urlfrontier.proto +++ b/API/urlfrontier.proto @@ -72,6 +72,12 @@ service URLFrontier { /** Sets crawl limit for domain **/ rpc SetCrawlLimit(CrawlLimitParams) returns (Empty) {} + + /** 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 + **/ + rpc GetURLStatus(URLStatusRequest) returns (URLItem) {} } /** @@ -290,3 +296,13 @@ message CrawlLimitParams { // crawl ID string crawlID = 3; } + +message URLStatusRequest { + /** URL for which we request info */ + string url = 1; + /** ID for the queue **/ + string key = 2; + // crawl ID - empty string for default + string crawlID = 3; +} + diff --git a/client/src/main/java/crawlercommons/urlfrontier/client/Client.java b/client/src/main/java/crawlercommons/urlfrontier/client/Client.java index 9e36d74..2f765cd 100644 --- a/client/src/main/java/crawlercommons/urlfrontier/client/Client.java +++ b/client/src/main/java/crawlercommons/urlfrontier/client/Client.java @@ -23,7 +23,8 @@ DeleteQueue.class, DeleteCrawl.class, SetLogLevel.class, - SetCrawlLimit.class + SetCrawlLimit.class, + GetURLStatus.class, }, description = "Interacts with a URL Frontier from the command line") public class Client { diff --git a/client/src/main/java/crawlercommons/urlfrontier/client/GetURLStatus.java b/client/src/main/java/crawlercommons/urlfrontier/client/GetURLStatus.java new file mode 100644 index 0000000..c3b5045 --- /dev/null +++ b/client/src/main/java/crawlercommons/urlfrontier/client/GetURLStatus.java @@ -0,0 +1,106 @@ +// SPDX-FileCopyrightText: 2020 Crawler-commons +// SPDX-License-Identifier: Apache-2.0 + +package crawlercommons.urlfrontier.client; + +import crawlercommons.urlfrontier.CrawlID; +import crawlercommons.urlfrontier.URLFrontierGrpc; +import crawlercommons.urlfrontier.URLFrontierGrpc.URLFrontierBlockingStub; +import crawlercommons.urlfrontier.Urlfrontier.URLItem; +import crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest; +import crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest.Builder; +import io.grpc.ManagedChannel; +import io.grpc.ManagedChannelBuilder; +import io.grpc.StatusRuntimeException; +import java.time.Instant; +import java.time.LocalDateTime; +import java.time.ZoneId; +import picocli.CommandLine.Command; +import picocli.CommandLine.Option; +import picocli.CommandLine.ParentCommand; + +@Command(name = "GetURLStatus", description = "Get the status of an URL", sortOptions = false) +public class GetURLStatus implements Runnable { + + @ParentCommand private Client parent; + + @Option( + names = {"-c", "--crawlID"}, + required = false, + defaultValue = CrawlID.DEFAULT, + paramLabel = "STRING", + description = "crawl of the url to be checked") + private String crawl; + + @Option( + names = {"-k", "--key"}, + required = false, + paramLabel = "STRING", + description = "key to use to target a specific queue") + private String key; + + @Option( + names = {"-u", "--url"}, + required = true, + paramLabel = "STRING", + description = "url to check for") + private String url; + + @Option( + names = {"-p", "--parsedate"}, + description = { + "Print the refetch date in local time zone", + "By default, time is in UTC seconds since the Unix epoch" + }) + private boolean parse = false; + + // Use the system default time zone + private ZoneId zoneId = ZoneId.systemDefault(); + + @Override + public void run() { + ManagedChannel channel = + ManagedChannelBuilder.forAddress(parent.hostname, parent.port) + .usePlaintext() + .build(); + URLFrontierBlockingStub blockingFrontier = URLFrontierGrpc.newBlockingStub(channel); + + Builder builder = URLStatusRequest.newBuilder().setUrl(url).setCrawlID(crawl); + + String s1 = String.format("Checking status of URL %s (crawlId = %s)", url, crawl); + if (key != null) { + s1 += String.format(" (key = %s)", key); + builder.setKey(key); + } + System.out.println(s1); + + URLStatusRequest request = builder.build(); + + try { + URLItem item = blockingFrontier.getURLStatus(request); + String fetchDate; + + if (parse) { + Instant instant = Instant.ofEpochSecond(item.getKnown().getRefetchableFromDate()); + LocalDateTime localDate = instant.atZone(zoneId).toLocalDateTime(); + fetchDate = localDate.toString(); + } else { + fetchDate = String.valueOf(item.getKnown().getRefetchableFromDate()); + } + System.out.println(item.getKnown().getInfo().getUrl() + ";" + fetchDate); + + } catch (StatusRuntimeException sre) { + if (sre.getStatus().getCode() == io.grpc.Status.Code.NOT_FOUND) { + System.out.println("URL is not in frontier: " + url); + } else { + // Handle other errors + System.err.println(sre.getMessage()); + } + } catch (Exception t) { + // Handle other errors + System.err.println(t.getMessage()); + } + + channel.shutdownNow(); + } +} diff --git a/service/pom.xml b/service/pom.xml index c3d0587..93f2a71 100644 --- a/service/pom.xml +++ b/service/pom.xml @@ -65,7 +65,7 @@ ch.qos.logback logback-classic - 1.4.12 + 1.4.14 @@ -109,9 +109,30 @@ commons-io commons-io - 2.11.0 + 2.16.1 + + + + org.junit.jupiter + junit-jupiter + 5.10.3 + test + + org.mockito + mockito-core + 5.12.0 + test + + + + org.mockito + mockito-junit-jupiter + 5.12.0 + test + + diff --git a/service/src/main/java/crawlercommons/urlfrontier/service/AbstractFrontierService.java b/service/src/main/java/crawlercommons/urlfrontier/service/AbstractFrontierService.java index e124416..e474688 100644 --- a/service/src/main/java/crawlercommons/urlfrontier/service/AbstractFrontierService.java +++ b/service/src/main/java/crawlercommons/urlfrontier/service/AbstractFrontierService.java @@ -862,4 +862,8 @@ public void close() throws IOException { readExecutorService.shutdownNow(); } } + + public abstract void getURLStatus( + crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest request, + io.grpc.stub.StreamObserver responseObserver); } diff --git a/service/src/main/java/crawlercommons/urlfrontier/service/ignite/IgniteService.java b/service/src/main/java/crawlercommons/urlfrontier/service/ignite/IgniteService.java index 1a19fd2..5cf651d 100644 --- a/service/src/main/java/crawlercommons/urlfrontier/service/ignite/IgniteService.java +++ b/service/src/main/java/crawlercommons/urlfrontier/service/ignite/IgniteService.java @@ -11,6 +11,7 @@ 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; @@ -841,4 +842,10 @@ protected Status putURLItem(URLItem value) { 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/memory/MemoryFrontierService.java b/service/src/main/java/crawlercommons/urlfrontier/service/memory/MemoryFrontierService.java index f418c60..75a85ea 100644 --- a/service/src/main/java/crawlercommons/urlfrontier/service/memory/MemoryFrontierService.java +++ b/service/src/main/java/crawlercommons/urlfrontier/service/memory/MemoryFrontierService.java @@ -6,12 +6,15 @@ import com.google.protobuf.InvalidProtocolBufferException; import crawlercommons.urlfrontier.Urlfrontier.AckMessage; import crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status; +import crawlercommons.urlfrontier.Urlfrontier.KnownURLItem; import crawlercommons.urlfrontier.Urlfrontier.URLInfo; import crawlercommons.urlfrontier.Urlfrontier.URLItem; +import crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest; import crawlercommons.urlfrontier.service.AbstractFrontierService; import crawlercommons.urlfrontier.service.QueueInterface; import crawlercommons.urlfrontier.service.QueueWithinCrawl; import crawlercommons.urlfrontier.service.SynchronizedStreamObserver; +import io.grpc.stub.StreamObserver; import java.util.HashMap; import java.util.Iterator; import java.util.Map; @@ -145,4 +148,80 @@ protected AckMessage.Status putURLItem(URLItem value) { } return Status.OK; } + + @Override + public void getURLStatus(URLStatusRequest request, StreamObserver responseObserver) { + + String crawlId = request.getCrawlID(); + String url = request.getUrl(); + String key = request.getKey(); + boolean found = false; + + // has a queue key been defined? if not use the hostname + if (key == null || key.equals("")) { + LOG.debug("key missing for {}", url); + key = provideMissingKey(url); + if (key == null) { + LOG.error("Malformed URL {}", url); + responseObserver.onError(io.grpc.Status.INVALID_ARGUMENT.asRuntimeException()); + return; + } + } + + LOG.info("getURLStatus crawlId={} key={} url={}", crawlId, key, url); + + QueueWithinCrawl qwc = QueueWithinCrawl.get(key, crawlId); + URLQueue queue = (URLQueue) getQueues().get(qwc); + if (queue == null) { + LOG.error("Could not find queue for Crawl={}, queue={}", crawlId, key); + responseObserver.onError(io.grpc.Status.NOT_FOUND.asRuntimeException()); + return; + } + + URLInfo.Builder infoBuilder = URLInfo.newBuilder(); + URLInfo info = infoBuilder.setCrawlID(crawlId).setKey(key).setUrl(url).build(); + + URLItem.Builder builder = URLItem.newBuilder(); + + KnownURLItem.Builder knownBuilder = KnownURLItem.newBuilder(); + + if (queue.isCompleted(url)) { + knownBuilder.setInfo(info); + knownBuilder.setRefetchableFromDate(0); + builder.setKnown(knownBuilder.build()); + + found = true; + responseObserver.onNext(builder.build()); + } else { + Iterator iter = queue.iterator(); + + while (iter.hasNext()) { + InternalURL item = iter.next(); + + if (url.equals(item.url)) { + + try { + knownBuilder.setInfo(item.toURLInfo(qwc)); + knownBuilder.setRefetchableFromDate(item.nextFetchDate); + } catch (InvalidProtocolBufferException e) { + LOG.error(e.getMessage(), e); + responseObserver.onError( + io.grpc.Status.fromThrowable(e).asRuntimeException()); + return; + } + + builder.setKnown(knownBuilder.build()); + found = true; + responseObserver.onNext(builder.build()); + break; + } + } + } + + if (found) { + responseObserver.onCompleted(); + } else { + responseObserver.onError(io.grpc.Status.NOT_FOUND.asRuntimeException()); + } + } } 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 b5a851e..1eef781 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,9 @@ public int getDelay() { public int countActive() { return this.size(); } + public boolean isCompleted(String url) { + return completed.contains(url); + } @Override public void setCrawlLimit(int crawlLimit) { diff --git a/service/src/main/java/crawlercommons/urlfrontier/service/rocksdb/RocksDBService.java b/service/src/main/java/crawlercommons/urlfrontier/service/rocksdb/RocksDBService.java index 83d8010..0d7b179 100644 --- a/service/src/main/java/crawlercommons/urlfrontier/service/rocksdb/RocksDBService.java +++ b/service/src/main/java/crawlercommons/urlfrontier/service/rocksdb/RocksDBService.java @@ -3,16 +3,19 @@ package crawlercommons.urlfrontier.service.rocksdb; +import com.google.protobuf.InvalidProtocolBufferException; import crawlercommons.urlfrontier.CrawlID; import crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status; import crawlercommons.urlfrontier.Urlfrontier.KnownURLItem; import crawlercommons.urlfrontier.Urlfrontier.Stats; import crawlercommons.urlfrontier.Urlfrontier.URLInfo; import crawlercommons.urlfrontier.Urlfrontier.URLItem; +import crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest; import crawlercommons.urlfrontier.service.AbstractFrontierService; import crawlercommons.urlfrontier.service.QueueInterface; import crawlercommons.urlfrontier.service.QueueWithinCrawl; import crawlercommons.urlfrontier.service.SynchronizedStreamObserver; +import io.grpc.netty.shaded.io.netty.util.internal.StringUtil; import io.grpc.stub.StreamObserver; import java.io.IOException; import java.nio.ByteBuffer; @@ -772,4 +775,91 @@ private void deleteRanges(final byte[] prefix, byte[] endKey) throws RocksDBExce rocksDB.delete(columnFamilyHandleList.get(0), endKey); } } + + @Override + public void getURLStatus(URLStatusRequest request, StreamObserver responseObserver) { + + String crawlId = request.getCrawlID(); + String key = request.getKey(); + String url = request.getUrl(); + + // has a queue key been defined? if not use the hostname + if (key == null || key.equals("")) { + LOG.debug("key missing for {}", url); + key = provideMissingKey(url); + if (key == null) { + LOG.error("Malformed URL {}", url); + responseObserver.onError(io.grpc.Status.INVALID_ARGUMENT.asRuntimeException()); + return; + } + } + + final QueueWithinCrawl qk = QueueWithinCrawl.get(key, crawlId); + final String existenceKeyString = (qk.toString() + "_" + url).intern(); + final byte[] existenceKey = existenceKeyString.getBytes(StandardCharsets.UTF_8); + + byte[] schedulingKey = null; + + boolean found = false; + + URLItem.Builder builder = URLItem.newBuilder(); + KnownURLItem.Builder kb = KnownURLItem.newBuilder(); + + try { + schedulingKey = rocksDB.get(columnFamilyHandleList.get(0), existenceKey); + if (schedulingKey != null) { + final String currentKey = new String(schedulingKey, StandardCharsets.UTF_8); + + if (StringUtil.isNullOrEmpty(currentKey)) { + URLInfo info = + URLInfo.newBuilder() + .setCrawlID(crawlId) + .setKey(key) + .setUrl(url) + .build(); + + kb.setRefetchableFromDate(0).setInfo(info).build(); + builder.setKnown(kb.build()); + found = true; + } else { + final int pos = currentKey.indexOf('_'); + final int pos2 = currentKey.indexOf('_', pos + 1); + final int pos3 = currentKey.indexOf('_', pos2 + 1); + + long scheduled = Long.parseLong(currentKey.substring(pos2 + 1, pos3)); + + URLInfo info = null; + try { + info = + URLInfo.parseFrom( + rocksDB.get(columnFamilyHandleList.get(1), schedulingKey)); + kb.setInfo(info); + kb.setRefetchableFromDate(scheduled); + builder.setKnown(kb.build()); + } catch (InvalidProtocolBufferException e) { + LOG.error(e.getMessage(), e); + responseObserver.onError( + io.grpc.Status.fromThrowable(e).asRuntimeException()); + } + + found = true; + } + } else { + // Key is unknown + found = false; + } + + } catch (RocksDBException e) { + LOG.error("Caught unlikely error ", e); + responseObserver.onError(io.grpc.Status.fromThrowable(e).asRuntimeException()); + return; + } + + if (found) { + responseObserver.onNext(builder.build()); + responseObserver.onCompleted(); + } else { + responseObserver.onError(io.grpc.Status.NOT_FOUND.asRuntimeException()); + } + } } diff --git a/service/src/main/java/crawlercommons/urlfrontier/service/rocksdb/ShardedRocksDBService.java b/service/src/main/java/crawlercommons/urlfrontier/service/rocksdb/ShardedRocksDBService.java index 7c1dc6d..73bb65a 100644 --- a/service/src/main/java/crawlercommons/urlfrontier/service/rocksdb/ShardedRocksDBService.java +++ b/service/src/main/java/crawlercommons/urlfrontier/service/rocksdb/ShardedRocksDBService.java @@ -6,10 +6,12 @@ import crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status; 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 io.grpc.stub.StreamObserver; import java.io.IOException; import java.util.ArrayList; import java.util.List; @@ -81,4 +83,10 @@ protected Status putURLItem(URLItem item) { public Map getQueues() { return instance.getQueues(); } + + @Override + // TODO Implementation of getURLStatus for ShardedRocksDB + public void getURLStatus(URLStatusRequest request, StreamObserver responseObserver) { + responseObserver.onError(io.grpc.Status.UNIMPLEMENTED.asException()); + } } diff --git a/service/src/test/java/crawlercommons/urlfrontier/service/MemoryFrontierServiceTest.java b/service/src/test/java/crawlercommons/urlfrontier/service/MemoryFrontierServiceTest.java new file mode 100644 index 0000000..e644a80 --- /dev/null +++ b/service/src/test/java/crawlercommons/urlfrontier/service/MemoryFrontierServiceTest.java @@ -0,0 +1,213 @@ +package crawlercommons.urlfrontier.service; + +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; + +class MemoryFrontierServiceTest { + + private static final org.slf4j.Logger LOG = + LoggerFactory.getLogger(MemoryFrontierServiceTest.class); + + static MemoryFrontierService memoryFrontierService; + + @BeforeAll + static void setup() { + memoryFrontierService = new MemoryFrontierService("localhost", 7071); + ServiceTestUtil.initURLs(memoryFrontierService); + } + + @Test + void testGetStatusDiscovered() { + + String crawlId = "crawl_id"; + String url = "https://www.mysite.com/discovered"; + String key = "queue_mysite"; + + URLStatusRequest request = + URLStatusRequest.newBuilder().setCrawlID(crawlId).setKey(key).setUrl(url).build(); + + final AtomicInteger discovered = new AtomicInteger(0); + final AtomicInteger count = new AtomicInteger(0); + + StreamObserver statusObserver = + new StreamObserver<>() { + + @Override + public void onNext(URLItem value) { + // receives confirmation that the value has been received + logURLItem(value); + + if (value.hasKnown()) { + discovered.incrementAndGet(); + assertTrue(value.getKnown().getRefetchableFromDate() > 0); + } + count.incrementAndGet(); + } + + @Override + public void onError(Throwable t) { + t.printStackTrace(); + } + + @Override + public void onCompleted() { + LOG.info("completed testGetStatusDiscovered"); + } + }; + + memoryFrontierService.getURLStatus(request, statusObserver); + + assertEquals(1, count.get()); + assertEquals(1, discovered.get()); + } + + @Test + void testGetStatusCompleted() { + + String crawlId = "crawl_id"; + String url = "https://www.mysite.com/completed"; + String key = "queue_mysite"; + + URLStatusRequest request = + URLStatusRequest.newBuilder().setCrawlID(crawlId).setKey(key).setUrl(url).build(); + + final AtomicInteger fetched = new AtomicInteger(0); + final AtomicInteger count = new AtomicInteger(0); + + StreamObserver statusObserver = + new StreamObserver<>() { + + @Override + public void onNext(URLItem value) { + // receives confirmation that the value has been received + logURLItem(value); + if (value.hasKnown()) { + fetched.incrementAndGet(); + assertEquals(0, value.getKnown().getRefetchableFromDate()); + } + count.incrementAndGet(); + } + + @Override + public void onError(Throwable t) { + t.printStackTrace(); + } + + @Override + public void onCompleted() { + LOG.info("completed testGetStatusKnown"); + } + }; + + memoryFrontierService.getURLStatus(request, statusObserver); + + assertEquals(1, count.get()); + assertEquals(1, fetched.get()); + } + + @Test + void testNotFound() { + String crawlId = "crawl_id"; + String url = "https://www.example3.com"; + String key = "queue_3"; + + URLStatusRequest request = + URLStatusRequest.newBuilder().setCrawlID(crawlId).setKey(key).setUrl(url).build(); + + final AtomicInteger count = new AtomicInteger(0); + + StreamObserver statusObserver = + new StreamObserver<>() { + + @Override + public void onNext(URLItem value) { + // receives confirmation that the value has been received + logURLItem(value); + count.incrementAndGet(); + } + + @Override + public void onError(Throwable t) { + assertEquals(io.grpc.Status.NOT_FOUND, io.grpc.Status.fromThrowable(t)); + LOG.error(t.getMessage()); + } + + @Override + public void onCompleted() { + LOG.info("completed testNotFound"); + } + }; + + memoryFrontierService.getURLStatus(request, statusObserver); + + assertEquals(0, count.get()); + } + + private void logURLItem(URLItem item) { + if (item.hasDiscovered()) { + LOG.info(item.getDiscovered().toString()); + } else if (item.hasKnown()) { + LOG.info(item.getKnown().toString()); + } else { + LOG.error("Unknown URLItem type"); + } + } + + @Test + void testGetStatusToRefetch() { + + String crawlId = "crawl_id"; + String url = "https://www.mysite.com/knowntorefetch"; + String key = "queue_mysite"; + + URLStatusRequest request = + URLStatusRequest.newBuilder().setCrawlID(crawlId).setKey(key).setUrl(url).build(); + + final AtomicInteger fetched = new AtomicInteger(0); + final AtomicInteger count = new AtomicInteger(0); + + StreamObserver statusObserver = + new StreamObserver<>() { + + @Override + public void onNext(URLItem value) { + // receives confirmation that the value has been received + logURLItem(value); + + // Internally, MemoryFrontierService does not make a distinction + // between discovered and known which have to be re-fetched + if (value.hasKnown()) { + fetched.incrementAndGet(); + assertTrue(value.getKnown().getRefetchableFromDate() > 0); + } + count.incrementAndGet(); + } + + @Override + public void onError(Throwable t) { + t.printStackTrace(); + } + + @Override + public void onCompleted() { + LOG.info("completed testGetStatusKnown"); + } + }; + + memoryFrontierService.getURLStatus(request, statusObserver); + + assertEquals(1, count.get()); + assertEquals(1, fetched.get()); + } +} diff --git a/service/src/test/java/crawlercommons/urlfrontier/service/RocksDBServiceTest.java b/service/src/test/java/crawlercommons/urlfrontier/service/RocksDBServiceTest.java new file mode 100644 index 0000000..e1e064f --- /dev/null +++ b/service/src/test/java/crawlercommons/urlfrontier/service/RocksDBServiceTest.java @@ -0,0 +1,242 @@ +package crawlercommons.urlfrontier.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import crawlercommons.urlfrontier.Urlfrontier.URLItem; +import crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest; +import crawlercommons.urlfrontier.service.rocksdb.RocksDBService; +import io.grpc.stub.StreamObserver; +import java.io.File; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.atomic.AtomicInteger; +import org.apache.commons.io.FileUtils; +import org.junit.jupiter.api.AfterAll; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.slf4j.LoggerFactory; + +class RocksDBServiceTest { + + private static final org.slf4j.Logger LOG = LoggerFactory.getLogger(RocksDBServiceTest.class); + + private static final String ROCKSDB_PATH = "./target/rocksdb"; + + RocksDBService rocksDBService; + + @AfterEach + void shutdown() throws IOException { + rocksDBService.close(); + } + + @AfterAll + static void cleanup() { + LOG.info("Cleaning up directory {}", ROCKSDB_PATH); + FileUtils.deleteQuietly(new File(ROCKSDB_PATH)); + } + + @BeforeEach + void setup() { + + Map conf = new HashMap<>(); + conf.put("rocksdb.path", ROCKSDB_PATH); + rocksDBService = new RocksDBService(conf, "localhost", 7071); + ServiceTestUtil.initURLs(rocksDBService); + } + + @Test + void testDiscovered() { + String crawlId = "crawl_id"; + String url = "https://www.mysite.com/discovered"; + String key = "queue_mysite"; + + URLStatusRequest request = + URLStatusRequest.newBuilder().setCrawlID(crawlId).setKey(key).setUrl(url).build(); + + final AtomicInteger discovered = new AtomicInteger(0); + final AtomicInteger count = new AtomicInteger(0); + + StreamObserver statusObserver = + new StreamObserver<>() { + + @Override + public void onNext(URLItem value) { + // receives confirmation that the value has been received + logURLItem(value); + if (value.hasKnown()) { + discovered.incrementAndGet(); + + assertEquals(url, value.getKnown().getInfo().getUrl()); + assertEquals(crawlId, value.getKnown().getInfo().getCrawlID()); + assertEquals(key, value.getKnown().getInfo().getKey()); + assertTrue(value.getKnown().getRefetchableFromDate() > 0); + } + count.incrementAndGet(); + } + + @Override + public void onError(Throwable t) { + t.printStackTrace(); + } + + @Override + public void onCompleted() { + LOG.info("completed testGetStatusDiscovered"); + } + }; + + rocksDBService.getURLStatus(request, statusObserver); + + assertEquals(1, count.get()); + assertEquals(1, discovered.get()); + } + + @Test + void testCompleted() { + + String crawlId = "crawl_id"; + String url = "https://www.mysite.com/completed"; + String key = "queue_mysite"; + + URLStatusRequest request = + URLStatusRequest.newBuilder().setCrawlID(crawlId).setKey(key).setUrl(url).build(); + + final AtomicInteger fetched = new AtomicInteger(0); + final AtomicInteger count = new AtomicInteger(0); + + StreamObserver statusObserver = + new StreamObserver<>() { + + @Override + public void onNext(URLItem value) { + // receives confirmation that the value has been received + logURLItem(value); + + if (value.hasKnown()) { + fetched.incrementAndGet(); + assertEquals(url, value.getKnown().getInfo().getUrl()); + assertEquals(crawlId, value.getKnown().getInfo().getCrawlID()); + assertEquals(key, value.getKnown().getInfo().getKey()); + assertEquals(0, value.getKnown().getRefetchableFromDate()); + } + count.incrementAndGet(); + } + + @Override + public void onError(Throwable t) { + t.printStackTrace(); + } + + @Override + public void onCompleted() { + LOG.info("completed testGetStatusKnown"); + } + }; + + rocksDBService.getURLStatus(request, statusObserver); + + assertEquals(1, count.get()); + assertEquals(1, fetched.get()); + } + + @Test + void testNotFound() { + String crawlId = "crawl_id"; + String url = "https://www.example3.com"; + String key = "queue_mysite"; + + URLStatusRequest request = + URLStatusRequest.newBuilder().setCrawlID(crawlId).setKey(key).setUrl(url).build(); + + final AtomicInteger count = new AtomicInteger(0); + final AtomicInteger notfound = new AtomicInteger(0); + + StreamObserver statusObserver = + new StreamObserver<>() { + + @Override + public void onNext(URLItem value) { + // receives confirmation that the value has been received + logURLItem(value); + count.incrementAndGet(); + } + + @Override + public void onError(Throwable t) { + assertEquals(io.grpc.Status.NOT_FOUND, io.grpc.Status.fromThrowable(t)); + LOG.error(t.getMessage()); + notfound.incrementAndGet(); + } + + @Override + public void onCompleted() { + LOG.info("completed testNotFound"); + } + }; + + rocksDBService.getURLStatus(request, statusObserver); + + assertEquals(0, count.get()); + assertEquals(1, notfound.get()); + } + + private void logURLItem(URLItem item) { + if (item.hasDiscovered()) { + LOG.info(item.getDiscovered().toString()); + } else if (item.hasKnown()) { + LOG.info(item.getKnown().toString()); + } else { + LOG.error("Unknown URLItem type"); + } + } + + @Test + void testGetStatusToRefetch() { + + String crawlId = "crawl_id"; + String url = "https://www.mysite.com/knowntorefetch"; + String key = "queue_mysite"; + + URLStatusRequest request = + URLStatusRequest.newBuilder().setCrawlID(crawlId).setKey(key).setUrl(url).build(); + + final AtomicInteger fetched = new AtomicInteger(0); + final AtomicInteger count = new AtomicInteger(0); + + StreamObserver statusObserver = + new StreamObserver<>() { + + @Override + public void onNext(URLItem value) { + // receives confirmation that the value has been received + logURLItem(value); + + // Internally, MemoryFrontierService does not make a distinction + // between discovered and known which have to be re-fetched + if (value.hasKnown()) { + assertTrue(value.getKnown().getRefetchableFromDate() > 0); + fetched.incrementAndGet(); + } + count.incrementAndGet(); + } + + @Override + public void onError(Throwable t) { + t.printStackTrace(); + } + + @Override + public void onCompleted() { + LOG.info("completed testGetStatusKnown"); + } + }; + + rocksDBService.getURLStatus(request, statusObserver); + + assertEquals(1, count.get()); + assertEquals(1, fetched.get()); + } +} diff --git a/service/src/test/java/crawlercommons/urlfrontier/service/ServiceTestUtil.java b/service/src/test/java/crawlercommons/urlfrontier/service/ServiceTestUtil.java new file mode 100644 index 0000000..56e747d --- /dev/null +++ b/service/src/test/java/crawlercommons/urlfrontier/service/ServiceTestUtil.java @@ -0,0 +1,141 @@ +package crawlercommons.urlfrontier.service; + +import crawlercommons.urlfrontier.Urlfrontier.AckMessage; +import crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem; +import crawlercommons.urlfrontier.Urlfrontier.KnownURLItem; +import crawlercommons.urlfrontier.Urlfrontier.StringList; +import crawlercommons.urlfrontier.Urlfrontier.URLInfo; +import crawlercommons.urlfrontier.Urlfrontier.URLItem; +import io.grpc.stub.StreamObserver; +import java.time.Instant; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicInteger; + +public class ServiceTestUtil { + + public static void initURLs(AbstractFrontierService service) { + + String crawlId = "crawl_id"; + String url1 = "https://www.mysite.com/discovered"; + String key1 = "queue_mysite"; + String url2 = "https://www.mysite.com/completed"; + String key2 = "queue_mysite"; + String url3 = "https://www.mysite.com/knowntorefetch"; + String key3 = "queue_mysite"; + + final AtomicBoolean completed = new AtomicBoolean(false); + final AtomicInteger acked = new AtomicInteger(0); + final AtomicInteger failed = new AtomicInteger(0); + final AtomicInteger skipped = new AtomicInteger(0); + final AtomicInteger ok = new AtomicInteger(0); + int sent = 0; + + StreamObserver responseObserver = + new StreamObserver<>() { + + @Override + public void onNext(crawlercommons.urlfrontier.Urlfrontier.AckMessage value) { + // receives confirmation that the value has been received + acked.addAndGet(1); + if (value.getStatus().equals(AckMessage.Status.SKIPPED)) { + skipped.getAndIncrement(); + } else if (value.getStatus().equals(AckMessage.Status.FAIL)) { + failed.getAndIncrement(); + } else if (value.getStatus().equals(AckMessage.Status.OK)) { + ok.getAndIncrement(); + } + } + + @Override + public void onError(Throwable t) { + completed.set(true); + t.printStackTrace(); + } + + @Override + public void onCompleted() { + completed.set(true); + } + }; + + StreamObserver streamObserver = service.putURLs(responseObserver); + + crawlercommons.urlfrontier.Urlfrontier.URLItem.Builder builder1 = URLItem.newBuilder(); + StringList sl1 = StringList.newBuilder().addValues("md1").build(); + StringList sl2 = StringList.newBuilder().addValues("md2").build(); + StringList sl3 = StringList.newBuilder().addValues("md3").build(); + + URLInfo info1 = + URLInfo.newBuilder() + .setUrl(url1) + .setCrawlID(crawlId) + .setKey(key1) + .putMetadata("meta1", sl1) + .build(); + + DiscoveredURLItem disco1 = DiscoveredURLItem.newBuilder().setInfo(info1).build(); + builder1.setDiscovered(disco1); + builder1.setID(crawlId + "_" + url1); + + streamObserver.onNext(builder1.build()); + sent++; + + URLInfo info2 = + URLInfo.newBuilder() + .setUrl(url2) + .setCrawlID(crawlId) + .setKey(key2) + .putMetadata("meta1", sl2) + .build(); + + DiscoveredURLItem disco2 = DiscoveredURLItem.newBuilder().setInfo(info2).build(); + builder1.clear(); + builder1.setDiscovered(disco2); + builder1.setID(crawlId + "_" + url2); + + streamObserver.onNext(builder1.build()); + sent++; + + crawlercommons.urlfrontier.Urlfrontier.URLItem.Builder builder2 = URLItem.newBuilder(); + KnownURLItem known = + KnownURLItem.newBuilder().setInfo(info2).setRefetchableFromDate(0).build(); + + builder2.setKnown(known); + builder2.setID(crawlId + "_" + url2); + + streamObserver.onNext(builder2.build()); + sent++; + + URLInfo info3 = + URLInfo.newBuilder() + .setUrl(url3) + .setCrawlID(crawlId) + .setKey(key3) + .putMetadata("meta3", sl3) + .build(); + + crawlercommons.urlfrontier.Urlfrontier.URLItem.Builder builder3 = URLItem.newBuilder(); + KnownURLItem torefetch = + KnownURLItem.newBuilder() + .setInfo(info3) + .setRefetchableFromDate(Instant.now().getEpochSecond() + 3600) + .build(); + + builder3.setKnown(torefetch); + builder3.setID(crawlId + "_" + url3); + + streamObserver.onNext(builder3.build()); + sent++; + + streamObserver.onCompleted(); + + // wait for completion + while (!completed.get() || sent != acked.get()) { + try { + Thread.sleep(10); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + } + } + } +}