public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, minorFragment_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, endpoint_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, minorFragment_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, endpoint_); } getUnknownFields().writeTo(output); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMinorFragment()) { hash = (37 * hash) + MINOR_FRAGMENT_FIELD_NUMBER; hash = (53 * hash) + getMinorFragment(); } if (hasEndpoint()) { hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getEndpoint().hashCode(); } 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 com.dremio.exec.proto.CoordExecRPC.IncomingMinorFragment)) { return super.equals(obj); } com.dremio.exec.proto.CoordExecRPC.IncomingMinorFragment other = (com.dremio.exec.proto.CoordExecRPC.IncomingMinorFragment) obj; boolean result = true; result = result && (hasMinorFragment() == other.hasMinorFragment()); if (hasMinorFragment()) { result = result && (getMinorFragment() == other.getMinorFragment()); } result = result && (hasEndpoint() == other.hasEndpoint()); if (hasEndpoint()) { result = result && getEndpoint() .equals(other.getEndpoint()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(com.dremio.exec.proto.CoordExecRPC.IncomingMinorFragment other) { if (other == com.dremio.exec.proto.CoordExecRPC.IncomingMinorFragment.getDefaultInstance()) return this; if (other.hasMinorFragment()) { setMinorFragment(other.getMinorFragment()); } if (other.hasEndpoint()) { mergeEndpoint(other.getEndpoint()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }