if (hasResource()) { hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getResource().hashCode();
result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource() .equals(other.getResource());
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto other) { if (other == org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto.getDefaultInstance()) return this; if (other.hasResource()) { mergeResource(other.getResource()); } if (other.hasSize()) { setSize(other.getSize()); } if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } if (other.hasType()) { setType(other.getType()); } if (other.hasVisibility()) { setVisibility(other.getVisibility()); } if (other.hasPattern()) { bitField0_ |= 0x00000020; pattern_ = other.pattern_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }