public alluxio.grpc.JobHeartbeatPRequest buildPartial() { alluxio.grpc.JobHeartbeatPRequest result = new alluxio.grpc.JobHeartbeatPRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.workerId_ = workerId_; if (taskInfosBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { taskInfos_ = java.util.Collections.unmodifiableList(taskInfos_); bitField0_ = (bitField0_ & ~0x00000002); } result.taskInfos_ = taskInfos_; } else { result.taskInfos_ = taskInfosBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }