@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMajorVersion()) { hash = (37 * hash) + MAJOR_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMajorVersion(); } if (hasMinorVersion()) { hash = (37 * hash) + MINOR_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMinorVersion(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMajorVersion()) { hash = (37 * hash) + MAJOR_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMajorVersion(); } if (hasMinorVersion()) { hash = (37 * hash) + MINOR_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMinorVersion(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMajorVersion()) { hash = (37 * hash) + MAJOR_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMajorVersion(); } if (hasMinorVersion()) { hash = (37 * hash) + MINOR_VERSION_FIELD_NUMBER; hash = (53 * hash) + getMinorVersion(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServerCommonProtos.VersionProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonProtos.VersionProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonProtos.VersionProto) obj; boolean result = true; result = result && (hasMajorVersion() == other.hasMajorVersion()); if (hasMajorVersion()) { result = result && (getMajorVersion() == other.getMajorVersion()); } result = result && (hasMinorVersion() == other.hasMinorVersion()); if (hasMinorVersion()) { result = result && (getMinorVersion() == other.getMinorVersion()); } 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.yarn.proto.YarnServerCommonProtos.VersionProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonProtos.VersionProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonProtos.VersionProto) obj; boolean result = true; result = result && (hasMajorVersion() == other.hasMajorVersion()); if (hasMajorVersion()) { result = result && (getMajorVersion() == other.getMajorVersion()); } result = result && (hasMinorVersion() == other.hasMinorVersion()); if (hasMinorVersion()) { result = result && (getMinorVersion() == other.getMinorVersion()); } 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.yarn.proto.YarnServerCommonProtos.VersionProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonProtos.VersionProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonProtos.VersionProto) obj; boolean result = true; result = result && (hasMajorVersion() == other.hasMajorVersion()); if (hasMajorVersion()) { result = result && (getMajorVersion() == other.getMajorVersion()); } result = result && (hasMinorVersion() == other.hasMinorVersion()); if (hasMinorVersion()) { result = result && (getMinorVersion() == other.getMinorVersion()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.VersionProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonProtos.VersionProto.getDefaultInstance()) return this; if (other.hasMajorVersion()) { setMajorVersion(other.getMajorVersion()); } if (other.hasMinorVersion()) { setMinorVersion(other.getMinorVersion()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.VersionProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonProtos.VersionProto.getDefaultInstance()) return this; if (other.hasMajorVersion()) { setMajorVersion(other.getMajorVersion()); } if (other.hasMinorVersion()) { setMinorVersion(other.getMinorVersion()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.VersionProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonProtos.VersionProto.getDefaultInstance()) return this; if (other.hasMajorVersion()) { setMajorVersion(other.getMajorVersion()); } if (other.hasMinorVersion()) { setMinorVersion(other.getMinorVersion()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }