@Override public boolean equals(Object other) { if (other == null) return false; if (other.getClass().isAssignableFrom(this.getClass())) { return this.getProto().equals(this.getClass().cast(other).getProto()); } return false; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasResource()) { hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getResource().hashCode(); } if (hasDestinationDirectory()) { hash = (37 * hash) + DESTINATION_DIRECTORY_FIELD_NUMBER; hash = (53 * hash) + getDestinationDirectory().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public Builder clear() { super.clear(); if (resourceBuilder_ == null) { resource_ = org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto.getDefaultInstance(); } else { resourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); status_ = org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceStatusTypeProto.FETCH_PENDING; bitField0_ = (bitField0_ & ~0x00000002); if (localPathBuilder_ == null) { localPath_ = org.apache.hadoop.yarn.proto.YarnProtos.URLProto.getDefaultInstance(); } else { localPathBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); localSize_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); if (exceptionBuilder_ == null) { exception_ = org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.getDefaultInstance(); } else { exceptionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; }
org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = localPath_.toBuilder();
org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = localPath_.toBuilder();
org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = localPath_.toBuilder();
org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = resource_.toBuilder();
org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = localPath_.toBuilder();
org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = destinationDirectory_.toBuilder();
org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = destinationDirectory_.toBuilder();
org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = destinationDirectory_.toBuilder();
org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = destinationDirectory_.toBuilder();
if (hasResource()) { result = result && getResource() .equals(other.getResource());
if (hasLocalPath()) { result = result && getLocalPath() .equals(other.getLocalPath());
if (hasLocalPath()) { result = result && getLocalPath() .equals(other.getLocalPath());
if (hasLocalPath()) { result = result && getLocalPath() .equals(other.getLocalPath());
if (hasLocalPath()) { result = result && getLocalPath() .equals(other.getLocalPath());
if (hasResource()) { hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getResource().hashCode();
hash = (53 * hash) + getLocalPath().hashCode();
hash = (53 * hash) + getLocalPath().hashCode();