public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, majorVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, minorVersion_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, majorVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, minorVersion_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, majorVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, minorVersion_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
@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; }
@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; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, majorVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, minorVersion_); } getUnknownFields().writeTo(output); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, majorVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, minorVersion_); } getUnknownFields().writeTo(output); }
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 void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, majorVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, minorVersion_); } getUnknownFields().writeTo(output); }
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; }