public org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto buildPartial() { org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto result = new org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.displayName_ = displayName_; if (countersBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { counters_ = java.util.Collections.unmodifiableList(counters_); bitField0_ = (bitField0_ & ~0x00000004); } result.counters_ = counters_; } else { result.counters_ = countersBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasDisplayName()) { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); } if (getCountersCount() > 0) { hash = (37 * hash) + COUNTERS_FIELD_NUMBER; hash = (53 * hash) + getCountersList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto other) { if (other == org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); if (other.hasDisplayName()) { bitField0_ |= 0x00000002; displayName_ = other.displayName_; this.mergeUnknownFields(other.getUnknownFields()); return this;
public Builder mergeFrom(org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto other) { if (other == org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); if (other.hasDisplayName()) { bitField0_ |= 0x00000002; displayName_ = other.displayName_; this.mergeUnknownFields(other.getUnknownFields()); return this;
public Builder mergeFrom(org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto other) { if (other == org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); if (other.hasDisplayName()) { bitField0_ |= 0x00000002; displayName_ = other.displayName_; this.mergeUnknownFields(other.getUnknownFields()); return this;
public Builder mergeFrom(org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto other) { if (other == org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); if (other.hasDisplayName()) { bitField0_ |= 0x00000002; displayName_ = other.displayName_; this.mergeUnknownFields(other.getUnknownFields()); return this;
public org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto buildPartial() { org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto result = new org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.displayName_ = displayName_; if (countersBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { counters_ = java.util.Collections.unmodifiableList(counters_); bitField0_ = (bitField0_ & ~0x00000004); } result.counters_ = counters_; } else { result.counters_ = countersBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto)) { return super.equals(obj); } org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto other = (org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasDisplayName() == other.hasDisplayName()); if (hasDisplayName()) { result = result && getDisplayName() .equals(other.getDisplayName()); } result = result && getCountersList() .equals(other.getCountersList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto buildPartial() { org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto result = new org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.displayName_ = displayName_; if (countersBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { counters_ = java.util.Collections.unmodifiableList(counters_); bitField0_ = (bitField0_ & ~0x00000004); } result.counters_ = counters_; } else { result.counters_ = countersBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto buildPartial() { org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto result = new org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.displayName_ = displayName_; if (countersBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { counters_ = java.util.Collections.unmodifiableList(counters_); bitField0_ = (bitField0_ & ~0x00000004); } result.counters_ = counters_; } else { result.counters_ = countersBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterGroupMapProto)) { return super.equals(obj); } org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterGroupMapProto other = (org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterGroupMapProto) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey() .equals(other.getKey()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto)) { return super.equals(obj); } org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto other = (org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasDisplayName() == other.hasDisplayName()); if (hasDisplayName()) { result = result && getDisplayName() .equals(other.getDisplayName()); } result = result && getCountersList() .equals(other.getCountersList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterGroupMapProto)) { return super.equals(obj); } org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterGroupMapProto other = (org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterGroupMapProto) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey() .equals(other.getKey()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterGroupMapProto)) { return super.equals(obj); } org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterGroupMapProto other = (org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterGroupMapProto) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey() .equals(other.getKey()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto)) { return super.equals(obj); } org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto other = (org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasDisplayName() == other.hasDisplayName()); if (hasDisplayName()) { result = result && getDisplayName() .equals(other.getDisplayName()); } result = result && getCountersList() .equals(other.getCountersList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto)) { return super.equals(obj); } org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto other = (org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); } result = result && (hasDisplayName() == other.hasDisplayName()); if (hasDisplayName()) { result = result && getDisplayName() .equals(other.getDisplayName()); } result = result && getCountersList() .equals(other.getCountersList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterGroupMapProto)) { return super.equals(obj); } org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterGroupMapProto other = (org.apache.hadoop.mapreduce.v2.proto.MRProtos.StringCounterGroupMapProto) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey() .equals(other.getKey()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
/** * <code>optional .hadoop.mapreduce.CounterGroupProto value = 2;</code> */ public Builder mergeValue(org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && value_ != org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto.getDefaultInstance()) { value_ = org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasDisplayName()) { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); } if (getCountersCount() > 0) { hash = (37 * hash) + COUNTERS_FIELD_NUMBER; hash = (53 * hash) + getCountersList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getDisplayNameBytes()); } for (int i = 0; i < counters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, counters_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }