string value = 1;
@@ -2563,7 +2602,7 @@ public com.google.protobuf.ByteString getValueBytes() {
}
public static final int LOCAL_FIELD_NUMBER = 2;
- private boolean local_;
+ private boolean local_ = false;
/**
* bool local = 2;
@@ -2785,10 +2824,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
value_ = "";
-
local_ = false;
-
return this;
}
@@ -2818,12 +2856,24 @@ public crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage build() {
public crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage buildPartial() {
crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage result =
new crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage(this);
- result.value_ = value_;
- result.local_ = local_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ crawlercommons.urlfrontier.Urlfrontier.DeleteCrawlMessage result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.value_ = value_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.local_ = local_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -2877,6 +2927,7 @@ public Builder mergeFrom(
.getDefaultInstance()) return this;
if (!other.getValue().isEmpty()) {
value_ = other.value_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getLocal() != false) {
@@ -2911,13 +2962,13 @@ public Builder mergeFrom(
case 10:
{
value_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
local_ = input.readBool();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
default:
@@ -2937,6 +2988,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object value_ = "";
/**
@@ -2983,8 +3036,8 @@ public Builder setValue(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
value_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -2995,8 +3048,8 @@ public Builder setValue(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearValue() {
-
value_ = getDefaultInstance().getValue();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -3012,8 +3065,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
value_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3039,6 +3092,7 @@ public boolean getLocal() {
public Builder setLocal(boolean value) {
local_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -3049,7 +3103,7 @@ public Builder setLocal(boolean value) {
* @return This builder for chaining.
*/
public Builder clearLocal() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
local_ = false;
onChanged();
return this;
@@ -3147,11 +3201,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Empty();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return crawlercommons.urlfrontier.Urlfrontier
.internal_static_urlfrontier_Empty_descriptor;
@@ -3575,11 +3624,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Local();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return crawlercommons.urlfrontier.Urlfrontier
.internal_static_urlfrontier_Local_descriptor;
@@ -3596,7 +3640,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int LOCAL_FIELD_NUMBER = 1;
- private boolean local_;
+ private boolean local_ = false;
/**
* bool local = 1;
@@ -3806,8 +3850,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
local_ = false;
-
return this;
}
@@ -3835,11 +3879,20 @@ public crawlercommons.urlfrontier.Urlfrontier.Local build() {
public crawlercommons.urlfrontier.Urlfrontier.Local buildPartial() {
crawlercommons.urlfrontier.Urlfrontier.Local result =
new crawlercommons.urlfrontier.Urlfrontier.Local(this);
- result.local_ = local_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.Local result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.local_ = local_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -3920,7 +3973,7 @@ public Builder mergeFrom(
case 8:
{
local_ = input.readBool();
-
+ bitField0_ |= 0x00000001;
break;
} // case 8
default:
@@ -3940,6 +3993,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private boolean local_;
/**
@@ -3961,6 +4016,7 @@ public boolean getLocal() {
public Builder setLocal(boolean value) {
local_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3971,7 +4027,7 @@ public Builder setLocal(boolean value) {
* @return This builder for chaining.
*/
public Builder clearLocal() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
local_ = false;
onChanged();
return this;
@@ -4081,11 +4137,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Active();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return crawlercommons.urlfrontier.Urlfrontier
.internal_static_urlfrontier_Active_descriptor;
@@ -4102,7 +4153,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int STATE_FIELD_NUMBER = 1;
- private boolean state_;
+ private boolean state_ = false;
/**
* bool state = 1;
@@ -4115,7 +4166,7 @@ public boolean getState() {
}
public static final int LOCAL_FIELD_NUMBER = 2;
- private boolean local_;
+ private boolean local_ = false;
/**
* bool local = 2;
@@ -4334,10 +4385,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
state_ = false;
-
local_ = false;
-
return this;
}
@@ -4365,12 +4415,23 @@ public crawlercommons.urlfrontier.Urlfrontier.Active build() {
public crawlercommons.urlfrontier.Urlfrontier.Active buildPartial() {
crawlercommons.urlfrontier.Urlfrontier.Active result =
new crawlercommons.urlfrontier.Urlfrontier.Active(this);
- result.state_ = state_;
- result.local_ = local_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.Active result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.state_ = state_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.local_ = local_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -4454,13 +4515,13 @@ public Builder mergeFrom(
case 8:
{
state_ = input.readBool();
-
+ bitField0_ |= 0x00000001;
break;
} // case 8
case 16:
{
local_ = input.readBool();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
default:
@@ -4480,6 +4541,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private boolean state_;
/**
@@ -4501,6 +4564,7 @@ public boolean getState() {
public Builder setState(boolean value) {
state_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -4511,7 +4575,7 @@ public Builder setState(boolean value) {
* @return This builder for chaining.
*/
public Builder clearState() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
state_ = false;
onChanged();
return this;
@@ -4538,6 +4602,7 @@ public boolean getLocal() {
public Builder setLocal(boolean value) {
local_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4548,7 +4613,7 @@ public Builder setLocal(boolean value) {
* @return This builder for chaining.
*/
public Builder clearLocal() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
local_ = false;
onChanged();
return this;
@@ -4651,11 +4716,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Boolean();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return crawlercommons.urlfrontier.Urlfrontier
.internal_static_urlfrontier_Boolean_descriptor;
@@ -4672,7 +4732,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int STATE_FIELD_NUMBER = 1;
- private boolean state_;
+ private boolean state_ = false;
/**
* bool state = 1;
@@ -4882,8 +4942,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
state_ = false;
-
return this;
}
@@ -4911,11 +4971,20 @@ public crawlercommons.urlfrontier.Urlfrontier.Boolean build() {
public crawlercommons.urlfrontier.Urlfrontier.Boolean buildPartial() {
crawlercommons.urlfrontier.Urlfrontier.Boolean result =
new crawlercommons.urlfrontier.Urlfrontier.Boolean(this);
- result.state_ = state_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.Boolean result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.state_ = state_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -4996,7 +5065,7 @@ public Builder mergeFrom(
case 8:
{
state_ = input.readBool();
-
+ bitField0_ |= 0x00000001;
break;
} // case 8
default:
@@ -5016,6 +5085,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private boolean state_;
/**
@@ -5037,6 +5108,7 @@ public boolean getState() {
public Builder setState(boolean value) {
state_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -5047,7 +5119,7 @@ public Builder setState(boolean value) {
* @return This builder for chaining.
*/
public Builder clearState() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
state_ = false;
onChanged();
return this;
@@ -5150,11 +5222,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Long();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return crawlercommons.urlfrontier.Urlfrontier
.internal_static_urlfrontier_Long_descriptor;
@@ -5171,7 +5238,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int VALUE_FIELD_NUMBER = 1;
- private long value_;
+ private long value_ = 0L;
/**
* uint64 value = 1;
@@ -5381,8 +5448,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
value_ = 0L;
-
return this;
}
@@ -5410,11 +5477,20 @@ public crawlercommons.urlfrontier.Urlfrontier.Long build() {
public crawlercommons.urlfrontier.Urlfrontier.Long buildPartial() {
crawlercommons.urlfrontier.Urlfrontier.Long result =
new crawlercommons.urlfrontier.Urlfrontier.Long(this);
- result.value_ = value_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.Long result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.value_ = value_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -5495,7 +5571,7 @@ public Builder mergeFrom(
case 8:
{
value_ = input.readUInt64();
-
+ bitField0_ |= 0x00000001;
break;
} // case 8
default:
@@ -5515,6 +5591,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private long value_;
/**
@@ -5536,6 +5614,7 @@ public long getValue() {
public Builder setValue(long value) {
value_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -5546,7 +5625,7 @@ public Builder setValue(long value) {
* @return This builder for chaining.
*/
public Builder clearValue() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
value_ = 0L;
onChanged();
return this;
@@ -5738,7 +5817,7 @@ private QueueList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
}
private QueueList() {
- values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ values_ = com.google.protobuf.LazyStringArrayList.emptyList();
crawlID_ = "";
}
@@ -5748,11 +5827,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new QueueList();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return crawlercommons.urlfrontier.Urlfrontier
.internal_static_urlfrontier_QueueList_descriptor;
@@ -5769,7 +5843,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int VALUES_FIELD_NUMBER = 1;
- private com.google.protobuf.LazyStringList values_;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList values_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string values = 1;
@@ -5810,7 +5887,7 @@ public com.google.protobuf.ByteString getValuesBytes(int index) {
}
public static final int TOTAL_FIELD_NUMBER = 2;
- private long total_;
+ private long total_ = 0L;
/**
*
@@ -5829,7 +5906,7 @@ public long getTotal() {
}
public static final int START_FIELD_NUMBER = 3;
- private int start_;
+ private int start_ = 0;
/**
*
@@ -5848,7 +5925,7 @@ public int getStart() {
}
public static final int SIZE_FIELD_NUMBER = 4;
- private int size_;
+ private int size_ = 0;
/**
*
@@ -5867,7 +5944,9 @@ public int getSize() {
}
public static final int CRAWLID_FIELD_NUMBER = 5;
- private volatile java.lang.Object crawlID_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object crawlID_ = "";
/**
*
@@ -6167,16 +6246,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = 0;
+ values_ = com.google.protobuf.LazyStringArrayList.emptyList();
total_ = 0L;
-
start_ = 0;
-
size_ = 0;
-
crawlID_ = "";
-
return this;
}
@@ -6204,20 +6279,33 @@ public crawlercommons.urlfrontier.Urlfrontier.QueueList build() {
public crawlercommons.urlfrontier.Urlfrontier.QueueList buildPartial() {
crawlercommons.urlfrontier.Urlfrontier.QueueList result =
new crawlercommons.urlfrontier.Urlfrontier.QueueList(this);
- int from_bitField0_ = bitField0_;
- if (((bitField0_ & 0x00000001) != 0)) {
- values_ = values_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.values_ = values_;
- result.total_ = total_;
- result.start_ = start_;
- result.size_ = size_;
- result.crawlID_ = crawlID_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.QueueList result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ values_.makeImmutable();
+ result.values_ = values_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.total_ = total_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.start_ = start_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.size_ = size_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.crawlID_ = crawlID_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -6269,7 +6357,7 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.QueueList other)
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ |= 0x00000001;
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
@@ -6287,6 +6375,7 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.QueueList other)
}
if (!other.getCrawlID().isEmpty()) {
crawlID_ = other.crawlID_;
+ bitField0_ |= 0x00000010;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -6325,25 +6414,25 @@ public Builder mergeFrom(
case 16:
{
total_ = input.readUInt64();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 24:
{
start_ = input.readUInt32();
-
+ bitField0_ |= 0x00000004;
break;
} // case 24
case 32:
{
size_ = input.readUInt32();
-
+ bitField0_ |= 0x00000008;
break;
} // case 32
case 42:
{
crawlID_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000010;
break;
} // case 42
default:
@@ -6365,14 +6454,14 @@ public Builder mergeFrom(
private int bitField0_;
- private com.google.protobuf.LazyStringList values_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList values_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureValuesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!values_.isModifiable()) {
values_ = new com.google.protobuf.LazyStringArrayList(values_);
- bitField0_ |= 0x00000001;
}
+ bitField0_ |= 0x00000001;
}
/**
@@ -6381,7 +6470,8 @@ private void ensureValuesIsMutable() {
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList getValuesList() {
- return values_.getUnmodifiableView();
+ values_.makeImmutable();
+ return values_;
}
/**
@@ -6426,6 +6516,7 @@ public Builder setValues(int index, java.lang.String value) {
}
ensureValuesIsMutable();
values_.set(index, value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -6442,6 +6533,7 @@ public Builder addValues(java.lang.String value) {
}
ensureValuesIsMutable();
values_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -6455,6 +6547,7 @@ public Builder addValues(java.lang.String value) {
public Builder addAllValues(java.lang.Iterablerepeated string values = 1;
@@ -7153,8 +7249,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
- values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = 0;
+ values_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -7182,16 +7278,21 @@ public crawlercommons.urlfrontier.Urlfrontier.StringList build() {
public crawlercommons.urlfrontier.Urlfrontier.StringList buildPartial() {
crawlercommons.urlfrontier.Urlfrontier.StringList result =
new crawlercommons.urlfrontier.Urlfrontier.StringList(this);
- int from_bitField0_ = bitField0_;
- if (((bitField0_ & 0x00000001) != 0)) {
- values_ = values_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000001);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.values_ = values_;
onBuilt();
return result;
}
+ private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.StringList result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ values_.makeImmutable();
+ result.values_ = values_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -7243,7 +7344,7 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.StringList other
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ |= 0x00000001;
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
@@ -7302,14 +7403,14 @@ public Builder mergeFrom(
private int bitField0_;
- private com.google.protobuf.LazyStringList values_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList values_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureValuesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!values_.isModifiable()) {
values_ = new com.google.protobuf.LazyStringArrayList(values_);
- bitField0_ |= 0x00000001;
}
+ bitField0_ |= 0x00000001;
}
/**
@@ -7318,7 +7419,8 @@ private void ensureValuesIsMutable() {
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList getValuesList() {
- return values_.getUnmodifiableView();
+ values_.makeImmutable();
+ return values_;
}
/**
@@ -7363,6 +7465,7 @@ public Builder setValues(int index, java.lang.String value) {
}
ensureValuesIsMutable();
values_.set(index, value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -7379,6 +7482,7 @@ public Builder addValues(java.lang.String value) {
}
ensureValuesIsMutable();
values_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -7392,6 +7496,7 @@ public Builder addValues(java.lang.String value) {
public Builder addAllValues(java.lang.Iterable.urlfrontier.AckMessage.Status status = 2;
@@ -14070,9 +14242,8 @@ public int getStatusValue() {
*/
@java.lang.Override
public crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status getStatus() {
- @SuppressWarnings("deprecation")
crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status result =
- crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.valueOf(status_);
+ crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.forNumber(status_);
return result == null
? crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.UNRECOGNIZED
: result;
@@ -14288,10 +14459,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
iD_ = "";
-
status_ = 0;
-
return this;
}
@@ -14319,12 +14489,23 @@ public crawlercommons.urlfrontier.Urlfrontier.AckMessage build() {
public crawlercommons.urlfrontier.Urlfrontier.AckMessage buildPartial() {
crawlercommons.urlfrontier.Urlfrontier.AckMessage result =
new crawlercommons.urlfrontier.Urlfrontier.AckMessage(this);
- result.iD_ = iD_;
- result.status_ = status_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.AckMessage result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.iD_ = iD_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.status_ = status_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -14375,6 +14556,7 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.AckMessage other
return this;
if (!other.getID().isEmpty()) {
iD_ = other.iD_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.status_ != 0) {
@@ -14409,13 +14591,13 @@ public Builder mergeFrom(
case 10:
{
iD_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
status_ = input.readEnum();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
default:
@@ -14435,6 +14617,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object iD_ = "";
/**
@@ -14499,8 +14683,8 @@ public Builder setID(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
iD_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -14517,8 +14701,8 @@ public Builder setID(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearID() {
-
iD_ = getDefaultInstance().getID();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -14540,8 +14724,8 @@ public Builder setIDBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
iD_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -14565,8 +14749,8 @@ public int getStatusValue() {
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
-
status_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -14578,9 +14762,8 @@ public Builder setStatusValue(int value) {
*/
@java.lang.Override
public crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status getStatus() {
- @SuppressWarnings("deprecation")
crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status result =
- crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.valueOf(status_);
+ crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.forNumber(status_);
return result == null
? crawlercommons.urlfrontier.Urlfrontier.AckMessage.Status.UNRECOGNIZED
: result;
@@ -14597,7 +14780,7 @@ public Builder setStatus(
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000002;
status_ = value.getNumber();
onChanged();
return this;
@@ -14609,7 +14792,7 @@ public Builder setStatus(
* @return This builder for chaining.
*/
public Builder clearStatus() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
status_ = 0;
onChanged();
return this;
@@ -14790,7 +14973,6 @@ public interface URLInfoOrBuilder
*
* map<string, .urlfrontier.StringList> metadata = 3;
*/
-
/* nullable */
crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrDefault(
java.lang.String key,
@@ -14860,11 +15042,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new URLInfo();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return crawlercommons.urlfrontier.Urlfrontier
.internal_static_urlfrontier_URLInfo_descriptor;
@@ -14872,7 +15049,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
@SuppressWarnings({"rawtypes"})
@java.lang.Override
- protected com.google.protobuf.MapField internalGetMapField(int number) {
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
switch (number) {
case 3:
return internalGetMetadata();
@@ -14892,7 +15070,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
}
public static final int URL_FIELD_NUMBER = 1;
- private volatile java.lang.Object url_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object url_ = "";
/**
*
@@ -14943,7 +15123,9 @@ public com.google.protobuf.ByteString getUrlBytes() {
}
public static final int KEY_FIELD_NUMBER = 2;
- private volatile java.lang.Object key_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object key_ = "";
/**
*
@@ -15015,6 +15197,7 @@ private static final class MetadataDefaultEntryHolder {
.StringList.getDefaultInstance());
}
+ @SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList>
metadata_;
@@ -15086,9 +15269,11 @@ public boolean containsMetadata(java.lang.String key) {
* map<string, .urlfrontier.StringList> metadata = 3;
*/
@java.lang.Override
- public crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrDefault(
- java.lang.String key,
- crawlercommons.urlfrontier.Urlfrontier.StringList defaultValue) {
+ public /* nullable */ crawlercommons.urlfrontier.Urlfrontier.StringList
+ getMetadataOrDefault(
+ java.lang.String key,
+ /* nullable */
+ crawlercommons.urlfrontier.Urlfrontier.StringList defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
@@ -15122,7 +15307,9 @@ public crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrThrow(
}
public static final int CRAWLID_FIELD_NUMBER = 4;
- private volatile java.lang.Object crawlID_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object crawlID_ = "";
/**
*
@@ -15389,7 +15576,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapField internalGetMapField(int number) {
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
switch (number) {
case 3:
return internalGetMetadata();
@@ -15399,7 +15587,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
}
@SuppressWarnings({"rawtypes"})
- protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+ protected com.google.protobuf.MapFieldReflectionAccessor
+ internalGetMutableMapFieldReflection(int number) {
switch (number) {
case 3:
return internalGetMutableMetadata();
@@ -15428,13 +15617,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
url_ = "";
-
key_ = "";
-
internalGetMutableMetadata().clear();
crawlID_ = "";
-
return this;
}
@@ -15462,16 +15649,30 @@ public crawlercommons.urlfrontier.Urlfrontier.URLInfo build() {
public crawlercommons.urlfrontier.Urlfrontier.URLInfo buildPartial() {
crawlercommons.urlfrontier.Urlfrontier.URLInfo result =
new crawlercommons.urlfrontier.Urlfrontier.URLInfo(this);
- int from_bitField0_ = bitField0_;
- result.url_ = url_;
- result.key_ = key_;
- result.metadata_ = internalGetMetadata();
- result.metadata_.makeImmutable();
- result.crawlID_ = crawlID_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.URLInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.url_ = url_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.key_ = key_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.metadata_ =
+ internalGetMetadata().build(MetadataDefaultEntryHolder.defaultEntry);
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.crawlID_ = crawlID_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -15522,15 +15723,19 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.URLInfo other) {
return this;
if (!other.getUrl().isEmpty()) {
url_ = other.url_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
+ bitField0_ |= 0x00000002;
onChanged();
}
internalGetMutableMetadata().mergeFrom(other.internalGetMetadata());
+ bitField0_ |= 0x00000004;
if (!other.getCrawlID().isEmpty()) {
crawlID_ = other.crawlID_;
+ bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -15562,13 +15767,13 @@ public Builder mergeFrom(
case 10:
{
url_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
key_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
@@ -15583,14 +15788,15 @@ public Builder mergeFrom(
.getParserForType(),
extensionRegistry);
internalGetMutableMetadata()
- .getMutableMap()
+ .ensureBuilderMap()
.put(metadata__.getKey(), metadata__.getValue());
+ bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
crawlID_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000008;
break;
} // case 34
default:
@@ -15676,8 +15882,8 @@ public Builder setUrl(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
url_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -15694,8 +15900,8 @@ public Builder setUrl(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearUrl() {
-
url_ = getDefaultInstance().getUrl();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -15717,8 +15923,8 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
url_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -15790,8 +15996,8 @@ public Builder setKey(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
key_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -15809,8 +16015,8 @@ public Builder setKey(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearKey() {
-
key_ = getDefaultInstance().getKey();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -15833,44 +16039,73 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
key_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
- private com.google.protobuf.MapField<
- java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList>
+ private static final class MetadataConverter
+ implements com.google.protobuf.MapFieldBuilder.Converter<
+ java.lang.String,
+ crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder,
+ crawlercommons.urlfrontier.Urlfrontier.StringList> {
+ @java.lang.Override
+ public crawlercommons.urlfrontier.Urlfrontier.StringList build(
+ crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder val) {
+ if (val instanceof crawlercommons.urlfrontier.Urlfrontier.StringList) {
+ return (crawlercommons.urlfrontier.Urlfrontier.StringList) val;
+ }
+ return ((crawlercommons.urlfrontier.Urlfrontier.StringList.Builder) val)
+ .build();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.MapEntry<
+ java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList>
+ defaultEntry() {
+ return MetadataDefaultEntryHolder.defaultEntry;
+ }
+ }
+ ;
+
+ private static final MetadataConverter metadataConverter = new MetadataConverter();
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder,
+ crawlercommons.urlfrontier.Urlfrontier.StringList,
+ crawlercommons.urlfrontier.Urlfrontier.StringList.Builder>
metadata_;
- private com.google.protobuf.MapField<
- java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList>
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder,
+ crawlercommons.urlfrontier.Urlfrontier.StringList,
+ crawlercommons.urlfrontier.Urlfrontier.StringList.Builder>
internalGetMetadata() {
if (metadata_ == null) {
- return com.google.protobuf.MapField.emptyMapField(
- MetadataDefaultEntryHolder.defaultEntry);
+ return new com.google.protobuf.MapFieldBuilder<>(metadataConverter);
}
return metadata_;
}
- private com.google.protobuf.MapField<
- java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList>
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.String,
+ crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder,
+ crawlercommons.urlfrontier.Urlfrontier.StringList,
+ crawlercommons.urlfrontier.Urlfrontier.StringList.Builder>
internalGetMutableMetadata() {
- onChanged();
- ;
if (metadata_ == null) {
- metadata_ =
- com.google.protobuf.MapField.newMapField(
- MetadataDefaultEntryHolder.defaultEntry);
- }
- if (!metadata_.isMutable()) {
- metadata_ = metadata_.copy();
+ metadata_ = new com.google.protobuf.MapFieldBuilder<>(metadataConverter);
}
+ bitField0_ |= 0x00000004;
+ onChanged();
return metadata_;
}
public int getMetadataCount() {
- return internalGetMetadata().getMap().size();
+ return internalGetMetadata().ensureBuilderMap().size();
}
/**
@@ -15888,7 +16123,7 @@ public boolean containsMetadata(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
- return internalGetMetadata().getMap().containsKey(key);
+ return internalGetMetadata().ensureBuilderMap().containsKey(key);
}
/** Use {@link #getMetadataMap()} instead. */
@@ -15914,7 +16149,7 @@ public boolean containsMetadata(java.lang.String key) {
public java.util.Map<
java.lang.String, crawlercommons.urlfrontier.Urlfrontier.StringList>
getMetadataMap() {
- return internalGetMetadata().getMap();
+ return internalGetMetadata().getImmutableMap();
}
/**
@@ -15928,15 +16163,19 @@ public boolean containsMetadata(java.lang.String key) {
* map<string, .urlfrontier.StringList> metadata = 3;
*/
@java.lang.Override
- public crawlercommons.urlfrontier.Urlfrontier.StringList getMetadataOrDefault(
- java.lang.String key,
- crawlercommons.urlfrontier.Urlfrontier.StringList defaultValue) {
+ public /* nullable */ crawlercommons.urlfrontier.Urlfrontier.StringList
+ getMetadataOrDefault(
+ java.lang.String key,
+ /* nullable */
+ crawlercommons.urlfrontier.Urlfrontier.StringList defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
- java.util.Map+ * * + * Arbitrary key / values stored alongside the URL. Can be anything needed by the crawler like http status, source URL etc... + *+ * + *
map<string, .urlfrontier.StringList> metadata = 3;
+ */
+ public crawlercommons.urlfrontier.Urlfrontier.StringList.Builder
+ putMetadataBuilderIfAbsent(java.lang.String key) {
+ java.util.Map<
+ java.lang.String,
+ crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder>
+ builderMap = internalGetMutableMetadata().ensureBuilderMap();
+ crawlercommons.urlfrontier.Urlfrontier.StringListOrBuilder entry =
+ builderMap.get(key);
+ if (entry == null) {
+ entry = crawlercommons.urlfrontier.Urlfrontier.StringList.newBuilder();
+ builderMap.put(key, entry);
+ }
+ if (entry instanceof crawlercommons.urlfrontier.Urlfrontier.StringList) {
+ entry = ((crawlercommons.urlfrontier.Urlfrontier.StringList) entry).toBuilder();
+ builderMap.put(key, entry);
+ }
+ return (crawlercommons.urlfrontier.Urlfrontier.StringList.Builder) entry;
+ }
+
private java.lang.Object crawlID_ = "";
/**
@@ -16100,8 +16380,8 @@ public Builder setCrawlID(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
crawlID_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -16118,8 +16398,8 @@ public Builder setCrawlID(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearCrawlID() {
-
crawlID_ = getDefaultInstance().getCrawlID();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -16141,8 +16421,8 @@ public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
crawlID_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -16280,11 +16560,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new KnownURLItem();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return crawlercommons.urlfrontier.Urlfrontier
.internal_static_urlfrontier_KnownURLItem_descriptor;
@@ -16300,6 +16575,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.Builder.class);
}
+ private int bitField0_;
public static final int INFO_FIELD_NUMBER = 1;
private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_;
@@ -16310,7 +16586,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasInfo() {
- return info_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
@@ -16328,11 +16604,13 @@ public crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo() {
/** .urlfrontier.URLInfo info = 1;
*/
@java.lang.Override
public crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder() {
- return getInfo();
+ return info_ == null
+ ? crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance()
+ : info_;
}
public static final int REFETCHABLE_FROM_DATE_FIELD_NUMBER = 2;
- private long refetchableFromDate_;
+ private long refetchableFromDate_ = 0L;
/**
*
@@ -16367,7 +16645,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (info_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getInfo());
}
if (refetchableFromDate_ != 0L) {
@@ -16382,7 +16660,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (info_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInfo());
}
if (refetchableFromDate_ != 0L) {
@@ -16569,23 +16847,31 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using crawlercommons.urlfrontier.Urlfrontier.KnownURLItem.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getInfoFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- if (infoBuilder_ == null) {
- info_ = null;
- } else {
- info_ = null;
+ bitField0_ = 0;
+ info_ = null;
+ if (infoBuilder_ != null) {
+ infoBuilder_.dispose();
infoBuilder_ = null;
}
refetchableFromDate_ = 0L;
-
return this;
}
@@ -16613,16 +16899,26 @@ public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem build() {
public crawlercommons.urlfrontier.Urlfrontier.KnownURLItem buildPartial() {
crawlercommons.urlfrontier.Urlfrontier.KnownURLItem result =
new crawlercommons.urlfrontier.Urlfrontier.KnownURLItem(this);
- if (infoBuilder_ == null) {
- result.info_ = info_;
- } else {
- result.info_ = infoBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
- result.refetchableFromDate_ = refetchableFromDate_;
onBuilt();
return result;
}
+ private void buildPartial0(crawlercommons.urlfrontier.Urlfrontier.KnownURLItem result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.info_ = infoBuilder_ == null ? info_ : infoBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.refetchableFromDate_ = refetchableFromDate_;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -16708,13 +17004,13 @@ public Builder mergeFrom(
{
input.readMessage(
getInfoFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
refetchableFromDate_ = input.readUInt64();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
default:
@@ -16734,6 +17030,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_;
private com.google.protobuf.SingleFieldBuilderV3<
crawlercommons.urlfrontier.Urlfrontier.URLInfo,
@@ -16747,7 +17045,7 @@ public Builder mergeFrom(
* @return Whether the info field is set.
*/
public boolean hasInfo() {
- return infoBuilder_ != null || info_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
@@ -16772,11 +17070,11 @@ public Builder setInfo(crawlercommons.urlfrontier.Urlfrontier.URLInfo value) {
throw new NullPointerException();
}
info_ = value;
- onChanged();
} else {
infoBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
@@ -16785,49 +17083,51 @@ public Builder setInfo(
crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder builderForValue) {
if (infoBuilder_ == null) {
info_ = builderForValue.build();
- onChanged();
} else {
infoBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/** .urlfrontier.URLInfo info = 1;
*/
public Builder mergeInfo(crawlercommons.urlfrontier.Urlfrontier.URLInfo value) {
if (infoBuilder_ == null) {
- if (info_ != null) {
- info_ =
- crawlercommons.urlfrontier.Urlfrontier.URLInfo.newBuilder(info_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && info_ != null
+ && info_
+ != crawlercommons.urlfrontier.Urlfrontier.URLInfo
+ .getDefaultInstance()) {
+ getInfoBuilder().mergeFrom(value);
} else {
info_ = value;
}
- onChanged();
} else {
infoBuilder_.mergeFrom(value);
}
-
+ if (info_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/** .urlfrontier.URLInfo info = 1;
*/
public Builder clearInfo() {
- if (infoBuilder_ == null) {
- info_ = null;
- onChanged();
- } else {
- info_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ info_ = null;
+ if (infoBuilder_ != null) {
+ infoBuilder_.dispose();
infoBuilder_ = null;
}
-
+ onChanged();
return this;
}
/** .urlfrontier.URLInfo info = 1;
*/
public crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder getInfoBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getInfoFieldBuilder().getBuilder();
}
@@ -16898,6 +17198,7 @@ public long getRefetchableFromDate() {
public Builder setRefetchableFromDate(long value) {
refetchableFromDate_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -16916,7 +17217,7 @@ public Builder setRefetchableFromDate(long value) {
* @return This builder for chaining.
*/
public Builder clearRefetchableFromDate() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
refetchableFromDate_ = 0L;
onChanged();
return this;
@@ -17038,11 +17339,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DiscoveredURLItem();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return crawlercommons.urlfrontier.Urlfrontier
.internal_static_urlfrontier_DiscoveredURLItem_descriptor;
@@ -17058,6 +17354,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.Builder.class);
}
+ private int bitField0_;
public static final int INFO_FIELD_NUMBER = 1;
private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_;
@@ -17068,7 +17365,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*/
@java.lang.Override
public boolean hasInfo() {
- return info_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
@@ -17086,7 +17383,9 @@ public crawlercommons.urlfrontier.Urlfrontier.URLInfo getInfo() {
/** .urlfrontier.URLInfo info = 1;
*/
@java.lang.Override
public crawlercommons.urlfrontier.Urlfrontier.URLInfoOrBuilder getInfoOrBuilder() {
- return getInfo();
+ return info_ == null
+ ? crawlercommons.urlfrontier.Urlfrontier.URLInfo.getDefaultInstance()
+ : info_;
}
private byte memoizedIsInitialized = -1;
@@ -17104,7 +17403,7 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (info_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getInfo());
}
getUnknownFields().writeTo(output);
@@ -17116,7 +17415,7 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (info_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInfo());
}
size += getUnknownFields().getSerializedSize();
@@ -17294,19 +17593,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getInfoFieldBuilder();
+ }
}
@java.lang.Override
public Builder clear() {
super.clear();
- if (infoBuilder_ == null) {
- info_ = null;
- } else {
- info_ = null;
+ bitField0_ = 0;
+ info_ = null;
+ if (infoBuilder_ != null) {
+ infoBuilder_.dispose();
infoBuilder_ = null;
}
return this;
@@ -17338,15 +17646,24 @@ public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem build() {
public crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem buildPartial() {
crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem result =
new crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem(this);
- if (infoBuilder_ == null) {
- result.info_ = info_;
- } else {
- result.info_ = infoBuilder_.build();
+ if (bitField0_ != 0) {
+ buildPartial0(result);
}
onBuilt();
return result;
}
+ private void buildPartial0(
+ crawlercommons.urlfrontier.Urlfrontier.DiscoveredURLItem result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.info_ = infoBuilder_ == null ? info_ : infoBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -17431,7 +17748,7 @@ public Builder mergeFrom(
{
input.readMessage(
getInfoFieldBuilder().getBuilder(), extensionRegistry);
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
default:
@@ -17451,6 +17768,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private crawlercommons.urlfrontier.Urlfrontier.URLInfo info_;
private com.google.protobuf.SingleFieldBuilderV3<
crawlercommons.urlfrontier.Urlfrontier.URLInfo,
@@ -17464,7 +17783,7 @@ public Builder mergeFrom(
* @return Whether the info field is set.
*/
public boolean hasInfo() {
- return infoBuilder_ != null || info_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
@@ -17489,11 +17808,11 @@ public Builder setInfo(crawlercommons.urlfrontier.Urlfrontier.URLInfo value) {
throw new NullPointerException();
}
info_ = value;
- onChanged();
} else {
infoBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
@@ -17502,49 +17821,51 @@ public Builder setInfo(
crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder builderForValue) {
if (infoBuilder_ == null) {
info_ = builderForValue.build();
- onChanged();
} else {
infoBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/** .urlfrontier.URLInfo info = 1;
*/
public Builder mergeInfo(crawlercommons.urlfrontier.Urlfrontier.URLInfo value) {
if (infoBuilder_ == null) {
- if (info_ != null) {
- info_ =
- crawlercommons.urlfrontier.Urlfrontier.URLInfo.newBuilder(info_)
- .mergeFrom(value)
- .buildPartial();
+ if (((bitField0_ & 0x00000001) != 0)
+ && info_ != null
+ && info_
+ != crawlercommons.urlfrontier.Urlfrontier.URLInfo
+ .getDefaultInstance()) {
+ getInfoBuilder().mergeFrom(value);
} else {
info_ = value;
}
- onChanged();
} else {
infoBuilder_.mergeFrom(value);
}
-
+ if (info_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/** .urlfrontier.URLInfo info = 1;
*/
public Builder clearInfo() {
- if (infoBuilder_ == null) {
- info_ = null;
- onChanged();
- } else {
- info_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ info_ = null;
+ if (infoBuilder_ != null) {
+ infoBuilder_.dispose();
infoBuilder_ = null;
}
-
+ onChanged();
return this;
}
/** .urlfrontier.URLInfo info = 1;
*/
public crawlercommons.urlfrontier.Urlfrontier.URLInfo.Builder getInfoBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getInfoFieldBuilder().getBuilder();
}
@@ -17725,11 +18046,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new LogLevelParams();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return crawlercommons.urlfrontier.Urlfrontier
.internal_static_urlfrontier_LogLevelParams_descriptor;
@@ -17866,7 +18182,9 @@ private Level(int value) {
}
public static final int PACKAGE_FIELD_NUMBER = 1;
- private volatile java.lang.Object package_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object package_ = "";
/**
* string package = 1;
@@ -17905,7 +18223,7 @@ public com.google.protobuf.ByteString getPackageBytes() {
}
public static final int LEVEL_FIELD_NUMBER = 2;
- private int level_;
+ private int level_ = 0;
/**
* .urlfrontier.LogLevelParams.Level level = 2;
@@ -17924,16 +18242,15 @@ public int getLevelValue() {
*/
@java.lang.Override
public crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level getLevel() {
- @SuppressWarnings("deprecation")
crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level result =
- crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.valueOf(level_);
+ crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.forNumber(level_);
return result == null
? crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.UNRECOGNIZED
: result;
}
public static final int LOCAL_FIELD_NUMBER = 3;
- private boolean local_;
+ private boolean local_ = false;
/**
*
@@ -18183,12 +18500,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
package_ = "";
-
level_ = 0;
-
local_ = false;
-
return this;
}
@@ -18217,13 +18532,27 @@ public crawlercommons.urlfrontier.Urlfrontier.LogLevelParams build() {
public crawlercommons.urlfrontier.Urlfrontier.LogLevelParams buildPartial() {
crawlercommons.urlfrontier.Urlfrontier.LogLevelParams result =
new crawlercommons.urlfrontier.Urlfrontier.LogLevelParams(this);
- result.package_ = package_;
- result.level_ = level_;
- result.local_ = local_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ crawlercommons.urlfrontier.Urlfrontier.LogLevelParams result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.package_ = package_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.level_ = level_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.local_ = local_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -18275,6 +18604,7 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.LogLevelParams o
.getDefaultInstance()) return this;
if (!other.getPackage().isEmpty()) {
package_ = other.package_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.level_ != 0) {
@@ -18312,19 +18642,19 @@ public Builder mergeFrom(
case 10:
{
package_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
level_ = input.readEnum();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 24:
{
local_ = input.readBool();
-
+ bitField0_ |= 0x00000004;
break;
} // case 24
default:
@@ -18344,6 +18674,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object package_ = "";
/**
@@ -18390,8 +18722,8 @@ public Builder setPackage(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
package_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -18402,8 +18734,8 @@ public Builder setPackage(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearPackage() {
-
package_ = getDefaultInstance().getPackage();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -18419,8 +18751,8 @@ public Builder setPackageBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
package_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -18444,8 +18776,8 @@ public int getLevelValue() {
* @return This builder for chaining.
*/
public Builder setLevelValue(int value) {
-
level_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -18457,9 +18789,9 @@ public Builder setLevelValue(int value) {
*/
@java.lang.Override
public crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level getLevel() {
- @SuppressWarnings("deprecation")
crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level result =
- crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.valueOf(level_);
+ crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.forNumber(
+ level_);
return result == null
? crawlercommons.urlfrontier.Urlfrontier.LogLevelParams.Level.UNRECOGNIZED
: result;
@@ -18476,7 +18808,7 @@ public Builder setLevel(
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000002;
level_ = value.getNumber();
onChanged();
return this;
@@ -18488,7 +18820,7 @@ public Builder setLevel(
* @return This builder for chaining.
*/
public Builder clearLevel() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
level_ = 0;
onChanged();
return this;
@@ -18527,6 +18859,7 @@ public boolean getLocal() {
public Builder setLocal(boolean value) {
local_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -18543,7 +18876,7 @@ public Builder setLocal(boolean value) {
* @return This builder for chaining.
*/
public Builder clearLocal() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
local_ = false;
onChanged();
return this;
@@ -18709,11 +19042,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new CrawlLimitParams();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return crawlercommons.urlfrontier.Urlfrontier
.internal_static_urlfrontier_CrawlLimitParams_descriptor;
@@ -18730,7 +19058,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int KEY_FIELD_NUMBER = 1;
- private volatile java.lang.Object key_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object key_ = "";
/**
*
@@ -18781,7 +19111,7 @@ public com.google.protobuf.ByteString getKeyBytes() {
}
public static final int LIMIT_FIELD_NUMBER = 2;
- private int limit_;
+ private int limit_ = 0;
/**
* uint32 limit = 2;
@@ -18794,7 +19124,9 @@ public int getLimit() {
}
public static final int CRAWLID_FIELD_NUMBER = 3;
- private volatile java.lang.Object crawlID_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object crawlID_ = "";
/**
*
@@ -19070,12 +19402,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
key_ = "";
-
limit_ = 0;
-
crawlID_ = "";
-
return this;
}
@@ -19104,13 +19434,27 @@ public crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams build() {
public crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams buildPartial() {
crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams result =
new crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams(this);
- result.key_ = key_;
- result.limit_ = limit_;
- result.crawlID_ = crawlID_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ crawlercommons.urlfrontier.Urlfrontier.CrawlLimitParams result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.key_ = key_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.limit_ = limit_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.crawlID_ = crawlID_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -19164,6 +19508,7 @@ public Builder mergeFrom(
.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getLimit() != 0) {
@@ -19171,6 +19516,7 @@ public Builder mergeFrom(
}
if (!other.getCrawlID().isEmpty()) {
crawlID_ = other.crawlID_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -19202,19 +19548,19 @@ public Builder mergeFrom(
case 10:
{
key_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
limit_ = input.readUInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
crawlID_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -19234,6 +19580,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object key_ = "";
/**
@@ -19298,8 +19646,8 @@ public Builder setKey(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
key_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -19316,8 +19664,8 @@ public Builder setKey(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearKey() {
-
key_ = getDefaultInstance().getKey();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -19339,8 +19687,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
key_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -19366,6 +19714,7 @@ public int getLimit() {
public Builder setLimit(int value) {
limit_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -19376,7 +19725,7 @@ public Builder setLimit(int value) {
* @return This builder for chaining.
*/
public Builder clearLimit() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
limit_ = 0;
onChanged();
return this;
@@ -19446,8 +19795,8 @@ public Builder setCrawlID(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
crawlID_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -19464,8 +19813,8 @@ public Builder setCrawlID(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearCrawlID() {
-
crawlID_ = getDefaultInstance().getCrawlID();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -19487,8 +19836,8 @@ public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
crawlID_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -19666,11 +20015,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new URLStatusRequest();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return crawlercommons.urlfrontier.Urlfrontier
.internal_static_urlfrontier_URLStatusRequest_descriptor;
@@ -19687,7 +20031,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int URL_FIELD_NUMBER = 1;
- private volatile java.lang.Object url_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object url_ = "";
/**
*
@@ -19738,7 +20084,9 @@ public com.google.protobuf.ByteString getUrlBytes() {
}
public static final int KEY_FIELD_NUMBER = 2;
- private volatile java.lang.Object key_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object key_ = "";
/**
*
@@ -19789,7 +20137,9 @@ public com.google.protobuf.ByteString getKeyBytes() {
}
public static final int CRAWLID_FIELD_NUMBER = 3;
- private volatile java.lang.Object crawlID_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object crawlID_ = "";
/**
*
@@ -20057,12 +20407,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
url_ = "";
-
key_ = "";
-
crawlID_ = "";
-
return this;
}
@@ -20091,13 +20439,27 @@ public crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest build() {
public crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest buildPartial() {
crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest result =
new crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest(this);
- result.url_ = url_;
- result.key_ = key_;
- result.crawlID_ = crawlID_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ crawlercommons.urlfrontier.Urlfrontier.URLStatusRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.url_ = url_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.key_ = key_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.crawlID_ = crawlID_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -20151,14 +20513,17 @@ public Builder mergeFrom(
.getDefaultInstance()) return this;
if (!other.getUrl().isEmpty()) {
url_ = other.url_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getCrawlID().isEmpty()) {
crawlID_ = other.crawlID_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
@@ -20190,19 +20555,19 @@ public Builder mergeFrom(
case 10:
{
url_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
key_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
crawlID_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
default:
@@ -20222,6 +20587,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private java.lang.Object url_ = "";
/**
@@ -20286,8 +20653,8 @@ public Builder setUrl(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
url_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -20304,8 +20671,8 @@ public Builder setUrl(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearUrl() {
-
url_ = getDefaultInstance().getUrl();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -20327,8 +20694,8 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
url_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -20397,8 +20764,8 @@ public Builder setKey(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
key_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -20415,8 +20782,8 @@ public Builder setKey(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearKey() {
-
key_ = getDefaultInstance().getKey();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -20438,8 +20805,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
key_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -20508,8 +20875,8 @@ public Builder setCrawlID(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
crawlID_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -20526,8 +20893,8 @@ public Builder setCrawlID(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearCrawlID() {
-
crawlID_ = getDefaultInstance().getCrawlID();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -20549,8 +20916,8 @@ public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
crawlID_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -20740,11 +21107,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ListUrlParams();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return crawlercommons.urlfrontier.Urlfrontier
.internal_static_urlfrontier_ListUrlParams_descriptor;
@@ -20761,7 +21123,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
public static final int START_FIELD_NUMBER = 1;
- private int start_;
+ private int start_ = 0;
/**
*
@@ -20780,7 +21142,7 @@ public int getStart() {
}
public static final int SIZE_FIELD_NUMBER = 2;
- private int size_;
+ private int size_ = 0;
/**
*
@@ -20799,7 +21161,9 @@ public int getSize() {
}
public static final int KEY_FIELD_NUMBER = 3;
- private volatile java.lang.Object key_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object key_ = "";
/**
*
@@ -20850,7 +21214,9 @@ public com.google.protobuf.ByteString getKeyBytes() {
}
public static final int CRAWLID_FIELD_NUMBER = 4;
- private volatile java.lang.Object crawlID_;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object crawlID_ = "";
/**
*
@@ -20901,7 +21267,7 @@ public com.google.protobuf.ByteString getCrawlIDBytes() {
}
public static final int LOCAL_FIELD_NUMBER = 5;
- private boolean local_;
+ private boolean local_ = false;
/**
*
@@ -21154,16 +21520,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
start_ = 0;
-
size_ = 0;
-
key_ = "";
-
crawlID_ = "";
-
local_ = false;
-
return this;
}
@@ -21192,15 +21554,33 @@ public crawlercommons.urlfrontier.Urlfrontier.ListUrlParams build() {
public crawlercommons.urlfrontier.Urlfrontier.ListUrlParams buildPartial() {
crawlercommons.urlfrontier.Urlfrontier.ListUrlParams result =
new crawlercommons.urlfrontier.Urlfrontier.ListUrlParams(this);
- result.start_ = start_;
- result.size_ = size_;
- result.key_ = key_;
- result.crawlID_ = crawlID_;
- result.local_ = local_;
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
onBuilt();
return result;
}
+ private void buildPartial0(
+ crawlercommons.urlfrontier.Urlfrontier.ListUrlParams result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.start_ = start_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.size_ = size_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.key_ = key_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.crawlID_ = crawlID_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.local_ = local_;
+ }
+ }
+
@java.lang.Override
public Builder clone() {
return super.clone();
@@ -21258,10 +21638,12 @@ public Builder mergeFrom(crawlercommons.urlfrontier.Urlfrontier.ListUrlParams ot
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
+ bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getCrawlID().isEmpty()) {
crawlID_ = other.crawlID_;
+ bitField0_ |= 0x00000008;
onChanged();
}
if (other.getLocal() != false) {
@@ -21296,31 +21678,31 @@ public Builder mergeFrom(
case 8:
{
start_ = input.readUInt32();
-
+ bitField0_ |= 0x00000001;
break;
} // case 8
case 16:
{
size_ = input.readUInt32();
-
+ bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
key_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
crawlID_ = input.readStringRequireUtf8();
-
+ bitField0_ |= 0x00000008;
break;
} // case 34
case 40:
{
local_ = input.readBool();
-
+ bitField0_ |= 0x00000010;
break;
} // case 40
default:
@@ -21340,6 +21722,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private int start_;
/**
@@ -21373,6 +21757,7 @@ public int getStart() {
public Builder setStart(int value) {
start_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -21389,7 +21774,7 @@ public Builder setStart(int value) {
* @return This builder for chaining.
*/
public Builder clearStart() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
start_ = 0;
onChanged();
return this;
@@ -21428,6 +21813,7 @@ public int getSize() {
public Builder setSize(int value) {
size_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -21444,7 +21830,7 @@ public Builder setSize(int value) {
* @return This builder for chaining.
*/
public Builder clearSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
size_ = 0;
onChanged();
return this;
@@ -21514,8 +21900,8 @@ public Builder setKey(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
key_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -21532,8 +21918,8 @@ public Builder setKey(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearKey() {
-
key_ = getDefaultInstance().getKey();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -21555,8 +21941,8 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
key_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -21625,8 +22011,8 @@ public Builder setCrawlID(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
-
crawlID_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -21643,8 +22029,8 @@ public Builder setCrawlID(java.lang.String value) {
* @return This builder for chaining.
*/
public Builder clearCrawlID() {
-
crawlID_ = getDefaultInstance().getCrawlID();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -21666,8 +22052,8 @@ public Builder setCrawlIDBytes(com.google.protobuf.ByteString value) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
-
crawlID_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -21705,6 +22091,7 @@ public boolean getLocal() {
public Builder setLocal(boolean value) {
local_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -21721,7 +22108,7 @@ public Builder setLocal(boolean value) {
* @return This builder for chaining.
*/
public Builder clearLocal() {
-
+ bitField0_ = (bitField0_ & ~0x00000010);
local_ = false;
onChanged();
return this;
diff --git a/client/pom.xml b/client/pom.xml
index 5c7ed61..968ed5f 100644
--- a/client/pom.xml
+++ b/client/pom.xml
@@ -41,7 +41,7 @@